/* 케이병원 공통 디자인 (2026-11-22) — 믿음 가는 파란색 + 민트, 넓은 여백, 15개 언어(아랍어 오른쪽→왼쪽 포함) */
:root {
  --pri: #1257d6; --pri-d: #0b3f9e; --pri-l: #e8f0fe; --mint: #0fb5a5; --mint-l: #e2f7f4;
  --ink: #0e1b33; --ink2: #3b4a63; --mute: #6b7a90; --line: #e3e9f2; --bg: #f4f7fb; --card: #fff;
  --bad: #d93838; --warn: #d98a1c; --ok: #13a05b; --r: 14px; --sh: 0 4px 18px rgba(16, 42, 90, .07);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans Thai', 'Noto Sans Arabic', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15.5px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.hide { display: none !important; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -.01em; }

/* ---------- 머리말 ---------- */
.kh-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.kh-header .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.kh-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.kh-user { margin-inline-start: auto; }
.kh-logo svg { width: 36px; height: 36px; }
.kh-logo b { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.kh-logo b span { color: var(--pri); }
.kh-logo small { display: block; font-size: 10.5px; color: var(--mute); letter-spacing: .08em; margin-top: -3px; }
.kh-nav { display: flex; gap: 4px; flex: 1; }
.kh-nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.kh-nav a:hover, .kh-nav a.on { background: var(--pri-l); color: var(--pri); }
.kh-user { display: flex; align-items: center; gap: 8px; }
.kh-user a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.kh-user a.primary { background: var(--pri); color: #fff; }
.lang-sel { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; height: 38px; background: #fff; cursor: pointer; }
.lang-sel select { border: 0; background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; outline: none; max-width: 120px; }
.kh-burger { display: none; flex-shrink: 0; width: 42px; height: 42px; border: 0; background: none; padding: 9px; cursor: pointer; }
.kh-burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
.kh-drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; overflow: hidden; }
.kh-drawer.open { visibility: visible; }
.kh-drawer-bg { position: absolute; inset: 0; background: rgba(8, 20, 40, .45); opacity: 0; transition: .2s; }
.kh-drawer.open .kh-drawer-bg { opacity: 1; }
.kh-drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(330px, 86vw); background: #fff; padding: 18px; overflow-y: auto; transform: translateX(100%); transition: .22s; }
[dir=rtl] .kh-drawer-panel { transform: translateX(-100%); }
.kh-drawer.open .kh-drawer-panel { transform: none; }
.kh-drawer-panel a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--line); font-weight: 600; }
.kh-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kh-drawer-x { border: 0; background: none; font-size: 22px; cursor: pointer; }

/* ---------- 버튼 · 입력 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 11px; padding: 11px 18px; font-weight: 700; font-size: 15px; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-pri { background: var(--pri); color: #fff; }
.btn-pri:hover:not(:disabled) { background: var(--pri-d); }
.btn-mint { background: var(--mint); color: #fff; }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--pri); color: var(--pri); }
.btn-soft { background: var(--pri-l); color: var(--pri); }
.btn-bad { background: var(--bad); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 16.5px; }
.btn-block { width: 100%; }
.field { margin-bottom: 14px; }
.field > label, .lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--ink2); }
.field .req { color: var(--bad); margin-inline-start: 2px; }
.inp, select.inp, textarea.inp { width: 100%; border: 1px solid #d3dbe8; border-radius: 10px; padding: 11px 12px; background: #fff; font-size: 15px; outline: none; transition: .15s; }
.inp:focus { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(18, 87, 214, .12); }
textarea.inp { min-height: 110px; resize: vertical; line-height: 1.6; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.hint { font-size: 12.5px; color: var(--mute); margin-top: 5px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; margin: 8px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--pri); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 14px; cursor: pointer; user-select: none; font-weight: 600; color: var(--ink2); }
.pill input { display: none; }
.pill.on, .pill:has(input:checked) { border-color: var(--pri); background: var(--pri-l); color: var(--pri); }

/* ---------- 카드 · 칩 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.pad { padding: 22px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: #eef2f8; color: var(--ink2); font-weight: 600; white-space: nowrap; }
.tag.pri { background: var(--pri-l); color: var(--pri); }
.tag.mint { background: var(--mint-l); color: #087d72; }
.tag.warn { background: #fff4e0; color: #a96300; }
.tag.bad { background: #fde8e8; color: var(--bad); }
.tag.ok { background: #e3f6ec; color: var(--ok); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sec { padding: 54px 0; }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 22px; }
.sec-h h2 { font-size: 26px; font-weight: 800; }
.sec-h a { color: var(--pri); font-weight: 700; font-size: 14.5px; white-space: nowrap; }

/* 진료과 동그라미 */
.dept-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.dept { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); text-align: center; transition: .15s; }
.dept:hover { border-color: var(--dc, var(--pri)); transform: translateY(-2px); box-shadow: var(--sh); }
.dept .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: color-mix(in srgb, var(--dc, #1257d6) 12%, #fff); }
.dept span { font-size: 13.5px; font-weight: 700; line-height: 1.3; }

/* 병원 카드 */
.h-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.h-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: .15s; position: relative; }
.h-card:hover { box-shadow: 0 10px 28px rgba(16, 42, 90, .12); transform: translateY(-2px); }
.h-card .ph { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #dfe9fb, #e3f6f3); display: grid; place-items: center; font-size: 46px; overflow: hidden; }
.h-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.h-card .bd { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.h-card h3 { font-size: 17.5px; font-weight: 800; }
.h-card .sub { font-size: 13px; color: var(--mute); }
.h-card .intro { font-size: 14px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-card .ft { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13.5px; }
.h-card .price { font-weight: 800; color: var(--pri); }
.h-card .flag-s { position: absolute; top: 10px; inset-inline-start: 10px; }
.sample-badge { position: absolute; top: 10px; inset-inline-end: 10px; background: rgba(14, 27, 51, .78); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 999px; font-weight: 700; }

/* 의사 카드 */
.d-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.d-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; transition: .15s; }
.d-card:hover { box-shadow: var(--sh); border-color: #c9d7ef; }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--pri-l); display: grid; place-items: center; font-size: 32px; color: var(--pri); font-weight: 800; flex-shrink: 0; }
.d-card h3 { font-size: 16.5px; font-weight: 800; }
.d-card, .h-card, .pop, .svc, .dept { min-width: 0; }
.d-card .tag, .h-card .tag { white-space: normal; text-align: center; }
.d-card .t { font-size: 13px; color: var(--mute); }

/* ---------- 처음 화면 ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(15, 181, 165, .22), transparent 60%), linear-gradient(160deg, #0b2a66 0%, #1257d6 62%, #2a7be8 100%); color: #fff; padding: 64px 0 74px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset-inline-end: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, .05); }
.hero .badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: 6px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.hero h1 { font-size: 44px; font-weight: 800; margin: 18px 0 12px; max-width: 760px; letter-spacing: -.025em; }
.hero p.s { font-size: 18px; opacity: .9; max-width: 640px; margin: 0 0 28px; }
.hero-search { display: flex; gap: 8px; background: #fff; border-radius: 16px; padding: 8px; max-width: 720px; box-shadow: 0 14px 40px rgba(0, 0, 0, .18); position: relative; z-index: 2; }
.hero-search input { flex: 1; border: 0; outline: none; font-size: 16.5px; padding: 10px 12px; color: var(--ink); min-width: 0; background: transparent; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; z-index: 2; }
.hero-quick a { background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.hero-quick a:hover { background: rgba(255, 255, 255, .25); }
.stats { display: flex; gap: 34px; margin-top: 34px; position: relative; z-index: 2; }
.stats b { display: block; font-size: 28px; font-weight: 800; }
.stats span { font-size: 13.5px; opacity: .85; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; position: relative; }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--pri-l); color: var(--pri); display: grid; place-items: center; font-size: 21px; margin-bottom: 12px; }
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.svc { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 700; font-size: 14.5px; }
.svc .ic { font-size: 24px; }
.pop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pop { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: .15s; }
.pop:hover { border-color: var(--pri); }
.pop b { font-size: 15px; display: block; }
.pop small { color: var(--mute); font-size: 12.5px; }
.pop .ic { font-size: 22px; }
.cta-band { background: linear-gradient(120deg, #0e1b33, #173a7a); color: #fff; border-radius: 20px; padding: 34px 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cta-band h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .85; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; color: var(--pri); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--ink2); }
.notice-box { background: #fff8e8; border: 1px solid #f4dfae; color: #7a5300; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.info-box { background: var(--pri-l); border: 1px solid #cfdcf7; color: #18408f; border-radius: 12px; padding: 12px 14px; font-size: 14px; }

/* ---------- 목록 화면 ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 30px 0 22px; }
.page-head h1 { font-size: 28px; font-weight: 800; }
.page-head p { margin: 6px 0 0; color: var(--mute); }
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; padding: 26px 0 60px; align-items: start; }
.filters { position: sticky; top: 86px; }
.filters .card { padding: 18px; }
.filters h4 { margin: 16px 0 8px; font-size: 14px; color: var(--ink2); }
.filters h4:first-child { margin-top: 0; }
.list-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.searchbar { display: flex; gap: 8px; }
.searchbar .inp { min-width: 0; }
.empty { text-align: center; padding: 50px 20px; color: var(--mute); }
.empty .ic { font-size: 44px; margin-bottom: 8px; }

/* ---------- 상세 화면 ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 380px; border-radius: 18px; overflow: hidden; margin-top: 20px; }
.gallery > div { background: linear-gradient(135deg, #dfe9fb, #e3f6f3); display: grid; place-items: center; font-size: 60px; overflow: hidden; cursor: zoom-in; }
.gallery > div:first-child { grid-row: span 2; }
.gallery.one { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 320px; }
.gallery.one > div:first-child { grid-row: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 26px; padding: 24px 0 70px; align-items: start; }
.detail > *, .layout > *, .d-title > div { min-width: 0; }
.d-title { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.d-title .logo { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--line); object-fit: contain; background: #fff; flex-shrink: 0; }
.d-title h1 { font-size: 30px; font-weight: 800; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 22px 0 18px; position: sticky; top: 66px; background: var(--bg); z-index: 5; overflow-x: auto; }
.tabs a { padding: 12px 14px; font-weight: 700; color: var(--mute); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--pri); border-color: var(--pri); }
.blk { margin-bottom: 30px; scroll-margin-top: 130px; }
.blk > h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.prose { white-space: pre-line; color: var(--ink2); }
.side-box { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 10px; }
.tr-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.tr-table th, .tr-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: start; font-size: 14.5px; vertical-align: top; }
.tr-table th { background: #f7f9fd; font-size: 13px; color: var(--mute); }
.tr-table tr:last-child td { border-bottom: 0; }
.tr-table .price { font-weight: 800; color: var(--pri); white-space: nowrap; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 14.5px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 10px; cursor: pointer; text-align: start; font-size: 13.5px; line-height: 1.35; }
.slot b { display: block; font-size: 14.5px; }
.slot small { color: var(--mute); }
.slot.on { border-color: var(--pri); background: var(--pri-l); }
.slot-day { font-weight: 800; margin: 14px 0 8px; font-size: 14.5px; }

/* ---------- 예약 · 메시지 ---------- */
.narrow { max-width: 760px; margin: 0 auto; padding: 28px 20px 70px; }
.bk-item { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
.bk-item .ic { font-size: 28px; }
.bk-item .bd { flex: 1; min-width: 0; }
.bk-item b { display: block; font-size: 16px; }
.dot { display: inline-block; min-width: 20px; height: 20px; border-radius: 10px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 800; text-align: center; line-height: 20px; padding: 0 6px; }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; padding: 14px; background: #f7f9fd; border-radius: 12px; border: 1px solid var(--line); }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: var(--pri); color: #fff; border-color: var(--pri); }
.msg .meta { font-size: 11.5px; opacity: .7; margin-top: 4px; display: flex; gap: 8px; align-items: center; }
.msg .tr { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(127, 127, 127, .35); }
.msg button.lnk { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: 11.5px; opacity: .9; }
.msg.sys { align-self: center; background: transparent; border: 0; color: var(--mute); font-size: 13px; padding: 2px; }
.composer { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.composer textarea { min-height: 46px; height: 46px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13px; cursor: pointer; }
.prop { border: 2px solid var(--mint); background: var(--mint-l); border-radius: 14px; padding: 16px; }

/* ---------- 일정표 ---------- */
.timeline .day { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }
.timeline .day-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #f7f9fd; border-bottom: 1px solid var(--line); font-weight: 800; }
.timeline .it { display: grid; grid-template-columns: 64px 34px 1fr auto; gap: 10px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.timeline .it:last-child { border-bottom: 0; }
.timeline .it .tm { font-weight: 800; color: var(--pri); font-size: 14px; }
.timeline .it .k { font-size: 20px; }
.timeline .it b { display: block; font-size: 15px; }
.timeline .it small { color: var(--mute); }
.timeline .it .x { border: 0; background: none; cursor: pointer; color: var(--mute); font-size: 16px; }

/* ---------- 꼬리말 ---------- */
.kh-footer { background: #0e1b33; color: #b8c3d6; padding: 40px 0 46px; font-size: 13.5px; }
.kh-footer .top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.kh-footer b { color: #fff; font-size: 17px; }
.kh-footer .links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.kh-footer .links a:hover { color: #fff; }
.kh-footer .disc { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; line-height: 1.7; opacity: .85; }

/* ---------- 알림 창 ---------- */
.modal-dim { position: fixed; inset: 0; background: rgba(8, 20, 40, .5); z-index: 200; display: none; align-items: center; justify-content: center; padding: 18px; }
.modal-dim.open { display: flex; }
.modal { background: #fff; border-radius: 18px; padding: 24px; width: min(440px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal.wide { width: min(760px, 100%); }
.modal h3 { font-size: 19px; margin-bottom: 10px; }
.modal p { color: var(--ink2); margin: 0 0 16px; }
.modal .btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); background: #0e1b33; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14.5px; opacity: 0; transition: .25s; z-index: 300; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.auth-box { max-width: 440px; margin: 40px auto 70px; padding: 30px 28px; }
.auth-box h1 { font-size: 24px; font-weight: 800; margin-bottom: 18px; text-align: center; }
.float-help { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 40; display: flex; flex-direction: column; gap: 8px; }
.float-help a { width: 52px; height: 52px; border-radius: 50%; background: var(--pri); color: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 8px 22px rgba(18, 87, 214, .35); }

/* ---------- 휴대폰 ---------- */
@media (max-width: 1080px) {
  .kh-nav { display: none; }
  .kh-burger { display: block; }
  .dept-grid { grid-template-columns: repeat(4, 1fr); }
  .d-grid { grid-template-columns: repeat(3, 1fr); }
  .h-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .svc-grid, .pop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .layout, .detail { grid-template-columns: 1fr; }
  .filters, .side-box { position: static; }
  .gallery { height: 240px; grid-template-columns: 2fr 1fr; }
  .gallery > div:nth-child(n+4) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .kh-header .wrap { height: 58px; gap: 8px; }
  .kh-logo small, .hide-m { display: none !important; }
  .kh-logo b { font-size: 17px; }
  .lang-sel select { max-width: 86px; font-size: 13px; }
  .kh-user a { padding: 7px 9px; font-size: 13.5px; }
  .kh-logo svg { width: 30px; height: 30px; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 29px; }
  .hero p.s { font-size: 15.5px; }
  .hero-search { flex-direction: column; }
  .stats { gap: 22px; }
  .stats b { font-size: 22px; }
  .sec { padding: 38px 0; }
  .sec-h h2 { font-size: 21px; }
  .dept-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .dept { padding: 12px 2px; }
  .dept .ic { width: 44px; height: 44px; font-size: 22px; }
  .dept span { font-size: 12px; }
  .h-grid, .steps, .svc-grid, .pop-grid { grid-template-columns: 1fr; }
  .d-grid { grid-template-columns: repeat(2, 1fr); }
  .row2, .row3 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .d-title h1 { font-size: 23px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .timeline .it { grid-template-columns: 50px 26px 1fr auto; padding: 10px 12px; }
  .auth-box { margin: 20px 12px 50px; padding: 24px 18px; }
  .tr-table th:nth-child(3), .tr-table td:nth-child(3) { display: none; }
  .tr-table th, .tr-table td { padding: 10px 8px; }
  .tr-table .price { white-space: normal; }
  .tr-table .btn { white-space: normal; padding: 6px 9px; font-size: 12.5px; }
}
@media (max-width: 420px) {
  .kh-user a.primary { display: none; }
}
@media print {
  .kh-header, .kh-footer, .no-print, .float-help { display: none !important; }
  body { background: #fff; }
}
