/* AILO Medical M01 — 바른척추병원 (척추·관절 전문병원)
   원형: A 풀블리드 슬라이드형(투명→흰 헤더 + 메가메뉴 + 진료시간·빠른메뉴 겹침 카드)
   타이포: Pretendard + Manrope(eyebrow·숫자만) / 컬러: 메디컬 네이비 #1f4f8f 1색 + 무채색 */

:root {
  --ailo-bg: #ffffff;
  --ailo-fg: #16181d;
  --ailo-muted: #4f5561;
  --ailo-line: #e3e6eb;
  --ailo-accent: #1f4f8f;
  --ailo-header-h: 124px;
  --ailo-mega-col: 7.4em;
  --ailo-eyebrow-color: var(--ailo-accent);

  --m01-navy: #1f4f8f;
  --m01-navy-d: #173c6d;
  --m01-ink: #15233a;
  --m01-surface: #f5f6f8;
  --m01-ok: #2f7d5b;
  --m01-r: 10px;
  --m01-sec: clamp(72px, 8vw, 128px);
  --m01-en: "Manrope", "Pretendard Variable", Pretendard, sans-serif;
}

body { font-size: 17px; letter-spacing: -.01em; }
.ailo-eyebrow { font-family: var(--m01-en); }

/* ---------- 공통 ---------- */
main img { height: auto; } /* width·height 속성이 고정 높이로 남지 않게(aspect-ratio 우선) */
.sec { padding-block: var(--m01-sec); }
.m01-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 6px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; white-space: nowrap;
}
.m01-btn--lg { min-height: 56px; padding: 0 28px; }
.m01-btn--block { width: 100%; }
.m01-btn--solid { background: var(--m01-navy); color: #fff; }
.m01-btn--solid:hover, .m01-btn--solid:focus-visible { background: var(--m01-navy-d); color: #fff; }

/* ---------- Header ---------- */
.hd__util { font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, .16); transition: border-color .3s; }
.hd.is-scrolled .hd__util, .hd.is-mega-open .hd__util, .hd:has(:focus-visible) .hd__util { border-color: var(--ailo-line); }
.hd__util-in { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 16px; }
.hd__util p { opacity: .88; }
.hd__util-links { display: flex; align-items: center; gap: 20px; }
.hd__util-links a { opacity: .88; }
.hd__util-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.hd__tel { font-family: var(--m01-en); font-weight: 700; opacity: 1 !important; }
.hd__bar { display: flex; align-items: center; gap: 20px; height: 84px; }
.hd .ailo-mega { margin-inline: auto; }
.hd__right { display: flex; align-items: center; gap: 8px; }
.hd__cta { min-height: 44px; padding: 0 18px; font-size: 15px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 22px; height: 30px; fill: currentColor; }
.hd.is-scrolled .logo__mark, .hd.is-mega-open .logo__mark, .hd:has(:focus-visible) .logo__mark, html.nav-open .hd .logo__mark { fill: var(--m01-navy); }
.logo__txt { display: flex; flex-direction: column; line-height: 1.15; }
.logo__txt b { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.logo__txt small { font-family: var(--m01-en); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; opacity: .7; }

/* 모바일 메뉴 */
.mnav { background: #fff; color: var(--ailo-fg); }
.mnav__in { padding: 88px var(--ailo-gutter) 40px; display: grid; gap: 28px; }
.mnav nav a { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; font-size: 21px; font-weight: 700; border-bottom: 1px solid var(--ailo-line); }
.mnav nav a span { font-family: var(--m01-en); font-size: 13px; color: var(--m01-navy); }
.mnav__box { background: var(--m01-surface); border-radius: var(--m01-r); padding: 22px; display: grid; gap: 10px; }
.mnav__box p { font-size: 14px; color: var(--ailo-muted); }
.mnav__tel { font-family: var(--m01-en); font-size: 26px; font-weight: 800; color: var(--m01-navy); }
.mnav__fee { font-size: 15px; color: var(--ailo-muted); }

/* ---------- Hero ---------- */
.hero { --ailo-hero-dim: linear-gradient(90deg, rgba(10, 20, 36, .66) 0%, rgba(10, 20, 36, .4) 55%, rgba(10, 20, 36, .22) 100%); }
.hero .ailo-hero__btn { --ailo-hero-btn-radius: 6px; }

/* ---------- 겹침 카드 ---------- */
.ov { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; }
.status { padding-right: 28px; border-right: 1px solid var(--ailo-line); }
.status__label { font-size: 14px; font-weight: 700; color: var(--m01-navy); margin-bottom: 6px; }
.status__now { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa1ac; flex: none; }
.status.is-on .status__dot { background: var(--m01-ok); box-shadow: 0 0 0 4px rgba(47, 125, 91, .16); }
.status.is-wait .status__dot { background: #b7832f; }
.status__hours { margin-top: 4px; font-size: 15px; color: var(--ailo-muted); font-variant-numeric: tabular-nums; }
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.quick a { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 8px; text-align: center; transition: background-color .2s; }
.quick a:hover { background: var(--m01-surface); }
.quick i { font-size: 22px; color: var(--m01-navy); margin-bottom: 6px; }
.quick b { font-size: 16px; font-weight: 700; }
.quick span { font-size: 14px; color: var(--ailo-muted); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.values { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--ailo-line); }
.values li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--ailo-line); }
.values span { font-family: var(--m01-en); font-size: 15px; font-weight: 800; color: var(--m01-navy); padding-top: 3px; }
.values h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.values p { font-size: 16px; color: var(--ailo-muted); }
.about__img { margin: 0; position: relative; }
.about__img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--m01-r); }
.about__img figcaption { position: absolute; left: 24px; bottom: 24px; right: 24px; max-width: 320px; background: #fff; border-radius: 8px; padding: 18px 20px; font-size: 16px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .18); }
.about__img figcaption b { font-family: var(--m01-en); font-size: 26px; color: var(--m01-navy); margin-right: 2px; }

/* ---------- Departments ---------- */
.dept { background: var(--m01-surface); }
.dept__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dept__item { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--m01-r); padding: 32px 30px; transition: box-shadow .25s, transform .25s; }
.dept__item:hover { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .14); transform: translateY(-3px); }
.dept__ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--m01-navy) 9%, #fff); color: var(--m01-navy); font-size: 22px; margin-bottom: 22px; }
.dept__item h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.dept__item > p { font-size: 16px; color: var(--ailo-muted); margin-bottom: 18px; }
.dept__kw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.dept__kw li { font-size: 14px; padding: 4px 10px; border-radius: 4px; background: var(--m01-surface); color: #3c424d; }

/* ---------- Numbers ---------- */
.nums { background: var(--m01-ink); color: #fff; padding-block: clamp(56px, 6vw, 88px); }
.nums__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.nums__list li { display: grid; gap: 6px; padding: 8px 28px; border-left: 1px solid rgba(255, 255, 255, .16); }
.nums__list li:first-child { border-left: 0; padding-left: 0; }
.nums__list b { font-family: var(--m01-en); font-size: clamp(40px, 4vw, 58px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.nums__list small { font-family: var(--ailo-font); font-size: 18px; font-weight: 600; margin-left: 4px; }
.nums__list li > span { font-size: 16px; color: rgba(255, 255, 255, .78); }

/* ---------- Doctors ---------- */
.docs__filter { display: flex; flex-wrap: wrap; gap: 8px; }
.docs__filter button { min-height: 44px; padding: 0 18px; border: 1px solid var(--ailo-line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; color: #3c424d; }
.docs__filter button.is-on { background: var(--m01-navy); border-color: var(--m01-navy); color: #fff; }
.docs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.doc[hidden] { display: none; }
.doc__photo { position: relative; border-radius: var(--m01-r); overflow: hidden; background: var(--m01-surface); }
.doc__photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.doc__badge { position: absolute; left: 14px; top: 14px; background: #fff; color: var(--m01-navy); font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.doc__body { padding-top: 20px; }
.doc__role { font-size: 15px; color: var(--m01-navy); font-weight: 600; }
.doc__body h3 { font-size: 24px; font-weight: 800; margin: 2px 0 10px; }
.doc__cv { display: grid; gap: 3px; margin-bottom: 16px; }
.doc__cv li { font-size: 15px; color: var(--ailo-muted); padding-left: 12px; position: relative; }
.doc__cv li::before { content: ""; position: absolute; left: 0; top: .72em; width: 4px; height: 1px; background: currentColor; }
.doc__sch { display: flex; gap: 4px; }
.doc__sch span, .docs__legend span { display: inline-grid; place-items: center; width: 34px; height: 30px; border-radius: 4px; font-size: 14px; background: var(--m01-surface); color: #8a909b; }
.doc__sch .on, .docs__legend .on { background: var(--m01-navy); color: #fff; }
.doc__sch .half, .docs__legend .half { background: color-mix(in srgb, var(--m01-navy) 16%, #fff); color: var(--m01-navy); }
.docs__legend { margin-top: 32px; font-size: 14px; color: var(--ailo-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.docs__legend span { width: 18px; height: 14px; }

/* ---------- Care process ---------- */
.care { background: var(--m01-surface); }
.care__lead { margin-top: 0; max-width: 32em; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.flow li { position: relative; background: #fff; border-radius: var(--m01-r); padding: 30px 26px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -18px; width: 12px; height: 12px; border: solid #b6bcc6; border-width: 1px 1px 0 0; rotate: 45deg; }
.flow__no { display: block; font-family: var(--m01-en); font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--m01-navy); margin-bottom: 18px; }
.flow i { font-size: 24px; color: var(--m01-navy); margin-bottom: 14px; display: block; }
.flow h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.flow p { font-size: 16px; color: var(--ailo-muted); }
.care__note { margin-top: 28px; font-size: 15px; color: var(--ailo-muted); display: flex; gap: 8px; }
.care__note i { color: var(--m01-navy); padding-top: 4px; }

/* ---------- Hours + Booking ---------- */
.book__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.hours .ailo-title { margin-bottom: 24px; }
.hours__tbl { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ailo-fg); font-variant-numeric: tabular-nums; }
.hours__tbl th, .hours__tbl td { padding: 14px 4px; border-bottom: 1px solid var(--ailo-line); font-size: 17px; }
.hours__tbl th { font-weight: 600; width: 38%; }
.hours__tbl td { text-align: right; }
.hours__tbl em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--m01-navy); background: color-mix(in srgb, var(--m01-navy) 9%, #fff); padding: 2px 8px; border-radius: 4px; margin-left: 6px; }
.hours__tbl em.em-gray { color: var(--ailo-muted); background: var(--m01-surface); }
.hours__tbl tr.is-off td { color: #a0303a; font-weight: 600; }
.hours__tbl tr.is-today { background: color-mix(in srgb, var(--m01-navy) 5%, #fff); }
.hours__tbl .today { font-size: 13px; font-weight: 700; color: #fff; background: var(--m01-navy); padding: 1px 7px; border-radius: 4px; margin-left: 6px; }
.hours__notes { display: grid; gap: 10px; margin: 24px 0; }
.hours__notes li { display: flex; gap: 12px; font-size: 16px; color: #3c424d; }
.hours__notes i { width: 18px; color: var(--m01-navy); padding-top: 5px; }
.hours__tel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: var(--m01-r); background: var(--m01-ink); color: #fff; }
.hours__tel:hover { color: #fff; background: var(--m01-navy); }
.hours__tel span { font-size: 15px; opacity: .8; }
.hours__tel b { font-family: var(--m01-en); font-size: 26px; font-weight: 800; }

.booking { background: var(--m01-surface); border-radius: 12px; padding: clamp(28px, 3.4vw, 48px); }
.booking__title { font-size: clamp(24px, 2vw, 30px); font-weight: 800; margin-bottom: 8px; }
.booking__desc { font-size: 16px; color: var(--ailo-muted); margin-bottom: 26px; }
.bform { display: grid; gap: 16px; }
.bform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 15px; font-weight: 600; }
.fld i { color: #a0303a; font-style: normal; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cfd4db; border-radius: 6px; background: #fff; font-size: 16px; color: var(--ailo-fg); }
.fld textarea { resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--m01-navy); box-shadow: 0 0 0 3px rgba(31, 79, 143, .15); }
.bform__visit { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.bform__visit legend { float: left; width: auto; font-size: 15px; font-weight: 600; margin: 0 8px 0 0; padding: 0; }
.bform__visit label { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; }
.agree { display: flex; gap: 10px; font-size: 14px; color: var(--ailo-muted); line-height: 1.6; }
.agree input { margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--m01-navy); }
.agree a { text-decoration: underline; color: var(--ailo-fg); }

/* ---------- Fee ---------- */
.fee { padding-bottom: var(--m01-sec); }
.fee__bar { display: flex; align-items: center; gap: 20px; padding: 26px 30px; border: 1px solid var(--ailo-line); border-radius: var(--m01-r); transition: border-color .2s, background-color .2s; }
.fee__bar:hover { border-color: var(--m01-navy); background: color-mix(in srgb, var(--m01-navy) 3%, #fff); }
.fee__ic { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--m01-surface); color: var(--m01-navy); font-size: 20px; }
.fee__txt { display: grid; gap: 2px; flex: 1; }
.fee__txt b { font-size: 19px; }
.fee__txt small { font-size: 15px; color: var(--ailo-muted); }
.fee__go { font-size: 15px; font-weight: 700; color: var(--m01-navy); white-space: nowrap; }

/* ---------- News ---------- */
.news { background: var(--m01-surface); }
.news__grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.news__grid > * { min-width: 0; }
.news__all { margin-top: 28px; }
.news .ailo-postlist { background: transparent; }

/* ---------- Partners ---------- */
.partners { padding: 48px 0; border-bottom: 1px solid var(--ailo-line); }
.partners__label { font-size: 15px; font-weight: 700; color: var(--ailo-muted); margin-bottom: 12px; }
.partners .ailo-wordmark { font-size: 19px; font-weight: 700; }
.partners .ailo-wordmark i { font-size: 16px; }

/* ---------- CTA band ---------- */
.ailo-ctaband { --ailo-cta-dim: rgba(14, 26, 44, .66); }
.cta__eyebrow { color: rgba(255, 255, 255, .8); }

/* ---------- Location ---------- */
.loc__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.loc__map { border-radius: var(--m01-r); overflow: hidden; background: var(--m01-surface); }
.loc__map svg { width: 100%; height: auto; }
.m-bg { fill: #eef0f3; }
.m-blk { fill: #fff; }
.m-road { stroke: #d5d9df; stroke-width: 14; fill: none; }
.m-road--main { stroke: #c4c9d1; stroke-width: 22; }
.m-hosp { fill: var(--m01-navy); }
.m-hosp-t { fill: #fff; font-size: 17px; font-weight: 800; text-anchor: middle; }
.m-hosp-s { fill: rgba(255, 255, 255, .8); font-size: 13px; text-anchor: middle; }
.m-st { fill: #fff; stroke: var(--m01-ink); stroke-width: 3; }
.m-st-t { font-size: 14px; font-weight: 800; text-anchor: middle; fill: var(--m01-ink); }
.m-label { font-size: 14px; font-weight: 700; fill: #5c636e; text-anchor: middle; }
.m-walk { stroke: var(--m01-navy); stroke-width: 3; stroke-dasharray: 5 6; fill: none; }
.m-park { fill: #fff; stroke: #c4c9d1; }
.m-park-t { font-size: 18px; font-weight: 800; text-anchor: middle; fill: var(--m01-navy); }
.loc__addr { font-size: 19px; font-weight: 600; margin: 18px 0 24px; }
.loc__dl { display: grid; border-top: 1px solid var(--ailo-line); margin: 0; }
.loc__dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--ailo-line); }
.loc__dl dt { font-size: 16px; font-weight: 700; }
.loc__dl dt i { color: var(--m01-navy); width: 20px; }
.loc__dl dd { margin: 0; font-size: 16px; color: #3c424d; }

/* ---------- Footer ---------- */
.ft { background: #15171c; color: #b4b9c2; 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; border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 24px; }
.logo--light { color: #fff; }
.ft__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.ft__nav a:hover { color: #fff; }
.ft__nav strong { color: #fff; }
.ft__info { line-height: 1.9; font-size: 14px; }
.ft__copy { margin-top: 14px; font-size: 13px; color: #8a909b; }

/* ---------- 모바일 하단 고정 바 ---------- */
.mbar { display: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 1199.98px) {
  .hd__cta { display: none; }
  .ov { grid-template-columns: 1fr; gap: 16px; }
  .status { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--ailo-line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
  .status__label { margin: 0; }
  .status__hours { margin: 0; text-align: right; }
}
@media (max-width: 991.98px) {
  :root { --ailo-header-h: 68px; }
  .hd__util { display: none; }
  .hd__bar { height: 68px; justify-content: space-between; }
  .hd .ailo-sitemap-btn { display: none; }
  .about__grid, .book__grid, .loc__grid, .news__grid { grid-template-columns: 1fr; }
  .dept__grid, .docs__grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow li::after { display: none; }
  .nums__list { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .nums__list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .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); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); 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(--m01-navy); }
  .mbar__main { background: var(--m01-navy); color: #fff; }
  .mbar__main i { color: #fff; }
  .mbar__main:hover { color: #fff; }
  body { padding-bottom: 60px; }
}
@media (max-width: 767.98px) {
  .quick { grid-template-columns: repeat(3, 1fr); }
  .quick li:nth-child(n+4) { display: none; }
}
@media (max-width: 575.98px) {
  .logo__txt b { font-size: 19px; }
  .dept__grid, .docs__grid, .flow { grid-template-columns: 1fr; }
  .bform__row { grid-template-columns: 1fr; }
  .status { grid-template-columns: 1fr; gap: 2px; }
  .status__hours { text-align: left; }
  .quick span { display: none; }
  .quick b { font-size: 15px; }
  .about__img figcaption { position: static; max-width: none; box-shadow: none; padding: 14px 0 0; }
  .fee__bar { flex-wrap: wrap; padding: 22px; }
  .fee__go { width: 100%; }
  .loc__dl > div { grid-template-columns: 1fr; gap: 2px; }
  .hours__tel b { font-size: 22px; }
  .nums__list li { padding: 4px 16px; }
  .ailo-postlist__date { display: none; }
}
