/* 투어쿠폰 — 짙은 남청 + 흰 바탕, 쿠폰 사진 카드 */
:root {
  --ink: #141b24;
  --ink-2: #3a4554;
  --muted: #5a6573;
  --line: #d7dee7;
  --bg: #ffffff;
  --bg-soft: #eef3f8;
  --main: #1f4e79;
  --main-dark: #163a5b;
  --main-soft: #dde8f3;
  --radius: 8px;
  --wrap: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 17px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--main); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; display: block; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s; }
.btn-main { background: var(--main); color: #fff; }
.btn-main:hover { background: var(--main-dark); }
.btn-line { background: #fff; color: var(--main-dark); border-color: var(--main); }
.btn-line:hover { background: var(--main-soft); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .95rem; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 2px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; fill: var(--main); }
.logo-mark .lm-line { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 3 3; }
.logo-text { display: flex; flex-direction: column; font-weight: 800; font-size: 1.2rem; line-height: 1.15; }
.logo-sub { font-size: .8rem; font-weight: 600; color: var(--muted); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .98rem; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--main-dark); border-bottom-color: var(--main); }
.main-nav .nav-cta { display: none; }
.menu-toggle { display: none; align-items: center; gap: 6px; margin-left: auto; height: 42px; padding: 0 12px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }

/* 첫 화면 */
.hero { background: var(--bg-soft); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero-kicker { font-weight: 700; color: var(--main-dark); margin-bottom: .4em; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); white-space: nowrap; margin-bottom: .35em; }
.hero-lead { font-size: 1.1rem; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }

/* 섹션 */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--muted); }

/* 코드 카드 */
.code-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.code-card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cc-photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.cc-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cc-body h3 { margin: 0; font-size: 1.15rem; }
.cc-body h3 a { color: var(--ink); text-decoration: none; }
.cc-rate { font-size: 1.5rem; font-weight: 800; color: var(--main-dark); margin: 0; }
.cc-brief { color: var(--muted); margin: 0 0 12px; }
.cc-body .btn { margin-top: auto; }
.kcode { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; background: var(--main-soft); color: var(--main-dark); padding: 2px 8px; border-radius: 4px; font-size: .95em; }

/* 표 */
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.info-table, .code-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.info-table th, .info-table td, .code-table th, .code-table td { text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--line); vertical-align: top; }
.info-table thead th, .code-table thead th { background: var(--bg-soft); color: var(--ink); font-weight: 700; white-space: nowrap; }
.info-table tbody th { font-weight: 700; }
.split-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.split-in > * { min-width: 0; }

/* 글 */
.text-block { margin-bottom: 2.2em; }
.text-block:last-child { margin-bottom: 0; }
.text-photo { margin: 0 0 1.2em; }
.text-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.plain-list, .num-list { padding-left: 1.3em; margin: 0 0 1em; }
.plain-list li, .num-list li { margin-bottom: .4em; }
.block-go { margin-top: 1em; }

/* 단계 · 확인 순서 */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 0; border-bottom: 2px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.step-no { width: 40px; height: 40px; border-radius: var(--radius); background: var(--main); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--ink-2); }
.checklist { padding-left: 1.4em; margin: 0; }
.checklist li { padding: 10px 0 12px; border-bottom: 2px solid var(--line); }
.checklist h3 { font-size: 1.05rem; margin-bottom: .2em; }
.checklist p { margin: 0; color: var(--ink-2); }

/* 자주 묻는 질문 */
.faq { border-bottom: 2px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.05rem; }
.faq[open] .ico { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--ink-2); }

/* 요약 · 안내 목록 */
.digest-item { padding: 16px 0; border-bottom: 2px solid var(--line); }
.digest-item h3 { margin-bottom: .3em; }
.digest-item h3 a { color: var(--ink); }
.digest-item h3 span { color: var(--main-dark); font-size: .95rem; margin-left: 6px; }
.digest-item p { margin: 0; color: var(--ink-2); }
.directory { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.directory li { padding: 14px 0; border-bottom: 2px solid var(--line); }
.directory a { font-weight: 700; font-size: 1.08rem; }
.directory p { margin: .2em 0 0; color: var(--muted); font-size: .98rem; }

/* 메뉴 · 상세 페이지 */
.breadcrumb { padding: 14px 0 0; font-size: .95rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.page-head { padding: 28px 0 40px; }
.page-head-in { display: grid; gap: 40px; }
.page-head.has-photo .page-head-in { grid-template-columns: 1.2fr 1fr; align-items: center; }
.page-head h1, .detail-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.page-lead { font-size: 1.1rem; color: var(--ink-2); max-width: 40em; }
.page-head-photo, .detail-photo { margin: 0; }
.page-head-photo img, .detail-photo img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.detail-head-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.detail-rate { font-size: 1.4rem; font-weight: 800; color: var(--main-dark); }
.related-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.related-list li { padding: 10px 0; border-bottom: 2px solid var(--line); }
.related-list span { color: var(--muted); }
.back-link { margin-top: 1.4em; font-weight: 700; }
.cta-strip { background: var(--main-dark); color: #fff; }
.cta-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-strip p { margin: 0; font-size: 1.1rem; font-weight: 600; }
.cta-strip .btn-main { background: #fff; color: var(--main-dark); }
.more-menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.more-menu a { font-weight: 700; }
.notfound { text-align: center; padding: 100px 0; }

/* 푸터 */
.site-footer { background: #121b26; color: #c8d2de; padding: 48px 0 32px; margin-top: 0; font-size: .95rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo-mark { fill: #7fb0dd; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-brand p { margin-top: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-title { font-weight: 700; color: #fff; margin: 0 0 4px; }
.footer-nav a { color: #c8d2de; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-nav a.strong { font-weight: 800; color: #fff; }
.disclaimer { color: #a3b0bf; font-size: .92rem; }
.to-top { color: #fff; font-weight: 700; }

@media (max-width: 1000px) {
  .main-nav a { padding: 8px 6px; font-size: .92rem; }
  .code-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .menu-toggle { margin-left: 8px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: #fff; border-bottom: 2px solid var(--line); padding: 8px 20px 16px; }
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .hero-in, .split-in, .detail-head-in, .page-head.has-photo .page-head-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-in { padding-top: 32px; padding-bottom: 36px; }
  .hero-photo img { max-height: 340px; }
  .directory { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .logo-sub { display: none; }
  .code-cards { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  h2 { font-size: 1.4rem; }
  .hero h1 { font-size: clamp(1.7rem, 8.4vw, 2.3rem); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 379px) {
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .main-nav .nav-cta { display: block; color: var(--main-dark); font-weight: 800; }
}
