/* AILO Medical M06 — 움직임 재활의학과
   원형: A 풀블리드 슬라이드형(치료실 실사 3장 + 진료 정보 겹침 바), 재활 프로그램 분류 탭, 어두운 네이비 프로그램·예약 섹션
   타이포: Pretendard + Montserrat(eyebrow·숫자만) / 컬러: 슬레이트 네이비 #22344f 1색 + 무채색 */

:root {
  --ailo-bg: #ffffff;
  --ailo-fg: #141a24;
  --ailo-muted: #4e5664;
  --ailo-line: #e1e5eb;
  --ailo-accent: #22344f;
  --ailo-header-h: 84px;
  --ailo-mega-col: 7.6em;

  --m06-navy: #22344f;
  --m06-navy-d: #182638;
  --m06-navy-l: #8fa3c0;
  --m06-surface: #f4f6f9;
  --m06-r: 6px;
  --m06-sec: clamp(72px, 8vw, 128px);
  --m06-en: "Montserrat", "Pretendard Variable", Pretendard, sans-serif;
}

body { font-size: 17px; letter-spacing: -.01em; }
main img { height: auto; }
.sec { padding-block: var(--m06-sec); }
.ailo-eyebrow, .eyebrow { font-family: var(--m06-en); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--m06-navy); margin-bottom: 14px; }
.eyebrow--light { color: var(--m06-navy-l); }
.h2 { font-size: clamp(28px, 1.9vw + 18px, 48px); font-weight: 800; line-height: 1.25; letter-spacing: -.03em; }
.h2--light { color: #fff; }
.h3 { font-size: 24px; font-weight: 800; }
.sec__head { margin-bottom: clamp(32px, 3vw, 52px); }
.sec__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sec__desc { margin-top: 14px; font-size: 17px; color: var(--ailo-muted); max-width: 40em; }
.note { margin-top: 24px; font-size: 15px; color: var(--ailo-muted); }
.note--light { color: #b9c3d2; }

.mv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: var(--m06-r); font-size: 16px; font-weight: 700;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; white-space: nowrap;
}
.mv-btn--navy { background: var(--m06-navy); color: #fff; }
.mv-btn--navy:hover, .mv-btn--navy:focus-visible { background: var(--m06-navy-d); color: #fff; }
.mv-btn--line { border-color: var(--ailo-line); color: var(--ailo-fg); background: #fff; }
.mv-btn--line:hover { border-color: var(--m06-navy); }

/* ---------- Header ---------- */
.hd__in { display: flex; align-items: center; gap: 20px; height: var(--ailo-header-h); }
.hd__logo { display: flex; align-items: center; gap: 10px; flex: none; }
.hd__mark { width: 30px; height: 30px; border-radius: 6px; background: currentColor; position: relative; }
.hd__mark::after { content: ""; position: absolute; left: 7px; right: 7px; top: 13px; height: 4px; background: var(--m06-navy); border-radius: 2px; box-shadow: 0 -7px 0 -0px transparent; }
.hd.is-scrolled .hd__mark, html.nav-open .hd .hd__mark { background: var(--m06-navy); }
.hd.is-scrolled .hd__mark::after, html.nav-open .hd .hd__mark::after { background: #fff; }
.hd__name { display: flex; flex-direction: column; font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.hd__name small { font-size: 13px; font-weight: 600; letter-spacing: .02em; opacity: .75; }
.hd .ailo-mega { margin-inline: auto; }
.hd__tel { font-family: var(--m06-en); font-weight: 700; font-size: 16px; white-space: nowrap; }
.hd__cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
.hd:not(.is-scrolled) .hd__cta { background: #fff; color: var(--m06-navy); }

.mnav { background: #fff; }
.mnav__in { padding: 96px var(--ailo-gutter) 40px; display: grid; gap: 4px; }
.mnav__in > a:not(.mv-btn) { display: flex; gap: 14px; align-items: baseline; padding: 15px 0; font-size: 21px; font-weight: 700; border-bottom: 1px solid var(--ailo-line); }
.mnav__in em { font-family: var(--m06-en); font-style: normal; font-size: 13px; color: var(--m06-navy); }
.mnav__in .mv-btn { margin-top: 20px; }
.mnav__tel { margin-top: 12px; font-size: 15px; color: var(--ailo-muted); }
.mnav__tel b { font-family: var(--m06-en); font-size: 20px; color: var(--ailo-fg); margin-left: 6px; }

/* ---------- Hero ---------- */
.hero { --ailo-hero-dim: linear-gradient(90deg, rgba(14, 22, 36, .7) 0%, rgba(14, 22, 36, .42) 60%, rgba(14, 22, 36, .25) 100%); --ailo-hero-btn-radius: 6px; }
.hero .ailo-hero__btn:not(.ailo-hero__btn--ghost) { background: #fff; color: var(--m06-navy); }
.hero .ailo-hero__btn:not(.ailo-hero__btn--ghost):hover { background: #e8ecf2; }
.hero__bar { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 !important; overflow: hidden; }
.hero__bar li { display: flex; align-items: center; gap: 16px; padding: 26px 28px; }
.hero__bar li + li { border-left: 1px solid var(--ailo-line); }
.hero__bar li:last-child { padding: 0; background: var(--m06-navy); color: #fff; }
.hero__bar li:last-child a { display: flex; align-items: center; gap: 16px; padding: 26px 28px; width: 100%; height: 100%; }
.hero__bar li:last-child a:hover { color: #fff; background: var(--m06-navy-d); }
.hero__bar i { font-size: 22px; color: var(--m06-navy); width: 26px; }
.hero__bar li:last-child i { color: #fff; }
.hero__bar small { display: block; font-size: 14px; opacity: .75; }
.hero__bar b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.about__list { display: grid; gap: 0; border-top: 1px solid var(--ailo-fg); }
.about__list li { display: grid; grid-template-columns: 64px 180px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--ailo-line); align-items: baseline; }
.num { font-family: var(--m06-en); font-size: 15px; font-weight: 800; color: var(--m06-navy); }
.about__list h3 { font-size: 20px; font-weight: 700; }
.about__list p { font-size: 16px; color: var(--ailo-muted); }

/* ---------- Clinic ---------- */
.clinic { background: var(--m06-surface); }
.clinic__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cl { position: relative; display: grid; gap: 8px; padding: 32px 30px; background: #fff; border-radius: var(--m06-r); transition: box-shadow .25s, transform .25s; }
.cl:hover { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .16); transform: translateY(-3px); }
.cl__no { position: absolute; right: 26px; top: 26px; font-family: var(--m06-en); font-size: 14px; font-weight: 700; color: #9aa3b1; }
.cl > i { font-size: 26px; color: var(--m06-navy); margin-bottom: 12px; }
.cl h3 { font-size: 21px; font-weight: 700; }
.cl p { font-size: 16px; color: var(--ailo-muted); }
.cl__go { margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--m06-navy); }

/* ---------- Stats ---------- */
.stats { padding-block: clamp(56px, 6vw, 88px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.st { padding-left: 28px; border-left: 1px solid var(--ailo-line); }
.st:first-child { padding-left: 0; border: 0; }
.st b { font-family: var(--m06-en); font-size: clamp(38px, 3.6vw, 56px); font-weight: 800; color: var(--m06-navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.st small { font-family: var(--ailo-font); font-size: 18px; margin-left: 4px; }
.st p { margin-top: 6px; font-size: 16px; color: var(--ailo-muted); }

/* ---------- Program ---------- */
.program { background: var(--m06-navy-d); color: #fff; }
.program__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.filter { display: flex; gap: 4px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.filter button { min-height: 48px; padding: 0 18px; border: 0; background: transparent; color: #b9c3d2; font-size: 17px; font-weight: 600; position: relative; }
.filter button.is-on { color: #fff; font-weight: 700; }
.filter button.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #fff; }
.pg__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pg[hidden] { display: none; }
.pg { background: #fff; color: var(--ailo-fg); border-radius: var(--m06-r); overflow: hidden; }
.pg__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pg__body { padding: 24px 26px 26px; }
.pg__tag { font-family: var(--m06-en); font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--m06-navy); }
.pg h3 { font-size: 20px; font-weight: 700; margin: 8px 0 8px; }
.pg p { font-size: 16px; color: var(--ailo-muted); }
.pg__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ailo-line); }
.pg__meta li { font-size: 14px; color: #3f4754; }
.pg__meta i { color: var(--m06-navy); margin-right: 4px; }
.phase { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .18); }
.phase li { padding: 18px 12px 0 0; display: grid; gap: 2px; }
.phase b { font-family: var(--m06-en); font-size: 14px; font-weight: 700; color: var(--m06-navy-l); letter-spacing: .08em; }
.phase span { font-size: 16px; font-weight: 600; }

/* ---------- Doctors ---------- */
.doc__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doc__img { position: relative; border-radius: var(--m06-r); overflow: hidden; background: var(--m06-surface); margin-bottom: 18px; }
.doc__img img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.doc__role { position: absolute; left: 12px; top: 12px; background: var(--m06-navy); color: #fff; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 4px; }
.doc h3 { font-size: 22px; font-weight: 800; }
.doc__dept { font-size: 15px; font-weight: 600; color: var(--m06-navy); margin: 2px 0 10px; }
.doc ul { display: grid; gap: 2px; }
.doc ul li { font-size: 15px; color: var(--ailo-muted); }

/* ---------- Hours + Notice ---------- */
.hours { background: var(--m06-surface); }
.hours__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.hours__grid > * { min-width: 0; }
.hours__box .h2 { margin-bottom: 24px; }
.ht { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ailo-fg); font-variant-numeric: tabular-nums; }
.ht th, .ht td { padding: 15px 4px; border-bottom: 1px solid var(--ailo-line); font-size: 17px; }
.ht th { font-weight: 600; }
.ht td { text-align: right; }
.ht em { font-style: normal; font-size: 13px; font-weight: 700; color: #fff; background: var(--m06-navy); padding: 2px 8px; border-radius: 4px; margin-left: 6px; }
.ht small { display: block; font-size: 14px; color: var(--ailo-muted); }
.ht .is-break { color: var(--ailo-muted); }
.ht .is-off td { color: #a0303a; font-weight: 600; }
.ht .is-today { background: #fff; }
.hours__memo { margin: 18px 0 20px; font-size: 15px; color: var(--ailo-muted); }
.hours__links { display: flex; flex-wrap: wrap; gap: 10px; }
.notice { background: #fff; border-radius: var(--m06-r); padding: clamp(24px, 3vw, 40px); }
.notice__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.more { font-size: 15px; font-weight: 600; color: var(--ailo-muted); }
.more:hover { color: var(--m06-navy); }
.notice__list { border-top: 1px solid var(--ailo-fg); }
.notice__list a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 17px 2px; border-bottom: 1px solid var(--ailo-line); }
.nt-cat { font-size: 14px; font-weight: 700; color: var(--m06-navy); background: var(--m06-surface); padding: 2px 8px; border-radius: 4px; }
.notice__list b { font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice__list time { font-size: 14px; color: var(--ailo-muted); font-variant-numeric: tabular-nums; }
.notice__list a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Voice ---------- */
.voice__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.voice__grid blockquote { margin: 0; padding: 30px 28px; background: var(--m06-surface); border-radius: var(--m06-r); display: grid; gap: 16px; }
.voice__grid p { font-size: 17px; line-height: 1.65; }
.voice__grid cite { font-style: normal; font-size: 14px; color: var(--ailo-muted); }

/* ---------- Partners ---------- */
.partners { padding: 40px 0; border-top: 1px solid var(--ailo-line); }
.partners__in { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.partners__label { font-size: 15px; font-weight: 700; }
.partners ul { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.partners li { font-size: 17px; font-weight: 700; color: #7d8592; }

/* ---------- Reserve ---------- */
.reserve { background: var(--m06-navy); color: #fff; }
.reserve__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.reserve__info > p { margin-top: 16px; font-size: 17px; color: #c9d1dd; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 32px 0; }
.steps li { display: grid; gap: 8px; font-size: 15px; font-weight: 600; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .25); }
.steps b { font-family: var(--m06-en); font-size: 14px; color: var(--m06-navy-l); }
.reserve__tel { display: inline-flex; align-items: center; gap: 12px; font-family: var(--m06-en); font-size: 30px; font-weight: 800; }
.reserve__tel:hover { color: #fff; opacity: .85; }
.rf { background: #fff; color: var(--ailo-fg); border-radius: var(--m06-r); padding: clamp(28px, 3vw, 44px); display: grid; gap: 16px; }
.rf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld > span, .fld legend { font-size: 15px; font-weight: 600; float: none; padding: 0; margin: 0 0 6px; }
.fld small { font-weight: 400; color: var(--ailo-muted); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cfd5de; border-radius: var(--m06-r); font-size: 16px; color: var(--ailo-fg); background: #fff; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--m06-navy); box-shadow: 0 0 0 3px rgba(34, 52, 79, .15); }
.fld--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fld--chips legend { width: 100%; }
.fld--chips label { position: relative; }
.fld--chips input { position: absolute; opacity: 0; inset: 0; min-height: 0; }
.fld--chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ailo-line); border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; }
.fld--chips input:checked + span { background: var(--m06-navy); border-color: var(--m06-navy); color: #fff; }
.fld--chips input:focus-visible + span { outline: 2px solid var(--m06-navy); outline-offset: 2px; }
.agree { display: flex; gap: 10px; font-size: 14px; color: var(--ailo-muted); }
.agree input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--m06-navy); }
.agree a { color: var(--ailo-fg); text-decoration: underline; }
.rf__submit { width: 100%; min-height: 56px; }

/* ---------- Location ---------- */
.loc__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.loc__map { position: relative; border-radius: var(--m06-r); overflow: hidden; aspect-ratio: 3 / 2; }
.loc__map svg { width: 100%; height: 100%; }
.loc__pin { position: absolute; left: 72%; top: 38%; background: var(--m06-navy); color: #fff; font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 4px; translate: -50% -100%; white-space: nowrap; }
.loc__info dl { margin: 24px 0 0; border-top: 1px solid var(--ailo-fg); }
.loc__info dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--ailo-line); }
.loc__info dt { font-size: 16px; font-weight: 700; }
.loc__info dt i { color: var(--m06-navy); width: 20px; }
.loc__info dd { margin: 0; font-size: 16px; color: #3f4754; }

/* ---------- Footer ---------- */
.ft { background: #12161d; color: #b1b8c3; padding: 56px 0 40px; font-size: 14px; }
.ft__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ft__logo { color: #fff; }
.ft__logo .hd__mark::after { background: #12161d; }
.ft__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.ft__links a:hover, .ft__links strong { color: #fff; }
.ft__info { font-style: normal; line-height: 1.9; }
.ft__info > span:not(:last-child)::after { content: "·"; margin: 0 8px; color: #6c7482; }
.ft__copy { margin-top: 14px; font-size: 13px; color: #868e9a; }

.mbar { display: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 1199.98px) {
  .hd__tel { display: none; }
  .doc__grid { grid-template-columns: repeat(2, 1fr); }
  .about__list li { grid-template-columns: 48px 1fr; }
  .about__list p { grid-column: 2; }
}
@media (max-width: 991.98px) {
  :root { --ailo-header-h: 68px; }
  .hd__cta { display: none; }
  .hd__in { justify-content: space-between; }
  .hero__bar { grid-template-columns: 1fr 1fr; }
  .hero__bar li:nth-child(3) { border-left: 0; }
  .hero__bar li:nth-child(n+3) { border-top: 1px solid var(--ailo-line); }
  .about__grid, .hours__grid, .reserve__grid, .loc__grid { grid-template-columns: 1fr; }
  .clinic__grid, .pg__track, .voice__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .st:nth-child(3) { padding-left: 0; border: 0; }
  .phase { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .mbar { display: grid; grid-template-columns: 1fr 1.2fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid var(--ailo-line); padding-bottom: env(safe-area-inset-bottom); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; font-size: 15px; font-weight: 700; }
  .mbar i { color: var(--m06-navy); }
  .mbar__main, .mbar__main:hover { background: var(--m06-navy); color: #fff; }
  .mbar__main i { color: #fff; }
  body { padding-bottom: 60px; }
}
@media (max-width: 575.98px) {
  .hero__bar { grid-template-columns: 1fr; }
  .hero__bar li { padding: 16px 20px; }
  .hero__bar li + li { border-left: 0; border-top: 1px solid var(--ailo-line); }
  .hero__bar li:nth-child(2), .hero__bar li:nth-child(3) { display: none; }
  .hero__bar li:last-child a { padding: 16px 20px; }
  .clinic__grid, .pg__track, .voice__grid, .doc__grid, .rf__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .phase { grid-template-columns: 1fr 1fr; }
  .filter { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filter button { flex: none; padding: 0 14px; font-size: 16px; }
  .notice__list a { grid-template-columns: auto 1fr; }
  .notice__list time { display: none; }
  .loc__info dl > div { grid-template-columns: 1fr; gap: 2px; }
  .reserve__tel { font-size: 26px; }
}
