:root {
  --bg: #f6efe3;
  --card: #fffcf6;
  --ink: #3a2e28;
  --sub: #7c6655;
  --accent: #8a5a3b;
  --accent-dark: #6f4529;
  --line: #e6d8c3;
  --soft: #efe2cd;
  --ok: #3f7a55;
  --warn: #a4512d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px; line-height: 1.7; word-break: keep-all;
}
h1, h2, h3, .serif { font-family: "Noto Serif KR", Batang, serif; }
a { color: var(--accent-dark); }
img, video { max-width: 100%; display: block; }
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(246, 239, 227, 0.93); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.logo { font-family: "Noto Serif KR", Batang, serif; font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.top-cta { background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 7px 14px; border-radius: 999px; font-size: 14px; }
main { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.hero { text-align: center; padding: 40px 0 10px; }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 4px 14px; border-radius: 999px; background: var(--soft); color: var(--accent-dark); font-weight: 700; font-size: 14px; }
h1 { font-size: clamp(28px, 7vw, 42px); line-height: 1.35; margin: 0 0 14px; letter-spacing: -0.02em; }
.lead { color: var(--sub); margin: 0 0 24px; font-size: 17px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; margin: 18px 0; }
.card h2 { font-size: 23px; margin: 0 0 10px; letter-spacing: -0.02em; }
.price { color: var(--accent-dark); font-weight: 800; }
.video { border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px rgba(58, 46, 40, 0.18); background: #000; }
.video video { width: 100%; aspect-ratio: 16 / 9; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair figure { margin: 0; }
.pair img { width: 100%; border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; }
.pair figcaption { text-align: center; font-size: 14px; color: var(--sub); margin-top: 6px; }
.cap { color: var(--sub); font-size: 13px; margin: 8px 0 0; text-align: center; }
.btn {
  display: block; width: 100%; max-width: 440px; margin: 16px auto 0; border: 0; border-radius: 14px; padding: 15px 18px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 800; font-size: 18px; text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(138, 90, 59, 0.3);
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.ghost { background: #fff; color: var(--accent-dark); border: 2px solid var(--accent); box-shadow: none; }
ul.list { margin: 8px 0 0; padding-left: 20px; }
ul.list li { margin: 5px 0; }
.notes li { color: var(--sub); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--accent-dark); display: grid; place-items: center; font-weight: 800; }
.steps b { display: block; }
.steps span { color: var(--sub); font-size: 15px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--sub); }
.foot { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; color: var(--sub); font-size: 13px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }
.todo { background: #fff3cd; padding: 0 4px; border-radius: 4px; }
/* 접수 */
.page-h { font-size: 27px; margin: 26px 0 6px; }
.closedbar { background: #fff3cd; border: 1px solid #f3d27a; color: #7a5a00; border-radius: 12px; padding: 10px 14px; margin-top: 16px; font-size: 14px; }
.hint { color: var(--sub); font-size: 14px; margin: 0 0 10px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tab { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 10px; text-align: center; cursor: pointer; font-weight: 700; }
.tab small { display: block; font-weight: 400; color: var(--sub); }
.tab.on { border-color: var(--accent); background: var(--soft); }
input[type="text"], textarea, select { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
textarea { resize: vertical; min-height: 56px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.drop { display: grid; place-items: center; min-height: 130px; border: 2px dashed var(--line); border-radius: 14px; background: #fffaf2; cursor: pointer; text-align: center; color: var(--sub); font-weight: 700; padding: 12px; }
.thumbs { display: grid; gap: 12px; margin-top: 12px; }
.thumb { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.thumb img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.thumb button { border: 0; background: none; color: var(--warn); font: inherit; font-weight: 700; cursor: pointer; }
.portrait-prev img { max-height: 320px; margin: 10px auto 0; border-radius: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; background: #fff; }
.opt input { margin-right: 6px; accent-color: var(--accent); }
.row2 { display: grid; gap: 10px; }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.chk input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.err { color: var(--warn); font-weight: 700; font-size: 14px; margin: 8px 0 0; }
.err.big { text-align: center; font-size: 16px; }
.overlay { position: fixed; inset: 0; background: rgba(246, 239, 227, 0.95); display: grid; place-items: center; z-index: 50; text-align: center; padding: 20px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--soft); border-top-color: var(--accent); animation: spin 1s linear infinite; margin: 8px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
/* 주문 페이지 */
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; background: var(--soft); color: var(--accent-dark); }
.status-badge.done { background: #e3f0e6; color: var(--ok); }
.status-badge.bad { background: #f8e3d8; color: var(--warn); }
.linkbox { display: flex; gap: 8px; }
.linkbox input { flex: 1; font-size: 13px; }
.linkbox button { flex: none; border: 0; border-radius: 12px; padding: 0 14px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.result-img img { margin: 0 auto; max-height: 520px; border-radius: 10px; box-shadow: 0 10px 26px rgba(58, 46, 40, 0.18); }
.doc h1 { font-size: 26px; margin-top: 26px; }
.doc h2 { font-size: 18px; margin: 22px 0 6px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.draft { background: #fff3cd; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
