/* 공진단 페이지 전용 (공통은 style.css) */
:root { --gold: #b08a3e; --gold-soft: #f3ead6; }

/* 첫 화면 사진은 가로로 찍은 것이라 아치 대신 가로 4:3 틀 */
.hero-visual .arch.gold { aspect-ratio: 4 / 3; border-radius: 28px; background: #2a2622; }
.hero-visual .arch img.cover { width: 100%; height: 100%; object-fit: cover; }
.gjd-hero .seal { background: var(--gold); box-shadow: 0 10px 24px -8px rgba(176, 138, 62, .6); }

/* 약재 한자 카드 */
.hanja-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hanja-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 28px;
}
.hanja-card .hj { font-size: 40px; font-weight: 600; letter-spacing: .04em; color: var(--gold); line-height: 1.2; margin-bottom: 18px; }
.hanja-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.hanja-card p:last-child { font-size: 15px; color: var(--ink-2); }
.hanja-card.dark { background: var(--ink); border-color: var(--ink); color: #f3efe8; }
.hanja-card.dark .hj { color: #d8b56a; }
.hanja-card.dark p:last-child { color: #b9b2a7; }

/* 만드는 원칙 */
.craft { background: var(--paper-2); }
.craft-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 24px; align-items: center; }
.craft-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.4; background: #ddd; box-shadow: 0 30px 60px -40px rgba(20, 20, 20, .45); }
.craft-photo.tall { aspect-ratio: 4 / 5.2; }
.craft-photo img { width: 100%; height: 100%; object-fit: cover; }
.craft-list { display: grid; gap: 26px; }
.craft-list article { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.craft-list article:last-child { border-bottom: 0; padding-bottom: 0; }
.craft-list .step { font-size: 14px; color: var(--gold); letter-spacing: .1em; }
.craft-list h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 4px 0 8px; }
.craft-list p { font-size: 15px; color: var(--ink-2); }

/* 라인업 */
.lineup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.line-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 38px 30px 30px; display: flex; flex-direction: column;
}
.line-card.featured { border: 2px solid var(--ink); box-shadow: 0 30px 60px -40px rgba(20, 20, 20, .45); }
.line-name { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.line-sub { font-size: 14px; font-weight: 600; color: var(--gold); margin: 2px 0 14px; }
.line-desc { font-size: 15px; color: var(--ink-2); min-height: 4.8em; }
.line-price { width: 100%; border-collapse: collapse; margin: 18px 0 14px; border-top: 1px solid var(--line); }
.line-price th, .line-price td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.line-price th { text-align: left; font-weight: 500; color: var(--ink-2); }
.line-price td { text-align: right; font-family: var(--serif); font-weight: 600; font-size: 17px; }
.line-note { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; flex: 1; }
.line-card .btn { width: 100%; padding: 0 16px; font-size: 15px; }

/* 원장 (사진 + 설명) */
.gjd-doctor { padding-bottom: 120px; }
.gjd-doctor .wrap { align-items: center; }
.doctor-shot { margin: 0; }
.doctor-shot img { width: 100%; border-radius: 22px; box-shadow: 0 30px 60px -40px rgba(20, 20, 20, .45); }
.doctor-shot figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.gjd-doctor .doctor-copy { padding-bottom: 0; }

/* 정품 사향 인증서 */
.cert { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; margin-top: 56px;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.cert-img { margin: 0; }
.cert-img img { width: 100%; border-radius: 10px; box-shadow: 0 20px 40px -30px rgba(20, 20, 20, .5); }
.cert-copy h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.45; margin: 12px 0 14px; }
.cert-copy p { font-size: 15px; color: var(--ink-2); }
.cert-copy p.sub { margin-top: 12px; font-size: 14px; color: var(--ink-3); }

/* 복용 */
.dose-card .times b { margin-right: 8px; }
.caution.solo { margin-top: 16px; }

@media (max-width: 960px) {
  .hanja-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-grid { grid-template-columns: 1fr 1fr; }
  .craft-list { grid-column: 1 / -1; order: -1; }
  .lineup { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .line-desc { min-height: 0; }
  .gjd-doctor { padding-bottom: 88px; }
  .cert { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .doctor-shot { max-width: 460px; }
}
@media (max-width: 600px) {
  .hanja-card { padding: 22px 18px; }
  .hanja-card .hj { font-size: 32px; margin-bottom: 12px; }
  .craft-photo, .craft-photo.tall { aspect-ratio: 1 / 1.1; }
}

/* ---------- v2: 페르소나·확인 3가지 구성 ---------- */
.hero-checks { list-style: none; margin: 0 0 22px; display: grid; gap: 8px; }
.hero-checks li { font-size: 18px; font-weight: 600; display: flex; align-items: baseline; gap: 12px; }
.hero-checks b { font-family: var(--serif); font-size: 14px; color: var(--gold); letter-spacing: .08em; }

.who { padding-top: 40px; }
/* who-grid·who-card·link-arrow 는 보폐고와 같이 쓰므로 style.css 에 있다 */

.check { padding: 100px 0; }
.check.alt { background: var(--paper-2); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.check-grid.rev .check-img { order: -1; }
.check-no { font-size: 15px; font-weight: 600; color: var(--gold); letter-spacing: .08em; }
.check-copy h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.35; margin: 8px 0 20px; }
.check-copy p { color: var(--ink-2); margin-bottom: 12px; }
.check-copy b { color: var(--ink); }
.check-img { margin: 0; }
.check-img img { width: 100%; border-radius: 18px; box-shadow: 0 30px 60px -40px rgba(20, 20, 20, .45); }
.check-img figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.check .hanja-grid { margin-top: 56px; }

.call-list { list-style: none; display: grid; gap: 12px; }
.call-list li { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-size: 16px; }
.call-list span { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--serif); font-weight: 600; }

.picker { max-width: 760px; margin: 0 auto 36px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px 30px; text-align: center; }
.pk-title { font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.opt-row button { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 15px; transition: all .15s; }
.opt-row button:hover { border-color: #b9b1a4; }
.opt-row button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pk-result { margin-top: 18px; font-size: 15px; color: var(--accent-ink); font-weight: 600; }
.line-card { transition: opacity .25s, transform .25s; }
.pick-foot { text-align: center; margin-top: 14px; font-size: 14px; color: var(--ink-3); }

.letter .letter-hi { font-size: 20px; font-weight: 600; margin: 18px 0 16px; }
.letter > p { color: var(--ink-2); margin-bottom: 12px; max-width: 34em; }
.letter .letter-end { font-size: 18px; color: var(--ink); font-weight: 600; margin-top: 18px; }

@media (max-width: 960px) {
  .gjd-hero .hero-visual { max-width: 640px; }
  .check { padding: 80px 0; }
  .check-grid { grid-template-columns: 1fr; gap: 32px; }
  .check-grid.rev .check-img { order: 0; }
}
@media (max-width: 600px) {
  .hero-checks li { font-size: 16px; }
  .picker { padding: 22px 18px; }
  .opt-row button { width: 100%; }
}

/* 고르기: 하나만 보이기 */
.lineup.single { grid-template-columns: minmax(0, 440px); justify-content: center; }
.line-card[hidden] { display: none; }
.pk-all { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
