:root {
  --bg: #f7f3ec;
  --paper: #ffffff;
  --ink: #1f2a24;
  --muted: #5d655f;
  --line: #e3dccf;
  --green: #24453a;
  --green-2: #2f5a4b;
  --green-soft: #e8efe9;
  --brass: #a8692a;
  --brass-soft: #f6ead9;
  --err: #b3261e;
  --radius: 10px;
  --maxw: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; scroll-padding-bottom: 72px; }
@media (min-width: 900px) { html { scroll-padding-top: 84px; scroll-padding-bottom: 0; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding-bottom: 64px; /* 모바일 하단 바 */
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* 상단 할인 띠 */
.promo { background: var(--green); color: #fff; }
.promo-in { padding-top: 9px; padding-bottom: 9px; text-align: center; }
.promo p { margin: 0; font-size: 14px; line-height: 1.5; }
.promo strong { color: #f3d9a8; font-weight: 700; }
.promo-terms { font-size: 12px !important; color: rgba(255,255,255,.72); margin-top: 2px !important; }

/* 머리 */
.hd { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.hd-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; min-height: 60px; padding-top: 10px; }
.brand { padding-bottom: 10px; }
.hd-cta { margin-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--green); color: #f3d9a8; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 17px; letter-spacing: -0.02em; }
.brand-text small { font-size: 11.5px; color: var(--muted); }
.nav { display: flex; gap: 2px; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); margin: 0 -16px; padding: 0 10px; width: calc(100% + 32px); }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--bg); }
.nav a[aria-current="page"] { color: var(--green); font-weight: 700; }
.hd-cta { margin-left: auto; text-decoration: none; background: #fee500; color: #191600; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
@media (min-width: 900px) {
  .nav { order: 0; width: auto; margin: 0 0 0 auto; padding: 0; border-top: 0; overflow: visible; }
  .hd-cta { margin-left: 8px; margin-bottom: 0; }
  .brand { padding-bottom: 0; }
  .hd-in { height: 68px; padding-top: 0; flex-wrap: nowrap; }
}

/* 공통 블록 */
.hero { padding: 40px 0 36px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brass); letter-spacing: 0.02em; margin: 0 0 10px; }
h1 { font-size: 30px; line-height: 1.3; letter-spacing: -0.03em; margin: 0 0 14px; }
h2 { font-size: 23px; line-height: 1.35; letter-spacing: -0.02em; margin: 0 0 12px; }
h3 { font-size: 18px; line-height: 1.4; margin: 0 0 8px; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 22px; max-width: 640px; }
.sec { padding: 40px 0; }
.sec-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 22px; }
.sec-head p { color: var(--muted); margin: 0; }
@media (min-width: 768px) {
  .hero { padding: 64px 0 56px; }
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  .sec { padding: 64px 0; }
}

.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 16px; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); }
.btn-line { background: var(--paper); color: var(--green); border-color: #c9d6cd; }
.btn-line:hover { border-color: var(--green); }
.btn-kakao { background: #fee500; color: #191600; }

/* 홈 히어로 할인 카드 */
.hero-grid { display: grid; gap: 24px; }
.deal { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.deal-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.deal-num { font-size: 44px; font-weight: 800; color: var(--brass); letter-spacing: -0.04em; line-height: 1; }
.deal-label { font-weight: 700; font-size: 17px; }
.deal p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.deal ul { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px dashed var(--line); padding-top: 12px; }
.deal li { font-size: 14px; color: var(--muted); padding-left: 14px; position: relative; margin: 4px 0; }
.deal li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 48px; }
}

/* 카드 */
.cards { display: grid; gap: 14px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-decoration: none; display: block; }
a.card:hover { border-color: var(--green); }
.card .tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .more { text-decoration: none; display: inline-block; margin-top: 12px; font-weight: 700; color: var(--green); font-size: 15px; }
@media (min-width: 640px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .cards-3 { grid-template-columns: 1fr 1fr; } }

/* 목록 · 단계 */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 14px 44px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 14px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: 15px; }
@media (min-width: 768px) { .checks.two { grid-template-columns: 1fr 1fr; } }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px 16px 16px 58px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 15px; }
@media (min-width: 900px) { .steps.row { grid-template-columns: repeat(4, 1fr); } }

.note { background: var(--brass-soft); border-radius: 10px; padding: 14px 16px; font-size: 14.5px; color: #5a3d1a; margin: 18px 0 0; }
.note b { color: #4a3011; }

/* 폼 */
.form-box { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
@media (min-width: 768px) { .form-box { padding: 28px; } }
.form-box h2 { margin-bottom: 4px; }
.form-box > p.sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.fgrid { display: grid; gap: 14px; }
@media (min-width: 640px) { .fgrid { grid-template-columns: 1fr 1fr; } .fgrid .wide { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, fieldset legend { font-size: 14px; font-weight: 600; }
.field em, legend em { color: var(--err); font-style: normal; }
input[type=text], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #d5cdbf; border-radius: 8px; padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend { margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 14px; border: 1px solid #d5cdbf; border-radius: 999px; font-size: 15px; background: #fff; }
.chips input:checked + span { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.consent { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 16px 0 8px; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--green); }
.agree a { color: var(--green); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ferr { color: var(--err); font-size: 14px; margin: 10px 0 0; }
.form-box .btn { width: 100%; margin-top: 16px; }
@media (min-width: 640px) { .form-box .btn { width: auto; min-width: 240px; } }
.btn[disabled] { opacity: .6; cursor: wait; }
.done { background: var(--green-soft); border-radius: 10px; padding: 20px; }
.done strong { display: block; font-size: 18px; color: var(--green); margin-bottom: 4px; }
.done p { margin: 0; color: var(--ink); }

/* 두 칼럼 (본문 + 폼) */
.split { display: grid; gap: 28px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; } }

/* 법적 표시 · 꼬리 */
.ft { background: #1d2b25; color: #d7ddd8; padding: 36px 0 28px; margin-top: 0; font-size: 14px; }
.ft-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .ft-grid { grid-template-columns: 1fr 1.6fr; } }
.ft-name { font-weight: 700; color: #fff; font-size: 16px; margin: 0 0 6px; }
.ft-note { margin: 0 0 12px; color: #aeb8b1; }
.ft-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.ft-links a { color: #fff; }
.ft-legal { margin: 0; display: grid; gap: 6px; }
.ft-legal div { display: grid; grid-template-columns: 128px 1fr; gap: 10px; }
.ft-legal dt { color: #9aa69e; }
.ft-legal dd { margin: 0; color: #eef1ee; min-width: 0; }
.ft-legal a { color: #f3d9a8; }
@media (max-width: 420px) { .ft-legal div { grid-template-columns: 1fr; gap: 0; margin-bottom: 6px; } }

/* 모바일 하단 바 */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1.2fr; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(0,0,0,.05); padding-bottom: env(safe-area-inset-bottom); }
.mbar a { text-align: center; padding: 14px 4px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--green); }
.mbar a + a { border-left: 1px solid var(--line); }
.mbar .mbar-kakao { background: #fee500; color: #191600; border-left: 0; }
@media (min-width: 900px) { .mbar { display: none; } body { padding-bottom: 0; } }

/* 방침 */
.policy { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; font-size: 15px; }
@media (min-width: 768px) { .policy { padding: 36px; } }
.policy h3 { margin-top: 26px; font-size: 17px; }
.policy table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; display: block; overflow-x: auto; }
.policy th, .policy td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; min-width: 110px; }
.policy th { background: var(--bg); }

@media (max-width: 767px) { .br-d { display: none; } }
