/* =========================================================
   수원 바를정한의원 공통 스타일
   - 페이지 구성 : bareulyeon.com 방식 (여백 넓은 화이트 + 카키 베이지 띠, 선 카드, 중앙 심볼 + 제목)
   - 글자 톤앤매너 · 메뉴 · 내용 · 사진 : danaan-sw.com (수원 바를정한의원 기존 홈페이지)
   ========================================================= */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --primary: #1a3369;        /* 딥 네이비 (버튼 · 강조) */
  --primary-dark: #0f2148;
  --primary-light: #e9edf5;
  --accent: #a68a5b;         /* 골드 (라벨 · 포인트) */
  --accent-dark: #8c7148;
  --accent-light: #d9c6a3;
  --band: #e6e5d4;           /* 카키 베이지 띠 (주요진료과목 · 알아보기 · 푸터) */
  --band-soft: #f3f2e8;      /* 연한 베이지 띠 (서브 섹션 교차 배경) */
  --band-deep: #a6a798;      /* 서브 배너 회카키 */
  --ivory: #f3f2e8;
  --ivory-dark: #e6e5d4;
  --text: #333333;
  --muted: #777770;
  --line: #d9d8cc;
  --line-dark: #8f8f86;      /* 선 카드 테두리 */
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(15, 33, 72, 0.08);
  --header-h: 90px;
  --container: 1180px;
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --eng: 'Montserrat', 'Pretendard', sans-serif;
  --logo: 'Pretendard', 'Noto Sans KR', sans-serif; /* 로고 워드마크 — AI 원본 폰트 확인 후 교체 */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); }

/* ---------- 버튼 (바를연 : 얇은 선 알약 버튼) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 30px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: all .2s ease; border: 1px solid var(--text); cursor: pointer; line-height: 1.3; background: #fff; color: var(--text);
}
.btn:hover { background: var(--text); color: #fff; }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-outline:hover { background: #fff; color: var(--text); }
.btn-outline-dark { border-color: var(--text); color: var(--text); background: #fff; }
.btn-outline-dark:hover { background: var(--text); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-kakao { background: #fee500; color: #3c1e1e; border-color: #fee500; }
.btn-kakao:hover { background: #f5dc00; color: #3c1e1e; }
.btn-naver { background: #03c75a; color: #fff; border-color: #03c75a; }
.btn-naver:hover { background: #02b04f; color: #fff; }

/* ---------- 헤더 / GNB (바를연 : 흰 배경, 로고 좌측 · 메뉴 우측) ---------- */
.gnb-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--line); }
.gnb-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 28px;
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.gnb-logo { display: flex; align-items: center; gap: 12px; }
.gnb-logo img { height: 46px; width: auto; }
.gnb-wordmark { font-family: var(--logo); font-size: 26px; font-weight: 300; color: #222; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.gnb-wordmark small { display: block; font-family: var(--eng); font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .22em; margin-bottom: 4px; }
.gnb-menu { display: flex; align-items: center; gap: 0; }
.gnb-menu > li { position: relative; }
.gnb-menu > li > a {
  display: block; padding: 33px 18px; font-weight: 500; font-size: 16px; color: var(--text);
  transition: color .2s; white-space: nowrap; position: relative;
}
.gnb-menu > li > a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 26px; height: 2px; background: var(--text); transform: scaleX(0); transition: transform .2s; }
.gnb-menu > li:hover > a::after, .gnb-menu > li.active > a::after { transform: scaleX(1); }
.gnb-menu > li:hover > a, .gnb-menu > li.active > a { color: var(--text); font-weight: 700; }
.gnb-submenu {
  position: absolute; top: calc(100% - 18px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 190px; background: #fff; border-radius: 10px; box-shadow: var(--shadow);
  padding: 10px 0; opacity: 0; visibility: hidden; transition: all .2s ease; border: 1px solid var(--line);
}
.gnb-menu > li:hover .gnb-submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.gnb-submenu a { display: block; padding: 9px 22px; font-size: 14.5px; color: var(--text); white-space: nowrap; text-align: center; }
.gnb-submenu a:hover, .gnb-submenu li.active a { background: var(--band-soft); font-weight: 600; }
.gnb-cta > a { font-weight: 500; }
.gnb-tel { display: none; }
.gnb-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px; padding: 8px;
}
.gnb-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }

/* ---------- 메인 비주얼 슬라이더 (바를연 : 사진 위 중앙 심볼 + 카피 + 버튼 1개 + 점) ---------- */
.hero { position: relative; height: 640px; overflow: hidden; background: #6b6b60; color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide video, .hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.68); }
.hero-slide .hero-content { position: relative; z-index: 2; max-width: 900px; width: 100%; padding: 0 24px; }
.hero-content .hero-symbol { width: 88px; margin: 0 auto 26px; filter: brightness(0) invert(1); opacity: .95; }
.hero-content .hero-eyebrow { display: block; font-size: 15px; letter-spacing: .1em; margin-bottom: 14px; opacity: .92; }
.hero-content h1, .hero-content h2 { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1.35; text-shadow: 0 2px 14px rgba(0,0,0,.3); margin-bottom: 18px; }
.hero-content p { font-size: 17px; line-height: 1.75; opacity: .95; margin: 0 auto 30px; max-width: 760px; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.hero-content .btn { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); padding: 11px 28px; font-weight: 500; }
.hero-content .btn:hover { background: #fff; color: var(--text); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; display: flex; justify-content: center; gap: 9px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: all .2s; }
.hero-dots button.active { background: #fff; transform: scale(1.2); }

/* ---------- 진료시간 · 예약 및 상담문의 (바를연 2단 스트립) ---------- */
.info-strip { padding: 80px 0 70px; }
.info-strip .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.info-strip h3 { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.info-strip h3 svg { width: 22px; height: 22px; }
.hours-rows { display: grid; gap: 8px; padding-left: 14px; }
.hours-rows li { display: grid; grid-template-columns: 62px 1fr; gap: 14px; font-size: 15.5px; }
.hours-rows li b { font-weight: 500; letter-spacing: .1em; color: var(--text); }
.hours-rows li span { color: #444; }
.hours-rows li.closed span { color: var(--primary); font-weight: 600; letter-spacing: .1em; }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; padding-left: 14px; }
.pill-row .btn { padding: 11px 26px; font-weight: 600; font-size: 15px; }
.strip-notice { margin-top: 30px; padding: 0 0 0 14px; }
.strip-notice h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; display: flex; justify-content: space-between; }
.strip-notice h4 a { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.news-list li { border-bottom: 1px dashed var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list a { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 14.5px; color: #444; }
.news-list a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.news-list a:hover { color: var(--primary); }
.news-list time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.strip-notice .news-list li:nth-child(n+4) { display: none; }

/* ---------- 공통 섹션 ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--band-soft); }
.section-band { background: var(--band); }
.section-dark { background: var(--primary-dark); color: #fff; }
.section-navy { background: var(--primary); color: #fff; }
.section-head { text-align: center; margin-bottom: 54px; }
.section-symbol { width: 74px; margin: 0 auto 18px; opacity: .85; }
.section-eyebrow { display: block; color: var(--accent); font-weight: 600; letter-spacing: .16em; font-size: 12.5px; margin-bottom: 10px; font-family: var(--eng); }
.section-title { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.35; color: var(--text); letter-spacing: .04em; }
.section-dark .section-title, .section-navy .section-title { color: #fff; }
.section-title em { font-style: normal; color: var(--accent); }
.section-desc { color: var(--muted); margin: 14px auto 0; max-width: 720px; font-size: 15.5px; }
.section-dark .section-desc, .section-navy .section-desc { color: rgba(255,255,255,.82); }
.section-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 600; color: var(--text); font-size: 14px; border-bottom: 1px solid var(--text); padding-bottom: 2px; }
.section-more:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- 주요진료과목 / 진료과목 알아보기 (선 카드 : 아이콘 + 이름 + 해시태그) ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.dept-grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dept-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.dept-etc { margin-top: 22px; font-size: 14px; color: var(--muted); }
.dept-etc a { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.dept-card {
  border: 1px solid var(--line-dark); border-radius: 12px; padding: 26px 14px 22px; text-align: center; background: transparent;
  transition: all .25s; display: flex; flex-direction: column; align-items: center; min-height: 190px;
}
.dept-card:hover { background: #fff; border-color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow); }
.dept-card .ico { width: 46px; height: 46px; margin-bottom: 14px; color: var(--text); }
.dept-card .ico svg { width: 100%; height: 100%; }
.dept-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--text); letter-spacing: .02em; }
.dept-card .tags { font-size: 12.5px; color: #555; line-height: 1.6; letter-spacing: -.01em; }

/* ---------- 원장 약력 (사진 좌측 · 라벨형 약력 우측) ---------- */
.director { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start; }
.director .photo img { width: 100%; max-width: 420px; }
.director .photo { position: relative; }
.director .photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, #fff); }
.director-list { display: grid; gap: 22px; padding-top: 34px; }
.director-list dl { display: grid; grid-template-columns: 96px 1fr; gap: 18px; margin: 0; }
.director-list dt { font-weight: 700; font-size: 15.5px; letter-spacing: .3em; color: var(--text); }
.director-list dt.tight { letter-spacing: .1em; }
.director-list dd { margin: 0; font-size: 15px; color: #444; line-height: 1.8; }
.director-list dd p { margin: 0; }
.director-name { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.director-name small { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-left: 10px; font-weight: 400; }
.director-more { margin-top: 26px; }
.staff-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }
.staff-row a { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.staff-row img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; border: 1px solid var(--line); }
.staff-row strong { display: block; font-size: 17px; font-weight: 700; }
.staff-row small { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- 유튜브 (큰 썸네일 2×2 + 채널 버튼) ---------- */
.yt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 30px; max-width: 980px; margin: 0 auto; }
.yt-card { display: block; }
.yt-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #ddd; }
.yt-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.yt-card:hover .thumb img { transform: scale(1.04); }
.yt-card .thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat; border: 2px solid rgba(255,255,255,.85); }
.yt-card p { margin: 10px 2px 0; font-size: 14.5px; font-weight: 500; line-height: 1.5; color: #444; }
.yt-card p em { font-style: normal; color: var(--accent-dark); font-weight: 700; margin-right: 4px; }
.channel-note { text-align: center; margin: 54px 0 22px; font-size: 16px; color: var(--text); }
.channel-btns { display: grid; grid-template-columns: repeat(2, 200px); gap: 14px 60px; justify-content: center; }
.channel-btns a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 15px; transition: transform .2s; }
.channel-btns a:hover { transform: translateY(-2px); }
.channel-btns a svg { width: 20px; height: 20px; }
.channel-btns .c-yt { background: #ff0033; }
.channel-btns .c-blog { background: #03c75a; }
.channel-btns .c-insta { background: linear-gradient(45deg, #c13584, #e1306c); }
.channel-btns .c-kakao { background: #fae100; color: #3c1e1e; }

/* ---------- 치료 사례 · 환자수기 (선 카드 스트립) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case-card { display: block; border: 1px solid var(--line-dark); border-radius: 12px; overflow: hidden; background: #fff; transition: all .25s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.case-card img { width: 100%; height: 100%; object-fit: cover; }
.case-card p { margin: 0; padding: 12px 14px 14px; font-size: 13.5px; line-height: 1.5; color: #444; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 16px; }
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.review-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; display: block; border: 1px solid var(--line-dark); }
.review-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.review-card:hover img { transform: scale(1.04); }
.review-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 16px; color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.5; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.celeb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.celeb-card { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line-dark); border-radius: 12px; padding: 14px 16px; background: #fff; }
.celeb-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 64px; }
.celeb-card p { margin: 0; font-size: 13.5px; color: #444; }
.celeb-card strong { display: block; color: var(--text); margin-bottom: 2px; }
.home-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; }
.home-tabs button { border: 1px solid var(--line-dark); background: transparent; border-radius: 999px; padding: 8px 22px; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: inherit; }
.home-tabs button.active { background: var(--text); color: #fff; border-color: var(--text); }
.home-panel { display: none; }
.home-panel.active { display: block; }

/* ---------- 원장 소개 (공통 카드, 서브에서 재사용) ---------- */
.doctor-section { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.doctor-photo { border-radius: var(--radius); overflow: hidden; }
.doctor-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.doctor-info h3 { font-size: 30px; font-weight: 700; margin-bottom: 6px; }
.doctor-info .role { color: var(--accent); font-weight: 700; margin-bottom: 20px; }
.doctor-info ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-bottom: 26px; }
.doctor-info li { font-size: 15px; color: var(--muted); padding-left: 14px; position: relative; }
.doctor-info li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- 갤러리 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid a, .gallery-grid figure { display: block; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; position: relative; border: 1px solid var(--line-dark); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a span, .gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: #fff; font-size: 13px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }

/* ---------- 진료시간 + 오시는 길 (서브페이지 공통) ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.info-box { background: #fff; border-radius: var(--radius); border: 1px solid var(--line-dark); padding: 34px; }
.info-box h3 { font-size: 21px; margin-bottom: 18px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 11px 6px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; vertical-align: top; }
.hours-table th { width: 40%; font-weight: 600; color: var(--text); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.hours-note strong { color: #b0413e; }
.map-embed { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-dark); aspect-ratio: 16 / 10; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.addr-line { font-size: 17px; font-weight: 700; margin: 16px 0 4px; }
.addr-sub { color: var(--muted); font-size: 14px; margin: 0; }
.addr-list { margin: 14px 0 0; display: grid; gap: 8px; font-size: 14.5px; }
.addr-list li { display: flex; gap: 10px; }
.addr-list li b { flex: 0 0 44px; color: var(--accent-dark); }

/* ---------- CTA 밴드 ---------- */
.cta-band { background: var(--band-soft); color: var(--text); padding: 70px 0; text-align: center; }
.cta-band h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin-bottom: 8px; }
.cta-band p { margin: 0 auto 22px; color: var(--muted); max-width: 640px; }
.cta-band .tel { font-family: var(--eng); font-size: 34px; font-weight: 600; letter-spacing: .02em; margin-bottom: 20px; }
.cta-band .tel small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; font-family: var(--sans); }
.cta-band .hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 푸터 (바를연 : 베이지 배경, 중앙 로고, 4단 정보) ---------- */
.site-footer { background: var(--band-soft); color: #555; padding: 60px 0 36px; font-size: 13.5px; border-top: 1px solid var(--line); }
.footer-brand { text-align: center; margin-bottom: 44px; }
.footer-brand img { width: 62px; margin: 0 auto 10px; opacity: .9; }
.footer-brand .wm { font-family: var(--logo); font-size: 24px; font-weight: 300; color: #222; letter-spacing: -.01em; }
.footer-brand .en { display: block; font-family: var(--eng); font-size: 9.5px; letter-spacing: .22em; color: var(--muted); margin-top: 4px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.2fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: var(--text); font-size: 15px; margin-bottom: 14px; font-weight: 700; }
.site-footer p { margin: 0 0 6px; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-info dl { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 0; }
.footer-info dt { color: var(--muted); }
.footer-info dd { margin: 0; color: #444; }
.footer-hours p { margin: 0 0 4px; }
.footer-hours b { font-weight: 500; color: var(--muted); }
.footer-sns li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; text-align: center; font-size: 12.5px; color: var(--muted); }
.footer-bottom .notice { font-size: 12px; max-width: 720px; margin: 8px auto 0; }
.footer-bottom a { margin-left: 8px; }

/* ---------- 플로팅 버튼 ---------- */
.floating { position: fixed; right: 18px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; gap: 8px; }
.floating a {
  width: 58px; height: 58px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff; font-size: 11px; font-weight: 700; line-height: 1.15; box-shadow: 0 6px 18px rgba(0,0,0,.18); text-align: center; background: var(--text);
}
.floating a img { width: 20px; height: 20px; object-fit: contain; }
.floating .f-kakao { background: #fee500; color: #3c1e1e; }
.floating .f-youtube { background: #e62117; }
.floating .f-map { background: var(--accent); }
.floating .f-tel { background: var(--primary); font-size: 12px; }
.floating .f-top { background: #fff; color: var(--text); border: 1px solid var(--line-dark); height: 42px; font-size: 11px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 44px; font-weight: 600; font-size: 16px; position: relative; list-style: none; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 6px; top: 16px; color: var(--accent); font-weight: 700; font-size: 18px; font-family: var(--eng); }
.faq summary::after { content: "+"; position: absolute; right: 10px; top: 14px; font-size: 22px; color: var(--muted); font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 20px 20px 44px; color: #555; font-size: 15px; position: relative; white-space: pre-line; }
.faq .a::before { content: "A"; position: absolute; left: 6px; top: -2px; color: var(--primary); font-weight: 700; font-size: 18px; font-family: var(--eng); }
#faq .faq { max-width: 900px; margin: 0 auto; }

/* 공지 띠 (어드민 홈페이지 설정에서 켜고 끔) */
.notice-bar { background: var(--text); color: #fff; text-align: center; font-size: 14px; padding: 9px 16px; }
.notice-bar a, .notice-bar span { color: #fff; text-decoration: none; }
.notice-bar a:hover { text-decoration: underline; }

/* 유틸 */
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mt-0 { margin-top: 0 !important; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.todo-note { background: #fff6c2; padding: 8px 12px; border-radius: 6px; font-size: 13px; }

/* ---------- 반응형 ---------- */
@media (max-width: 1360px) {
  .gnb-menu > li > a { padding: 33px 12px; font-size: 15px; }
  .gnb-menu > li > a::after { left: 12px; right: 12px; }
}
@media (max-width: 1180px) {
  .gnb-menu > li > a { padding: 33px 9px; font-size: 14px; }
  .dept-grid, .dept-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .director { grid-template-columns: 340px 1fr; gap: 30px; }
  .case-grid, .review-grid { grid-template-columns: repeat(3, 1fr); }
  .doctor-section { grid-template-columns: 300px 1fr; gap: 36px; }
}
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .gnb-logo img { height: 38px; }
  .gnb-wordmark { font-size: 20px; }
  .gnb-toggle { display: flex; }
  .gnb-header.is-open .gnb-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .gnb-header.is-open .gnb-toggle span:nth-child(2) { opacity: 0; }
  .gnb-header.is-open .gnb-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .gnb-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; padding: 8px 0 40px;
    transform: translateX(100%); transition: transform .3s ease;
  }
  .gnb-header.is-open .gnb-menu { transform: translateX(0); }
  .gnb-menu > li { border-bottom: 1px solid var(--line); }
  .gnb-menu > li > a { padding: 16px 24px; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
  .gnb-menu > li > a::after { display: none; }
  .gnb-menu > li.has-sub > a::after { display: block; content: "+"; position: static; transform: none; background: none; height: auto; font-size: 20px; color: var(--muted); transition: transform .2s; }
  .gnb-menu > li.is-expanded > a::after { transform: rotate(45deg); }
  .gnb-submenu {
    position: static; transform: none; opacity: 1; visibility: hidden; box-shadow: none; border: 0; border-radius: 0;
    background: var(--band-soft); padding: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .gnb-menu > li.is-expanded .gnb-submenu { visibility: visible; max-height: 480px; padding: 6px 0; }
  .gnb-submenu a { padding: 11px 36px; font-size: 15px; text-align: left; }
  .gnb-cta { padding: 16px 24px; border-bottom: 0 !important; }
  .gnb-cta > a { margin: 0; display: block; text-align: center; padding: 13px !important; border: 1px solid var(--text); border-radius: 999px; font-weight: 600; }
  .gnb-tel { display: block; padding: 0 24px 10px; text-align: center; color: var(--muted); font-size: 14px; }
  .hero { height: 560px; }
  .hero-content h1, .hero-content h2 { font-size: 34px; }
  .hero-content p { font-size: 15.5px; }
  .info-strip .container { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .section { padding: 70px 0; }
  .section-title { font-size: 28px; }
  .director { grid-template-columns: 1fr; }
  .director .photo { max-width: 360px; margin: 0 auto; }
  .director-list { padding-top: 0; }
  .staff-row { grid-template-columns: 1fr; gap: 16px; }
  .doctor-section { grid-template-columns: 1fr; }
  .doctor-photo { max-width: 360px; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .celeb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { height: 480px; }
  .hero-content .hero-symbol { width: 64px; margin-bottom: 16px; }
  .hero-content h1, .hero-content h2 { font-size: 26px; }
  .hero-content p { font-size: 14px; margin-bottom: 22px; }
  .hero-content br { display: none; }
  .pill-row, .strip-notice, .hours-rows { padding-left: 0; }
  .info-strip { padding: 50px 0 40px; }
  .dept-grid, .dept-grid.cols-3, .dept-grid.cols-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dept-card { min-height: 150px; padding: 20px 10px 16px; }
  .dept-card h3 { font-size: 17px; }
  .dept-card .tags { font-size: 11.5px; }
  .yt-grid { grid-template-columns: 1fr; gap: 18px; }
  .channel-btns { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .case-grid, .review-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .doctor-info ul { grid-template-columns: 1fr; }
  .doctor-info h3 { font-size: 24px; }
  .director-list dl { grid-template-columns: 76px 1fr; gap: 10px; }
  .director-list dt { letter-spacing: .1em; }
  .cta-band h2 { font-size: 24px; }
  .cta-band .tel { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .floating a { width: 50px; height: 50px; font-size: 10px; }
  .floating a img { width: 18px; height: 18px; }
}

/* 탭 패널 (메인 · 서브 공통) */
.tab-panel { display: none; }
.tab-panel.active { display: block; }
