/* 키맨샵 — 스타일시트 */
:root {
  --ink: #12181f;
  --ink-soft: #4a5560;
  --line: #e5e8ec;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --brand: #1d4ed8;
  --brand-dark: #0f2f8f;
  --accent: #f5a524;
  --kakao: #fee500;
  --radius: 14px;
  --wrap: 1120px;
  --font-display: "Black Han Sans", "Gothic A1", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-strong: "Gothic A1", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --shadow: 0 6px 24px rgba(18, 24, 31, 0.08);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 20px; }
.section-title { font-family: var(--font-strong); font-weight: 900; font-size: clamp(1.45rem, 3.5vw, 2.05rem); letter-spacing: -0.02em; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; margin-bottom: 8px; }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand-mark {
  background: var(--ink); color: #fff; font-weight: 800; font-size: 0.8rem;
  padding: 4px 7px; border-radius: 6px; letter-spacing: 0.08em;
}
.brand-text { display: flex; flex-direction: column; font-size: 1.1rem; line-height: 1.15; }
.brand-text small { font-weight: 500; font-size: 0.68rem; color: var(--ink-soft); letter-spacing: 0; }
.brand.small .brand-text { font-size: 1rem; }
.site-nav { display: flex; gap: 6px; margin-left: auto; }
.site-nav a {
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--brand); }
.header-call {
  background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
}
.header-call:hover { text-decoration: none; background: var(--brand-dark); }

/* 히어로 */
.hero { background: linear-gradient(180deg, #0f172a 0%, #16233d 100%); color: #fff; padding: 72px 0 64px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.15rem); line-height: 1.18;
  letter-spacing: -0.01em; word-break: keep-all;
}
.hero h1 .pt { color: var(--accent); }
.hero .lead { color: #c7d2e2; font-size: 1.08rem; }
.hero .eyebrow { color: var(--accent); }
.eyebrow-lines { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.eyebrow-lines span { display: inline-flex; align-items: center; }
.key-ico { flex: none; margin-right: 6px; transform: rotate(-45deg); }
.key-ico path { fill: #ffd21f; }
.addr-link {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 8px;
  padding: 2px 9px; border-radius: 999px; vertical-align: middle;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0;
}
.addr-link:hover { background: rgba(255, 255, 255, 0.24); text-decoration: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.hero-note { color: #9fb0c7; font-size: 0.9rem; }
.hero-facts { display: grid; gap: 12px; }
.hero-facts > div {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column;
}
.hero-facts strong { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; color: #fff; }
.hero-facts span { color: #9fb0c7; font-size: 0.85rem; word-break: keep-all; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform 0.05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #1a1200; }
.btn-primary:hover { background: #ffb845; }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.hero .btn-ghost { color: #fff; }
.btn-block { display: flex; width: 100%; margin-bottom: 10px; }

/* 그리드 섹션 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { font-size: 1.15rem; }
.feature p { margin: 0; color: var(--ink-soft); }

.band { background: var(--bg-soft); border-block: 1px solid var(--line); padding: 56px 0; }
.band .section-title { text-align: center; }
.brand-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0 12px; }
.brand-list span, .brand-list a {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 0.9rem; font-weight: 600;
  color: var(--ink);
}
.brand-list a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.more-link { font-weight: 700; }

/* 카드 그리드 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  color: var(--ink); transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-3px); }
.card-thumb { aspect-ratio: 16 / 10; background: var(--bg-soft); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .noimg {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #c2ccd6; font-weight: 800; letter-spacing: 0.1em;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag {
  align-self: flex-start; background: #eef2ff; color: var(--brand-dark);
  font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.card-body h3 { font-size: 1.05rem; margin: 0; }
.card-body p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: var(--ink-soft); }

/* 진행 단계 */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px auto 0; max-width: 760px; display: grid; gap: 14px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.steps strong { display: block; color: var(--brand-dark); }
.steps span { color: var(--ink-soft); font-size: 0.95rem; }

/* CTA */
.cta-band { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; letter-spacing: -0.01em; }
.cta-band .btn-ghost { color: #fff; }

/* 페이지 헤더 */
.page-head { padding: 44px 0; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.page-head p { color: var(--ink-soft); margin: 0; max-width: 640px; }

/* 필터 */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: 0.9rem; font-weight: 600; cursor: pointer; color: var(--ink-soft);
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 글 상세 */
.post { max-width: 760px; padding-top: 40px; padding-bottom: 60px; }
.crumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 10px; }
.crumbs span { margin: 0 6px; }
.post h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-soft); font-size: 0.9rem; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.spec-box { width: 100%; border-collapse: collapse; margin: 4px 0 32px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-box th, .spec-box td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.spec-box tr:last-child th, .spec-box tr:last-child td { border-bottom: 0; }
.spec-box th { width: 96px; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.post-body { font-size: 1.05rem; }
.post-body h2 { font-size: 1.35rem; margin-top: 1.8em; }
.post-body h3 { font-size: 1.12rem; margin-top: 1.5em; }
.post-body img { border-radius: 10px; margin: 1.2em 0; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body blockquote {
  margin: 1.4em 0; padding: 12px 18px; background: var(--bg-soft);
  border-left: 4px solid var(--brand); border-radius: 6px; color: var(--ink-soft);
}
.post-body figure { margin: 1.2em 0; }
.post-body figcaption { font-size: 0.85rem; color: var(--ink-soft); text-align: center; margin-top: 6px; }
.post-source { margin-top: 32px; font-size: 0.85rem; color: var(--ink-soft); background: var(--bg-soft); border-radius: 10px; padding: 12px 16px; }
.post-cta { margin-top: 40px; padding: 28px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.post-cta h2 { font-size: 1.3rem; }
.post-cta .hero-cta { justify-content: center; }
.related { margin-top: 56px; }
.related .card-grid { grid-template-columns: repeat(3, 1fr); }

/* 매장 안내 */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 16px 0; }
.info-list li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-list span:first-child { min-width: 84px; color: var(--ink-soft); font-weight: 600; }
.about-side { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.about-side ol { padding-left: 1.2em; }
.about-side li { margin-bottom: 10px; }

/* 상담 신청 */
.consult-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.consult-form { display: grid; gap: 16px; }
.consult-form label { font-weight: 600; font-size: 0.92rem; display: grid; gap: 6px; }
.consult-form input, .consult-form select, .consult-form textarea {
  font: inherit; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; width: 100%; font-weight: 400;
}
.consult-form input:focus, .consult-form select:focus, .consult-form textarea:focus {
  outline: 2px solid var(--brand); border-color: var(--brand);
}
.radio-row { display: flex; gap: 16px; font-weight: 400; }
.radio { display: flex; align-items: center; gap: 6px; }
.form-hint, .form-note { font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; }
.consult-side { display: grid; gap: 16px; }
.side-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card h3 { font-size: 1rem; }
.side-card ul { padding-left: 1.1em; margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.muted-card { color: var(--ink-soft); font-size: 0.88rem; }

/* 푸터 */
.site-footer { background: #0f172a; color: #b8c4d4; padding: 48px 0 28px; font-size: 0.9rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 10px; }
.site-footer a { color: #b8c4d4; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-text { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 32px; }
.footer-grid p { margin: 0 0 6px; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 32px; padding-top: 20px; color: #7d8da3; }

/* 하단 고정 상담바 (모바일) */
.contact-bar { display: none; }
.cb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: 1; padding: 9px 4px; font-size: 0.78rem; font-weight: 700; color: #fff; }
.cb span { font-size: 1.1rem; }
.cb:hover { text-decoration: none; }
.cb-call { background: var(--brand); }
.cb-sms { background: var(--ink); }
.cb-kakao { background: var(--kakao); color: #3b1e1e; }

/* 반응형 */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .card-grid, .related .card-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .consult-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .header-call { margin-left: auto; }
  .hero-facts { grid-template-columns: 1fr; }
  .card-grid, .related .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  main { padding-bottom: 64px; }
  .contact-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  }
}
