/* ── 트래블쿠폰7: 먹색 + 빨강. 검은 헤더, 큰 제목, 사진 카드 3열 ── */
:root {
  --ink: #1c1a19;
  --ink-2: #3f3b38;
  --muted: #645e59;
  --bg: #ffffff;
  --alt: #f3f1ee;
  --line: #e2ddd7;
  --soft: #ece8e3;
  --soft-2: #ddd7d0;
  --brand: #c0262d;
  --brand-deep: #9a1c22;
  --rate: #b3232a;
  --link: #b3232a;
  --header-bg: #1c1a19;
  --header-ink: #ffffff;
  --nav-hover: #ffb3ad;
  --footer-bg: #1c1a19;
  --footer-ink: #f3f1ee;
  --footer-line: #3a3633;
  --radius: 6px;
  --radius-sm: 6px;
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -0.025em; }
p, figure { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 840px; }

.ico { display: inline-flex; width: 1em; height: 1em; vertical-align: -0.125em; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── 버튼: 대비 4.5:1 이상, 모서리는 살짝만 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px;
  border: 0; cursor: pointer; transition: background-color .15s, color .15s; text-align: center;
}
.btn-primary { background: var(--brand); color: var(--on-brand, #fff); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-line { background: var(--soft); color: var(--ink); }
.btn-line:hover { background: var(--soft-2); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.text-link { color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ── 헤더 ── */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--header-bg, var(--bg)); color: var(--header-ink, var(--ink)); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; white-space: nowrap; }
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo-sub { margin-left: 10px; font-size: 15px; font-weight: 600; letter-spacing: 0; opacity: .78; }
.main-nav { display: flex; gap: 22px; margin-left: auto; font-size: 16px; font-weight: 600; }
.main-nav a { padding: 6px 0; }
.main-nav a:hover { color: var(--nav-hover, var(--brand)); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.header-cta { flex-shrink: 0; }
.menu-toggle { display: none; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 0; border-radius: var(--radius-sm); background: var(--soft); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.menu-toggle .ico { font-size: 18px; }
.nav-open .menu-toggle { background: var(--ink); color: #fff; }

/* ── 섹션 공통 ── */
.section { padding: 80px 0; }
.section.alt { background: var(--alt); }
.section h2 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 800; margin-bottom: 24px; }
.prose { margin-top: 14px; color: var(--ink-2); max-width: 66ch; line-height: 1.8; }
.breadcrumb { padding: 18px 0 0; font-size: 15px; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb span { margin: 0 2px; }

/* ── 쿠폰 사진 카드 ── */
.coupon-cards { display: grid; gap: 28px 24px; }
.coupon-cards.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.coupon-cards.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
.coupon-cards.wide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.coupon-card { display: flex; flex-direction: column; }
.cc-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.cc-body { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.cc-body h3 { font-size: 19px; font-weight: 800; }
.cc-body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cc-rate { margin-top: 4px; font-size: 24px; font-weight: 800; color: var(--rate); letter-spacing: -0.02em; }
.cc-brief { margin-top: 2px; color: var(--muted); font-size: 16px; }
.cc-body .btn { margin-top: 16px; align-self: flex-start; }

/* ── 쿠폰 표 ── */
.table-scroll { overflow-x: auto; }
.coupon-table th, .coupon-table td { padding: 16px 12px; text-align: left; border-bottom: 2px solid var(--line); vertical-align: middle; }
.coupon-table thead th { font-size: 15px; color: var(--muted); font-weight: 700; padding-top: 0; }
.coupon-table tbody th { font-weight: 800; }
.coupon-table tbody th a:hover { text-decoration: underline; }
.ct-rate { font-weight: 800; color: var(--rate); white-space: nowrap; }
.ct-go { text-align: right; width: 1%; white-space: nowrap; }

/* ── 쿠폰 번호 목록 ── */
.coupon-numbered li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 2px solid var(--line); }
.coupon-numbered li:first-child { border-top: 2px solid var(--line); }
.cn-no { font-size: 30px; font-weight: 800; color: var(--rate); font-variant-numeric: tabular-nums; }
.cn-body h3 { font-size: 20px; font-weight: 800; }
.cn-body h3 a:hover { text-decoration: underline; }
.cn-rate { font-weight: 800; color: var(--ink); }
.cn-brief { color: var(--muted); font-size: 16px; }

/* ── 글 블록 ── */
.text-block + .text-block { margin-top: 48px; }
.text-block h2 { margin-bottom: 4px; }
.plain-list { margin-top: 14px; max-width: 66ch; }
.plain-list li { padding: 10px 0 10px 18px; border-bottom: 2px solid var(--line); color: var(--ink-2); position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 22px; width: 7px; height: 7px; background: var(--brand); }
.step-list { margin-top: 14px; counter-reset: s; max-width: 66ch; }
.step-list li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); padding: 10px 0; border-bottom: 2px solid var(--line); color: var(--ink-2); }
.step-list li::before { content: counter(s); font-weight: 800; color: var(--rate); }
.info-table { margin-top: 14px; font-variant-numeric: tabular-nums; }
.info-table th, .info-table td { padding: 12px 10px; text-align: left; border-bottom: 2px solid var(--line); }
.info-table thead th { font-size: 15px; color: var(--muted); font-weight: 700; }
.info-table tbody th { font-weight: 700; }

/* ── 단계 · 체크리스트 ── */
.steps { display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 2px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.step-no { font-size: 26px; font-weight: 800; color: var(--rate); line-height: 1.2; }
.steps h3 { font-size: 18px; font-weight: 800; }
.steps p { color: var(--ink-2); }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.checklist li { padding: 18px 0; border-top: 2px solid var(--line); }
.checklist h3 { font-size: 18px; font-weight: 800; }
.checklist p { color: var(--ink-2); margin-top: 4px; }

/* ── FAQ ── */
.faq { border-bottom: 2px solid var(--line); }
.faq:first-child { border-top: 2px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 18px; font-weight: 700; }
.faq summary .ico { font-size: 20px; flex-shrink: 0; transition: transform .2s; }
.faq[open] summary .ico { transform: rotate(45deg); }
.faq p { padding: 0 0 20px; color: var(--ink-2); max-width: 66ch; }

/* ── 메뉴 페이지 ── */
.page-head { padding: 36px 0 24px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.04em; }
.page-lead { margin-top: 14px; max-width: 60ch; font-size: 18px; color: var(--ink-2); }
.page-actions { margin-top: 22px; }
.part-coupons, .part-table, .part-steps, .part-faq, .part-checklist { padding: 40px 0; }
.guide-text { padding-top: 48px; }
.cta-strip { padding: 48px 0; background: var(--alt); }
.cta-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta-strip p { font-size: 19px; font-weight: 700; }
.more-menu { padding: 48px 0 72px; }
.more-menu h2 { font-size: 20px; margin-bottom: 12px; }
.more-menu ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.more-menu a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ── 쿠폰 상세 ── */
.detail-hero { padding: 28px 0 48px; }
.detail-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.detail-hero h1 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; letter-spacing: -0.035em; }
.detail-amount { margin-top: 10px; font-size: 26px; font-weight: 800; color: var(--rate); }
.detail-summary { margin: 10px 0 24px; color: var(--ink-2); font-size: 18px; }
.detail-hero-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.spec-table th, .spec-table td { padding: 13px 10px; text-align: left; border-bottom: 2px solid var(--line); vertical-align: top; }
.spec-table th { width: 128px; font-weight: 700; color: var(--muted); }
.related-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.related-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 2px solid var(--line); }
.related-list a:hover strong { text-decoration: underline; }
.related-list span { color: var(--rate); font-weight: 700; white-space: nowrap; }
.back-link { margin-top: 32px; }
.back-link a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ── 고정 페이지 · 404 ── */
.static-page h1, .notfound h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 20px; }
.static-page .text-block + .text-block { margin-top: 36px; }
.static-page .text-block h2 { font-size: 22px; }
.notfound p { margin: 8px 0 24px; color: var(--ink-2); }
.contact-mail { margin: 20px 0; font-size: 20px; font-weight: 700; }

/* ── 푸터 ── */
.site-footer { padding: 64px 0 40px; background: var(--footer-bg); color: var(--footer-ink); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 2px solid var(--footer-line); }
.footer-brand p { margin-top: 12px; font-size: 16px; opacity: .85; max-width: 30ch; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav a.strong { font-weight: 800; }
.footer-title { font-weight: 800; margin-bottom: 6px; }
.disclaimer { margin-top: 18px; font-size: 15px; opacity: .85; max-width: 90ch; }
.to-top { display: inline-block; margin-top: 20px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ── 반응형 ── */
@media (max-width: 1080px) {
  .header-inner { flex-wrap: wrap; gap: 10px 12px; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .main-nav { order: 4; width: 100%; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 14px; font-size: 17px; }
  .main-nav a { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--soft); color: var(--ink); }
  .main-nav a[aria-current="page"] { background: var(--ink); color: #fff; text-decoration: none; }
  .js .main-nav { display: none; }
  .js .site-header.nav-open .main-nav { display: grid; }
}
@media (max-width: 960px) {
  .coupon-cards.grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .detail-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .detail-hero-img { order: -1; }
  .checklist { grid-template-columns: minmax(0, 1fr); }
  .coupon-numbered li { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 14px; }
  .coupon-numbered .btn { grid-column: 2; justify-self: start; }
  .coupon-table thead { display: none; }
  .coupon-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 16px 0; border-bottom: 2px solid var(--line); }
  .coupon-table th, .coupon-table td { padding: 0; border: 0; }
  .coupon-table td:nth-child(3) { grid-column: 1 / -1; color: var(--muted); }
  .coupon-table .ct-go { grid-column: 1 / -1; text-align: left; margin-top: 8px; }
}
@media (max-width: 600px) {
  .coupon-cards.grid3, .coupon-cards.grid2 { grid-template-columns: minmax(0, 1fr); }
  .related-list { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .cc-body .btn { align-self: stretch; }
}
@media (max-width: 420px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header-cta { font-size: 15px; padding: 7px 12px; }
}
@media (max-width: 560px) {
  .logo { font-size: 18px; gap: 8px; }
  .logo-mark { width: 28px; height: 28px; }
  .logo-sub { display: none; }
}
.nav-cta { display: none !important; }
@media (max-width: 379px) {
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .main-nav .nav-cta { display: flex !important; grid-column: 1 / -1; justify-content: center; background: var(--brand); color: var(--on-brand, #fff); font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ── 트래블쿠폰7 전용 ── */
.logo-mark rect { fill: var(--brand); }
.logo-mark .lm-cut { stroke: #fff; stroke-width: 2; stroke-dasharray: 3 3; fill: none; }
.logo-mark text { fill: #fff; font: 800 15px/1 "Pretendard Variable", sans-serif; }
.site-footer .logo-mark rect { fill: var(--brand); }
.hero { padding: 56px 0 40px; border-bottom: 2px solid var(--line); }
.hero h1 { white-space: nowrap; font-size: clamp(34px, 6.4vw, 76px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; margin-top: 28px; align-items: end; }
.hero-lead { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.hero-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hero-nums div { border-top: 4px solid var(--ink); padding-top: 10px; }
.hero-nums dt { font-size: 15px; color: var(--muted); font-weight: 600; }
.hero-nums dd { font-size: 26px; font-weight: 900; color: var(--rate); letter-spacing: -0.03em; }
.coupons-home { padding-top: 48px; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
.split-head h2 { margin-bottom: 10px; }
.split-head p { color: var(--ink-2); }
.link-rows li a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 18px 0; border-bottom: 2px solid var(--line); }
.link-rows li:first-child a { border-top: 2px solid var(--ink); }
.link-rows strong { font-size: 19px; }
.link-rows span { color: var(--muted); }
.link-rows a:hover strong { color: var(--brand); text-decoration: underline; }
.page-head { border-bottom: 2px solid var(--line); }
@media (max-width: 1080px) {
  .menu-toggle { background: #3a3633; color: #fff; }
  .nav-open .menu-toggle { background: #fff; color: var(--ink); }
}
@media (max-width: 860px) {
  .hero-row, .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 480px) {
  .hero-nums { gap: 10px; }
  .hero-nums dd { font-size: 21px; }
}
/* 3열에서 혼자 남는 마지막 카드는 가로로 넓게 */
@media (min-width: 961px) {
  .coupon-cards.grid3 .coupon-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: center; }
  .coupon-cards.grid3 .coupon-card:last-child:nth-child(3n+1) .cc-body { padding-top: 0; }
}
