@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --accent-red: #C1121F;
  --bg-dark: #111111;
  --bg-dark-section: #1a1a1a;
  --bg-surface: #F5F5F5;
  --bg-white: #FFFFFF;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-white: #FFFFFF;
  --border: #E5E5E5;
  /* 헤더 다크 테마 전용 */
  --header-bg: #1a1a2e;
  --header-text: #e0e0e0;
  --header-text-hover: #ffffff;
  --dropdown-bg: #252540;
  --dropdown-border: #3a3a5c;
  --content-max-width: 1440px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: var(--content-max-width); margin: 0 auto; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: 80px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--dropdown-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  transition: background .3s;
}
.site-header.scrolled {
  background: #151528;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.site-header .logo {
  display: flex; align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600;
  color: var(--text-white);
}
.site-header .logo-icon {
  height: 60px;
  width: 150px;
  object-fit: contain;
}
.site-header nav { display: flex; align-items: center; gap: 32px; }
.site-header nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 500;
  color: var(--header-text);
  transition: color .2s;
}
.site-header nav a:hover,
.site-header nav a.active { color: var(--header-text-hover); }
.site-header nav a.cta {
  color: var(--text-white);
  background: var(--accent-red);
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  transition: background .2s, transform .1s;
}
.site-header nav a.cta:hover {
  background: #a00e1a;
  transform: translateY(-1px);
}

/* ── 드롭다운 메뉴 ── */
.nav-item {
  position: relative;
}
.nav-item > a.nav-top {
  display: flex; align-items: center; gap: 4px;
}
.nav-item > a.nav-top::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.nav-item:hover > a.nav-top::after {
  transform: rotate(-135deg) translateY(-2px);
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  list-style: none;
  padding-top: 12px; /* 시각적 간격 — 마우스는 여전히 dropdown 위에 있음 */
  z-index: 200;
  white-space: nowrap;
}
.dropdown-inner {
  background: var(--dropdown-bg);
  border: 1px solid var(--dropdown-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 8px 0;
  position: relative;
}
.dropdown-inner::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--dropdown-bg);
  border-left: 1px solid var(--dropdown-border);
  border-top: 1px solid var(--dropdown-border);
}
.nav-item:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 400;
  color: var(--header-text);
  transition: background .15s, color .15s;
}
.dropdown li a:hover { background: rgba(255,255,255,0.08); color: var(--header-text-hover); }
.dropdown li:first-child a { border-radius: 8px 8px 0 0; }
.dropdown li:last-child a { border-radius: 0 0 8px 8px; }

/* ── HERO BANNER ── */
.hero-banner {
  position: relative;
  height: 280px;
  background: var(--bg-dark);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 48px;
  overflow: hidden;
}
.hero-banner.has-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: inherit;
  background-size: cover; background-position: center;
  opacity: .3;
}
.hero-banner > * { position: relative; z-index: 1; }
.hero-banner .hero-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-red);
  margin-bottom: 8px;
}
.hero-banner .hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px; font-weight: 500;
  letter-spacing: -1px;
  color: var(--text-white);
  margin-bottom: 8px;
}
.hero-banner .hero-desc {
  font-size: 16px; color: #999;
  line-height: 1.5;
}

/* ── SECTIONS ── */
.section {
  padding: 64px 48px;
}
.section.dark { background: var(--bg-dark); }
.section.surface { background: var(--bg-surface); }
.section.dark-section { background: var(--bg-dark-section); }

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-red);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px; font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.section-title.white { color: var(--text-white); }
.section-subtitle {
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.7;
}
.section-subtitle.gray { color: #999; }

/* ── TWO COLUMN ── */
.two-col {
  display: flex; gap: 48px; align-items: center;
}
.two-col .col-text { flex: 1; }
.two-col .col-img { flex: 0 0 auto; width: 50%; }
.two-col .col-img img {
  width: 100%; height: 400px;
  object-fit: cover;
}
.img-pair {
  display: flex; gap: 12px;
}
.img-pair img {
  flex: 1; min-width: 0;
  height: 400px; object-fit: cover;
}
.about-grid {
  display: flex; gap: 24px;
}
.about-grid > div { flex: 1; min-width: 0; }

/* ── BUTTON ── */
.btn-red {
  display: inline-block;
  background: var(--accent-red);
  color: var(--text-white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 500;
  padding: 14px 28px;
  border: none; cursor: pointer;
  transition: opacity .2s;
}
.btn-red:hover { opacity: .85; }
.btn-red.large { padding: 16px 40px; font-size: 15px; }

/* ── KEY POINTS ── */
.key-points {
  display: flex; justify-content: space-around;
  padding: 32px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
}
.key-point {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-align: center; flex: 1;
}
.key-point .kp-icon { color: var(--accent-red); font-size: 28px; margin-bottom: 4px; }
.key-point .kp-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600;
}
.key-point .kp-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ── BADGE ── */
.badge-red {
  display: inline-block;
  background: var(--accent-red);
  color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 10px 24px;
  border-radius: 24px;
}
.badge-outline {
  display: inline-block;
  border: 1px solid var(--border);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 4px;
  color: var(--text-secondary);
}

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.divider.dark-div { background: #333; }

/* ── ABOUT CARDS ── */
.about-cards { display: flex; flex-direction: column; gap: 24px; }
.about-card { flex: 1; }
.about-card img { width: 100%; height: 240px; object-fit: cover; }
.about-card-info { padding: 20px 0; }
.about-card-info .tag {
  font-size: 12px; color: var(--accent-red);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  letter-spacing: 1px; margin-bottom: 6px;
}
.about-card-info .title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 600;
  margin-bottom: 8px;
}
.about-card-info p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── SERVICE TABS ── */
.service-tabs { display: flex; gap: 24px; }
.service-tab {
  flex: 1;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  background: rgba(26,26,26,0.9);
}
.service-tab .tab-icon { color: var(--accent-red); font-size: 32px; }
.service-tab .tab-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 600;
  color: var(--text-white);
}
.service-tab .tab-desc { font-size: 14px; color: #999; line-height: 1.6; }

/* ── LOCATION ── */
.location-section {
  background: var(--bg-dark);
  padding: 48px 48px;
}
.location-inner {
  max-width: 1344px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.location-info {
  flex: 0 0 auto;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}
.location-address {
  font-size: 15px;
  color: #ccc;
  line-height: 1.8;
}
.location-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.location-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: opacity .2s;
}
.location-btn:hover { opacity: .85; }
.location-btn.naver { background: #03C75A; color: #fff; }
.location-btn.kakao { background: #FEE500; color: #191919; }
.location-map {
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
}
.location-map .root_daum_roughmap { width: 100% !important; }
.location-map .wrap_map { height: 280px !important; }
@media (max-width: 768px) {
  .location-section { padding: 40px 20px; }
  .location-inner { flex-direction: column; gap: 24px; }
  .location-info { width: 100%; }
  .location-btns { flex-direction: row; }
  .location-map .wrap_map { height: 220px !important; }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--bg-dark);
  padding: 48px;
  color: #fff;
}
.site-footer .footer-top {
  display: flex; justify-content: space-between;
  margin-bottom: 32px;
}
.site-footer .footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600;
  margin-bottom: 8px;
}
.site-footer .footer-addr {
  font-size: 13px; color: #999; line-height: 1.7;
}
.site-footer .footer-links {
  display: flex; gap: 48px;
}
.site-footer .footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 600;
  color: #999; letter-spacing: 1px;
  margin-bottom: 16px;
}
.site-footer .footer-col a {
  display: block; font-size: 14px; color: #ccc;
  margin-bottom: 10px; transition: color .2s;
}
.site-footer .footer-col a:hover { color: var(--accent-red); }
.site-footer .footer-divider { height: 1px; background: #333; margin-bottom: 24px; }
.site-footer .footer-copy { font-size: 12px; color: #666; }

/* ── DOCTOR PROFILE ── */
.doctor-profile {
  display: flex; gap: 48px;
}
.doctor-profile .doc-photo {
  width: 400px; flex-shrink: 0;
  height: 500px; object-fit: cover;
}
.doctor-profile .doc-info { flex: 1; }
.doc-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px; font-weight: 600;
  letter-spacing: -1px; margin-bottom: 4px;
}
.doc-eng { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.doc-role { font-size: 16px; font-weight: 500; color: var(--accent-red); margin-bottom: 20px; }
.doc-section { margin-bottom: 20px; }
.doc-section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--accent-red); margin-bottom: 10px;
}
.doc-section li {
  list-style: none;
  font-size: 15px; line-height: 1.8;
  padding-left: 0;
}

/* ── GALLERY GRID ── */
.gallery-grid { display: flex; flex-direction: column; gap: 16px; }
.gallery-row { display: flex; gap: 16px; }
.gallery-item { flex: 1; }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; }
.gallery-caption {
  font-size: 13px; color: var(--text-secondary);
  padding: 8px 0;
}

/* ── DIRECTIONS ── */
.dir-content { display: flex; gap: 48px; }
.dir-map {
  flex: 1;
  height: 400px;
  background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.dir-info { width: 420px; flex-shrink: 0; display: flex; flex-direction: column; gap: 32px; }
.dir-item-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--accent-red); margin-bottom: 8px;
}
.dir-item-text { font-size: 15px; line-height: 1.6; }
.hours-table { width: 100%; border: 1px solid var(--border); border-collapse: collapse; }
.hours-table td { padding: 8px 12px; font-size: 14px; border-bottom: 1px solid var(--border); }
.hours-table td:first-child { color: var(--text-secondary); font-weight: 500; width: 120px; }

/* ── PACKAGE CARDS ── */
.pkg-grid { display: flex; flex-direction: column; gap: 16px; }
.pkg-card {
  display: flex; align-items: center; gap: 20px;
  padding: 28px;
  background: var(--bg-surface);
}
.pkg-card.dark { background: var(--bg-dark); }
.pkg-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px; font-weight: 600;
  color: var(--accent-red); flex-shrink: 0;
}
.pkg-info { flex: 1; min-width: 0; }
.pkg-info .pkg-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 600;
  margin-bottom: 4px;
}
.pkg-card.dark .pkg-name { color: var(--text-white); }
.pkg-info .pkg-desc { font-size: 14px; color: var(--text-secondary); }
.pkg-card.dark .pkg-desc { color: #999; }
.pkg-thumb {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ── PROC ROWS ── */
.proc-row { display: flex; align-items: center; gap: 32px; }
.proc-row.reverse { flex-direction: row-reverse; }
.proc-img { width: 320px; height: 240px; object-fit: cover; flex-shrink: 0; }
.proc-info { flex: 1; }
.proc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 600;
  color: var(--text-white); margin-bottom: 12px;
}
.proc-desc { font-size: 14px; color: #999; line-height: 1.7; margin-bottom: 16px; }
.proc-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.proc-badge {
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #ccc;
  padding: 6px 14px;
  border-radius: 4px;
}

/* ── NOTICE TABLE ── */
.notice-table { width: 100%; }
.notice-table-header {
  display: flex; align-items: center;
  padding: 0 20px; height: 44px;
  background: var(--bg-surface);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
}
.notice-empty {
  display: flex; align-items: center; justify-content: center;
  height: 120px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted);
}

/* ── CONSULT FORM ── */
.consult-form { display: flex; flex-direction: column; }
.form-row {
  display: flex; align-items: stretch;
  border-top: 1px solid var(--border);
}
.form-row:last-of-type { border-bottom: 1px solid var(--border); }
.form-label {
  display: flex; align-items: center;
  width: 140px; flex-shrink: 0;
  padding: 0 20px;
  background: var(--bg-surface);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 500;
}
.form-input {
  flex: 1; padding: 0 16px;
  font-size: 14px; font-family: 'Inter', sans-serif;
  border: none; outline: none;
  color: var(--text-primary);
  min-height: 52px;
}
.form-input::placeholder { color: var(--text-muted); }
.form-row.tall { align-items: flex-start; min-height: 160px; }
.form-row.tall .form-label { padding-top: 16px; }
.form-row.tall .form-input { padding: 16px; resize: none; width: 100%; }
.form-tags { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px; flex: 1; }
.form-tag {
  padding: 8px 16px;
  border: 1px solid var(--border);
  font-size: 14px; cursor: pointer;
  border-radius: 4px;
  color: var(--text-secondary);
  transition: all .2s;
}
.form-tag.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}
.agree-row { display: flex; align-items: center; gap: 8px; padding: 20px 0; }
.agree-row input { width: 18px; height: 18px; cursor: pointer; }
.agree-row label { font-size: 13px; color: var(--text-secondary); }
.submit-area { display: flex; justify-content: center; padding: 32px 0; }

/* ── HOME HERO ── */
.home-hero {
  position: relative;
  height: 520px;
  background: var(--bg-dark);
  display: flex; align-items: center;
  padding: 0 48px;
  overflow: hidden;
}
.home-hero .hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .2;
}
.home-hero .hero-content { position: relative; z-index: 1; }
.home-hero .hero-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 2px; color: var(--accent-red);
  margin-bottom: 16px;
}
.home-hero .hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px; font-weight: 500;
  letter-spacing: -1px;
  color: var(--text-white);
  line-height: 1.2; margin-bottom: 20px;
}
.home-hero .hero-desc { font-size: 18px; color: #999; line-height: 1.6; max-width: 600px; }

/* ── ABOUT WATERMARK ── */
.watermark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 140px; font-weight: 800;
  color: rgba(0,0,0,0.06);
  letter-spacing: -4px; line-height: .9;
  pointer-events: none;
}

/* ── SEARCH BAR ── */
.search-bar {
  display: flex; gap: 12px; align-items: center;
}
.search-bar input {
  height: 40px; padding: 0 16px;
  border: 1px solid var(--border);
  font-size: 13px; font-family: 'Inter', sans-serif;
  color: var(--text-primary); outline: none;
}
.search-bar input:focus { border-color: var(--text-primary); }
.search-bar .btn-search {
  height: 40px; padding: 0 24px;
  background: var(--text-primary);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 500;
  border: none; cursor: pointer;
}

/* ── TABLE CONSULT LIST ── */
.consult-list { width: 100%; }
.consult-list .cl-header {
  display: flex; align-items: center;
  height: 44px; padding: 0 20px;
  background: var(--bg-surface);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
}
.consult-list .cl-header .no { width: 60px; }
.consult-list .cl-header .title { flex: 1; }
.consult-list .cl-header .status { width: 80px; }
.consult-list .cl-header .writer { width: 80px; }
.consult-list .cl-header .date { width: 100px; }
.consult-list .cl-empty {
  display: flex; align-items: center; justify-content: center;
  height: 120px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted);
}
.consult-btn {
  position: relative;
}
.consult-btn .reg-btn {
  position: absolute; right: 0; top: 0;
  height: 44px; padding: 0 32px;
  background: var(--accent-red);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 500;
  border: none; cursor: pointer;
  display: flex; align-items: center;
}

/* ── DISCLAIMER ── */
.disclaimer {
  padding: 32px 48px;
  text-align: center;
  font-size: 13px; color: var(--text-muted);
  line-height: 1.6;
}

/* ── PRIVACY ── */
.policy-section { margin-bottom: 32px; }
.policy-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 600;
  margin-bottom: 12px;
}
.policy-section p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6;
}

/* ── IMAGE GRID TWO COL ── */
.img-two { display: flex; gap: 16px; }
.img-two img { flex: 1; height: 300px; object-fit: cover; }

/* ── FULL IMAGE ── */
.full-img { width: 100%; }
.full-img img { width: 100%; }

/* ── CENTERED SECTION ── */
.section.center { text-align: center; }
.section.center .section-label,
.section.center .section-title,
.section.center .section-subtitle { text-align: center; }

/* ── BADGE ROW ── */
.badge-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ── INTRO TEXT ── */
.intro-text {
  text-align: center;
  padding: 48px;
}
.intro-text .int-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.intro-text .int-desc {
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.7;
}

/* ── DETAIL SECTION ── */
.detail-section { padding: 64px 48px; }
.detail-section .ds-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-red);
  margin-bottom: 12px;
}
.detail-section .ds-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.detail-section .ds-desc {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 24px;
}

/* ── EMPTY STATE ── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  padding: 80px 48px;
  text-align: center;
}
.empty-state .es-icon {
  font-size: 48px; color: var(--text-muted);
}
.empty-state .es-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 600;
}
.empty-state .es-desc {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   MOBILE NAV TOGGLE (항상 적용)
══════════════════════════════════════════ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   TABLET  ≤ 1024px
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .site-header { padding: 0 32px; }
  .site-header nav { gap: 20px; }
  .section { padding: 56px 32px; }
  .hero-banner { padding: 0 32px; }
  .home-hero { padding: 0 32px; }
  .home-hero .hero-title { font-size: 44px; }
  .two-col .col-img { width: 45%; }
  .key-points { padding: 32px; gap: 0; }
  .site-footer { padding: 40px 32px; }
  .disclaimer { padding: 32px; }
  .detail-section { padding: 56px 32px; }
  .watermark { font-size: 100px; }
  .gallery-row { flex-wrap: wrap; }
  .gallery-item { min-width: calc(33.33% - 12px); }
}

/* ══════════════════════════════════════════
   MOBILE  ≤ 768px
══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── 헤더 / 햄버거 ── */
  .site-header {
    padding: 0 20px;
    height: 70px;
  }
  .nav-toggle { display: flex; }
  #site-nav {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--dropdown-border);
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 99;
  }
  #site-nav.open { display: flex; }
  /* 모바일 nav-item (아코디언) */
  #site-nav .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--dropdown-border);
  }
  #site-nav .nav-item > a.nav-top {
    font-size: 16px;
    padding: 14px 0;
    justify-content: space-between;
    color: var(--header-text);
  }
  #site-nav .nav-item > a.nav-top::after {
    transition: transform .25s;
  }
  #site-nav .nav-item.open > a.nav-top::after {
    transform: rotate(-135deg) translateY(-2px);
  }
  #site-nav .dropdown {
    position: static;
    transform: none;
    left: auto;
    padding-top: 0;
    min-width: auto;
    white-space: normal;
  }
  #site-nav .dropdown-inner {
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,0.05);
    padding: 4px 0 12px 12px;
  }
  #site-nav .dropdown-inner::before { display: none; }
  #site-nav .dropdown li a {
    font-size: 14px;
    padding: 8px 12px;
    color: var(--header-text);
  }
  #site-nav > a.cta {
    font-size: 16px;
    padding: 14px 0;
  }

  /* ── 섹션 패딩 ── */
  .section { padding: 48px 20px; }
  .detail-section { padding: 48px 20px; }
  .disclaimer { padding: 24px 20px; }
  .intro-text { padding: 32px 20px; }

  /* ── 히어로 ── */
  .hero-banner {
    height: 200px;
    padding: 0 20px;
  }
  .hero-banner .hero-title { font-size: 28px; }
  .hero-banner .hero-desc { font-size: 14px; }

  /* ── 홈 히어로 ── */
  .home-hero {
    height: 360px;
    padding: 0 20px;
    align-items: flex-end;
    padding-bottom: 40px;
  }
  .home-hero .hero-title { font-size: 32px; }
  .home-hero .hero-desc { font-size: 15px; }
  .home-hero .hero-eyebrow { font-size: 11px; }

  /* ── 섹션 타이포 ── */
  .section-title { font-size: 26px; }
  .intro-text .int-title { font-size: 22px; }
  .detail-section .ds-title { font-size: 22px; }
  .watermark { font-size: 56px; }

  /* ── 키포인트 ── */
  .key-points {
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
  }
  .key-point {
    flex-direction: row;
    text-align: left;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .key-point:last-child { border-bottom: none; }
  .key-point .kp-icon { font-size: 24px; flex-shrink: 0; margin-bottom: 0; }

  /* ── 2열 → 1열 ── */
  .img-pair { flex-direction: column; }
  .img-pair img { height: 220px; width: 100%; flex: none; }
  .about-grid { flex-direction: column; }
  /* 서브 페이지 인라인 flex 컨테이너 방어 */
  .section > div[style*="display: flex"],
  .detail-section > div[style*="display: flex"] {
    flex-wrap: wrap;
  }
  .two-col {
    flex-direction: column;
    gap: 24px;
  }
  .two-col .col-img { width: 100%; }
  .two-col .col-img img { height: 260px; }
  .two-col.reverse-mobile { flex-direction: column-reverse; }

  /* ── 의료진 프로필 ── */
  .doctor-profile { flex-direction: column; gap: 24px; }
  .doctor-profile .doc-photo { width: 100%; height: 320px; }
  .doc-name { font-size: 26px; }

  /* ── 갤러리 그리드 ── */
  .gallery-row { flex-direction: column; }
  .gallery-item img { height: 200px; }

  /* ── 오시는 길 ── */
  .dir-content { flex-direction: column; gap: 32px; }
  .dir-info { width: 100%; }
  .dir-map { height: 240px; }

  /* ── 서비스 탭 ── */
  .service-tabs { flex-direction: column; gap: 16px; }

  /* ── 패키지 카드 ── */
  .pkg-card { padding: 20px; gap: 16px; }
  .pkg-num { font-size: 28px; }
  .pkg-thumb { width: 60px; height: 60px; }

  /* ── 시술 행 ── */
  .proc-row,
  .proc-row.reverse { flex-direction: column; gap: 20px; }
  .proc-img { width: 100%; height: 200px; }
  .proc-title { font-size: 20px; }

  /* ── 이미지 그리드 ── */
  .img-two { flex-direction: column; }
  .img-two img { height: 220px; }

  /* ── 상담 폼 ── */
  .form-row { flex-direction: column; }
  .form-label {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
  }
  .form-row.tall .form-label { min-height: 44px; padding-top: 0; align-items: center; }
  .form-input { min-height: 48px; padding: 12px 16px; }
  .form-row.tall .form-input { min-height: 120px; }

  /* ── 검색바 ── */
  .search-bar { flex-direction: column; align-items: stretch; }
  .search-bar input { width: 100%; }
  .search-bar .btn-search { width: 100%; }

  /* ── 상담 목록 ── */
  .consult-list .cl-header .status,
  .consult-list .cl-header .writer { display: none; }
  .consult-btn .reg-btn { position: static; width: 100%; justify-content: center; margin-top: 12px; }
  .consult-btn { display: flex; flex-direction: column; }

  /* ── 공지 테이블 헤더 ── */
  .notice-table-header { padding: 0 12px; }

  /* ── 푸터 ── */
  .site-footer { padding: 32px 20px; }
  .site-footer .footer-top { flex-direction: column; gap: 28px; }
  .site-footer .footer-links { flex-direction: column; gap: 24px; }

  /* ── 어바웃 카드 ── */
  .about-cards { gap: 16px; }
  .about-card img { height: 200px; }

  /* ── 전체 섹션 패딩 큰 값 축소 ── */
  .section[style*="padding: 80"],
  .section[style*="padding:80"] { padding-top: 48px !important; padding-bottom: 48px !important; }

  /* ── 빈 상태 ── */
  .empty-state { padding: 48px 20px; }
}

/* ══════════════════════════════════════════
   SMALL MOBILE  ≤ 480px
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .home-hero .hero-title { font-size: 26px; }
  .home-hero { height: 300px; padding-bottom: 32px; }
  .hero-banner { height: 160px; }
  .hero-banner .hero-title { font-size: 22px; }
  .section-title { font-size: 22px; }
  .watermark { font-size: 40px; }
  .badge-red { font-size: 13px; padding: 8px 16px; }
  .badge-row { gap: 8px; }
  .pkg-card { flex-wrap: wrap; }
  .pkg-thumb { display: none; }
  .proc-img { height: 180px; }
}

/* ══════════════════════════════════════════
   QUICK MENU (우측 고정 퀵메뉴)
══════════════════════════════════════════ */
.quick_menu {
  position: fixed;
  z-index: 200;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: right 0.3s ease;
}
.quick_menu ul { list-style: none; padding-left: 0; margin: 0; }

/* 슬라이드 패널 (빠른상담 / 전후사진요청) */
.quick_menu .boxG {
  position: absolute;
  top: 0;
  right: -460px;
  padding: 35px 30px;
  width: 460px;
  padding-right: 130px;
  height: auto;
  min-height: 400px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(249,250,251,0.98) 100%);
  border-radius: 24px 0 0 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 3px 12px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}
.quick_menu .boxG.on {
  right: 0;
  box-shadow: 0 15px 50px rgba(0,0,0,0.2), 0 5px 15px rgba(0,0,0,0.1);
}
.quick_menu .boxG .tit {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.quick_menu .boxG .list { text-align: left; margin: 25px 0; }
.quick_menu .boxG .list li { margin: 12px 0; }

/* 메뉴 버튼 열 */
.quick_menu .menu {
  display: flex;
  position: relative;
  z-index: 10;
  flex-direction: column;
  width: 110px;
  text-align: center;
  padding: 12px 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(249,250,251,0.98) 100%);
  border-radius: 24px 0 0 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
}
.quick_menu .menu li { margin: 2px 0; transition: transform 0.2s ease; }
.quick_menu .menu li:hover { transform: translateX(-3px); }
.quick_menu .menu li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 90px;
  border-radius: 12px;
  padding-top: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  background-size: 36px !important;
}
.quick_menu .menu li a:hover {
  background-color: rgba(193,18,31,0.08);
  color: var(--accent-red);
  transform: scale(1.05);
}
.quick_menu .menu li:not(:last-child) a { border-bottom: 1px solid rgba(0,0,0,0.06); }
.quick_menu .menu li:nth-child(1) a { background: url('../img/qs_ico0.png') no-repeat center 16px; }
.quick_menu .menu li:nth-child(2) a { background: url('../img/qs_ico1.png') no-repeat center 16px; }
.quick_menu .menu li:nth-child(3) a { background: url('../img/qs_ico3.png') no-repeat center 16px; }
.quick_menu .menu li:nth-child(4) a { background: url('../img/qs_ico2.png') no-repeat center 16px; background-size: 40px !important; }
.quick_menu .menu li:nth-child(5) a {
  height: 75px;
  background: url('../img/qs_top.png') no-repeat center 12px;
  border-bottom: 0;
  padding-top: 44px;
  background-size: 28px !important;
}

/* myform 입력 스타일 */
.quick_menu .myform input[type=text] {
  width: 100%;
  line-height: 52px;
  border: 2px solid rgba(193,18,31,0.2);
  border-radius: 12px;
  font-size: 16px;
  color: #333;
  padding: 0 18px;
  transition: all 0.3s ease;
  background: #fff;
}
.quick_menu .myform input[type=text]:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(193,18,31,0.1);
}
.quick_menu .myform input[type=text]::placeholder { color: #999; }
.quick_menu .myform textarea {
  width: 100%;
  padding: 16px 18px;
  color: #333;
  font-size: 16px;
  height: 120px;
  border: 2px solid rgba(193,18,31,0.2);
  border-radius: 12px;
  resize: none;
  transition: all 0.3s ease;
  background: #fff;
}
.quick_menu .myform textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(193,18,31,0.1);
}
.quick_menu .myform textarea::placeholder { color: #999; }
.quick_menu .myform .submit {
  margin-top: 20px;
}
.quick_menu .myform .submit a {
  display: inline-block;
  width: 100%;
  line-height: 54px;
  background: linear-gradient(135deg, var(--accent-red) 0%, #a00e18 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(193,18,31,0.3);
}
.quick_menu .myform .submit a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193,18,31,0.4);
}

/* 모바일: 퀵메뉴 숨김 */
@media (max-width: 768px) {
  .quick_menu { display: none; }
}
