:root {
  --bg: #100e0c;
  --bg-2: #181411;
  --bg-3: #221c17;
  --ink: #f1e9dc;
  --ink-dim: #b3a894;
  --gold: #d4a95a;
  --gold-deep: #a9823b;
  --gold-soft: rgba(212, 169, 90, 0.12);
  --line: rgba(241, 233, 220, 0.12);
  --serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", sans-serif;
  --pad: clamp(16px, 4vw, 32px);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* 하단 전화 바 */
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: #1b1408; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(16, 14, 12, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1.5px solid var(--gold); color: var(--gold); font-family: var(--serif); font-weight: 800; font-size: 19px; }
.brand b { display: block; font-size: 17px; line-height: 1.2; }
.brand small { display: block; font-size: 12px; color: var(--ink-dim); line-height: 1.3; }
.menu { display: flex; gap: 2px; flex-wrap: wrap; }
.menu a { padding: 6px 12px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-dim); border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

/* shared */
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.sec { margin-top: 88px; }
.sec h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 8px 0 22px; }
.lede { max-width: 640px; color: var(--ink-dim); font-size: 17px; }
.lede b, .lede strong { color: var(--ink); }
.btn { display: inline-block; padding: 14px 22px; font-weight: 700; text-decoration: none; border: 1px solid var(--ink); border-radius: 2px; line-height: 1.3; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1b1408; }
.btn:hover { transform: translateY(-1px); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); }
.note { font-size: 14px; color: var(--ink-dim); }
.note a, .more { color: var(--gold); font-weight: 700; }
.more { display: inline-block; margin-top: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--bg-2); border: 1px solid var(--line); padding: 22px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-dim); font-size: 15px; }
.card .num { display: block; font-family: var(--serif); font-size: 34px; color: var(--gold); line-height: 1.1; margin-bottom: 6px; }

/* tables */
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; padding: 0 0 10px; font-size: 13px; color: var(--ink-dim); }
th, td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
thead th { font-size: 13px; color: var(--ink-dim); border-bottom: 1px solid var(--gold-deep); }
thead th small { display: block; font-weight: 500; }
tbody th { font-weight: 500; color: var(--ink-dim); }
td { font-weight: 700; }
tr.hl td, tr.hl th { background: var(--gold-soft); }
.table-wrap { overflow-x: auto; }

/* page head (subpages) */
.ph { padding-top: 44px; }
.crumb { font-size: 13px; color: var(--ink-dim); margin-bottom: 18px; }
.crumb a { text-decoration: none; }
.crumb span { margin: 0 6px; }
.ph h1 { font-size: clamp(30px, 5vw, 50px); margin: 8px 0 16px; }
.ph .lede { font-size: 18px; }

/* steps */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { position: relative; padding-left: 46px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: var(--serif); font-size: 15px; font-weight: 800; color: var(--gold); letter-spacing: 0.04em; }
.steps b { display: block; font-size: 17px; }
.steps span { color: var(--ink-dim); font-size: 15px; }

/* q&a */
.qa { display: grid; gap: 10px; }
.qa details { background: var(--bg-2); border: 1px solid var(--line); padding: 16px 20px; }
.qa summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--gold); font-family: var(--serif); font-size: 20px; line-height: 1; }
.qa details[open] summary::after { content: "–"; }
.qa p { margin-top: 10px; color: var(--ink-dim); }

/* calculator */
.calc { display: grid; gap: 14px; }
.calc label.row, .calc .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-dim); }
.calc .row b { color: var(--ink); }
.calc input[type="range"] { width: 100%; accent-color: var(--gold); margin: 4px 0 0; }
.calc select { background: var(--bg-3); color: var(--ink); border: 1px solid var(--line); padding: 8px 10px; font: inherit; font-size: 15px; }
.calc .stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.calc .stepper button { background: none; border: 0; color: var(--gold); font-size: 20px; width: 38px; height: 36px; cursor: pointer; }
.calc .stepper output { min-width: 36px; text-align: center; font-weight: 700; color: var(--ink); }
.calc input[type="number"] { display: none; }
.calc input[type="checkbox"] { accent-color: var(--gold); width: 18px; height: 18px; }
.calc .rows { list-style: none; padding: 12px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--ink-dim); }
.calc .rows li { display: flex; justify-content: space-between; }
.calc .rows b { color: var(--ink); font-weight: 600; }
.calc .sum { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--gold-deep); padding-top: 12px; }
.calc .sum b { font-family: var(--serif); font-size: clamp(32px, 5vw, 42px); color: var(--gold); line-height: 1.1; }
.calc .cta { text-align: center; }

/* route map */
.route { background: var(--bg-2); border: 1px solid var(--line); padding: 10px; }
.route svg { width: 100%; height: auto; }
.route text { font-family: var(--sans); fill: var(--ink); font-size: 14px; }
.route .dim { fill: var(--ink-dim); font-size: 12px; }
.route .road { stroke: var(--line); stroke-width: 26; stroke-linecap: round; fill: none; }
.route .walk { stroke: var(--gold); stroke-width: 3; stroke-dasharray: 7 7; fill: none; }
.route .pin { fill: var(--gold); }
.route .stn { fill: var(--bg); stroke: var(--ink); stroke-width: 3; }

/* footer + call bar */
.foot { margin-top: 110px; padding: 44px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-dim); }
.foot-in { display: grid; grid-template-columns: 1.2fr 0.6fr 1.2fr; gap: 32px; }
.foot-name { font-family: var(--serif); font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.foot-nav { display: grid; gap: 4px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--gold); }
.foot-note { line-height: 1.7; }
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--gold); color: #1b1408; }
.callbar a { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 15px; font-weight: 700; text-decoration: none; }
.callbar b { font-size: 18px; }

@media (max-width: 860px) {
  .two, .cards { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; gap: 20px; }
  .sec { margin-top: 64px; }
}
@media (max-width: 560px) {
  .top-in { gap: 6px; }
  .menu { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .menu a { white-space: nowrap; padding: 6px 10px; }
  th, td { padding: 10px 6px; font-size: 14px; }
}
