/* ===== CSS Variables ===== */
:root {
  --accent: #2d6a4f;
  --accent-deep: #1b4332;
  --accent-light: #40916c;
  --accent-soft: #d8f3dc;
  --primary: #0d2318;
  --ink: #1a1a1a;
  --ink-soft: #52525b;
  --ink-mute: #9ca3af;
  --paper: #f8fffe;
  --paper-deep: #e9f5ec;
  --line: #d4e6d9;
  --white: #ffffff;
  --shadow: rgba(13,35,24,0.10);
  --shadow-md: rgba(13,35,24,0.16);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1180px;
  --header-h: 76px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: 'Noto Sans KR', 'Pretendard', sans-serif; color: var(--ink); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ===== Container ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* ===== Header ===== */
/* ===== 헤더 (2단 구조) ===== */
#site-header { position: sticky; top: 0; z-index: 900; background: var(--white); box-shadow: 0 2px 12px var(--shadow); }

/* 상단바 */
.header-top-bar { border-bottom: 1px solid var(--line); padding: 10px 0; }
.htb-inner { display: flex; align-items: center; justify-content: space-between; }
.htb-tel { display: flex; align-items: center; gap: 12px; }
.htb-tel-icon { width: 46px; height: 46px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.htb-tel-icon svg { color: #fff; }
.htb-tel-label { font-size: 11px; color: var(--ink-mute); line-height: 1.2; }
.htb-tel-num { font-size: 26px; font-weight: 900; color: var(--ink); letter-spacing: -1px; }
.htb-logo { display: flex; align-items: center; text-decoration: none; }
.htb-logo img { height: 90px; width: auto; }
.htb-logo-text { display: none; }
.htb-links { display: flex; align-items: center; gap: 16px; }
.htb-links a { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-soft); transition: color 0.2s; }
.htb-links a:hover { color: var(--accent); }

/* 네비게이션 바 */
.header-nav-bar { background: var(--white); position: relative; }
.site-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.nav-item { border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.nav-item:first-child { border-left: 1px solid var(--line); }
.nav-link { display: flex; align-items: center; gap: 5px; padding: 10px 10px; font-size: 19px; font-weight: 700; color: var(--ink); white-space: nowrap; transition: color 0.2s; border-bottom: 3px solid transparent; width: 100%; justify-content: center; }
.nav-link:hover, .nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-arrow { font-size: 10px; transition: transform 0.2s; }

/* ===== 전체 메가메뉴 (슬라이드 애니메이션) ===== */
.mega-panel {
  position: absolute; top: 100%; left: -1px; right: -1px;
  background: rgba(55,55,55,0.82);
  z-index: 950; padding: 16px 0 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}
.mega-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.mega-col { padding: 0 20px; border-right: 1px solid rgba(255,255,255,0.12); }
.mega-col:first-child { border-left: 1px solid rgba(255,255,255,0.12); }
.mega-col:last-child { border-right: none; }
.mega-col a { display: block; font-size: 16px; color: rgba(255,255,255,0.85); padding: 8px 0; transition: color 0.15s; white-space: nowrap; }
.mega-col a:hover,
.mega-col.active a:hover { color: #74c69d; }
.mega-col.active a { color: #fff; }
.site-nav:hover .mega-panel,
.mega-panel:hover {
  opacity: 1; visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* 햄버거 */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 모바일 메뉴 드로어 */
.mobile-menu { position: fixed; top: 0; left: -100%; width: 88%; max-width: 340px; height: 100dvh; background: var(--white); border-right: 1px solid var(--line); box-shadow: 4px 0 24px var(--shadow-md); overflow-y: auto; z-index: 999; transition: left 0.3s ease; }
.mobile-menu.open { left: 0; }
.mobile-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 998; }
.mobile-menu-overlay.open { display: block; }
.mobile-nav { padding: 12px 0 80px; }
.mobile-nav-top { padding: 12px 20px; border-bottom: 1px solid var(--line); }
.mobile-nav-top a { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--accent); }
.mob-section { border-bottom: 1px solid var(--line); }
.mob-section-toggle { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: 15px; font-weight: 700; cursor: pointer; }
.mob-section-toggle .arr { font-size: 12px; transition: transform 0.25s; color: var(--ink-mute); }
.mob-section-toggle.open .arr { transform: rotate(180deg); }
.mob-sub { display: none; padding: 4px 0 10px; background: var(--paper); }
.mob-sub.open { display: block; }
.mob-sub-group-title { font-size: 11px; font-weight: 700; color: var(--accent); padding: 8px 24px 2px; }
.mob-sub a { display: block; padding: 9px 28px; font-size: 14px; color: var(--ink-soft); }
.mob-sub a:hover { color: var(--accent); }

/* ===== 우측 사이드바 퀵메뉴 (allbarn 스타일) ===== */
.quick-sidebar { position: fixed; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; z-index: 800; box-shadow: -2px 0 12px var(--shadow); }
.qs-phone { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--accent); color: var(--white); padding: 16px 14px; font-size: 19px; font-weight: 900; line-height: 1.3; letter-spacing: -0.5px; text-decoration: none; transition: background 0.2s; min-width: 72px; }
.qs-phone:hover { background: var(--accent-deep); color: var(--white); }
.qs-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--white); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; padding: 13px 10px; min-width: 72px; text-decoration: none; transition: all 0.2s; cursor: pointer; }
.qs-btn:hover { background: var(--accent-soft); color: var(--accent); }
.qs-btn.qs-top { background: var(--primary); color: var(--white); border-top: none; }
.qs-btn.qs-top:hover { background: var(--accent); }

/* ===== 모바일 하단탭바 ===== */
.mobile-tabbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: var(--white); border-top: 1px solid var(--line); z-index: 800; }
.tabbar-inner { display: grid; grid-template-columns: repeat(5,1fr); height: 100%; }
.tab-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; color: var(--ink-soft); text-decoration: none; padding-bottom: env(safe-area-inset-bottom); transition: color 0.2s; }
.tab-btn:hover, .tab-btn.active { color: var(--accent); }
.tab-btn svg { width: 20px; height: 20px; }

/* ===== 진료시간 모달 ===== */
.hours-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 950; align-items: center; justify-content: center; }
.hours-modal-overlay.open { display: flex; }
.hours-modal { background: var(--white); border-radius: var(--radius-lg); padding: 32px; max-width: 480px; width: 94%; max-height: 90vh; overflow-y: auto; }
.hours-modal h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.hours-modal .close-btn { font-size: 22px; cursor: pointer; color: var(--ink-mute); line-height: 1; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table th { background: var(--primary); color: var(--white); padding: 10px 14px; text-align: left; font-weight: 600; }
.hours-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); background: var(--paper-deep); padding: 12px; border-radius: 8px; }

/* ===== 페이지 히어로 (서브페이지) ===== */
.page-hero {
  background:
    linear-gradient(rgba(10, 30, 60, 0.48), rgba(10, 30, 60, 0.48)),
    url('../images/hero_wave_bg.webp') right center/cover no-repeat;
  color: var(--white);
  padding: 56px 0 48px;
}
.page-hero h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 10px; }
.page-hero .subtitle { font-size: 15px; opacity: 0.82; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: 0.72; margin-top: 18px; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb-sep { opacity: 0.5; }

/* ===== 콘텐츠 섹션 ===== */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-gray { background: var(--paper); }
.section-green { background: var(--accent-soft); }
.section-dark { background: var(--primary); color: var(--white); }
.section-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.section-title.light { color: var(--white); }
.section-desc { font-size: 16px; color: var(--ink-soft); margin-bottom: 40px; }
.section-desc.light { color: rgba(255,255,255,0.82); }
.text-center { text-align: center; }

/* ===== 카드 ===== */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 8px 32px var(--shadow-md); transform: translateY(-3px); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-title { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.card-text { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.card-link { margin-top: 14px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* ===== 질환/치료 콘텐츠 페이지 ===== */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.content-main { }
.content-sidebar { position: sticky; top: 100px; }
.sidebar-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; }
.sidebar-box h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 14px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.sidebar-box ul li { font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a { color: var(--ink-soft); }
.sidebar-box ul li a:hover { color: var(--accent); }
.sidebar-cta { background: var(--primary); color: var(--white); border-radius: var(--radius-lg); padding: 22px; text-align: center; }
.sidebar-cta h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.sidebar-cta p { font-size: 13px; opacity: 0.8; margin-bottom: 14px; }
.sidebar-cta a { display: block; background: var(--accent); color: var(--white); border-radius: 24px; padding: 11px; font-size: 15px; font-weight: 700; transition: background 0.2s; }
.sidebar-cta a:hover { background: var(--accent-light); }

.content-section { margin-bottom: 40px; }
.content-section h2 { font-size: 20px; font-weight: 800; color: var(--primary); border-left: 4px solid var(--accent); padding-left: 14px; margin-bottom: 16px; }
.content-section h3 { font-size: 17px; font-weight: 700; color: var(--accent-deep); margin: 16px 0 10px; }
.content-section p { font-size: 15px; line-height: 1.85; color: var(--ink-soft); margin-bottom: 12px; }
.content-section ul { margin-bottom: 12px; }
.content-section ul li { font-size: 15px; color: var(--ink-soft); padding: 5px 0 5px 18px; position: relative; line-height: 1.6; }
.content-section ul li::before { content: '•'; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

.info-box { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin-bottom: 16px; }
.info-box p { color: var(--ink); margin: 0; }

.symptom-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.symptom-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; color: var(--ink-soft); border-left: 3px solid var(--accent); }

.treat-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.treat-tag { background: var(--accent-soft); color: var(--accent-deep); border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.2s; }
.treat-tag:hover { background: var(--accent); color: var(--white); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; font-size: 17px; font-weight: 600; color: var(--ink); background: var(--white); transition: background 0.15s; gap: 12px; }
.faq-q:hover { background: var(--paper); }
.faq-q.open { background: var(--accent); color: var(--white); }
.faq-arrow { font-size: 14px; transition: transform 0.25s; flex-shrink: 0; }
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 18px 22px; font-size: 16px; color: var(--ink-soft); background: var(--paper); line-height: 1.8; border-top: 1px solid var(--line); }
.faq-a.open { display: block; }

/* ===== 게시판 ===== */
.board-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.board-tab { padding: 8px 18px; border-radius: 24px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); cursor: pointer; transition: all 0.2s; background: var(--white); color: var(--ink-soft); }
.board-tab.active, .board-tab:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.board-grid { display: grid; gap: 16px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 20px; align-items: flex-start; transition: box-shadow 0.2s; cursor: pointer; }
.post-card:hover { box-shadow: 0 4px 20px var(--shadow); }
.post-card-thumb { width: 100px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.post-card-body { flex: 1; min-width: 0; }
.post-card-cat { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.post-card-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-card-excerpt { font-size: 13px; color: var(--ink-soft); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.post-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--ink-mute); margin-top: 10px; }
.board-empty { text-align: center; padding: 60px 0; color: var(--ink-mute); font-size: 15px; }
.load-more-btn { display: block; margin: 28px auto 0; padding: 12px 36px; background: var(--white); border: 2px solid var(--accent); color: var(--accent); border-radius: 24px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.load-more-btn:hover { background: var(--accent); color: var(--white); }

/* ===== Q&A ===== */
.qna-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; max-width: 640px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; font-family: inherit; color: var(--ink); background: var(--white); transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit { background: var(--accent); color: var(--white); padding: 12px 32px; border-radius: 24px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.btn-submit:hover { background: var(--accent-deep); }

/* ===== 비급여 테이블 ===== */
.nonpay-table-wrap { overflow-x: auto; }
.nonpay-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nonpay-table th { background: var(--primary); color: var(--white); padding: 12px 16px; text-align: left; font-weight: 600; }
.nonpay-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.nonpay-table tr:nth-child(even) td { background: var(--paper); }
.nonpay-table tr:hover td { background: var(--accent-soft); }

/* ===== 글 상세 ===== */
.post-detail { max-width: 800px; margin: 0 auto; }
.post-header { margin-bottom: 32px; border-bottom: 2px solid var(--line); padding-bottom: 24px; }
.post-header h1 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.post-meta { display: flex; gap: 16px; font-size: 13px; color: var(--ink-mute); }
.post-body { font-size: 15px; line-height: 1.9; color: var(--ink-soft); }
.post-body img { border-radius: var(--radius); margin: 20px 0; max-width: 100%; }
.post-body table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.post-body table th { background: var(--primary); color: var(--white); padding: 10px; }
.post-body table td { border: 1px solid var(--line); padding: 10px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 32px; }
.back-btn:hover { text-decoration: underline; }

/* ===== 푸터 ===== */
#site-footer { background: var(--primary); color: rgba(255,255,255,0.82); }
.footer-top { padding: 56px 0 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-info p { font-size: 13px; line-height: 1.8; margin-bottom: 4px; }
.footer-info a { color: rgba(255,255,255,0.82); }
.footer-info a:hover { color: var(--white); }
.footer-menu h4 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer-menu ul li { margin-bottom: 8px; }
.footer-menu ul li a { font-size: 13px; color: rgba(255,255,255,0.72); transition: color 0.2s; }
.footer-menu ul li a:hover { color: var(--white); }
.footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ===== 오시는길 ===== */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; }
.info-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info-card h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.info-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

/* ===== 의료장비 ===== */
.equipment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.equipment-item { text-align: center; }
.equipment-item img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 14px; }
.equipment-item h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.equipment-item p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }

/* ===== 팝업 ===== */
.popup-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999; align-items: center; justify-content: center; padding: 20px; }
.popup-overlay.open { display: flex; }
.popup-box { background: var(--white); border-radius: var(--radius-lg); max-width: 480px; width: 100%; overflow: hidden; }
.popup-close-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.popup-close-row button { font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.popup-img { width: 100%; max-height: 420px; object-fit: cover; cursor: pointer; }
.popup-text-body { padding: 24px; }
.popup-text-body h3 { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.popup-text-body p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
  .submenu-wide { min-width: 420px; }
  .submenu-wide .cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .site-nav, .header-nav-bar, .htb-links { display: none; }
  .hamburger { display: flex; }
  .mobile-tabbar { display: block; }
  .quick-sidebar { display: none; }
  body { padding-bottom: 60px; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .symptom-grid { grid-template-columns: 1fr; }
  .info-grid-2 { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .footer-info { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 48px 0; }
  /* 모든 서브페이지 히어로 패딩 축소 */
  .page-hero,
  .intro-page-hero,
  .dr-hero,
  .equip-page-hero,
  .loc-page-hero,
  .sched-page-hero,
  .care-hero { padding: 10px 0 !important; }
  .page-hero h1, .intro-page-hero h1, .dr-hero h1,
  .equip-page-hero h1, .loc-page-hero h1, .sched-page-hero h1,
  .care-hero h1 { font-size: 19px; margin-bottom: 2px; }
  .page-hero .subtitle, .intro-page-hero p, .dr-hero p,
  .equip-page-hero p, .loc-page-hero p, .sched-page-hero p,
  .care-hero p { font-size: 13px; }
  .breadcrumb { font-size: 11px; margin-top: 4px; }
  .post-card { flex-direction: column; }
  .post-card-thumb { width: 100%; height: 160px; }
  /* 컨테이너 패딩 축소 */
  .container { padding: 0 16px; }
  /* 헤더 전화번호 숨김 */
  .htb-tel { display: none; }
  .htb-links { display: none; }
  /* 헤더: 로고 중앙, 햄버거 오른쪽 끝 */
  .header-top-bar .htb-inner { justify-content: center; position: relative; }
  .htb-logo img { height: 60px; }
  .hamburger { position: absolute !important; right: 0; top: 50%; transform: translateY(-50%); }
  /* 섹션 제목 크기 조정 */
  .section-title { font-size: 22px !important; }
  .section-desc { font-size: 14px !important; }
  /* 콘텐츠 레이아웃 */
  .content-layout { grid-template-columns: 1fr; gap: 24px; }
  /* 테이블 가로 스크롤 */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* 긴 URL/텍스트 넘침 방지 */
  * { word-break: keep-all; overflow-wrap: break-word; }
  /* 이미지 최대폭 */
  img { max-width: 100%; height: auto; }
  /* 푸터 폰트 */
  .footer-logo-name { font-size: 15px; }
  .footer-menu h4 { font-size: 13px; }
}

/* pain 서브탭 모바일 */
@media (max-width: 767px) {
  .pain-subnav { padding: 16px 0 0 !important; }
  .pain-subnav-tabs {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 12px;
  }
  .pain-subnav-tabs::-webkit-scrollbar { display: none; }
  .pain-subnav-tabs a {
    padding: 10px 14px !important;
    font-size: 14px !important;
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* location 모바일 max-height 해제 */
@media (max-width: 1024px) {
  .location-grid { max-height: none !important; overflow: visible !important; }
}
