/* AILO Medical M03 — 클리어피부과
   원형: C 분할 대형 사진형(글 40% + 화면 끝까지 사각 사진 60%, 사진 위 오늘 진료 카드 1개), 흰 배경 고정 헤더(가운데 로고)
   타이포: Pretendard + Inter Tight(eyebrow·숫자만) / 컬러: 더스티 로즈 #8f5f57 1색 + 웜 아이보리 면 + 무채색 */

:root {
  --ailo-bg: #ffffff;
  --ailo-fg: #1d1a19;
  --ailo-muted: #555050;
  --ailo-line: #e8e3df;
  --ailo-accent: #8f5f57;
  --ailo-header-h: 84px;

  --m03-rose: #8f5f57;
  --m03-rose-d: #744a43;
  --m03-ivory: #f8f5f2;
  --m03-dark: #1d1a19;
  --m03-r: 4px;
  --m03-sec: clamp(72px, 8vw, 128px);
  --m03-en: "Inter Tight", "Pretendard Variable", Pretendard, sans-serif;
}

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

.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: var(--m03-r); font-size: 16px; font-weight: 700;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; white-space: nowrap;
}
.c-btn--dark { background: var(--m03-dark); color: #fff; }
.c-btn--dark:hover, .c-btn--dark:focus-visible { background: var(--m03-rose); color: #fff; }
.c-btn--line { border-color: #cfc8c3; color: var(--ailo-fg); background: transparent; }
.c-btn--line:hover { border-color: var(--m03-dark); }
.c-btn--block { width: 100%; }

/* ---------- Header ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 100; background: #fff; border-bottom: 1px solid var(--ailo-line); transition: box-shadow .3s; }
.hd.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .06); }
.hd__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--ailo-header-h); padding-inline: var(--ailo-gutter); max-width: 1480px; margin-inline: auto; }
.gnb { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.gnb--r { justify-content: flex-end; }
.gnb a { font-size: 17px; font-weight: 600; position: relative; padding: 8px 0; }
.gnb a:not(.hd__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--m03-rose); transform: scaleX(0); transition: transform .25s var(--ailo-ease); }
.gnb a:hover::after { transform: scaleX(1); }
.hd__cta { padding: 10px 20px !important; background: var(--m03-dark); color: #fff; border-radius: var(--m03-r); font-size: 15px !important; }
.hd__cta:hover { color: #fff; background: var(--m03-rose); }
.logo { display: grid; justify-items: center; line-height: 1.1; }
.logo__en { font-family: var(--m03-en); font-size: 24px; font-weight: 700; letter-spacing: .32em; margin-right: -.32em; }
.logo__ko { font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--ailo-muted); margin-right: -.2em; }

.mnav { background: #fff; }
.mnav__in { padding: 104px var(--ailo-gutter) 40px; display: grid; gap: 24px; }
.mnav nav a { display: flex; align-items: baseline; justify-content: space-between; padding: 15px 0; font-size: 21px; font-weight: 700; border-bottom: 1px solid var(--ailo-line); }
.mnav nav a span { order: 2; font-family: var(--m03-en); font-size: 14px; color: var(--m03-rose); font-weight: 600; }
.mnav__info { font-size: 15px; color: var(--ailo-muted); line-height: 1.8; }
.mnav__info span { font-family: var(--m03-en); font-size: 22px; font-weight: 700; color: var(--ailo-fg); }

/* ---------- Hero (분할) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); min-height: clamp(600px, 100svh, 920px); padding-top: var(--ailo-header-h); background: var(--m03-ivory); }
.hero__copy { align-self: center; padding: 64px clamp(32px, 4vw, 72px) 64px max(var(--ailo-gutter), calc((100vw - var(--ailo-max)) / 2 + var(--ailo-gutter))); }
.hero__title { font-size: clamp(36px, 3.6vw + 8px, 66px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; }
.hero__lead { margin-top: 24px; font-size: clamp(16px, .3vw + 15px, 19px); color: var(--ailo-muted); max-width: 30em; line-height: 1.75; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero__facts { display: flex; gap: 0; margin-top: 48px; border-top: 1px solid var(--ailo-line); padding-top: 24px; }
.hero__facts li { flex: 1; font-size: 15px; color: var(--ailo-muted); padding-right: 16px; }
.hero__facts li + li { padding-left: 20px; border-left: 1px solid var(--ailo-line); }
.hero__facts b { display: block; font-family: var(--m03-en); font-size: 24px; font-weight: 700; color: var(--ailo-fg); margin-bottom: 2px; }
.hero__media { position: relative; margin: 0; min-height: 100%; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__card { position: absolute; left: 32px; bottom: 32px; display: grid; gap: 4px; min-width: 240px; padding: 22px 24px; background: #fff; border-radius: var(--m03-r); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .2); }
.hero__card-label { font-size: 14px; font-weight: 700; color: var(--m03-rose); }
.hero__card b { font-family: var(--m03-en); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero__card a { font-size: 14px; color: var(--ailo-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.about__cols li { border-top: 1px solid var(--ailo-fg); padding-top: 22px; }
.about__no { font-family: var(--m03-en); font-size: 14px; font-weight: 700; color: var(--m03-rose); }
.about__cols h3 { font-size: 21px; font-weight: 700; margin: 12px 0 8px; }
.about__cols p { font-size: 16px; color: var(--ailo-muted); }

/* ---------- Clinic tabs ---------- */
.clinic { background: var(--m03-ivory); }
.tabs { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.tabs__list { display: flex; flex-direction: column; border-top: 1px solid var(--ailo-line); }
.tabs__list button { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 6px; min-height: 64px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--ailo-line); background: transparent; text-align: left; font-size: 18px; font-weight: 600; color: var(--ailo-muted); transition: color .2s; }
.tabs__list button span { font-family: var(--m03-en); font-size: 14px; color: #8a8380; }
.tabs__list button small { font-family: var(--m03-en); font-size: 13px; font-weight: 500; color: #8a8380; }
.tabs__list button:hover { color: var(--ailo-fg); }
.tabs__list button[aria-selected="true"] { color: var(--ailo-fg); font-weight: 700; box-shadow: inset 2px 0 0 var(--m03-rose); padding-left: 14px; }
.tabs__list button[aria-selected="true"] span { color: var(--m03-rose); }
.tabs__panels { min-width: 0; }
.cp { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: center; }
.cp[hidden] { display: none; }
.cp:focus-visible { outline-offset: 6px; }
.cp__img { margin: 0; }
.cp__img img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; border-radius: var(--m03-r); }
.cp__txt h3 { font-size: clamp(24px, 2vw, 32px); font-weight: 800; margin-bottom: 14px; }
.cp__lead { font-size: 17px; color: var(--ailo-muted); line-height: 1.75; }
.cp__dl { margin: 24px 0 0; border-top: 1px solid var(--ailo-line); }
.cp__dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ailo-line); }
.cp__dl dt { font-size: 15px; font-weight: 700; color: var(--m03-rose); }
.cp__dl dd { margin: 0; font-size: 16px; }
.tabs__note { margin-top: 28px; font-size: 15px; color: var(--ailo-muted); line-height: 1.7; }
.tabs__note a { color: var(--ailo-fg); text-decoration: underline; }

/* ---------- Numbers ---------- */
.nums { padding-block: clamp(48px, 5vw, 72px); background: var(--m03-dark); color: #fff; }
.nums__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.nums__list li { display: grid; gap: 6px; padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .16); }
.nums__list li:first-child { padding-left: 0; border: 0; }
.nums__list b { font-family: var(--m03-en); font-size: clamp(38px, 3.6vw, 56px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.nums__list span { font-size: 16px; color: rgba(255, 255, 255, .75); }

/* ---------- Doctors ---------- */
.docs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.dr { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
.dr__img { margin: 0; }
.dr__img img { width: 100%; aspect-ratio: 1 / 1.15; object-fit: cover; border-radius: var(--m03-r); background: var(--m03-ivory); }
.dr__role { font-size: 15px; font-weight: 600; color: var(--m03-rose); }
.dr h3 { font-size: 28px; font-weight: 800; margin: 4px 0 14px; }
.dr blockquote { margin: 0 0 18px; font-size: 17px; line-height: 1.65; color: #333; }
.dr__cv { display: grid; gap: 4px; border-top: 1px solid var(--ailo-line); padding-top: 14px; }
.dr__cv li { font-size: 15px; color: var(--ailo-muted); }

/* ---------- Hours + Booking ---------- */
.book { background: var(--m03-ivory); }
.book__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.hours__dl { margin: 28px 0 18px; border-top: 1px solid var(--ailo-fg); }
.hours__dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--ailo-line); font-size: 17px; font-variant-numeric: tabular-nums; }
.hours__dl dt { font-weight: 600; }
.hours__dl dd { margin: 0; }
.hours__dl em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--m03-rose); margin-left: 6px; }
.hours__dl .is-sub { color: var(--ailo-muted); }
.hours__dl .is-off dd { color: #a0303a; font-weight: 600; }
.hours__dl .is-today { background: #fff; }
.hours__dl .is-today dt::after { content: "오늘"; font-size: 12px; font-weight: 700; color: #fff; background: var(--m03-rose); padding: 1px 7px; border-radius: 3px; margin-left: 8px; vertical-align: 2px; }
.hours__note { font-size: 15px; color: var(--ailo-muted); margin-bottom: 18px; }
.hours__tel { font-family: var(--m03-en); font-size: 34px; font-weight: 700; letter-spacing: -.01em; }
.hours__tel:hover { color: var(--m03-rose); }
.booking { background: #fff; padding: clamp(28px, 3vw, 48px); border-radius: var(--m03-r); }
.booking__title { font-size: clamp(24px, 2vw, 30px); font-weight: 800; margin-bottom: 24px; }
.cform { display: grid; gap: 18px; }
.cform__interest { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.cform__interest legend { float: none; width: 100%; font-size: 15px; font-weight: 700; margin-bottom: 4px; padding: 0; }
.cform__interest legend small { font-weight: 500; color: var(--ailo-muted); font-size: 14px; }
.cform__interest label { position: relative; }
.cform__interest input { position: absolute; opacity: 0; inset: 0; }
.cform__interest span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--ailo-line); border-radius: 999px; font-size: 15px; cursor: pointer; }
.cform__interest input:checked + span { background: var(--m03-rose); border-color: var(--m03-rose); color: #fff; }
.cform__interest input:focus-visible + span { outline: 2px solid var(--m03-rose); outline-offset: 2px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.line { display: grid; gap: 4px; }
.line > span { font-size: 15px; font-weight: 600; }
.line input, .line textarea { width: 100%; min-height: 48px; padding: 10px 2px; border: 0; border-bottom: 1px solid #cfc8c3; background: transparent; font-size: 16px; color: var(--ailo-fg); border-radius: 0; }
.line input:focus, .line textarea:focus { outline: none; border-color: var(--m03-rose); }
.cform__agree { display: flex; gap: 10px; font-size: 14px; color: var(--ailo-muted); }
.cform__agree input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--m03-rose); }
.cform__agree a { color: var(--ailo-fg); text-decoration: underline; }

/* ---------- Fee ---------- */
.fee { padding-block: 40px; }
.fee__row { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 24px; padding: 28px 0; border-top: 1px solid var(--ailo-fg); border-bottom: 1px solid var(--ailo-line); }
.fee__en { font-family: var(--m03-en); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--m03-rose); }
.fee__ko { font-size: 21px; font-weight: 700; display: grid; gap: 2px; }
.fee__ko small { font-size: 15px; font-weight: 400; color: var(--ailo-muted); }
.fee__row i { font-size: 18px; transition: transform .25s; }
.fee__row:hover i { transform: translateX(4px); }

/* ---------- Journal ---------- */
.journal__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.journal__list a { display: grid; gap: 12px; }
.journal__list figure { margin: 0; overflow: hidden; border-radius: var(--m03-r); }
.journal__list img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ailo-ease); }
.journal__list a:hover img { transform: scale(1.04); }
.journal__meta { font-size: 14px; color: var(--m03-rose); font-weight: 600; }
.journal__list b { font-size: 19px; font-weight: 700; line-height: 1.45; }

/* ---------- 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__in p { font-size: 15px; font-weight: 700; }
.partners__in ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.partners .ailo-wordmark { font-size: 18px; height: 44px; }

/* ---------- Location ---------- */
.loc { background: var(--m03-ivory); }
.loc__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.loc__addr { font-size: 20px; font-weight: 600; margin: 18px 0 24px; line-height: 1.6; }
.loc__dl { margin: 0 0 28px; border-top: 1px solid var(--ailo-line); }
.loc__dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ailo-line); }
.loc__dl dt { font-family: var(--m03-en); font-size: 15px; font-weight: 600; color: var(--m03-rose); }
.loc__dl dd { margin: 0; font-size: 16px; }
.loc__map { border-radius: var(--m03-r); overflow: hidden; }
.loc__map svg { width: 100%; height: auto; }
.lm-bg { fill: #ece6e1; }
.lm-road { stroke: #fff; stroke-width: 18; fill: none; }
.lm-st { fill: var(--m03-dark); }
.lm-t { font-size: 15px; font-weight: 700; fill: #4a4544; }
.lm-t--b { fill: var(--m03-rose); font-size: 18px; font-weight: 800; }
.lm-walk { stroke: var(--m03-rose); stroke-width: 3; stroke-dasharray: 5 6; fill: none; }
.lm-pin { fill: var(--m03-rose); }

/* ---------- Footer ---------- */
.ft { background: #1a1817; color: #b8b1ad; padding: 56px 0 40px; font-size: 14px; }
.ft__mark { font-family: var(--m03-en); font-size: clamp(40px, 6vw, 88px); font-weight: 700; letter-spacing: .2em; color: #fff; line-height: 1; margin-bottom: 32px; }
.ft__row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ft__info { line-height: 1.9; }
.ft__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.ft__nav a:hover, .ft__nav strong { color: #fff; }
.ft__copy { margin-top: 18px; font-size: 13px; color: #8f8884; }

.mbar { display: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 1199.98px) {
  .about__grid { grid-template-columns: 1fr; }
  .dr { grid-template-columns: 1fr; }
  .dr__img img { aspect-ratio: 4 / 3.6; }
}
@media (max-width: 991.98px) {
  :root { --ailo-header-h: 68px; }
  .hd__in { grid-template-columns: 1fr auto; }
  .gnb { display: none; }
  .logo { justify-items: start; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: 48px var(--ailo-gutter) 40px; }
  .hero__media { min-height: 0; aspect-ratio: 4 / 3; }
  .tabs, .cp, .book__grid, .loc__grid { grid-template-columns: 1fr; }
  .tabs__list { flex-direction: row; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--ailo-line); scrollbar-width: none; }
  .tabs__list button { flex: none; grid-template-columns: auto auto; min-height: 52px; padding: 0 14px; border-bottom: 0; font-size: 16px; }
  .tabs__list button small { display: none; }
  .tabs__list button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--m03-rose); padding-left: 14px; }
  .cp__img img { aspect-ratio: 4 / 3; }
  .docs__grid, .journal__list { grid-template-columns: 1fr 1fr; }
  .nums__list { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .nums__list li:nth-child(3) { padding-left: 0; border: 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); 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(--m03-rose); }
  .mbar__main, .mbar__main:hover { background: var(--m03-dark); color: #fff; }
  .mbar__main i { color: #fff; }
  body { padding-bottom: 60px; }
}
@media (max-width: 575.98px) {
  .logo__en { font-size: 20px; }
  .hero__facts li { font-size: 14px; padding-right: 8px; }
  .hero__facts li + li { padding-left: 12px; }
  .hero__facts b { font-size: 19px; }
  .hero__card { left: 16px; bottom: 16px; min-width: 0; padding: 16px 18px; }
  .hero__card b { font-size: 21px; }
  .about__cols, .docs__grid, .journal__list, .cform__row { grid-template-columns: 1fr; }
  .fee__row { grid-template-columns: 1fr auto; }
  .fee__en { grid-column: 1 / -1; }
  .hours__tel { font-size: 28px; }
}
