/* 대한행정사사무소 — 음주운전 면허 행정심판 홈페이지 (새 디자인, 2026-10-27)
   방향: 신뢰·전문형 — 짙은 남색 + 금색, 넉넉한 여백, 읽기 쉬운 글자. 기한 안내만 빨강으로.
   화면 크기: 컴퓨터 1024px 이상 / 태블릿 768~1023px / 휴대폰 767px 이하 */

:root {
  --navy-950: #07142e;
  --navy-900: #0b1f44;
  --navy-800: #13295a;
  --navy-700: #1e3a75;
  --navy-50: #eef3fb;
  --gold-500: #d4a72c;
  --gold-400: #e5be4a;
  --gold-100: #fbf3dc;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #5b6779;
  --ink-300: #c7d0dc;
  --line: #e3e8ef;
  --bg-gray: #f5f7fa;
  --red-600: #d92d20;
  --red-700: #b42318;
  --red-50: #fef3f2;
  --green-700: #0f6b33;
  --green-50: #e9f8ef;
  --radius: 18px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
  --hdr-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-900);
  background: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1400px; } /* 머리·첫 화면·아래쪽 정보만 넓게 */

/* ---------- 단추 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 12px;
  font-size: 16px; font-weight: 700; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold-500); color: var(--navy-950); box-shadow: 0 6px 16px -8px rgba(212, 167, 44, 0.8); }
.btn-gold:hover { background: var(--gold-400); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-red { background: var(--red-600); color: #fff; }
.btn-red:hover { background: var(--red-700); }

/* ---------- 머리 ---------- */
.hdr {
  position: sticky; top: 0; z-index: 30;
  height: var(--hdr-h);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 23, 42, 0.35); }
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 39px; border-radius: 50%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; font-weight: 800; color: var(--navy-900); letter-spacing: -0.02em; }
.brand-text small { font-size: 12.5px; color: var(--ink-500); font-weight: 500; }
.hdr-actions { display: flex; align-items: center; gap: 18px; }
.hdr-phone { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy-900); }
.hdr-phone .ico { color: var(--gold-500); }
.hdr-phone-label { font-size: 14px; color: var(--ink-500); font-weight: 600; }
.hdr-phone-num { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- 첫 화면 ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(212, 167, 44, 0.16), transparent 62%),
    radial-gradient(700px 420px at -10% 110%, rgba(30, 58, 117, 0.55), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 56px;
}
.hero-chip {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(212, 167, 44, 0.1);
  box-shadow: inset 0 0 0 1px rgba(229, 190, 74, 0.45);
  color: var(--gold-400);
  font-size: 14px; font-weight: 700; line-height: 1.3;
}
.hero-title {
  margin-top: 22px;
  font-size: 52px; line-height: 1.24; font-weight: 800; letter-spacing: -0.035em;
}
.hero-title em { font-style: normal; color: var(--gold-400); }
.hero-lead { margin-top: 22px; max-width: 34em; font-size: 18.5px; line-height: 1.75; color: rgba(255, 255, 255, 0.78); }
.hero-points { margin-top: 26px; display: grid; gap: 10px; }
.hero-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
.hero-points .ico { margin-top: 2px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(212, 167, 44, 0.18); color: var(--gold-400); }
.hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 30px 0 34px;
}
.hero-stats > div { padding: 0 20px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { font-size: 14px; color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.hero-stats dd { margin-top: 2px; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
.hero-stats dd small { margin-left: 2px; font-size: 17px; font-weight: 700; color: rgba(255, 255, 255, 0.75); letter-spacing: 0; }
.hero-stats > div:last-child dd { color: var(--gold-400); }

/* ---------- 30초 진단 ---------- */
.quiz {
  position: relative;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.quiz-title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.quiz-sub { margin-top: 4px; font-size: 14.5px; color: var(--ink-500); line-height: 1.55; }
.quiz-progress { margin-top: 18px; height: 6px; border-radius: 99px; background: #edf1f6; overflow: hidden; }
.quiz-bar { display: block; height: 100%; width: 33.34%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); transition: width 0.3s ease; }
.quiz-count { margin-top: 8px; font-size: 13px; color: var(--ink-500); font-weight: 600; }
.quiz.is-contact .quiz-progress, .quiz.is-contact .quiz-count, .quiz.is-done .quiz-progress, .quiz.is-done .quiz-count { display: none; }
.quiz.is-contact .quiz-q { margin-top: 20px; }
.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: step-in 0.25s ease; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.quiz-q { margin: 14px 0 14px; font-size: 18px; font-weight: 700; line-height: 1.45; letter-spacing: -0.01em; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opts button {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 54px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff;
  font-size: 16px; font-weight: 600; text-align: left; line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.quiz-opts button small { font-size: 13px; color: var(--ink-500); font-weight: 500; }
.quiz-opts button:hover { border-color: var(--navy-700); background: #f8faff; }
.quiz-opts button.is-picked { border-color: var(--navy-900); background: var(--navy-50); box-shadow: inset 0 0 0 1px var(--navy-900); }
.quiz-nav { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.quiz-link { padding: 4px 2px; border: 0; background: none; color: var(--ink-500); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quiz-link:hover { color: var(--navy-900); }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--ink-700); }
.field input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font-size: 17px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #9aa5b5; }
.field input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(30, 58, 117, 0.12); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { margin: 4px 0 16px; font-size: 14px; color: var(--ink-700); }
.consent-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; line-height: 1.5; }
.consent-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy-900); flex: 0 0 auto; }
.consent-check em { font-style: normal; color: var(--ink-500); }
.consent-more { margin: 6px 0 0 26px; }
.consent-more summary { display: inline; color: var(--ink-500); font-size: 13px; text-decoration: underline; cursor: pointer; }
.consent-more p { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--ink-500); }
.quiz-error { margin-bottom: 12px; font-size: 14px; color: var(--red-700); font-weight: 600; }
.quiz-done { text-align: center; padding: 14px 0 4px; }
.done-ico { width: 60px; height: 60px; margin: 6px auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--green-50); color: var(--green-700); }
.done-ico .ico { width: 32px; height: 32px; }
.done-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.done-text { margin: 8px 0 20px; font-size: 15.5px; color: var(--ink-500); line-height: 1.65; }
.done-preview { margin-top: 12px; font-size: 13px; color: var(--red-700); font-weight: 600; }

/* ---------- 90일 기한 ---------- */
.deadline { padding: 40px 0 0; }
.deadline-card {
  display: flex; align-items: center; gap: 22px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: var(--red-50);
  box-shadow: inset 4px 0 0 var(--red-600);
}
.deadline-ico { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: var(--red-600); box-shadow: 0 4px 12px -6px rgba(217, 45, 32, 0.45); }
.deadline-ico .ico { width: 30px; height: 30px; }
.deadline-text { flex: 1 1 auto; }
.deadline-title { font-size: 20px; font-weight: 800; line-height: 1.45; letter-spacing: -0.02em; }
.deadline-title strong { color: var(--red-600); }
.deadline-text p + p { margin-top: 4px; font-size: 15.5px; color: var(--ink-700); }

/* ---------- 섹션 공통 ---------- */
.sec { padding: 104px 0; }
.sec-gray { background: var(--bg-gray); }
.deadline + .sec { margin-top: 64px; }
.eyebrow { font-size: 15px; font-weight: 800; color: var(--gold-500); letter-spacing: 0.02em; }
.sec-title { margin-top: 10px; font-size: 40px; line-height: 1.3; font-weight: 800; letter-spacing: -0.035em; color: var(--navy-950); }
.sec-lead { margin-top: 14px; font-size: 18px; line-height: 1.7; color: var(--ink-500); }
.sec-head { margin-bottom: 48px; }
.sec-head-center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------- 가로로 넘기는 줄 (사례·후기) ---------- */
.track-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.track {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
  padding: 4px 0 18px;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track > li { scroll-snap-align: start; flex: 0 0 auto; }
.carousel-btns { display: flex; gap: 10px; flex: 0 0 auto; }
.round-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1.5px solid var(--ink-300); border-radius: 50%;
  background: #fff; color: var(--navy-900); cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.round-btn:hover { border-color: var(--navy-900); background: var(--navy-50); }
.round-btn:disabled { opacity: 0.35; cursor: default; }
.round-btn .ico { width: 24px; height: 24px; }

/* 사례 카드 */
.case { width: 300px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; }
.case-media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #e9edf3; cursor: zoom-in; }
.case-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.case-zoom {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(7, 20, 46, 0.78); color: #fff;
  font-size: 13px; font-weight: 600;
}
.case-zoom .ico { width: 16px; height: 16px; }
.case-body { padding: 20px 22px 24px; }
.case-tag { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--navy-50); color: var(--navy-800); font-size: 13px; font-weight: 700; }
.case-result { margin-top: 12px; display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 800; color: var(--green-700); letter-spacing: -0.02em; }
.case-result .ico { width: 20px; height: 20px; }
.case-info { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 15px; line-height: 1.55; }
.case-info dt { color: var(--ink-500); font-weight: 700; font-size: 14px; }
.case-info dd { color: var(--ink-900); }

/* ---------- 진행 절차 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 26px 22px 28px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 47px; right: -21px; width: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-500) 0 4px, transparent 4px 8px);
}
.step-no { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-900); color: var(--gold-400); font-size: 18px; font-weight: 800; }
.step-title { margin-top: 18px; font-size: 18px; font-weight: 800; line-height: 1.4; letter-spacing: -0.02em; color: var(--navy-950); }
.step-text { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--ink-500); }

/* ---------- 비용 ---------- */
.price-card {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-radius: 24px; background: #fff; box-shadow: var(--shadow-card); overflow: hidden;
}
.price-main { padding: 44px 44px 40px; background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: #fff; }
.price-label { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, 0.7); }
.price-num { margin-top: 6px; font-size: 76px; line-height: 1.1; font-weight: 800; letter-spacing: -0.04em; color: #fff; }
.price-num span { margin-left: 4px; font-size: 32px; letter-spacing: -0.02em; }
.price-vat { margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, 0.65); }
.price-badge { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: rgba(212, 167, 44, 0.16); color: var(--gold-400); font-size: 16px; font-weight: 800; }
.price-promise { margin: 20px 0 28px; font-size: 15.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.78); }
.price-lists { padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-content: center; }
.price-list-title { font-size: 18px; font-weight: 800; color: var(--navy-950); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px solid var(--navy-900); }
.price-list-plus .price-list-title { border-bottom-color: var(--gold-500); }
.price-list ul { display: grid; gap: 14px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--ink-700); }
.price-list .ico { margin-top: 1px; color: var(--navy-700); }
.price-list-plus .ico { color: var(--gold-500); }

/* ---------- 담당 행정사 ---------- */
.profile-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.profile-photo { position: relative; }
.profile-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; background: var(--navy-50); }
.profile-card {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  padding: 16px 20px; border-radius: 16px;
  background: rgba(7, 20, 46, 0.86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff;
}
.profile-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.profile-name span { font-size: 16px; color: var(--gold-400); font-weight: 700; margin-left: 4px; }
.profile-org { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.profile-desc { margin-top: 18px; font-size: 17.5px; line-height: 1.75; color: var(--ink-700); }
.profile-reg { margin-top: 14px; display: inline-block; padding: 8px 14px; border-radius: 10px; background: var(--navy-50); color: var(--navy-800); font-size: 15px; }
.timeline { margin-top: 30px; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: flex; gap: 18px; padding: 0 0 18px 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2.5px var(--gold-500); }
.tl-year { flex: 0 0 44px; font-size: 16px; font-weight: 800; color: var(--gold-500); }
.timeline p { font-size: 16px; font-weight: 700; color: var(--ink-900); line-height: 1.5; }
.timeline small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-500); }
.chips-title { margin-top: 30px; font-size: 15px; font-weight: 800; color: var(--navy-950); }
.chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; font-weight: 600; color: var(--ink-700); }

/* ---------- 후기 ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; overflow: visible; }
.review { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.stars { display: flex; gap: 2px; color: var(--gold-500); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.review-text { margin-top: 14px; flex: 1 1 auto; font-size: 16px; line-height: 1.75; color: var(--ink-700); }
.review-who { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-500); }
.review-who strong { display: block; font-size: 15.5px; color: var(--ink-900); }
.review-who > span:last-child { line-height: 1.45; }
.avatar { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--navy-50); color: var(--navy-800); font-weight: 800; }

/* ---------- 자주 묻는 질문 ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-grid .sec-head { position: sticky; top: calc(var(--hdr-h) + 32px); margin-bottom: 0; }
.faq-call { margin-top: 28px; }
.faq-list { border-top: 2px solid var(--navy-900); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 4px;
  font-size: 18.5px; font-weight: 700; line-height: 1.5; letter-spacing: -0.01em; color: var(--navy-950);
  cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { width: 24px; height: 24px; color: var(--gold-500); transition: transform 0.2s ease; }
.faq-list details[open] summary .ico { transform: rotate(45deg); }
.faq-list details p { padding: 0 4px 26px; font-size: 16.5px; line-height: 1.8; color: var(--ink-700); }

/* ---------- 마지막 신청 ---------- */
.final {
  padding: 96px 0;
  color: #fff; text-align: center;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(212, 167, 44, 0.16), transparent 65%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.final-title { font-size: 40px; line-height: 1.32; font-weight: 800; letter-spacing: -0.035em; }
.final-text { margin-top: 18px; font-size: 18px; line-height: 1.75; color: rgba(255, 255, 255, 0.75); }
.final-ctas { margin-top: 34px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- 아래쪽 정보 ---------- */
.ftr { padding: 44px 0 48px; background: var(--navy-950); color: rgba(255, 255, 255, 0.62); font-size: 14px; line-height: 1.7; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.ftr-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ftr-brand img { width: 36px; height: 36px; border-radius: 50%; }
.ftr-brand span { line-height: 1.4; }
.ftr-brand strong { display: block; color: #fff; font-size: 15.5px; }
.ftr-copy { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.42); }

/* ---------- 휴대폰 아래 고정 띠 ---------- */
.m-bar { display: none; }

/* ---------- 사례 문서 크게 보기 ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(7, 20, 46, 0.86); }
.lightbox img { max-height: 88vh; width: auto; margin: 0 auto; border-radius: 12px; background: #fff; }
.lightbox-close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; }
.lightbox-close .ico { width: 26px; height: 26px; }

/* ==================== 2판: 마감 끌어올리기 ==================== */

/* 첫 화면: 은은한 격자 + 제목 강조 밑줄 */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 30%, transparent 75%);
}
.hero > * { position: relative; }
.hero-title { font-size: 56px; }
.hero-title em {
  background: linear-gradient(transparent 70%, rgba(212, 167, 44, 0.32) 70%, rgba(212, 167, 44, 0.32) 92%, transparent 92%);
  padding: 0 2px;
}
.hero-trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-expert, .hero-proof {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  text-decoration: none; color: #fff;
  transition: background-color 0.2s ease;
}
.hero-expert:hover, .hero-proof:hover { background: rgba(255, 255, 255, 0.1); }
.hero-trust > a { flex: 1 1 260px; min-width: 0; }
.hero-expert img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold-500); }
.hero-expert span, .hero-proof > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.hero-expert strong, .hero-proof strong { font-size: 15.5px; font-weight: 800; }
.hero-expert small, .hero-proof small { font-size: 13px; color: rgba(255, 255, 255, 0.66); }
.proof-docs { position: relative; width: 64px; height: 48px; flex: 0 0 auto; }
.proof-docs img {
  position: absolute; top: 2px; width: 34px; height: 44px; object-fit: cover; object-position: top;
  border-radius: 4px; background: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.proof-docs img:nth-child(1) { left: 0; transform: rotate(-8deg); }
.proof-docs img:nth-child(2) { left: 14px; transform: rotate(-1deg); z-index: 1; }
.proof-docs img:nth-child(3) { left: 28px; transform: rotate(7deg); z-index: 2; }

/* 진단: 내 상황 검토 포인트 */
.quiz-points {
  margin: 10px 0 4px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: linear-gradient(160deg, #fffaf0, #fdf3dc);
  box-shadow: inset 0 0 0 1px rgba(212, 167, 44, 0.35);
}
.quiz-points-title { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; color: var(--navy-950); }
.quiz-points-title .ico { width: 20px; height: 20px; color: var(--gold-500); }
.quiz-points ul { margin-top: 10px; display: grid; gap: 8px; }
.quiz-points li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.6; color: var(--ink-700); }
.quiz-points li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.quiz-points li strong { color: var(--navy-900); }
.quiz-points-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-500); line-height: 1.5; }

/* 사례: 사진 위 '실제 재결서' 표시 */
.case-media::before {
  content: "실제 재결서";
  position: absolute; left: 12px; top: 12px; z-index: 1;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); color: var(--navy-900);
  font-size: 12.5px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}
.case, .review, .check-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.case:hover, .review:hover, .check-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 18px 36px -18px rgba(15, 23, 42, 0.28); }

/* 사례: 재결서 주문을 크게 */
.proof-hero {
  margin: 0 0 40px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  border-radius: 24px; overflow: hidden;
  background: var(--navy-950);
  box-shadow: 0 30px 60px -30px rgba(7, 20, 46, 0.55);
}
.proof-crop {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9;
  border: 0; padding: 0; cursor: zoom-in;
  background: #fff url("../img/case3-large.jpg") no-repeat 80% 47% / 137% auto;
}
.proof-mark {
  position: absolute; left: 5%; right: 4%; top: 36%; height: 28%;
  border: 3px solid var(--gold-500); border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(7, 20, 46, 0.32);
}
.proof-hero figcaption { padding: 40px 40px 36px; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.proof-label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; color: var(--gold-400); }
.proof-label .ico { width: 20px; height: 20px; }
.proof-quote { margin-top: 16px; font-size: 30px; line-height: 1.45; font-weight: 800; letter-spacing: -0.03em; }
.proof-quote em { font-style: normal; color: var(--gold-400); }
.proof-note { margin-top: 18px; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.55); }
.sec-head-row-sub { margin-bottom: 18px; align-items: center; }
.sub-title { font-size: 19px; font-weight: 800; color: var(--navy-950); }
.sub-title span { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--ink-500); }

/* 행정심판에서 보는 것 */
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.check-card { padding: 28px 26px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.check-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--navy-50); color: var(--navy-800); }
.check-ico .ico { width: 26px; height: 26px; }
.check-title { margin-top: 18px; font-size: 18.5px; font-weight: 800; color: var(--navy-950); letter-spacing: -0.02em; }
.check-text { margin-top: 6px; font-size: 15.5px; line-height: 1.65; color: var(--ink-500); }
.checks-foot {
  margin-top: 28px; padding: 26px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-radius: var(--radius);
  background: var(--navy-950); color: rgba(255, 255, 255, 0.82);
}
.checks-foot p { font-size: 16.5px; line-height: 1.7; }
.checks-foot strong { color: var(--gold-400); }

/* 행정사 인사말 */
.letter {
  position: relative;
  margin: 22px 0 0; padding: 30px 30px 26px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.letter::before {
  content: "“"; position: absolute; left: 22px; top: -18px;
  font-size: 84px; line-height: 1; font-weight: 800; color: var(--gold-500);
}
.letter p { font-size: 17px; line-height: 1.85; color: var(--ink-700); }
.letter p + p { margin-top: 12px; }
.letter-sign { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; font-size: 14px; color: var(--ink-500); }
.letter-sign strong { font-size: 22px; font-weight: 800; color: var(--navy-950); letter-spacing: 0.06em; }
.profile .profile-reg { margin-top: 22px; }

/* 아래에서 떠오르는 움직임(자바스크립트가 켜졌을 때만) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 태블릿 ---------- */
@media (max-width: 1023.98px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .hero-copy { max-width: 640px; }
  .quiz { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:not(:last-child)::after { display: none; }
  .price-card { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; gap: 40px; }
  .profile-photo { max-width: 420px; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid .sec-head { position: static; }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
  .checks-foot { flex-direction: column; align-items: flex-start; }
  .proof-hero { grid-template-columns: 1fr; }
}

/* ---------- 휴대폰 ---------- */
@media (max-width: 767.98px) {
  :root { --hdr-h: 60px; }
  body { font-size: 16px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .wrap, .track-wrap { padding: 0 20px; }

  .brand img { width: 34px; height: 33px; }
  .brand-text strong { font-size: 15.5px; }
  .brand-text small { font-size: 11.5px; }
  .hdr-phone-label, .hdr-cta { display: none; }
  .hdr-phone-num { font-size: 16px; }

  .hero-grid { padding-top: 36px; padding-bottom: 32px; gap: 28px; }
  .hero-chip { font-size: 13px; padding: 6px 12px; }
  .hero-title { margin-top: 16px; font-size: 31px; line-height: 1.3; }
  .hero-lead { margin-top: 16px; font-size: 16px; line-height: 1.72; }
  .hero-points { margin-top: 20px; gap: 8px; }
  .hero-points li { font-size: 14.5px; }
  .hero-ctas { margin-top: 24px; flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .quiz { padding: 22px 20px; border-radius: 18px; }
  .quiz-title { font-size: 19px; }
  .quiz-q { font-size: 17px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 0; padding: 24px 0 28px; }
  .hero-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stats dd { font-size: 27px; }
  .hero-stats dd small { font-size: 15px; }

  .deadline { padding-top: 28px; }
  .deadline-card { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; }
  .deadline-title { font-size: 17.5px; }
  .deadline-text p + p { font-size: 14.5px; }
  .deadline-card .btn { width: 100%; }

  .sec { padding: 72px 0; }
  .deadline + .sec { margin-top: 44px; }
  .eyebrow { font-size: 14px; }
  .sec-title { font-size: 27px; line-height: 1.35; }
  .sec-lead { font-size: 16px; }
  .sec-head { margin-bottom: 32px; }
  .sec-head-row { display: block; }
  .carousel-btns { display: none; }
  .track { margin: 0 -20px; padding: 4px 20px 18px; gap: 14px; scroll-padding: 0 20px; }
  .case { width: min(82vw, 320px); }

  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps li { display: grid; grid-template-columns: 42px 1fr; column-gap: 16px; padding: 20px; }
  .step-no { grid-row: span 2; }
  .step-title { margin-top: 0; font-size: 17px; }
  .step-text { margin-top: 4px; font-size: 14.5px; }

  .price-main { padding: 32px 24px; }
  .price-num { font-size: 64px; }
  .price-lists { padding: 28px 24px 32px; grid-template-columns: 1fr; gap: 28px; }
  .price-list li { font-size: 15.5px; }

  .profile-grid { gap: 28px; }
  .profile-photo img { aspect-ratio: 1 / 1; }
  .profile-desc { font-size: 16px; }

  .review-grid { display: flex; overflow-x: auto; }
  .review { width: min(82vw, 320px); padding: 24px; }
  .review-text { font-size: 15.5px; }

  .faq-list summary { padding: 20px 2px; font-size: 16.5px; }
  .faq-list details p { font-size: 15.5px; }

  .final { padding: 72px 0; }
  .final-title { font-size: 28px; }
  .final-text { font-size: 15.5px; }
  .final-text br { display: none; }
  .final-ctas { flex-direction: column; }
  .final-ctas .btn { width: 100%; }

  .ftr { font-size: 13px; padding-bottom: 32px; }

  .hero-title { font-size: 32px; }
  .hero-trust { margin-top: 22px; flex-direction: column; gap: 10px; }
  .hero-trust > a { flex: 0 0 auto; } /* 세로로 쌓이면 260px 너비 기준이 높이로 바뀌어 카드가 길어진다 */
  .hero-expert, .hero-proof { width: 100%; }
  .check-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .check-card { padding: 18px 16px; }
  .check-ico { width: 40px; height: 40px; border-radius: 12px; }
  .check-ico .ico { width: 22px; height: 22px; }
  .check-title { margin-top: 12px; font-size: 15.5px; }
  .check-text { font-size: 13.5px; line-height: 1.6; }
  .checks-foot { padding: 22px 20px; gap: 16px; }
  .checks-foot p { font-size: 15px; }
  .checks-foot .btn { width: 100%; }
  .proof-hero { margin-bottom: 28px; border-radius: 18px; }
  .proof-crop { aspect-ratio: 4 / 3; background-position: 80% 47%; }
  .proof-mark { top: 39%; height: 22%; }
  .proof-hero figcaption { padding: 24px 22px 26px; }
  .proof-quote { font-size: 22px; }
  .sub-title { font-size: 17px; }
  .letter { padding: 26px 20px 22px; }
  .letter p { font-size: 15.5px; line-height: 1.8; }
  .letter::before { font-size: 70px; top: -14px; left: 16px; }

  .m-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 2fr 3fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, 0.25);
  }
  .m-bar a { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; font-size: 16px; font-weight: 800; text-decoration: none; }
  .m-bar-call { background: var(--navy-50); color: var(--navy-900); }
  .m-bar-call .ico { color: var(--navy-700); }
  .m-bar-quiz { background: var(--gold-500); color: var(--navy-950); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 후기: 핵심 문장 강조 */
.review-text strong { font-weight: 700; color: var(--navy-900); background: linear-gradient(transparent 62%, rgba(212, 167, 44, 0.22) 62%); }

/* 조사 반영: 신청 전 사례 보기 · 연락 약속 */
.quiz-cases { display: inline-block; margin-left: 2px; color: var(--navy-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.quiz-promise { margin-top: 10px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-500); }
.m-bar-quiz span { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.m-bar-quiz small { margin-top: 3px; font-size: 11.5px; font-weight: 600; color: rgba(7, 20, 46, 0.72); }

/* 담당 행정사: 전문 분야를 사진 아래 배지로 */
.profile-grid { align-items: start; }
.profile-side { position: sticky; top: calc(var(--hdr-h) + 24px); }
.profile-tags { margin-top: 18px; }
.tags-title { font-size: 13.5px; font-weight: 800; letter-spacing: 0.04em; color: var(--ink-500); }
.tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px 8px 10px;
  border-radius: 10px;
  background: var(--navy-900); color: #fff;
  font-size: 14px; font-weight: 700; line-height: 1.3;
}
.tags .ico { width: 16px; height: 16px; color: var(--gold-400); }
@media (max-width: 1023.98px) {
  .profile-side { position: static; max-width: 420px; }
  .profile-photo { max-width: none; }
}
@media (max-width: 767.98px) {
  .profile-side { max-width: none; }
  .tags li { font-size: 13.5px; padding: 7px 11px 7px 9px; }
}

/* 등록번호를 사진 위 이름 카드 안으로 */
.profile-card .profile-reg {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 8px;
  background: rgba(212, 167, 44, 0.16); color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
}
.profile-card .profile-reg strong { color: var(--gold-400); letter-spacing: 0.02em; }
.timeline { margin-top: 26px; }

/* 컴퓨터: 왼쪽(사진+배지)과 오른쪽(인사말+경력)의 아래 끝선을 맞춘다 — 사진이 남는 높이를 채움 */
@media (min-width: 1024px) {
  .profile-grid { align-items: stretch; }
  .profile-side { position: static; display: flex; flex-direction: column; }
  .profile-photo { flex: 1 1 auto; min-height: 420px; }
  .profile-photo img { height: 100%; aspect-ratio: auto; object-position: center 20%; }
}
@media (min-width: 1024px) {
  .profile-photo { flex: 1 1 0; min-height: 420px; }
  .profile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
}
