/* =====================================================================
   아이누리 한의원 평촌점 — Landing styles (v2)
   White base · vivid yellow accent · 3D characters · Pretendard.
   ===================================================================== */
:root {
  --accent:        #FFBF00;
  --accent-deep:   #F0A800;
  --accent-bright: #FFD43B;
  --accent-soft:   #FFE48A;
  --accent-wash:   #FFF8E1;
  --accent-on:     #18181B;   /* text ON the accent */
  --head-font:     "Pretendard", "AppleSDGothicNeo", system-ui, sans-serif;
  --head-weight:   800;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--inuri-ink);
  font-family: var(--font-body); line-height: 1.6; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; word-break: keep-all; text-wrap: pretty;
}
h1,h2,h3 { font-family: var(--head-font); font-weight: var(--head-weight,800); letter-spacing: -0.03em; line-height: 1.2; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-mob); }
@media (min-width: 768px) { .wrap { padding: 0 var(--pad-desk); } }
.sec-pad { padding: clamp(56px, 9vw, 110px) 0; }
.center { text-align: center; }

/* eyebrow pill */
.kick {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-weight: 700; color: var(--accent-deep); font-size: 14px;
  background: var(--accent-wash); padding: 8px 16px; border-radius: var(--r-pill);
  margin: 0 0 18px; letter-spacing: 0;
}
.sec-title { font-size: var(--t-h2); margin: 0 0 14px; }
.sec-lead { font-size: var(--t-lead); color: var(--inuri-ink-2); max-width: 620px; margin: 0 auto; font-weight: 500; }

/* ---------- Buttons : glossy 3D pill ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--head-font); font-weight: 700; font-size: 16px; border: none; cursor: pointer;
  padding: 15px 30px; border-radius: var(--r-pill); color: var(--accent-on);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: 0 12px 26px -8px var(--accent), inset 0 2px 0 rgba(255,255,255,.5);
  transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .16s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -8px var(--accent), inset 0 2px 0 rgba(255,255,255,.5); }
.btn:active { transform: translateY(-1px); }
.btn.green { background: linear-gradient(180deg, #3DC97A, var(--inuri-green)); color: #fff; box-shadow: 0 12px 26px -8px var(--inuri-green), inset 0 2px 0 rgba(255,255,255,.35); }
.btn.green:hover { box-shadow: 0 18px 34px -8px var(--inuri-green), inset 0 2px 0 rgba(255,255,255,.35); }
.btn.ghost { background: #fff; color: var(--inuri-ink); box-shadow: inset 0 0 0 1.5px var(--inuri-line), var(--sh-sm); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent), var(--sh-md); }
.btn.dark { background: var(--inuri-ink); color: #fff; box-shadow: 0 12px 26px -10px rgba(0,0,0,.5); }
.btn.naver { background: #03C75A; color: #fff; box-shadow: 0 12px 26px -8px rgba(3,199,90,.45), inset 0 2px 0 rgba(255,255,255,.25); }
.btn.naver:hover { box-shadow: 0 18px 34px -8px rgba(3,199,90,.45), inset 0 2px 0 rgba(255,255,255,.25); }
.btn.naver .naver-n { font-family: var(--font-num); font-weight: 900; background: #fff; color: #03C75A; width: 22px; height: 22px; border-radius: 5px; display: inline-grid; place-items: center; font-size: 14px; }
.btn.lg { font-size: 18px; padding: 18px 38px; }
.btn.sm { font-size: 14px; padding: 11px 22px; }

/* card */
.card { background: var(--inuri-paper); border-radius: var(--r-lg); box-shadow: var(--sh-sm); border: 1px solid var(--inuri-line); }

/* speech bubble */
.bubble {
  position: relative; background: #fff; border-radius: var(--r-lg); padding: 15px 20px; font-weight: 600;
  box-shadow: var(--sh-md); border: 1px solid var(--inuri-line);
}
.bubble.tail-l::after { content:""; position:absolute; left:30px; bottom:-9px; width:18px; height:18px; background:#fff; border-right:1px solid var(--inuri-line); border-bottom:1px solid var(--inuri-line); transform: rotate(45deg); }

/* tag chip */
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px;
  background: var(--inuri-cream-2); color: var(--inuri-ink-2); padding: 9px 16px;
  border-radius: var(--r-pill); border: 1px solid var(--inuri-line);
}

/* ---------- Header ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--inuri-line); }
.hd-in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.hd .logo { display: flex; align-items: center; gap: 10px; }
.hd .wm { font-family: var(--head-font); font-weight: 800; font-size: 21px; line-height: 1; white-space: nowrap; letter-spacing: -0.03em; }
.hd .wm small { display: block; font-weight: 600; font-size: 10.5px; letter-spacing: 1.5px; color: var(--inuri-ink-3); margin-top: 4px; font-family: var(--font-body); }
.hd nav { display: none; gap: 30px; }
.hd nav a { font-weight: 600; font-size: 15px; color: var(--inuri-ink-2); transition: color .15s; }
.hd nav a:hover { color: var(--inuri-ink); }
.hd-cta { display: flex; align-items: center; gap: 10px; }
/* 데스크탑: 네비를 우측으로 밀어 '아이누리 소개' 버튼 바로 왼쪽에 배치 */
@media (min-width: 560px) {
  /* align-self: stretch + align-items: center — 드롭다운 호버 영역을 헤더 74px 전체로 확장 */
  .hd nav { display: flex; margin-left: auto; align-self: stretch; align-items: center; }
  .hd-cta { margin-left: 28px; }
}

/* ---------- 진료과목 메가 드롭다운 (데스크탑) — 본원 스타일 ---------- */
.hd-drop { display: flex; align-items: center; align-self: stretch; }  /* 헤더 높이 전체가 호버 영역 */
/* 패널은 헤더(.hd, sticky) 기준 전체 폭으로 펼침 */
.hd-mega {
  position: absolute; top: 100%; left: 0; right: 0; display: none;
  background: #fff; border-bottom: 1px solid var(--inuri-line);
  box-shadow: 0 24px 36px -24px rgba(0, 0, 0, .14);
}
.hd-drop:hover .hd-mega, .hd-drop:focus-within .hd-mega { display: block; }
.hd-mega-in { display: grid; grid-template-columns: minmax(220px, 28%) 1fr; max-height: calc(100vh - 74px); overflow-y: auto; }
/* 좌측 회색 타이틀 영역 */
.hd-mega-title { margin: 0; background: #f7f7f7; font-family: var(--head-font); font-weight: 800; font-size: clamp(22px, 2vw, 30px); color: var(--inuri-ink); text-align: center; padding: 32px 24px; letter-spacing: -0.02em; }
/* 우측: 분류별 행 + 구분선, 세부 항목은 고정 열로 행 간 정렬 */
.hd-mega-rows { padding: 4px 48px 12px 40px; }
.hd-mega-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; min-height: 54px; }
.hd-mega-row + .hd-mega-row { border-top: 1px solid var(--inuri-line); }
.hd-mega-cat { font-family: var(--head-font); font-weight: 800; font-size: 15.5px; color: var(--inuri-ink); }
.hd-mega-cat:hover { color: var(--accent-deep); }
.hd-mega-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.hd-mega-links a { display: block; padding: 15px 4px 15px 0; font-size: 14px !important; font-weight: 500 !important; color: var(--inuri-ink-2); }
.hd-mega-links a:hover { color: var(--inuri-ink); }

/* ---------- 진료과목 아코디언 (모바일 햄버거 패널) ---------- */
.hd-m-group > summary, .hd-m-cat > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.hd-m-group > summary::-webkit-details-marker, .hd-m-cat > summary::-webkit-details-marker { display: none; }
.hd-m-group > summary { padding: 13px 6px; font-family: var(--head-font); font-weight: 700; font-size: 16px; color: var(--inuri-ink-2); }
.hd-m-group > summary::after, .hd-m-cat > summary::after { content: "+"; font-weight: 600; color: var(--inuri-ink-3); }
.hd-m-group[open] > summary::after, .hd-m-cat[open] > summary::after { content: "−"; }
.hd-m-sub { padding: 0 6px 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.hd-m-cat > summary { padding: 10px 4px; font-weight: 700; font-size: 14.5px; color: var(--inuri-ink-2); }
/* 세부가 모두 숨겨진 분류 — 아코디언 대신 직접 링크 (summary 와 동일 톤) */
.hd-m-cat-link { display: block; padding: 10px 4px !important; font-weight: 700 !important; font-size: 14.5px !important; color: var(--inuri-ink-2); }
.hd-m-leaves { display: flex; flex-direction: column; padding: 2px 4px 8px 14px; }
.hd-m-leaves a { padding: 8px 4px !important; font-size: 14px !important; font-weight: 500 !important; color: var(--inuri-ink-2); }

/* ---------- Hero shared ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.glow { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.hero .branch-pill {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap;
  font-size: 14.5px; background: var(--accent-wash); color: var(--accent-deep);
  padding: 9px 18px; border-radius: var(--r-pill);
}
.hero h1 { font-size: var(--t-display); margin: 20px 0 0; letter-spacing: -0.04em; }
.hero .accent-word { color: var(--accent-deep); }
.hero .sub { font-size: var(--t-lead); color: var(--inuri-ink-2); margin: 22px 0 0; max-width: 500px; font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 10px; padding: clamp(40px,7vw,80px) var(--pad-mob); align-items: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 30px; padding: clamp(48px,7vw,96px) var(--pad-desk); } }

@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes floaty2 { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-10px) rotate(-4deg)} }
.float { animation: floaty 4s ease-in-out infinite; }
.float2 { animation: floaty2 5s ease-in-out infinite; }
.deco { position: absolute; pointer-events: none; }

/* trust bar */
.trust { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.trust .item { background: var(--inuri-cream-2); border: 1px solid var(--inuri-line); border-radius: var(--r-md); padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.trust .n { font-family: var(--font-num); font-weight: 800; font-size: 26px; color: var(--inuri-ink); line-height: 1; letter-spacing: -0.04em; }
.trust .n small { font-size: 14px; font-weight: 700; color: var(--accent-deep); }
.trust .lab { font-size: 13px; color: var(--inuri-ink-2); font-weight: 500; }

/* ---------- Departments ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 46px; }
@media (min-width: 760px) { .dept-grid { grid-template-columns: repeat(4,1fr); } }
.dept { background: #fff; border-radius: var(--r-xl); padding: 30px 22px; text-align: center; border: 1px solid var(--inuri-line); box-shadow: var(--sh-sm); transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease; }
.dept:hover { transform: translateY(-8px); box-shadow: var(--sh-md); }
.dept .ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 16px; font-size: 32px; box-shadow: var(--sh-sm); }
.dept h3 { font-size: 20px; margin: 0 0 8px; }
.dept p { font-size: 14px; color: var(--inuri-ink-2); margin: 0; font-weight: 500; line-height: 1.55; }

/* ---------- Doctor ---------- */
.doc { display: grid; gap: 36px; align-items: start; }
@media (min-width: 820px) { .doc { grid-template-columns: 0.82fr 1.18fr; } }
/* 원장 2명 이상: 블록 간 간격 + 짝수 번째 좌우 반전(사진 우측) */
.doc--multi + .doc--multi { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--inuri-line); }
@media (min-width: 820px) {
    .doc--flip { grid-template-columns: 1.18fr 0.82fr; }
    .doc--flip .doc-photo { order: 2; }
    .doc--flip .doc-info { order: 1; }
}
.doc-photo { position: relative; }
.doc-photo image-slot { width: 100%; height: 440px; border-radius: var(--r-xl); box-shadow: var(--sh-md); }
/* 원장 사진 프레임 — 원본(10:11) 비율에 맞춰 크롭 없이 표시 */
.doc-photo-frame { width: 100%; aspect-ratio: 10 / 11; border-radius: var(--r-xl); box-shadow: var(--sh-md); overflow: hidden; background: #fff; display: grid; place-items: center; color: var(--inuri-ink-3); font-weight: 600; }
@media (min-width: 820px) { .doc-photo-frame { position: sticky; top: 92px; } }

/* 원장 이름/소개 */
.doc-name { font-size: 21px; font-weight: 800; color: var(--inuri-ink); margin: 12px 0 0; letter-spacing: -0.02em; }
.doc-name span { font-size: 15px; font-weight: 600; color: var(--inuri-ink-3); margin-left: 7px; }
.doc-intro { margin-top: 18px; }
.doc-intro p { font-size: 15.5px; line-height: 1.85; color: var(--inuri-ink-2); margin: 0; }
.doc-intro p + p { margin-top: 14px; }
.doc-quote { margin-top: 26px; max-width: 480px; border-color: var(--accent); }

/* 프로필 아코디언 (학력/경력/논문) */
.doc-profile { margin-top: 32px; border-top: 1px solid var(--inuri-line); }
.doc-prof { border-bottom: 1px solid var(--inuri-line); }
.doc-prof summary { list-style: none; cursor: pointer; display: flex; align-items: center; padding: 17px 4px; font-size: 16px; font-weight: 700; color: var(--inuri-ink); transition: color .14s ease; }
.doc-prof summary::-webkit-details-marker { display: none; }
.doc-prof summary:hover { color: var(--accent-deep); }
.doc-prof summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--inuri-ink-3); border-bottom: 2px solid var(--inuri-ink-3); transform: rotate(45deg); transition: transform .2s ease; }
.doc-prof[open] summary::after { transform: rotate(-135deg); }
.doc-prof[open] summary { color: var(--accent-deep); }
.doc-prof ul { margin: 0; padding: 2px 0 20px; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.doc-prof li { position: relative; padding-left: 17px; font-size: 14.5px; line-height: 1.55; color: var(--inuri-ink-2); }
.doc-prof li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cred { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.cred li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--inuri-ink-2); font-weight: 500; }
.cred li .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-wash); color: var(--accent-deep); display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; }

/* ---------- Strengths ---------- */
.str-grid { display: grid; gap: 18px; margin-top: 46px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .str-grid { grid-template-columns: repeat(3,1fr); } }
.str { background: #fff; border-radius: var(--r-xl); padding: 32px 28px; border: 1px solid var(--inuri-line); box-shadow: var(--sh-sm); position: relative; overflow: hidden; }
.str .num { font-family: var(--font-num); font-weight: 800; font-size: 16px; color: var(--accent-on); background: linear-gradient(180deg, var(--accent-bright), var(--accent)); width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; box-shadow: var(--sh-yellow); }
.str h3 { font-size: 20px; margin: 0 0 10px; }
.str p { margin: 0; color: var(--inuri-ink-2); font-size: 15px; font-weight: 500; line-height: 1.6; }

/* ---------- Reviews ---------- */
.rev-grid { display: grid; gap: 18px; margin-top: 46px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .rev-grid { grid-template-columns: repeat(3,1fr); } }
.rev { background: #fff; border-radius: var(--r-xl); padding: 28px; border: 1px solid var(--inuri-line); box-shadow: var(--sh-sm); }
.stars { color: var(--accent); font-size: 17px; letter-spacing: 2px; }
.rev p { font-size: 15px; color: var(--inuri-ink); margin: 14px 0 18px; font-weight: 500; line-height: 1.66; }
.rev .who { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--inuri-ink-3); font-weight: 500; }

/* ---------- Location ---------- */
.loc { display: grid; gap: 28px; }
@media (min-width: 820px) { .loc { grid-template-columns: 1.1fr 0.9fr; } }
.loc image-slot { width: 100%; height: 380px; border-radius: var(--r-xl); box-shadow: var(--sh-sm); }
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--inuri-line); }
.info-row:last-child { border-bottom: none; }
.info-row .k { font-weight: 700; font-size: 15px; width: 88px; flex: none; color: var(--inuri-ink); }
.info-row .v { font-size: 15px; color: var(--inuri-ink-2); font-weight: 500; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 7px 20px; font-size: 15px; }
.hours .d { color: var(--inuri-ink-2); font-weight: 500; }
.hours .t { font-weight: 700; }
.hours .off { color: var(--inuri-coral); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 46px auto 0; text-align: left; }
.qa { background: #fff; border: 1px solid var(--inuri-line); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; transition: box-shadow .2s; }
.qa.open { box-shadow: var(--sh-md); }
.qa .q { display: flex; align-items: center; gap: 12px; padding: 20px 24px; cursor: pointer; font-family: var(--head-font); font-weight: 700; font-size: 17px; }
.qa .q .qmark { color: var(--accent-deep); font-weight: 800; font-family: var(--font-num); }
.qa .q .mark { margin-left: auto; transition: transform .25s; color: var(--inuri-ink-3); font-size: 24px; font-weight: 300; }
.qa.open .q .mark { transform: rotate(45deg); color: var(--accent-deep); }
.qa .a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.qa .a-in { padding: 0 24px 22px 52px; color: var(--inuri-ink-2); font-size: 15px; font-weight: 500; line-height: 1.7; }

/* FAQ 2단 — 질환별 그룹(접힘 축약). 스키마=화면 일치를 위해 나머지 전체를 그룹으로 노출 */
.faq-groups { max-width: 760px; margin: 16px auto 0; text-align: left; }
/* 마스터 토글 — "진료항목별 상세 FAQ" 하나로 묶고, 펼치면 질환별 그룹이 나옴 */
.faq-master { border-radius: var(--r-md); }
.faq-master__sum { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 24px; font-family: var(--head-font); font-weight: 700; font-size: 16.5px; color: var(--inuri-ink); background: var(--accent-wash); border: 1px solid var(--accent-soft); border-radius: var(--r-md); }
.faq-master__sum::-webkit-details-marker { display: none; }
.faq-master__sum::after { content: '+'; margin-left: auto; font-size: 25px; font-weight: 300; color: var(--accent-deep); transition: transform .25s; }
.faq-master[open] > .faq-master__sum { border-radius: var(--r-md) var(--r-md) 0 0; }
.faq-master[open] > .faq-master__sum::after { transform: rotate(45deg); }
.faq-master__n { font-family: var(--font-num); font-size: 12.5px; font-weight: 700; color: var(--accent-deep); }
.faq-master__body { padding: 14px; background: var(--inuri-cream-2, #faf7f2); border: 1px solid var(--accent-soft); border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); }
.faq-group { background: #fff; border: 1px solid var(--inuri-line); border-radius: var(--r-md); margin-bottom: 10px; overflow: hidden; }
.faq-master__body .faq-group:last-child { margin-bottom: 0; }
.faq-group__sum { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 15px 22px; font-family: var(--head-font); font-weight: 700; font-size: 15.5px; color: var(--inuri-ink); }
.faq-group__sum::-webkit-details-marker { display: none; }
.faq-group__sum::after { content: '+'; margin-left: auto; font-size: 23px; font-weight: 300; color: var(--inuri-ink-3); transition: transform .25s; }
.faq-group[open] .faq-group__sum::after { transform: rotate(45deg); color: var(--accent-deep); }
.faq-group__n { font-family: var(--font-num); font-size: 12px; font-weight: 700; color: var(--accent-deep); background: var(--accent-wash); border-radius: 999px; padding: 2px 9px; }
.faq-group__body { padding: 4px 22px 6px; border-top: 1px solid var(--inuri-line); }
.faq-qa { padding: 15px 0; border-bottom: 1px solid var(--inuri-line); }
.faq-qa:last-child { border-bottom: 0; }
.faq-qa__q { display: flex; gap: 8px; font-family: var(--head-font); font-weight: 700; font-size: 14.5px; color: var(--inuri-ink); margin: 0 0 7px; }
.faq-qa__q .qmark { color: var(--accent-deep); font-weight: 800; font-family: var(--font-num); }
.faq-qa__a { margin: 0; padding-left: 22px; font-size: 14.5px; color: var(--inuri-ink-2); line-height: 1.7; }

/* ---------- Event banner ---------- */
.event { position: relative; overflow: hidden; border-radius: var(--r-2xl); background: var(--inuri-ink); color: #fff; padding: clamp(30px,5vw,56px); display: grid; gap: 22px; align-items: center; }
@media (min-width: 760px) { .event { grid-template-columns: 1fr auto; } }
.event h2 { font-size: var(--t-h2); margin: 0 0 10px; color: #fff; }
.event .period { font-family: var(--font-num); font-weight: 700; color: var(--accent); font-size: 14px; letter-spacing: 0.02em; }
.event p { color: rgba(255,255,255,.72); }

/* ---------- Booking band ---------- */
.book-band { background: linear-gradient(160deg, var(--accent-wash), #fff 70%); }

/* ---------- Program tabs (진료 프로그램) ---------- */
.prog-tabs { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 42px 0 30px; }
.prog-tab { display: inline-flex; align-items: center; font-family: var(--head-font); font-weight: 700; font-size: 15px; color: var(--inuri-ink-2); background: #fff; border: 1px solid var(--inuri-line); padding: 12px 22px; border-radius: var(--r-pill); cursor: pointer; transition: transform .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease; }
.prog-tab:hover { border-color: var(--accent); color: var(--inuri-ink); transform: translateY(-2px); }
.prog-tab.active { background: linear-gradient(180deg, var(--accent-bright), var(--accent)); color: var(--accent-on); border-color: transparent; box-shadow: var(--sh-yellow); }
.prog-panel { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--inuri-line); border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--sh-md); }
@media (min-width: 820px) { .prog-panel { grid-template-columns: 1.05fr 0.95fr; } }
.prog-text { padding: clamp(28px, 4vw, 50px); display: flex; flex-direction: column; align-items: flex-start; }
.prog-no { font-family: var(--font-num); font-weight: 800; font-size: 15px; color: var(--accent-deep); letter-spacing: .03em; white-space: nowrap; }
.prog-no em { font-style: normal; color: var(--inuri-ink-3); font-weight: 700; }
.prog-text h3 { font-size: clamp(26px, 3.4vw, 38px); margin: 12px 0 14px; }
.prog-text > p { font-size: 16px; color: var(--inuri-ink-2); font-weight: 500; line-height: 1.7; margin: 0 0 22px; max-width: 430px; }
.prog-tags { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0 0 28px; list-style: none; }
.prog-tags li { font-size: 13.5px; font-weight: 600; color: var(--inuri-ink-2); background: var(--accent-wash); border: 1px solid var(--accent-soft); padding: 7px 14px; border-radius: var(--r-pill); }
.prog-img { position: relative; aspect-ratio: 87 / 95; background: var(--inuri-cream-2); }
.prog-img image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 87:95 비율 고정 — 그리드가 패널 높이에 맞춰 세로로 늘려 크롭하지 않도록 align-self 로 비율 유지 */
@media (min-width: 820px) { .prog-img { align-self: start; } }

/* ---------- Footer ---------- */
.ft-main-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--head-font); font-weight: 700; font-size: 14.5px; color: var(--inuri-ink) !important; background: var(--accent); padding: 11px 20px; border-radius: var(--r-pill); transition: transform .14s ease, box-shadow .14s ease; }
.ft-main-link:hover { transform: translateY(-2px); box-shadow: var(--sh-yellow); color: var(--inuri-ink) !important; }
.ft-main-link span { transition: transform .14s ease; }
.ft-main-link:hover span { transform: translateX(3px); }
.ft { background: var(--inuri-ink); color: #fff; padding: 60px 0 40px; }
.ft a { color: rgba(255,255,255,.7); transition: color .15s; }
.ft a:hover { color: #fff; }
.ft .cols { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ft .cols { grid-template-columns: 1.5fr 1fr 1fr; } }
.ft h4 { font-family: var(--head-font); font-weight: 700; font-size: 15px; margin: 0 0 14px; color: var(--accent); }
.ft ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(255,255,255,.7); }
.ft .legal { margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: rgba(255,255,255,.45); line-height: 1.9; }

/* ---------- Floating actions ---------- */
.floats { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab { display: flex; align-items: center; gap: 0; height: 56px; padding: 0 16px; border-radius: var(--r-pill); border: none; cursor: pointer; font-family: var(--head-font); font-weight: 700; font-size: 15px; color: #fff; box-shadow: var(--sh-md); overflow: hidden; max-width: 56px; transition: max-width .3s cubic-bezier(.4,0,.2,1), gap .3s; white-space: nowrap; }
.fab .lbl { opacity: 0; transition: opacity .2s; }
.fab:hover { max-width: 220px; gap: 10px; }
.fab:hover .lbl { opacity: 1; }
.fab .em { font-size: 22px; flex: none; line-height: 1; }
.fab.call { background: var(--inuri-green); }
.fab.kakao { background: #FEE500; color: #3A1D1D; }
.fab.book { background: linear-gradient(180deg, var(--accent-bright), var(--accent)); color: var(--accent-on); }
@media (min-width: 760px) { .floats { right: 26px; bottom: 26px; } }

.hide-mob { display: none; }
@media (min-width: 760px) { .hide-mob { display: block; } }

/* ---------- Event popup (최대 3개 배너) ---------- */
.popup-ov { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.22); display: grid; place-items: center; padding: 20px; animation: popIn .25s ease; }
@keyframes popIn { from { opacity: 0; } to { opacity: 1; } }
.popup-card { width: min(380px, 94vw); background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); animation: popUp .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes popUp { from { transform: translateY(20px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.popup-top { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; background: linear-gradient(180deg, var(--accent-bright), var(--accent)); color: var(--accent-on); }
.popup-page { font-family: var(--font-num); font-weight: 700; font-size: 14px; white-space: nowrap; }
.popup-page b { font-size: 16px; }
.popup-nav { display: flex; gap: 6px; }
.popup-nav button { width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(255,255,255,.55); color: var(--inuri-ink); font-size: 19px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .14s; }
.popup-nav button:hover:not(:disabled) { background: #fff; }
.popup-nav button:disabled { opacity: .4; cursor: default; }
.popup-slides { position: relative; overflow: hidden; background: #fff; }
.popup-slide { display: none; }
.popup-slide.is-active { display: block; animation: slideFade .3s ease; }
.popup-slide img { width: 100%; height: auto; max-height: 60vh; object-fit: contain; display: block; }
@keyframes slideFade { from { opacity: 0; } to { opacity: 1; } }
.popup-bubi { position: absolute; right: 12px; bottom: 12px; z-index: 2; pointer-events: none; }

/* footer controls — 다시 보지 않기 / 닫기 */
.popup-foot { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-top: 1px solid var(--inuri-line); }
.popup-check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--inuri-ink-2); font-weight: 500; cursor: pointer; white-space: nowrap; }
.popup-check input { display: none; }
.popup-check .cc { width: 21px; height: 21px; display: inline-grid; place-items: center; color: #b6b6bf; flex: none; }
.popup-check .cc svg { width: 21px; height: 21px; fill: currentColor; }
.popup-check .cc .on { display: none; }
.popup-check input:checked + .cc { color: var(--accent-deep); }
.popup-check input:checked + .cc .off { display: none; }
.popup-check input:checked + .cc .on { display: block; }
.popup-close { font-family: var(--head-font); font-weight: 700; font-size: 14.5px; color: var(--inuri-ink-2); background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.popup-close svg { width: 13px; height: 13px; fill: currentColor; }
.popup-close:hover { color: var(--accent-deep); }

/* ===== PC: 슬라이더 대신 배너 3장 나란히 (원본 디자인) ===== */
@media (min-width: 760px) {
  .popup-card { width: min(1040px, 94vw); background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
  .popup-top { display: none; }
  .popup-slides { display: flex; gap: 20px; background: transparent; overflow: visible; }
  .popup-slide, .popup-slide.is-active { display: block; flex: 1 1 0; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 44px rgba(0,0,0,.20); animation: none; }
  .popup-slide img { max-height: 74vh; }
  .popup-bubi { display: none; }
  .popup-foot { padding: 16px 2px 0; border-top: none; }
  /* PC: 팝업이 투명 카드(딤드 배경) 위에 떠서 글자를 흰색으로 */
  .popup-check, .popup-close { color: #fff; font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
  .popup-check .cc { color: #fff; }
  .popup-close:hover, .popup-check:hover { color: rgba(255,255,255,.85); }
}

/* ============ 공간 둘러보기 (#spaces) ============ */
.spaces { margin-top: 38px; }
.spaces-viewport {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.spaces-viewport::-webkit-scrollbar { display: none; }
.spaces-track { display: flex; gap: 30px; padding: 4px 2px 8px; }
.space-slide {
  flex: 0 0 auto; width: clamp(260px, 78vw, 346px); margin: 0;
  scroll-snap-align: start; text-align: left;
}
.space-img {
  border-radius: var(--r-lg); overflow: hidden; background: var(--inuri-cream-2);
  border: 1px solid var(--inuri-line); box-shadow: var(--sh-sm); aspect-ratio: 4 / 3;
}
.space-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.space-txt { padding: 16px 4px 0; }
.space-tit {
  font-family: var(--head-font); font-weight: 800; font-size: 17px;
  color: var(--inuri-ink); margin-bottom: 6px;
}
.space-cap { font-size: 14.5px; line-height: 1.55; color: var(--inuri-ink-2); margin: 0; font-weight: 500; }

.spaces-btns { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.spaces-btn {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: #fff; color: var(--inuri-ink);
  border: 1px solid var(--inuri-line); box-shadow: var(--sh-sm);
  transition: color .15s, box-shadow .15s, transform .15s;
}
.spaces-btn:hover { color: var(--accent-deep); box-shadow: inset 0 0 0 1.5px var(--accent), var(--sh-md); transform: translateY(-2px); }
.spaces-btn:disabled { opacity: .35; cursor: default; box-shadow: var(--sh-sm); transform: none; color: var(--inuri-ink-3); }

.spaces-progress { max-width: 240px; height: 4px; margin: 18px auto 0; border-radius: var(--r-pill); background: var(--inuri-line); overflow: hidden; }
.spaces-progress__fill {
  display: block; height: 100%; width: 30%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform-origin: left center; transition: width .25s ease;
}
