/* AILO Medical M02 — 미소치과 (동네 치과)
   원형: B 풀블리드 가운데 정렬(사진 1장) + 진료시간 띠 + 진료과목 아이콘 그리드
   타이포: Pretendard + Outfit(eyebrow·숫자만) / 컬러: 차분한 민트 #2b7a73 1색 + 무채색 */

:root {
  --ailo-bg: #ffffff;
  --ailo-fg: #17201f;
  --ailo-muted: #4d5756;
  --ailo-line: #e1e6e5;
  --ailo-accent: #2b7a73;
  --ailo-header-h: 84px;
  --ailo-mega-col: 7em;

  --m02-mint: #2b7a73;
  --m02-mint-d: #21615b;
  --m02-mint-t: #eef5f4;
  --m02-surface: #f5f7f7;
  --m02-ink: #16302d;
  --m02-r: 12px;
  --m02-sec: clamp(72px, 8vw, 128px);
  --m02-en: "Outfit", "Pretendard Variable", Pretendard, sans-serif;
}

body { font-size: 17px; letter-spacing: -.01em; }
.ailo-eyebrow { font-family: var(--m02-en); font-weight: 600; letter-spacing: .14em; }
main img { height: auto; } /* width·height 속성이 고정 높이로 남지 않게(aspect-ratio 우선) */
.sec { padding-block: var(--m02-sec); }

.m02-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; white-space: nowrap;
}
.m02-btn--lg { min-height: 56px; }
.m02-btn--block { width: 100%; }
.m02-btn--mint { background: var(--m02-mint); color: #fff; }
.m02-btn--mint:hover, .m02-btn--mint:focus-visible { background: var(--m02-mint-d); color: #fff; }
.m02-btn--line { border-color: var(--ailo-line); background: #fff; color: var(--ailo-fg); }
.m02-btn--line:hover { border-color: var(--m02-mint); color: var(--m02-mint); }

/* ---------- Header ---------- */
.hd__in { display: flex; align-items: center; gap: 20px; height: var(--ailo-header-h); }
.hd .ailo-mega { margin-inline: auto; }
.hd__cta { min-height: 44px; padding: 0 20px; font-size: 15px; }
.hd:not(.is-scrolled):not(.is-mega-open) .hd__cta { background: #fff; color: var(--m02-mint); }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 30px; height: 30px; fill: currentColor; }
.hd.is-scrolled .logo__mark, .hd.is-mega-open .logo__mark, html.nav-open .hd .logo__mark { fill: var(--m02-mint); }
.logo__txt { display: flex; flex-direction: column; font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.logo__txt small { font-family: var(--m02-en); font-size: 11px; font-weight: 600; letter-spacing: .2em; opacity: .7; }
.ailo-mega--single .ailo-mega__panel { background: #fff; border-radius: 10px; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .2); padding: 12px 8px; margin-top: 4px; }

.mnav { background: #fff; color: var(--ailo-fg); }
.mnav__in { padding: 96px var(--ailo-gutter) 40px; display: grid; gap: 24px; }
.mnav nav a { display: flex; align-items: center; gap: 14px; padding: 15px 0; font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--ailo-line); }
.mnav nav i { width: 22px; color: var(--m02-mint); font-size: 18px; }
.mnav__cta { display: grid; gap: 10px; }
.mnav__hours { font-size: 15px; color: var(--ailo-muted); }

/* ---------- Hero ---------- */
.hero { --ailo-hero-dim: rgba(12, 32, 30, .5); --ailo-hero-dim-m: linear-gradient(180deg, rgba(12,32,30,.45), rgba(12,32,30,.62)); --ailo-hero-btn-radius: 999px; }
.hero .ailo-hero__body { padding-bottom: 120px; }
.hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 40px; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); font-size: 15px; }

/* ---------- 진료시간 띠 ---------- */
.hband { background: var(--m02-ink); color: #fff; }
.hband__in { display: flex; align-items: center; gap: 32px; min-height: 84px; padding-block: 16px; flex-wrap: wrap; }
.hband__label { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.hband__label i { color: #8fc9c2; }
.hband__list { display: flex; flex-wrap: wrap; gap: 6px 28px; flex: 1; }
.hband__list li { font-size: 16px; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
.hband__list b { color: #fff; margin-right: 6px; font-weight: 600; }
.hband__more { font-size: 15px; font-weight: 600; color: #fff; opacity: .85; }
.hband__more:hover { color: #fff; opacity: 1; }

/* ---------- Clinic ---------- */
.clinic__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cl { display: block; height: 100%; padding: 36px 32px; border-radius: var(--m02-r); background: var(--m02-surface); transition: background-color .25s, box-shadow .25s; }
.cl:hover { background: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .16); }
.cl__ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--m02-mint); font-size: 26px; margin-bottom: 22px; transition: background-color .25s, color .25s; }
.cl:hover .cl__ic { background: var(--m02-mint); color: #fff; }
.cl h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.cl p { font-size: 16px; color: var(--ailo-muted); }
.clinic__fee { margin-top: 36px; text-align: center; }

/* ---------- About ---------- */
.about { background: var(--m02-mint-t); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__img { margin: 0; }
.about__img img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: var(--m02-r); }
.promise { margin-top: 32px; display: grid; gap: 20px; }
.promise li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.promise__ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--m02-mint); font-size: 20px; }
.promise h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.promise p { font-size: 16px; color: var(--ailo-muted); }

/* ---------- Numbers ---------- */
.nums { padding-block: clamp(48px, 5vw, 72px); border-bottom: 1px solid var(--ailo-line); }
.nums__list { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.nums__list li { display: grid; gap: 6px; border-left: 1px solid var(--ailo-line); }
.nums__list li:first-child { border-left: 0; }
.nums__list b { font-family: var(--m02-en); font-size: clamp(34px, 3.4vw, 50px); font-weight: 700; color: var(--m02-mint); line-height: 1.1; font-variant-numeric: tabular-nums; }
.nums__list li > span { font-size: 16px; color: var(--ailo-muted); }

/* ---------- Steps ---------- */
.stepper { max-width: 1080px; margin-inline: auto; }
.stepper__bar { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 40px; }
.stepper__track { position: absolute; left: 10%; right: 10%; top: 22px; height: 2px; background: var(--ailo-line); }
.stepper__fill { display: block; height: 100%; width: 0; background: var(--m02-mint); transition: width .5s var(--ailo-ease); }
.stepper__bar button { position: relative; display: grid; justify-items: center; gap: 10px; padding: 0 4px 6px; border: 0; background: transparent; color: var(--ailo-muted); }
.stepper__dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--ailo-line); font-family: var(--m02-en); font-weight: 700; font-size: 17px; transition: background-color .25s, color .25s, border-color .25s; }
.stepper__bar b { font-size: 16px; font-weight: 600; }
.stepper__bar .is-done .stepper__dot { border-color: var(--m02-mint); color: var(--m02-mint); }
.stepper__bar .is-on { color: var(--ailo-fg); }
.stepper__bar .is-on .stepper__dot { background: var(--m02-mint); border-color: var(--m02-mint); color: #fff; }
.sp { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.sp[hidden] { display: none; }
.sp__no { font-family: var(--m02-en); font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--m02-mint); }
.sp h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 800; margin: 8px 0 12px; }
.sp p { font-size: 17px; color: var(--ailo-muted); }
.sp ul { margin-top: 18px; display: grid; gap: 6px; }
.sp li { font-size: 16px; padding-left: 26px; position: relative; }
.sp li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--m02-mint); font-size: 14px; top: 2px; }
.sp__img { margin: 0; }
.sp__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--m02-r); }

/* ---------- Doctors ---------- */
.docs { background: var(--m02-surface); }
.docs__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dr { background: #fff; border-radius: var(--m02-r); overflow: hidden; padding-bottom: 28px; }
.dr__pic img { width: 100%; aspect-ratio: 5 / 5.2; object-fit: cover; }
.dr > *:not(.dr__pic) { padding-inline: 28px; }
.dr__field { margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--m02-mint); }
.dr h3 { font-size: 24px; font-weight: 800; margin: 4px 0 10px; }
.dr h3 small { font-size: 16px; font-weight: 600; color: var(--ailo-muted); margin-left: 4px; }
.dr__say { font-size: 16px; color: #333; margin-bottom: 14px; }
.dr__cv { display: grid; gap: 3px; border-top: 1px solid var(--ailo-line); padding-top: 14px; }
.dr__cv li { font-size: 15px; color: var(--ailo-muted); }

/* ---------- Reviews ---------- */
.reviews { padding-block: var(--m02-sec); overflow: hidden; }
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.reviews__title { font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.025em; }
.reviews__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.reviews__tags li { font-size: 15px; color: var(--m02-mint); background: var(--m02-mint-t); padding: 6px 14px; border-radius: 999px; }
.reviews__mq { --ailo-marquee-gap: 20px; --ailo-marquee-speed: 50s; }
.rv { display: inline-flex; flex-direction: column; gap: 10px; white-space: normal; width: 340px; padding: 26px 28px; border-radius: var(--m02-r); background: var(--m02-surface); font-size: 17px; line-height: 1.6; }
.rv span { font-size: 14px; color: var(--ailo-muted); }
.reviews__note { margin-top: 20px; font-size: 14px; color: var(--ailo-muted); }

/* ---------- Hours + Booking ---------- */
.book { background: var(--m02-mint-t); }
.book__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.ticket { background: var(--m02-ink); color: #fff; border-radius: var(--m02-r); padding: clamp(28px, 3vw, 44px); }
.ticket__eyebrow { color: #8fc9c2; }
.ticket__title { font-size: clamp(28px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.025em; }
.ticket__today { margin-top: 8px; font-size: 16px; color: rgba(255, 255, 255, .8); }
.ticket__today b { color: #fff; }
.ticket__rows { margin: 24px 0 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.ticket__rows li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 17px; font-variant-numeric: tabular-nums; }
.ticket__rows b { font-weight: 600; }
.ticket__rows em { font-style: normal; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .14); padding: 2px 8px; border-radius: 4px; margin-left: 6px; }
.ticket__rows .is-off b { color: #f2b8b0; }
.ticket__rows .is-lunch { color: rgba(255, 255, 255, .75); }
.ticket__rows .is-today { background: rgba(255, 255, 255, .08); }
.ticket__foot { font-size: 15px; color: rgba(255, 255, 255, .78); margin-bottom: 22px; }
.ticket__tel { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; border-radius: 999px; background: #fff; color: var(--m02-ink); font-family: var(--m02-en); font-size: 24px; font-weight: 700; }
.ticket__tel:hover { color: var(--m02-mint); }

.booking { background: #fff; border-radius: var(--m02-r); padding: clamp(28px, 3vw, 44px); }
.booking__title { font-size: clamp(26px, 2.2vw, 34px); }
.booking__desc { font-size: 16px; color: var(--ailo-muted); margin: 8px 0 24px; }
.bk { display: grid; gap: 20px; }
.bk__set { border: 0; padding: 0; margin: 0; min-width: 0; }
.bk__set legend { float: none; font-size: 15px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 18px; border: 1px solid var(--ailo-line); border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; background: #fff; }
.chips input:checked + span { background: var(--m02-mint); border-color: var(--m02-mint); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--m02-mint); outline-offset: 2px; }
.chips--date span { flex-direction: column; justify-content: center; gap: 0; width: 60px; min-height: 66px; padding: 0; border-radius: 10px; line-height: 1.2; }
.chips--date small { font-size: 13px; opacity: .8; }
.chips--date b { font-family: var(--m02-en); font-size: 19px; }
.chips--date em { font-style: normal; font-size: 12px; }
.chips--date .is-off span { background: var(--m02-surface); color: #8b9392; cursor: not-allowed; }
.bk__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk__fld { display: grid; gap: 6px; }
.bk__fld > span { font-size: 15px; font-weight: 700; }
.bk__fld input, .bk__fld select { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #cdd4d3; border-radius: 8px; font-size: 16px; background: #fff; color: var(--ailo-fg); }
.bk__fld input:focus, .bk__fld select:focus { outline: none; border-color: var(--m02-mint); box-shadow: 0 0 0 3px rgba(43, 122, 115, .16); }
.bk__agree { display: flex; gap: 10px; font-size: 14px; color: var(--ailo-muted); }
.bk__agree input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--m02-mint); }
.bk__agree a { text-decoration: underline; color: var(--ailo-fg); }

/* ---------- Fee + News ---------- */
.info__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.info__grid > * { min-width: 0; }
.news__head { margin-bottom: 20px; }
.fee { display: grid; gap: 14px; padding: 32px; border-radius: var(--m02-r); background: var(--m02-surface); transition: background-color .2s; }
.fee:hover { background: var(--m02-mint-t); }
.fee__ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--m02-mint); font-size: 20px; }
.fee__txt { display: grid; gap: 6px; }
.fee__txt b { font-size: 21px; }
.fee__txt small { font-size: 16px; color: var(--ailo-muted); line-height: 1.6; }
.fee__go { font-size: 15px; font-weight: 700; color: var(--m02-mint); }

/* ---------- Partners ---------- */
.partners { padding: 48px 0; border-top: 1px solid var(--ailo-line); }
.partners__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.partners__title small { font-size: 15px; font-weight: 500; color: var(--ailo-muted); margin-left: 8px; }

/* ---------- CTA ---------- */
.ailo-ctaband { --ailo-cta-dim: rgba(14, 40, 37, .66); }
.ailo-ctaband .ailo-hero__btn { --ailo-hero-btn-radius: 999px; }

/* ---------- Location ---------- */
.loc__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.loc__addr { font-size: 19px; font-weight: 600; margin: 18px 0 24px; }
.loc__list { display: grid; gap: 16px; }
.loc__list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.loc__list i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--m02-mint-t); color: var(--m02-mint); }
.loc__list div { font-size: 16px; color: var(--ailo-muted); padding-top: 2px; }
.loc__list b { display: block; color: var(--ailo-fg); font-size: 16px; }
.loc__map { border-radius: var(--m02-r); overflow: hidden; }
.loc__map svg { width: 100%; height: auto; }
.mp-bg { fill: #eef2f1; }
.mp-road { stroke: #fff; stroke-width: 22; fill: none; }
.mp-bld { fill: var(--m02-mint); }
.mp-t { fill: #fff; font-size: 18px; font-weight: 800; text-anchor: middle; }
.mp-st { fill: var(--m02-ink); }
.mp-st-t { fill: #fff; font-size: 14px; font-weight: 700; text-anchor: middle; }
.mp-walk { stroke: var(--m02-mint); stroke-width: 3; stroke-dasharray: 5 6; fill: none; }

/* ---------- Footer ---------- */
.ft { background: #161b1b; color: #b3bbba; 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); }
.logo--ft { color: #fff; }
.ft__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.ft__nav a:hover, .ft__nav strong { color: #fff; }
.ft__info { line-height: 1.9; }
.ft__copy { margin-top: 14px; font-size: 13px; color: #8b9392; }

.mbar { display: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 1199.98px) {
  .hd__cta { display: none; }
}
@media (max-width: 991.98px) {
  :root { --ailo-header-h: 68px; }
  .hd__in { justify-content: space-between; }
  .clinic__grid, .docs__list { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .sp, .book__grid, .info__grid, .loc__grid { grid-template-columns: 1fr; }
  .hband__more { display: none; }
  .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(--m02-mint); }
  .mbar__main, .mbar__main:hover { background: var(--m02-mint); color: #fff; }
  .mbar__main i { color: #fff; }
  body { padding-bottom: 60px; }
}
@media (max-width: 575.98px) {
  .clinic__grid, .docs__list { grid-template-columns: 1fr; }
  .hero__chips { margin-top: 28px; }
  .hero__chips li { font-size: 14px; padding: 6px 12px; }
  .hband__in { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hband__list { gap: 4px 16px; }
  .hband__list li { font-size: 15px; }
  .nums__list { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .nums__list li:nth-child(3) { border-left: 0; }
  .stepper__bar b { font-size: 14px; }
  .stepper__dot { width: 40px; height: 40px; font-size: 15px; }
  .stepper__track { top: 19px; }
  .bk__row { grid-template-columns: 1fr; }
  .chips--date span { width: 52px; }
  .rv { width: 280px; }
  .ailo-postlist__date { display: none; }
}
