:root {
  --navy: #0F2A4A;
  --navy-deep: #091B30;
  --paper: #FFFFFF;
  --paper-alt: #F3F5F7;
  --line: rgba(15, 42, 74, 0.16);
  --line-soft: rgba(15, 42, 74, 0.08);
  --sub: #4C6178;
  --water: #2E76B6;
  --water-tint: #DCEAF7;
  --accent: #FEE500;
  --accent-dark: #F2D400;
  --warn-tint: #F3F5F7;
  --warn-ink: #4C6178;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--paper);
  line-height: 1.6;
  counter-reset: report-section;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 14px;
  cursor: pointer; border: 1.5px solid var(--navy); font-family: inherit;
  background: var(--paper); color: var(--navy);
  box-shadow: 3px 3px 0 var(--navy);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--navy); }
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn-primary { background: var(--accent); color: var(--navy-deep); border-color: var(--navy); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); box-shadow: none; }
.btn-ghost:hover { background: var(--water-tint); transform: none; }
.btn-kmong { background: #3DCC79; color: #fff; border-color: #2FA864; box-shadow: 3px 3px 0 #2FA864; }
.btn-kmong:hover { background: #2FA864; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn[disabled], .btn.pending { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn.pending:hover { transform: none; background: transparent; }

/* ---------- 헤더 ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 251, 0.92);
  border-bottom: 1.5px solid var(--navy);
  backdrop-filter: blur(6px);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 9px 20px; }
.logo { display: block; font-weight: 800; font-size: 15px; color: var(--navy); letter-spacing: -0.02em; line-height: 1.25; }
.logo::after {
  content: "참고용 현장 소견";
  display: block; font-family: var(--font-mono); font-weight: 500; font-size: 8px;
  letter-spacing: 0.1em; color: var(--sub); margin-top: 2px;
}
.header-cta { display: flex; gap: 8px; }

/* 사진 히어로 페이지 전용 — 헤더를 히어로 사진 위에 투명하게 얹는다 */
body.photo-header header {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent; backdrop-filter: none; border-bottom: none;
}
body.photo-header .logo,
body.photo-header .logo::after { color: #fff; }
body.photo-header .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.75); }
body.photo-header .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- 히어로 ---------- */
.hero {
  padding: 72px 0 58px;
  text-align: center;
  background: linear-gradient(180deg, var(--paper-alt) 0%, var(--paper) 100%);
  position: relative;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--water) 0 2px, transparent 2px 14px);
  opacity: 0.5;
}
.hero .eyebrow {
  display: inline-block; font-family: var(--font-mono); color: var(--navy);
  font-weight: 600; font-size: 12.5px; letter-spacing: 0.06em; margin-bottom: 18px;
  padding: 5px 12px; border: 1.5px solid var(--navy);
}
.hero h1 { font-size: 30px; line-height: 1.42; margin: 0 0 14px; color: var(--navy); font-weight: 800; }
.hero b { color: var(--water); }
.hero h1.hook {
  font-family: "Black Han Sans", var(--font);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero .hook-stat { font-size: 21px; font-weight: 800; color: var(--navy); margin: 0 0 16px; }
.hero .hook-process { font-size: 14.5px; color: var(--sub); line-height: 1.75; margin: 0 0 28px; }
.hero p.sub { color: var(--sub); font-size: 15.5px; margin: 0 0 28px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 서비스 페이지 전용 — 사진 배경 히어로 (허브·다른 서비스 페이지엔 영향 없음) */
.hero.hero-photo {
  background:
    linear-gradient(180deg, rgba(9, 27, 48, 0.88) 0%, rgba(9, 27, 48, 0.8) 100%),
    url("leak/hero-bg.jpg") center 58% / cover no-repeat;
  color: #fff;
}
.hero.hero-photo b { color: var(--accent); }

.hero.hero-photo {
  border-bottom: none;
  width: 100%;
  min-height: min(72vh, 700px);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.hero.hero-photo::after { display: none; }
.hero.hero-photo .eyebrow { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.hero.hero-photo h1 { color: #fff; }
.hero.hero-photo .hook-stat { color: #fff; }
.hero.hero-photo .hook-process { color: rgba(247, 249, 251, 0.78); }
.hero.hero-photo .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.85); }
.hero.hero-photo .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.hero.hero-photo .wrap { margin-top: -30px; }

.photo-ext { background: var(--paper-alt); }
.photo-ext b { color: var(--water); }
.photo-ext .about-box {
  background: transparent; border: none; padding: 0;
  max-width: 800px; margin: 0 auto;
}
.photo-ext .about-box p { font-size: 15.5px; line-height: 1.8; }

/* ---------- 섹션 공통 ---------- */
section { padding: 56px 0; border-bottom: 1.5px solid var(--line); }
section.alt { background: var(--paper-alt); }
section:last-of-type { border-bottom: none; }
.section-title { font-size: 22px; font-weight: 800; margin: 0 0 8px; text-align: center; }
section:not(.hero) .section-title { counter-increment: report-section; }
section:not(.hero) .section-title::before {
  content: "§ " counter(report-section, decimal-leading-zero);
  display: block; font-family: var(--font-mono); font-weight: 600; font-size: 12px;
  letter-spacing: 0.16em; color: var(--water); margin-bottom: 10px;
}
.section-desc { color: var(--sub); font-size: 14.5px; text-align: center; margin: 0 0 36px; }

/* ---------- 전문가 소개 ---------- */
.about-box { background: var(--paper); border: 1.5px solid var(--navy); padding: 32px; }
.about-box p { margin: 0 0 14px; font-size: 15px; }
.about-box p:last-child { margin-bottom: 0; }
.disclaimer {
  background: var(--warn-tint); color: var(--warn-ink); border: 1px dashed var(--warn-ink);
  border-radius: 2px; padding: 14px 16px; font-size: 13.5px; line-height: 1.6;
  margin-top: 18px; font-family: var(--font-mono);
}

/* ---------- 추천 대상 ---------- */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .fit-grid { grid-template-columns: 1fr; } }
.fit-card { border: 1.5px solid var(--navy); padding: 22px; background: var(--paper); }
.fit-card h3 { margin: 0 0 12px; font-size: 15.5px; font-family: var(--font-mono); letter-spacing: -0.01em; }
.fit-card.yes { border-color: var(--water); }
.fit-card.yes h3 { color: var(--water); }
.fit-card.no h3 { color: var(--sub); }
.fit-card ul { margin: 0; padding-left: 0; list-style: none; font-size: 14px; color: var(--navy); }
.fit-card.no { background: var(--paper-alt); border-style: dashed; }
.fit-card li { margin-bottom: 10px; padding-left: 26px; position: relative; }
.fit-card.yes li::before {
  content: "[✓]"; position: absolute; left: 0; font-family: var(--font-mono);
  font-weight: 700; color: var(--water); font-size: 12.5px;
}
.fit-card.no li::before {
  content: "[×]"; position: absolute; left: 0; font-family: var(--font-mono);
  font-weight: 700; color: var(--sub); font-size: 12.5px;
}

/* ---------- 서비스 카드 ---------- */
.service-card {
  border: 1.5px solid var(--navy); padding: 28px; margin-bottom: 20px; background: var(--paper);
}
.service-card .badge {
  display: inline-block; background: var(--navy); color: var(--paper); font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; padding: 4px 10px; margin-bottom: 10px;
}
.service-card h3 { margin: 0 0 10px; font-size: 18px; }
.service-card p { color: var(--sub); font-size: 14.5px; margin: 0; }
.service-card.pending { background: var(--paper-alt); border-style: dashed; }
.service-card.pending .badge { background: transparent; color: var(--sub); border: 1px solid var(--sub); }
.service-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.service-price { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--navy); }

/* ---------- 절차 ---------- */
.process-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process-list li {
  counter-increment: step; display: flex; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.process-list li:last-child { border-bottom: none; }
.process-list li::before {
  content: counter(step, decimal-leading-zero); flex: 0 0 auto; width: 34px; height: 34px;
  border: 1.5px solid var(--navy); color: var(--water); font-weight: 700; font-size: 13px;
  font-family: var(--font-mono); display: flex; align-items: center; justify-content: center;
}
.process-list h4 { margin: 0 0 4px; font-size: 15px; }
.process-list p { margin: 0; color: var(--sub); font-size: 14px; }

/* ---------- 가격표 ---------- */
.price-scroll { overflow-x: auto; }
table.price { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; border: 1.5px solid var(--navy); }
table.price th, table.price td { border: 1px solid var(--line); padding: 14px 12px; text-align: left; vertical-align: top; }
table.price th {
  background: var(--navy); color: var(--paper); font-size: 12px; font-weight: 600;
  font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
table.price td.price-num {
  font-weight: 700; color: var(--navy-deep); white-space: nowrap;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.price-note { font-size: 13px; color: var(--sub); margin-top: 14px; }

.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 800px) { .price-cards { grid-template-columns: 1fr; } }
.price-card {
  background: var(--paper); border: 1.5px solid var(--navy); border-radius: 16px;
  padding: 28px 24px; display: flex; flex-direction: column;
  box-shadow: 0 10px 28px rgba(15, 42, 74, 0.08);
}
.price-card.featured {
  border-color: var(--accent-dark); border-width: 2px;
  box-shadow: 0 14px 32px rgba(217, 165, 0, 0.18);
}
.price-card-head { text-align: center; margin-bottom: 18px; }
.price-card-head h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--navy); line-height: 1.35; }
.price-card-badge {
  display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  background: var(--water-tint); color: var(--water);
}
.price-card.featured .price-card-badge { background: var(--accent); color: var(--navy-deep); }
.price-card-list { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.price-card-list li {
  display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--sub);
  margin-bottom: 10px; line-height: 1.5;
}
.price-card-list .mark { color: var(--water); font-weight: 700; flex-shrink: 0; }
.price-card.featured .price-card-list .mark { color: var(--accent-dark); }
.price-card-amount {
  text-align: center; font-family: var(--font-mono); font-weight: 700;
  font-size: 30px; color: var(--navy-deep); margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.price-card-amount span { font-size: 15px; font-weight: 600; margin-left: 2px; }
.price-card .btn { width: 100%; }

/* ---------- 유의사항 ---------- */
.notice-list { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--sub); }
.notice-list li { margin-bottom: 12px; padding-left: 22px; position: relative; }
.notice-list li::before {
  content: "—"; position: absolute; left: 0; color: var(--water); font-family: var(--font-mono);
}

/* ---------- 예약/문의 ---------- */
.contact-box {
  background: var(--navy); color: var(--paper); padding: 44px 28px; text-align: center;
  border: 1.5px solid var(--navy);
}
.contact-box h2 { margin: 0 0 10px; font-size: 22px; }
.contact-box p { color: rgba(247, 249, 251, 0.72); margin: 0 0 24px; font-size: 14.5px; }
.contact-box .btn { background: var(--accent); color: var(--navy-deep); border-color: var(--paper); box-shadow: 3px 3px 0 var(--paper); }
.contact-box .btn:hover { background: var(--accent-dark); }
.contact-box .btn.pending { opacity: 0.5; box-shadow: none; }
.contact-box .pending-note { margin-top: 14px; font-size: 12.5px; color: rgba(247, 249, 251, 0.5); font-family: var(--font-mono); }

/* ---------- 푸터 ---------- */
footer {
  padding: 32px 0; text-align: center; color: var(--sub); font-size: 12px;
  font-family: var(--font-mono); letter-spacing: 0.02em;
}

/* ---------- 모바일 최적화 (히어로 기준) ---------- */
@media (max-width: 480px) {
  /* 투명 헤더(절대 위치)와 히어로 콘텐츠가 겹치던 문제 — 위로 당기던 여백을 취소 */
  .hero.hero-photo .wrap { margin-top: 0; padding-top: 44px; }
  .hero h1.hook { font-size: 20px; line-height: 1.45; margin-bottom: 18px; }
  .hero .hook-stat { font-size: 16px; margin-bottom: 12px; }
  .hero .hook-process { font-size: 12.5px; }
  .hero .eyebrow { font-size: 11px; padding: 4px 10px; }
  .hero.hero-photo { min-height: min(78vh, 620px); padding: 32px 16px; }

  table.price { min-width: 480px; font-size: 13px; }
  table.price th, table.price td { padding: 10px 8px; }
}
