/* K-Biz Visa 디자인 시스템 (R21, 시안 A) — 모든 페이지가 첫 번째로 읽는 공용 스타일 한 장.
 *
 * 출처: benchmark/k-visa-co-kr/mockups/a/style.css(테마 변수) + mockups/shared/base.css(컴포넌트)
 *       + 공통 크롬(메가패널·모바일 메뉴·언어 전환)과 범용 부품(폼·표·브레드크럼·배지·카드·탭).
 * 규칙: 흰색·연회색 + 남색. 금색은 로고 글자에만. 그라데이션·넓은 그림자·장식 그림을 쓰지 않는다.
 * 페이지 유형 CSS는 이 파일 뒤에 얹는다: 홈 kbv-home.css, 문서형 visa.css, 나머지 정적 페이지 kbv-pages.css.
 *
 * 토큰 (:root)
 *   색      --bg --bg-alt --bg-tint · --ink --ink-2 --sub --line --line-strong
 *           --primary --primary-hover --primary-soft · --gold --logo-ink
 *           --topbar-bg --topbar-ink · --fact-border --fact-ink · --bar-bg --footer-bg
 *           --banner-bg --banner-line · --focus --danger --success
 *   글꼴    --font · --fs-h1 --fs-h2 --fs-h3 --fs-h4 --fs-body --fs-sm --fs-xs (760px 이하에서 줄어든다)
 *   간격    --sp-1(4) --sp-2(8) --sp-3(12) --sp-4(16) --sp-5(24) --sp-6(32) --sp-7(40) --sp-8(56) --sp-9(72) --sp-10(96) --sp-11(112)
 *   라운드  --r-xs(6) --r-sm(8) --r-md(10, 버튼·입력) --r-lg(14) --r-xl(18, 카드) --r-2xl(20) --r-pill
 *   레이아웃 --wrap(1168, 좌우 패딩 포함) --header-h(헤더 윗줄 68 / 모바일 64) --gnb-h(메뉴 줄 52 / 모바일 0)
 *
 * 공통 크롬 마크업(tools/chrome.js가 생성)
 *   .skip-link · .topbar · .site-header > .header-bar(.logo .header-right .lang-switch .header-tel .header-cta .menu-toggle)
 *   + .gnb-row > .gnb(.gnb-all .gnb-sep .gnb-item > .gnb-drop + .gnb-dd(.dd-extra .dd-finder) .gnb-link)
 *   · .mobile-menu(.mm-all .mm-visas .mm-group .mm-toggle .mm-links .mm-quick .mm-main .mm-actions .mm-lang)
 *   · .site-footer(.top .foot-tagline .foot-links .foot-biz .foot-offices .foot-note .foot-tel .foot-visas) · .sticky-cta · .kr-badge · .nw
 */

:root {
  --bg: #fff; --bg-alt: #F4F6F9; --bg-tint: #EEF1F6;
  --ink: #111827; --ink-2: #3F4859; --sub: #5B6475; --line: #E5E8EE; --line-strong: #CDD3DD;
  --primary: #15204F; --primary-hover: #0E1739; --primary-soft: #EEF1F7;
  --gold: #97792C; --logo-ink: #15204F;
  --topbar-bg: #15204F; --topbar-ink: #E4E7F0;
  --fact-border: #C9D0DE; --fact-ink: #15204F;
  --bar-bg: #15204F; --footer-bg: #10152B;
  --banner-bg: #EEF1F7; --banner-line: #D8DEEA;
  --focus: #2D4FD6; --danger: #B42318; --success: #146C43;

  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --fs-h1: 50px; --fs-h2: 38px; --fs-h3: 26px; --fs-h4: 20px;
  --fs-body: 17px; --fs-sm: 15px; --fs-xs: 13px;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --sp-7: 40px; --sp-8: 56px; --sp-9: 72px; --sp-10: 96px; --sp-11: 112px;

  --r-xs: 6px; --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px; --r-2xl: 20px; --r-pill: 999px;

  --wrap: 1168px; --header-h: 68px; --gnb-h: 52px;
}

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--gnb-h) + 16px); }
body {
  margin: 0; font-family: var(--font);
  color: var(--ink); background: var(--bg); font-size: var(--fs-body); line-height: 1.7; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: break-word; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }
.topbar, .site-footer, .sticky-cta, .qa-dark, .final-cta { --focus: #FFFFFF; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001s !important; animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}
/* kbv.js가 붙이는 .no-motion(사용자 설정)도 같은 효과. 모든 애니메이션은 끝 상태가 원래 모습이라 즉시 끝나도 안전하다 */
.no-motion *, .no-motion *::before, .no-motion *::after { transition-duration: .001s !important; animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.nw { white-space: nowrap; }
.sr-only, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: var(--r-sm);
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- 글자 크기 ---------- */
.h1 { font-size: var(--fs-h1); line-height: 1.28; font-weight: 800; letter-spacing: -0.035em; }
.h2 { font-size: var(--fs-h2); line-height: 1.3; font-weight: 700; letter-spacing: -0.03em; }
.h3 { font-size: var(--fs-h3); line-height: 1.4; font-weight: 700; letter-spacing: -0.02em; }
.h4 { font-size: var(--fs-h4); line-height: 1.45; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 18px; color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.muted { color: var(--sub); }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px;
  border-radius: var(--r-md); font-size: 16px; font-weight: 700; line-height: 1.2; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #EEF0F5; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--sub); }
.arrow-link::after { content: "→"; transition: transform .15s; }
.arrow-link:hover { color: var(--ink); }
.arrow-link:hover::after { transform: translateX(3px); }

/* ---------- 상단 띠 ---------- */
.topbar { background: var(--topbar-bg); color: var(--topbar-ink); font-size: 14px; font-weight: 500; }
.topbar .wrap { min-height: 40px; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 8px; padding-bottom: 8px; line-height: 1.45; }

/* ---------- 헤더 ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.header-bar { height: var(--header-h); display: flex; align-items: center; gap: 40px; }
.logo { flex: none; font-size: 23px; font-weight: 800; letter-spacing: -0.03em; color: var(--logo-ink); line-height: 1; white-space: nowrap; }
.logo span { color: var(--gold); }

/* 헤더 아랫줄(R22): 전체 비자보기 | 분류 7개 드롭다운 | 블로그·소개 */
.gnb-row { border-top: 1px solid var(--line); }
.gnb { height: var(--gnb-h); display: flex; align-items: stretch; gap: 26px; }
.gnb-item { position: relative; display: flex; }
.gnb-link { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 2px;
  background: none; border: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.gnb-link:hover, .gnb-link[aria-current], .gnb-link.is-active, .gnb-drop[aria-expanded="true"] { color: var(--primary); }
.gnb-link[aria-current]::before, .gnb-link.is-active::before, .gnb-drop[aria-expanded="true"]::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); }
.gnb-all { font-weight: 700; color: var(--primary); }
.gnb-sep { align-self: center; width: 1px; height: 16px; background: var(--line-strong); }
.gnb-drop::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 1px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform .15s; }
.gnb-drop[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; }
.gnb-dd { position: absolute; top: 100%; left: -16px; z-index: 45; min-width: 260px; padding: 10px; background: #fff;
  border: 1px solid var(--line-strong); border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: 0 12px 20px -18px rgba(16,21,43,.35); }
.gnb-item:last-of-type .gnb-dd { left: auto; right: -16px; }
.gnb-dd ul { display: grid; gap: 2px; }
.gnb-dd li a { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); transition: background .12s; }
.gnb-dd li a:hover, .gnb-dd li a:focus-visible { background: var(--bg-alt); }
.gnb-dd li a[aria-current="page"] { background: var(--primary-soft); }
.gnb-dd b { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: var(--primary); white-space: nowrap; }
.gnb-dd span { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.gnb-dd .dd-extra { display: block; margin-top: 4px; border: 1px dashed var(--line-strong); }
.gnb-dd .dd-extra span { font-weight: 600; color: var(--primary); }
.gnb-dd .dd-extra span::after { content: " →"; }
.dd-finder { display: block; margin-top: 8px; padding: 10px 10px 4px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--sub); }
.dd-finder b { font-weight: 700; color: var(--primary); }
.dd-finder b::after { content: " →"; }
.dd-finder:hover b { text-decoration: underline; text-underline-offset: 3px; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-tels { display: flex; align-items: center; gap: 14px; }
.header-tel { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.header-tel small, .mm-tel small { margin-right: 4px; font-size: 12.5px; font-weight: 600; color: var(--sub); }
.header-tel:hover { color: var(--primary); }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm); height: 40px; padding: 0 14px;
  font-size: 14px; font-weight: 600; color: var(--ink); }
.menu-toggle[aria-expanded="true"] { border-color: var(--primary); color: var(--primary); }

/* 언어 전환 EN | KR */
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--line-strong); }
.lang-switch a { color: var(--sub); padding: 4px 2px; }
.lang-switch a:hover { color: var(--primary); }
.lang-switch a[aria-current] { color: var(--ink); font-weight: 800; }
.kr-badge { display: inline-block; margin-left: 4px; padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 4px;
  font-size: 10.5px; font-weight: 700; line-height: 16px; letter-spacing: .02em; color: var(--sub); vertical-align: 1px; }



/* ---------- 모바일 메뉴 (헤더 아래 전체 폭 패널) ---------- */
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-strong);
  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.mm-nav { padding-top: 20px; padding-bottom: 28px; }
.mm-all { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; font-size: 17px; font-weight: 800; color: var(--primary); }
.mm-all::after { content: "→"; font-weight: 600; }
.mm-note { margin-top: 2px; font-size: 13px; color: var(--sub); }
.mm-visas { margin-top: 8px; border-top: 1px solid var(--line-strong); }
.mm-group { border-bottom: 1px solid var(--line); }
.mm-toggle { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 2px; background: none; border: 0;
  text-align: left; font-size: 16px; font-weight: 700; color: var(--ink); }
.mm-count { font-size: 13px; font-weight: 600; color: var(--sub); }
.mm-toggle::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); margin-right: 6px; transition: transform .15s; flex: none; }
.mm-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
.mm-links { padding: 0 0 14px; display: grid; gap: 2px; }
.mm-links a { display: flex; align-items: baseline; gap: 12px; padding: 9px 10px; border-radius: var(--r-sm); font-size: 15px; color: var(--ink-2); }
.mm-links a:hover, .mm-links a[aria-current="page"] { background: var(--bg-alt); }
.mm-links b { flex: none; min-width: 58px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.mm-links .mm-extra span { font-weight: 600; color: var(--primary); }
.mm-links .mm-extra span::after { content: " →"; }
.mm-quick { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
.mm-quick a { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 12px; border-radius: var(--r-md);
  background: var(--bg-alt); font-size: 15px; font-weight: 700; color: var(--primary); text-align: center; }
.mm-main { margin-top: 16px; border-top: 1px solid var(--line-strong); }
.mm-main a { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 700; }
.mm-main a[aria-current] { color: var(--primary); }
.mm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.mm-actions .btn { height: 50px; padding: 0 12px; }
.mm-actions .btn-primary { grid-column: 1 / -1; }
.mm-lang { margin-top: 18px; justify-content: center; font-size: 15px; }
body.menu-open { overflow: hidden; }

/* ---------- 섹션 공통 ---------- */
.sec { padding: var(--sp-11) 0; }
.sec-alt { background: var(--bg-alt); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.sec-head h2, .sec-title { font-size: var(--fs-h2); line-height: 1.3; font-weight: 700; letter-spacing: -0.03em; }
.sec-head p, .sec-lead { margin-top: 12px; color: var(--sub); font-size: 17px; }
.sec-center { text-align: center; }
.sec-center .sec-lead { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- 사실 띠 ---------- */
.fact-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
  border: 1px solid var(--fact-border); border-radius: var(--r-xl); }
.fact-strip > div { padding: 24px 28px; text-align: center; position: relative; }
.fact-strip > div + div::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 1px; background: var(--line); }
.fact-strip dt { font-size: 14px; color: var(--sub); font-weight: 500; }
.fact-strip dd { margin-top: 2px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--fact-ink); }

/* ---------- 고정 상담 바 (홈) ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bar-bg); color: #fff;
  transform: translateY(110%); transition: transform .25s ease; visibility: hidden; }
.sticky-cta.is-on { transform: translateY(0); visibility: visible; }
.sticky-cta .wrap { height: 88px; display: flex; align-items: center; gap: 24px; }
.sticky-cta strong { display: block; font-size: 19px; font-weight: 700; }
.sticky-cta small { display: block; font-size: 14px; color: rgba(255,255,255,.68); }
.sticky-cta .bar-actions { margin-left: auto; display: flex; gap: 10px; }
.bar-tel { display: flex; flex-direction: column; justify-content: center; height: 56px; padding: 0 22px; border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.4); text-align: center; line-height: 1.25; }
.bar-tel b { font-size: 18px; white-space: nowrap; }
.bar-tel span { font-size: 12px; color: rgba(255,255,255,.7); }
.sticky-cta .btn { height: 56px; padding: 0 30px; }

/* ---------- 단계 타임라인 ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 56px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 2px; background: var(--line-strong); }
.timeline li { position: relative; }
.timeline .step-no { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); height: 40px; }
.timeline .dot { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 6px solid var(--primary); margin: 0 0 18px; position: relative; z-index: 1; }
.timeline h3 { font-size: 18px; font-weight: 700; }
.timeline p { margin-top: 6px; font-size: 15px; color: var(--sub); line-height: 1.6; }
.timeline-note { margin-top: 40px; font-size: 14px; color: var(--sub); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 4px; font-size: 19px; font-weight: 600; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin-right: 8px; transition: transform .2s; flex: none; }
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list details p { padding: 0 4px 26px; color: var(--sub); font-size: 16px; max-width: 820px; }

.guide-banner { margin-top: 32px; display: flex; align-items: center; gap: 20px; padding: 24px 28px; border-radius: 16px; background: var(--banner-bg); border: 1px solid var(--banner-line); }
.guide-banner .tag { flex: none; font-size: 13px; font-weight: 700; color: var(--primary); background: #fff; border: 1px solid var(--banner-line); border-radius: var(--r-sm); padding: 4px 10px; }
.guide-banner strong { display: block; font-size: 17px; }
.guide-banner span { display: block; font-size: 14px; color: var(--sub); }
.guide-banner .go { margin-left: auto; font-size: 22px; color: var(--primary); }

/* ---------- 오시는 길 · 사무소 정보 ---------- */
.visit { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: stretch; }
.map-box { border-radius: var(--r-xl); background: var(--bg-alt); border: 1px solid var(--line); padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; }
.map-box .addr-big { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
.map-box .addr-sub { margin-top: 4px; color: var(--sub); }
.map-box .btn { margin-top: 24px; align-self: flex-start; }
.info-table div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-table div:first-child { border-top: 1px solid var(--line-strong); }
.info-table dt { font-weight: 700; }
.info-table dd { color: var(--sub); }
.info-table dd a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.office-row { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.office-row div { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: #fff; }
.office-row dt { font-size: 13px; color: var(--sub); }
.office-row dd { margin-top: 4px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- 범용 부품: 브레드크럼 ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; color: var(--sub); }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- 범용 부품: 배지·태그 ---------- */
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-xs);
  background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 700; white-space: nowrap; }
.badge-solid { background: var(--primary); color: #fff; }
.badge-line { background: #fff; border: 1px solid var(--line-strong); color: var(--ink-2); }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); }
a.tag:hover { border-color: var(--primary); color: var(--primary); }
.code { font-weight: 800; color: var(--primary); letter-spacing: -0.01em; white-space: nowrap; }

/* ---------- 범용 부품: 카드 ---------- */
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px 26px; }
a.card { transition: border-color .15s; }
a.card:hover { border-color: var(--primary); }
.card-alt { background: var(--bg-alt); border-color: transparent; }
.card h3 { font-size: 18px; font-weight: 700; line-height: 1.5; }
.card p { margin-top: 10px; font-size: 15.5px; color: var(--sub); line-height: 1.7; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- 범용 부품: 탭 (시안 B 상황 선택) — kbv.js [data-tabs] ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs [role="tab"] { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); border-radius: var(--r-pill); height: 38px; padding: 0 14px;
  font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.tabs [role="tab"]:hover { border-color: var(--primary); }
.tabs [role="tab"][aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 범용 부품: 표 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--primary); }
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { font-size: 14px; font-weight: 700; color: var(--sub); background: var(--bg-alt); white-space: nowrap; }
.table tbody th { font-weight: 700; color: var(--ink); width: 28%; }

/* ---------- 범용 부품: 폼 ---------- */
.field { display: grid; gap: 8px; }
.field > label, .field-label { font-size: 15px; font-weight: 700; color: var(--ink); }
.field-help { font-size: 13.5px; color: var(--sub); }
.field-error { font-size: 13.5px; color: var(--danger); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: #fff; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .15s; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.select { appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111827' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--sub); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--primary); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input::placeholder, .textarea::placeholder { color: #8A92A3; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.6; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); cursor: pointer; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fields .full { grid-column: 1 / -1; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.72); font-size: 14px; }
body:has(.sticky-cta) .site-footer { padding-bottom: 88px; }
.site-footer .top { padding-top: 56px; padding-bottom: 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; }
.site-footer .logo { color: #fff; }
.foot-tagline { margin-top: 10px; }
.foot-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: #fff; font-weight: 600; font-size: 15px; }
.foot-links a:hover, .foot-visas a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .kr-badge { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.35); }
.foot-biz { margin-top: 24px; line-height: 1.8; }
.foot-biz .sep { color: rgba(255,255,255,.35); }
.foot-offices { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 2px 24px; line-height: 1.8; }
.foot-offices b { margin-right: 8px; font-weight: 700; color: #fff; }
.foot-note { margin-top: 8px; color: rgba(255,255,255,.6); }
.foot-tel { text-align: right; }
.foot-tel span { display: block; color: rgba(255,255,255,.6); }
.foot-tel a { display: block; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1.25; white-space: nowrap; }
.foot-tel a small { margin-right: 10px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: rgba(255,255,255,.6); }
.foot-tel span + a { margin-top: 4px; }
.foot-visas { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.foot-visas-note { text-align: center; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.foot-visas ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 13px; color: rgba(255,255,255,.62); }

/* ---------- 반응형 ---------- */
@media (max-width: 1180px) {
  .gnb { gap: 18px; }
  .gnb-link { font-size: 15px; }
}
@media (max-width: 1080px) {
  .header-bar { gap: 28px; }
  .gnb { gap: 14px; }
  .gnb-link { font-size: 14.5px; }
  .header-tels { display: none; }
  .office-row { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 메뉴가 메가패널 대신 모바일 메뉴로 바뀌는 폭 */
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .header-bar { gap: 12px; }
  .gnb-row, .header-right > .lang-switch { display: none !important; }
  :root { --gnb-h: 0px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-right { gap: 8px; }
}
@media (min-width: 961px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 760px) {
  :root { --fs-h1: 32px; --fs-h2: 28px; --fs-h3: 22px; --fs-h4: 18px; --fs-body: 16px; }
  .wrap { padding: 0 20px; }
  .topbar { font-size: 12.5px; }
  .topbar .wrap { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
  .logo { font-size: 21px; }
  .sec { padding: var(--sp-9) 0; }
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .fact-strip > div { padding: 18px 12px; }
  .fact-strip > div:nth-child(3)::before { display: none; }
  .fact-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fact-strip dd { font-size: 21px; }
  .sticky-cta .wrap { height: 72px; }
  .sticky-cta .bar-text { display: none; }
  .sticky-cta .bar-actions { margin: 0; width: 100%; }
  .sticky-cta .bar-tel { flex: 1; height: 50px; padding: 0 8px; }
  .sticky-cta .bar-tel b { display: none; }
  .sticky-cta .bar-tel span { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; }
  .sticky-cta .btn { flex: 1.3; height: 50px; padding: 0 12px; }
  body:has(.sticky-cta) .site-footer { padding-bottom: 72px; }
  .timeline { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .timeline::before { left: 10px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .timeline li { padding: 0 0 28px 44px; }
  .timeline .dot { position: absolute; left: 0; top: 4px; margin: 0; }
  .timeline .step-no { height: auto; font-size: 14px; color: var(--sub); }
  .faq-list summary { font-size: 17px; padding: 20px 2px; }
  .guide-banner { flex-wrap: wrap; padding: 20px; }
  .visit { grid-template-columns: 1fr; gap: 24px; }
  .map-box { min-height: 220px; padding: 28px; }
  .map-box .addr-big { font-size: 22px; }
  .info-table div { grid-template-columns: 96px 1fr; }
  .office-row { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
  .office-row div { border: 0; border-radius: 0; display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 18px; }
  .office-row div + div { border-top: 1px solid var(--line); }
  .office-row dd { margin-top: 0; font-size: 15px; }
  .bar-tel b { font-size: 16px; }
  .cards, .fields { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; }
  .foot-tel { text-align: left; }
  .foot-tel a { font-size: 28px; }
  .foot-visas ul { justify-content: flex-start; }
  .foot-visas-note { text-align: left; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
  .mm-quick, .mm-actions { grid-template-columns: 1fr; }
}

/* ---------- 모션 공통 (R24) ----------
 * 키프레임은 끝 상태가 요소의 원래 모습이다. 애니메이션이 끝나거나 꺼져도 화면이 같다.
 * 스크롤 리빌 .rv: kbv.js가 첫 화면 밖 요소에만 붙이고, 등장 애니메이션이 끝나면 클래스를 지운다(원래 hover·transition 복귀).
 */
@keyframes kbv-rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes kbv-rise-sm { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes kbv-drop { from { opacity: 0; transform: translate3d(0, -6px, 0); } to { opacity: 1; transform: none; } }
@keyframes kbv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kbv-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(4px); } }

.rv { opacity: 0; transform: translate3d(0, 22px, 0); }
.rv.rv-in { animation: kbv-rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--rv-delay, 0s); }

/* 헤더 드롭다운·모바일 메뉴·FAQ가 열릴 때 */
.gnb-dd:not([hidden]) { animation: kbv-drop .2s cubic-bezier(.2, .7, .2, 1); }
.mobile-menu:not([hidden]) { animation: kbv-drop .22s cubic-bezier(.2, .7, .2, 1); }
.faq-list details[open] > :not(summary) { animation: kbv-rise-sm .32s cubic-bezier(.2, .7, .2, 1); }
.faq-list summary { transition: color .15s; }
.faq-list summary:hover { color: var(--primary); }

/* 카드 공통 hover */
a.card { transition: border-color .15s, transform .25s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) and (pointer: fine) { a.card:hover { transform: translateY(-3px); } }
a.card:focus-visible { transform: translateY(-3px); }

/* 진행 순서 타임라인: 화면에 들어오면 선이 그려지고 점이 차례로 켜진다(.js-motion일 때만 처음에 숨김) */
.timeline::before { transform-origin: left center; transition: transform 1.2s cubic-bezier(.4, 0, .2, 1); }
.timeline .dot { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background .3s; }
.timeline li:nth-child(2) .dot { transition-delay: .25s; }
.timeline li:nth-child(3) .dot { transition-delay: .5s; }
.timeline li:nth-child(4) .dot { transition-delay: .75s; }
.timeline li:nth-child(5) .dot { transition-delay: 1s; }
.js-motion .timeline:not(.is-in)::before { transform: scaleX(0); }
.js-motion .timeline:not(.is-in) .dot { transform: scale(0); }

/* 문서형 페이지 읽기 진행 막대(kbv.js가 헤더 아래에 넣는다) */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary);
  transform: scaleX(var(--read, 0)); transform-origin: left center; pointer-events: none; }

@media (max-width: 760px) {
  .timeline::before { transform-origin: center top; }
  .js-motion .timeline:not(.is-in)::before { transform: scaleY(0); }
}
