/* 여기상품권 — gdweb '고급스러운' 프리셋 기반 (각진 버튼 · 세리프 헤드라인 w400 · 본문 16/1.5 · 컨테이너 1296) */
:root {
  --navy-950: #0b151d;
  --navy-900: #0f1c26;
  --navy-800: #16283a;
  --navy: #1a2b38;
  --ink: #111a21;
  --ink-2: #3a4650;
  --ink-3: #6b7680;
  --gold: #a8893a;
  --gold-2: #c4a862;
  --gold-3: #e3d2a3;
  --ivory: #f5f0e6;
  --paper: #faf8f3;
  --line: rgba(17, 26, 33, .12);
  --line-light: rgba(245, 240, 230, .16);

  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --font-serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;

  --container: 1240px;
  --pad-x: 40px;
  --btn-h: 52px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.5; letter-spacing: -0.01em;
  color: var(--ink); background: var(--paper);
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--container) + var(--pad-x) * 2); margin: 0 auto; padding: 0 var(--pad-x); }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 28px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  border-radius: 0;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-ghost-light { border: 1px solid rgba(245, 240, 230, .4); color: var(--ivory); }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: #967a30; }
  .btn-navy:hover { background: var(--navy-950); }
  .btn-ghost-light:hover { border-color: var(--ivory); background: rgba(245, 240, 230, .06); }
}
.link { color: var(--gold); font-weight: 500; text-underline-offset: 3px; }
.link:hover { text-decoration: underline; }
.link-light { color: var(--gold-3); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow-dark { color: var(--gold); }

/* ── 헤더 ── */
.hd {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15, 28, 38, .92);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-light);
  color: var(--ivory);
}
.hd-in { height: 76px; display: flex; align-items: center; gap: 48px; }
.hd-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.hd-logo img:first-child { width: 44px; height: auto; }
.hd-word { width: 112px; height: auto; }
.hd-nav { display: flex; gap: 36px; font-size: 15px; color: rgba(245, 240, 230, .78); }
.hd-nav a { transition: color 160ms ease; }
.hd-nav a:hover { color: var(--ivory); }
.hd-cta { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.hd-tel { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #4cc38a; box-shadow: 0 0 0 3px rgba(76, 195, 138, .2); display: inline-block; flex: none; }

/* ── 히어로 ── */
.hero { background: var(--navy-900); color: var(--ivory); position: relative; overflow: hidden; }
.hero::before {
  /* 상품권 지폐 패턴 — 아주 옅은 기요셰 라인 */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    repeating-radial-gradient(circle at 85% 30%, transparent 0 22px, rgba(196, 168, 98, .06) 22px 23px);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
          mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
}
.hero-in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 470px); gap: 80px; align-items: center;
  padding-top: 112px; padding-bottom: 120px;
}
.hero-h {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 84px; line-height: 1.12; letter-spacing: -0.03em;
}
.hero-h em { font-style: normal; color: var(--gold-2); position: relative; }
.hero-sub { margin-top: 28px; font-size: 18px; line-height: 1.6; color: rgba(245, 240, 230, .74); }
.hero-stat {
  margin-top: 48px; display: flex; gap: 0;
  border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
}
.hero-stat > div { flex: 1; padding: 20px 0 22px; }
.hero-stat > div + div { padding-left: 28px; border-left: 1px solid var(--line-light); }
.hero-stat .k { display: block; font-size: 13px; color: rgba(245, 240, 230, .6); margin-bottom: 6px; }
.hero-stat .v { font-family: var(--font-serif); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -0.02em; color: var(--ivory); font-variant-numeric: tabular-nums; }
.hero-stat .v small { font-family: var(--font-sans); font-size: 16px; margin-left: 4px; color: var(--gold-2); letter-spacing: 0; }
.hero-btns { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 계산기 */
.calc {
  background: var(--ivory); color: var(--ink);
  padding: 36px 36px 28px;
  border-top: 3px solid var(--gold);
  position: relative;
}
.calc-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.calc-hd span:first-child { font-family: var(--font-serif); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.calc-date { font-size: 13px; color: var(--ink-3); }
.fld { display: block; margin-bottom: 16px; }
.fld > span { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.fld > span i { color: var(--gold); font-style: normal; }
.fld input, .fld select, .fld textarea {
  width: 100%; height: 52px; padding: 0 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 0;
  font-size: 16px; transition: border-color 160ms ease;
  -webkit-appearance: none; appearance: none;
}
.fld textarea { height: auto; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.fld select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a2b38' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--gold); }
.won-input { position: relative; }
.won-input input { padding-right: 44px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.won-input b { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 400; color: var(--ink-3); pointer-events: none; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: -4px 0 20px; }
.chips button {
  height: 36px; font-size: 14px; border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  transition: border-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out);
}
.chips button:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .chips button:hover { border-color: var(--gold); color: var(--ink); } }
.chip-reset { color: var(--ink-3) !important; }
.calc-out { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 20px; }
.calc-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-2); padding: 4px 0; font-variant-numeric: tabular-nums; }
.calc-row b { font-weight: 500; color: var(--ink); }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.calc-total span { font-size: 15px; font-weight: 500; }
.calc-total strong { font-family: var(--font-serif); font-weight: 600; font-size: 36px; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); text-align: center; }

/* 시세 티커 */
.ticker { position: relative; border-top: 1px solid var(--line-light); background: var(--navy-950); overflow: hidden; height: 52px; }
.ticker-track { display: flex; width: max-content; height: 100%; align-items: center; animation: tick 60s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 10px; padding: 0 32px; font-size: 14px; color: rgba(245, 240, 230, .7); white-space: nowrap; border-right: 1px solid var(--line-light); }
.ticker-item b { color: var(--gold-2); font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ── 약속 스트립 ── */
.strip { background: var(--ivory); border-bottom: 1px solid var(--line); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in > div { padding: 32px 28px; }
.strip-in > div:first-child { padding-left: 0; }
.strip-in > div + div { border-left: 1px solid var(--line); }
.strip b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.strip span { font-size: 14px; color: var(--ink-3); }

/* ── 섹션 공통 ── */
.sec { padding: 100px 0; }
.rates, .apply { padding: 120px 0; }
.sec-hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.sec-h { font-family: var(--font-serif); font-weight: 400; font-size: 52px; line-height: 1.2; letter-spacing: -0.03em; }
.sec-h-light { color: var(--ivory); }
.sec-side { font-size: 15px; color: var(--ink-3); text-align: right; }

/* ── 시세표 ── */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tabs button {
  height: 40px; padding: 0 20px; font-size: 15px; border: 1px solid var(--line); color: var(--ink-2);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.rate-table { border-top: 2px solid var(--navy); }
.rt-head, .rt-row {
  display: grid; grid-template-columns: minmax(0, 1.6fr) 160px 220px 140px; align-items: center; gap: 24px;
  padding: 0 8px;
}
.rt-head { height: 52px; font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.rt-head span:nth-child(n+2) { text-align: right; }
.rt-row { min-height: 76px; border-bottom: 1px solid var(--line); transition: background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .rt-row:hover { background: var(--ivory); } }
.rt-name { display: flex; align-items: center; gap: 14px; }
.rt-cat { font-size: 12px; color: var(--gold); border: 1px solid rgba(168, 137, 58, .45); padding: 2px 8px; flex: none; }
.rt-name b { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.rt-name small { font-size: 13px; color: var(--ink-3); }
.rt-rate { text-align: right; font-family: var(--font-serif); font-size: 30px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.rt-rate small { font-family: var(--font-sans); font-size: 15px; font-weight: 500; margin-left: 2px; }
.rt-pay { text-align: right; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rt-go { justify-self: end; height: 40px; padding: 0 16px; font-size: 14px; border: 1px solid var(--line); transition: border-color 160ms ease, background-color 160ms ease, transform 120ms var(--ease-out); }
.rt-go:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .rt-go:hover { border-color: var(--navy); background: var(--navy); color: var(--ivory); } }
.rates-foot { margin-top: 24px; font-size: 15px; color: var(--ink-3); }

/* ── 진행 방법 ── */
.process { background: var(--ivory); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--navy); }
.steps li { padding: 32px 32px 8px 0; position: relative; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps .n { font-family: var(--font-serif); font-size: 52px; line-height: 1; color: var(--gold); display: block; margin-bottom: 40px; letter-spacing: -0.02em; }
.steps h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.steps p { font-size: 16px; color: var(--ink-2); }

/* ── 약속 ── */
.promise { background: var(--paper); }
.promise-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.promise-q {
  margin: 0; font-family: var(--font-serif); font-weight: 400;
  font-size: 60px; line-height: 1.22; letter-spacing: -0.03em; color: var(--navy);
  padding-left: 32px; border-left: 2px solid var(--gold);
}
.promise-list { list-style: none; margin: 0; padding: 0; }
.promise-list li { padding: 28px 0; border-bottom: 1px solid var(--line); counter-increment: p; display: grid; grid-template-columns: 48px 1fr; column-gap: 8px; }
.promise-list li:first-child { padding-top: 0; }
.promise-list li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font-family: var(--font-serif); color: var(--gold); font-size: 18px; line-height: 1.6; }
.promise-list b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; display: block; margin-bottom: 8px; }
.promise-list p { color: var(--ink-2); }

/* ── 신청 ── */
.apply { background: var(--navy-900); color: var(--ivory); }
.apply-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: 96px; align-items: start; }
.apply-sub { margin-top: 24px; font-size: 18px; line-height: 1.6; color: rgba(245, 240, 230, .72); }
.contact-list { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line-light); }
.contact-list li { display: flex; justify-content: space-between; align-items: center; height: 68px; border-bottom: 1px solid var(--line-light); }
.contact-list span { font-size: 14px; color: rgba(245, 240, 230, .6); }
.contact-list a, .contact-list .link { font-size: 18px; font-weight: 500; color: var(--ivory); font-variant-numeric: tabular-nums; }
.contact-list small { font-size: 12px; color: var(--gold-2); margin-left: 6px; border: 1px solid rgba(196, 168, 98, .5); padding: 1px 6px; }

.form { background: var(--navy-800); padding: 40px; border-top: 3px solid var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.fld-wide { grid-column: 1 / -1; }
.form .fld > span { color: rgba(245, 240, 230, .75); }
.form .fld input, .form .fld select, .form .fld textarea { background: var(--navy-900); border-color: rgba(245, 240, 230, .18); color: var(--ivory); }
.form .fld select { background-repeat: no-repeat; background-position: right 16px center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f5f0e6' stroke-width='1.5'/%3E%3C/svg%3E"); }
.form .fld input::placeholder, .form .fld textarea::placeholder { color: rgba(245, 240, 230, .35); }
.form .fld input:focus, .form .fld select:focus, .form .fld textarea:focus { border-color: var(--gold-2); }
.form .won-input b { color: rgba(245, 240, 230, .5); }
.fld-hint { display: block; font-style: normal; font-size: 14px; color: var(--gold-3); margin-top: 8px; min-height: 21px; font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(245, 240, 230, .78); margin: 8px 0 16px; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); flex: none; }
.privacy { font-size: 13px; line-height: 1.6; color: rgba(245, 240, 230, .6); background: var(--navy-900); padding: 14px 16px; margin-bottom: 16px; }
.form-msg { min-height: 24px; margin-top: 14px; font-size: 15px; text-align: center; color: var(--gold-3); }
.form-msg.err { color: #f0a59a; }

/* ── FAQ ── */
.faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 80px; }
.faq-list { border-top: 2px solid var(--navy); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 76px; font-size: 18px; font-weight: 500; letter-spacing: -0.02em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ''; width: 14px; height: 14px; flex: none;
  background: linear-gradient(var(--navy), var(--navy)) center / 14px 1.5px no-repeat, linear-gradient(var(--navy), var(--navy)) center / 1.5px 14px no-repeat;
  transition: transform 200ms var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 28px 0; color: var(--ink-2); }

/* ── 푸터 ── */
.ft { background: var(--navy-950); color: rgba(245, 240, 230, .6); padding: 64px 0 120px; font-size: 14px; }
.ft-logo { width: 112px; margin-bottom: 28px; opacity: .9; }
.ft-info { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; }
.ft-info div { display: flex; gap: 8px; }
.ft-info dt { color: rgba(245, 240, 230, .4); }
.ft-info dd { margin: 0; }
.ft-copy { margin-top: 28px; color: rgba(245, 240, 230, .35); font-size: 13px; }

/* ── 채팅 ── */
.chat-fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 50;
  height: 56px; padding: 0 22px 0 18px; display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: var(--ivory); font-size: 15px; font-weight: 500;
  border: 1px solid rgba(196, 168, 98, .5);
  box-shadow: 0 12px 32px rgba(11, 21, 29, .28);
  transition: transform 160ms var(--ease-out), opacity 200ms ease;
}
.chat-fab svg { color: var(--gold-2); }
.chat-fab:active { transform: scale(.97); }
.chat-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #d9534f; color: #fff; font-size: 12px; font-style: normal; font-weight: 600; display: grid; place-items: center; }
.chat-badge[hidden] { display: none; }
.chat-open .chat-fab { opacity: 0; pointer-events: none; transform: scale(.96); }

.chat {
  position: fixed; right: 28px; bottom: 28px; z-index: 60;
  width: 380px; height: min(600px, calc(100dvh - 120px));
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(11, 21, 29, .32);
  transform-origin: bottom right;
  opacity: 0; transform: scale(.96) translateY(8px); pointer-events: none; visibility: hidden;
  transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s linear 240ms;
}
.chat-open .chat { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s; }
.chat-hd { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 18px; height: 72px; background: var(--navy-900); color: var(--ivory); flex: none; }
.chat-hd b { display: block; font-size: 16px; font-weight: 600; }
.chat-hd span { font-size: 13px; color: rgba(245, 240, 230, .65); display: flex; align-items: center; gap: 6px; }
.chat-hd em { font-style: normal; color: var(--gold-2); }
.chat-x { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; color: rgba(245, 240, 230, .8); }
.chat-body { flex: 1; overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 82%; display: flex; flex-direction: column; gap: 4px; }
.msg p { padding: 11px 14px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.msg time { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.msg-admin { align-self: flex-start; }
.msg-admin p { background: #fff; border: 1px solid var(--line); border-radius: 2px 14px 14px 14px; }
.msg-guest { align-self: flex-end; align-items: flex-end; }
.msg-guest p { background: var(--navy); color: var(--ivory); border-radius: 14px 2px 14px 14px; }
.msg-guest.pending p { opacity: .6; }
.msg-sys { align-self: center; font-size: 12px; color: var(--ink-3); padding: 4px 0; }
.msg-new { animation: msgIn 220ms var(--ease-out); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chat-quick button { height: 34px; padding: 0 12px; font-size: 13px; border: 1px solid rgba(168, 137, 58, .5); color: var(--navy); background: #fff; transition: background-color 160ms ease, transform 120ms var(--ease-out); }
.chat-quick button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .chat-quick button:hover { background: var(--ivory); } }
.chat-in { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; flex: none; }
.chat-in textarea { flex: 1; resize: none; border: 0; outline: none; font-size: 16px; line-height: 1.5; padding: 10px 6px; max-height: 120px; background: transparent; }
.chat-in button { width: 44px; height: 44px; display: grid; place-items: center; background: var(--gold); color: #fff; flex: none; transition: transform 120ms var(--ease-out), opacity 160ms ease; }
.chat-in button:active { transform: scale(.94); }
.chat-in button:disabled { opacity: .4; }

.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 80;
  background: var(--navy-950); color: var(--ivory); font-size: 14px; padding: 12px 18px;
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.mbar { display: none; }

/* ── 배너 (관리자 업로드) — 자르지 않음. PC는 가운데 860px, 모바일은 화면 가로 꽉 ── */
.banner-sec { background: var(--paper); padding: 0 0 100px; }
.banner { display: block; width: 100%; max-width: 860px; margin: 0 auto; padding: 0; border: 0; background: none; cursor: default; }
a.banner, button.banner { cursor: pointer; }
.banner img { width: 100%; height: auto; }

/* ── 반응형 ── */
@media (max-width: 1180px) {
  .hero-in { grid-template-columns: 1fr 420px; gap: 48px; }
  .hero-h { font-size: 68px; }
  .hd-nav { gap: 24px; }
  .apply-in { gap: 56px; }
}
@media (max-width: 980px) {
  :root { --pad-x: 24px; }
  .hd-nav, .hd-tel { display: none; }
  .hero-in { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 72px; gap: 56px; }
  .calc { max-width: 560px; }
  .strip-in { grid-template-columns: 1fr 1fr; }
  .strip-in > div { padding: 24px 20px; }
  .strip-in > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .strip-in > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec { padding: 88px 0; }
  .sec-h { font-size: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .promise-in, .apply-in, .faq-in { grid-template-columns: 1fr; gap: 48px; }
  .promise-q { font-size: 48px; }
  .rt-head, .rt-row { grid-template-columns: minmax(0, 1fr) 120px 160px; }
  .rt-c4, .rt-go { display: none; }
}
@media (max-width: 640px) {
  :root { --pad-x: 20px; --btn-h: 50px; }
  html { scroll-padding-top: 72px; }
  body { font-size: 15px; }
  .hd-in { height: 64px; gap: 16px; }
  .hd-logo img:first-child { width: 36px; }
  .hd-word { width: 96px; }
  .hero-in { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .hero-h { font-size: 44px; line-height: 1.18; }
  .hero-sub { font-size: 16px; margin-top: 20px; }
  .hero-stat { margin-top: 32px; }
  .hero-stat > div + div { padding-left: 16px; }
  .hero-stat .v { font-size: 32px; }
  .hero-stat .v small { font-size: 13px; }
  .hero-btns .btn { flex: 1; padding: 0 16px; }
  .calc { padding: 28px 20px 22px; }
  .calc-total strong { font-size: 30px; }
  .ticker { height: 44px; }
  .strip-in { grid-template-columns: 1fr; }
  .strip-in > div, .strip-in > div:nth-child(odd) { padding: 18px 0; border-left: 0; }
  .strip-in > div + div { border-top: 1px solid var(--line); }
  .sec { padding: 64px 0; }
  .sec-hd { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .sec-side { text-align: left; font-size: 14px; }
  .sec-h { font-size: 32px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad-x) * -1) 20px; padding: 0 var(--pad-x); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; height: 36px; padding: 0 16px; font-size: 14px; }
  .rt-head { display: none; }
  .rt-head, .rt-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 0; }
  .rt-row { padding: 16px 0; min-height: 0; }
  .rt-name { flex-wrap: wrap; gap: 4px 10px; }
  .rt-name b { font-size: 16px; }
  .rt-rate { font-size: 26px; grid-row: span 2; align-self: center; }
  .rt-pay { text-align: left; font-size: 13px; color: var(--ink-3); }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .steps .n { font-size: 40px; margin-bottom: 16px; }
  .steps h3 { font-size: 19px; }
  .promise-q { font-size: 34px; padding-left: 20px; }
  .promise-list b { font-size: 18px; }
  .form { padding: 28px 20px; margin: 0 calc(var(--pad-x) * -1); }
  .form-grid { grid-template-columns: 1fr; }
  .contact-list a, .contact-list .link { font-size: 16px; }
  .faq-list summary { font-size: 16px; min-height: 64px; }
  .faq-list details p { padding-right: 0; }
  .ft { padding: 48px 0 104px; }
  .ft-info { flex-direction: column; }

  .banner-sec { padding-bottom: 64px; }
  .chat-fab { display: none; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--navy-950); border-top: 1px solid var(--line-light);
  }
  .mbar > * { display: grid; place-items: center; color: var(--ivory); font-size: 14px; font-weight: 500; }
  .mbar > * + * { border-left: 1px solid var(--line-light); }
  .mbar-chat { background: var(--gold); color: #fff !important; }
  .chat { right: 0; bottom: 0; left: 0; top: 0; width: auto; height: 100dvh; border: 0; transform-origin: bottom center; transform: translateY(24px); }
  .chat-hd { padding-top: env(safe-area-inset-top); height: calc(64px + env(safe-area-inset-top)); }
  .chat-in { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chat, .chat-open .chat { transform: none !important; }
  .msg-new { animation: none; }
}

/* ── 문구 수정 모드 (/?edit=1) ── */
.edit-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 10px 20px; background: #f0c14b; color: #1b1f24; font-size: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}
.edit-bar .eb-txt { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.edit-bar .eb-txt span { color: #4a3a0c; }
.edit-bar code { background: rgba(255, 255, 255, .6); padding: 0 4px; }
.edit-bar .eb-act { display: flex; gap: 8px; align-items: center; }
.edit-bar button { height: 36px; padding: 0 14px; background: #fff; border: 1px solid rgba(0, 0, 0, .2); font-weight: 600; }
.edit-bar .eb-save { background: #1a2b38; color: #fff; border-color: #1a2b38; }
.edit-bar .eb-save:disabled { opacity: .4; }
.edit-bar .eb-n { font-weight: 600; margin-right: 4px; }
.editing { padding-top: var(--ebh, 56px); }
.editing .hd { top: var(--ebh, 56px); }
.editing [data-t] { outline: 1px dashed rgba(240, 193, 75, .9); outline-offset: 3px; cursor: text; border-radius: 1px; }
.editing [data-t]:hover { outline-style: solid; }
.editing [data-t]:focus { outline: 2px solid #f0c14b; background: rgba(240, 193, 75, .12); }
.editing [data-t].t-changed { background: rgba(240, 193, 75, .22); }
.editing [data-tk] { background: rgba(120, 130, 140, .25); padding: 0 3px; border-radius: 3px; cursor: not-allowed; }
.editing .ticker-track { animation-play-state: paused; }
@media (max-width: 640px) { .edit-bar { padding: 8px 12px; gap: 6px; } .edit-bar .eb-txt span { display: none; } .edit-bar button { height: 32px; padding: 0 10px; font-size: 13px; } }
