/* AILO Medical M07 — 맑은눈안과
   원형: D 포털형 — 유틸 줄 + 메가메뉴 + 전체메뉴, 높이 600px대 슬라이드 + 반쯤 겹친 진료시간·빠른메뉴 위젯, 공지 탭
   타이포: Pretendard + Sora(eyebrow·숫자만) / 컬러: 클리어 틸블루 #1b6f8f 1색 + 무채색 */

:root {
  --ailo-bg: #ffffff;
  --ailo-fg: #15202a;
  --ailo-muted: #4b5763;
  --ailo-line: #e0e6eb;
  --ailo-accent: #1b6f8f;
  --ailo-header-h: 120px;
  --ailo-hero-h: clamp(560px, 72svh, 660px);
  --ailo-overlap: 96px;
  --ailo-mega-col: 8em;

  --m07-blue: #1b6f8f;
  --m07-blue-d: #145671;
  --m07-tint: #eef5f8;
  --m07-surface: #f5f7f9;
  --m07-r: 8px;
  --m07-sec: clamp(72px, 8vw, 128px);
  --m07-en: "Sora", "Pretendard Variable", Pretendard, sans-serif;
}

body { font-size: 17px; letter-spacing: -.01em; }
main img { height: auto; }
.sec { padding-block: var(--m07-sec); }
.ailo-eyebrow, .eyebrow { font-family: var(--m07-en); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--m07-blue); margin-bottom: 14px; }
.h2 { font-size: clamp(28px, 1.9vw + 18px, 48px); font-weight: 800; line-height: 1.25; letter-spacing: -.03em; }
.h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.sec__head { margin-bottom: clamp(32px, 3vw, 52px); }
.sec__head--center { text-align: center; }
.sec__head--center .sec__desc { margin-inline: auto; }
.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); display: flex; gap: 8px; }
.note i { color: var(--m07-blue); padding-top: 4px; }
.more { font-size: 15px; font-weight: 600; color: var(--ailo-muted); border-bottom: 1px solid currentColor; }
.more:hover { color: var(--m07-blue); }

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

/* ---------- Header ---------- */
.hd__util { font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.hd.is-scrolled .hd__util, .hd.is-mega-open .hd__util { border-color: var(--ailo-line); }
.hd__util-in { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.hd__util-in > span:first-child { opacity: .85; }
.hd__util-r { display: flex; gap: 20px; }
.hd__util-r a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hd__in { display: flex; align-items: center; gap: 16px; height: 82px; }
.hd__logo { display: flex; align-items: center; gap: 10px; flex: none; }
.hd__eye { width: 34px; height: 34px; }
.hd.is-scrolled .hd__eye, .hd.is-mega-open .hd__eye, html.nav-open .hd .hd__eye { color: var(--m07-blue); }
.hd__logo > span { display: flex; flex-direction: column; font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.hd__logo small { font-family: var(--m07-en); font-size: 11px; font-weight: 600; letter-spacing: .14em; opacity: .75; }
.hd .ailo-mega { margin-inline: auto; }
.hd__cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
.hd:not(.is-scrolled):not(.is-mega-open) .hd__cta { background: #fff; color: var(--m07-blue); }

.mnav { background: #fff; }
.mnav__in { padding: 96px var(--ailo-gutter) 40px; display: grid; gap: 4px; }
.mnav__in > a:not(.ce-btn) { display: block; padding: 15px 0; font-size: 21px; font-weight: 700; border-bottom: 1px solid var(--ailo-line); }
.mnav__in .ce-btn { margin-top: 20px; }
.mnav__in p { margin-top: 12px; font-size: 15px; color: var(--ailo-muted); }
.mnav__in p span { font-family: var(--m07-en); font-size: 20px; font-weight: 700; color: var(--ailo-fg); margin-left: 6px; }

/* ---------- Hero ---------- */
.hero { --ailo-hero-dim: linear-gradient(90deg, rgba(10, 30, 42, .66) 0%, rgba(10, 30, 42, .4) 60%, rgba(10, 30, 42, .22) 100%); --ailo-hero-btn-radius: 8px; --ailo-hero-size: clamp(30px, 3.2vw + 12px, 60px); }
.hero .ailo-hero__body { padding-bottom: calc(var(--ailo-overlap) + 110px); }

/* ---------- 겹침 위젯 ---------- */
.ov { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; padding: 0 !important; overflow: hidden; }
.ov__hours { padding: 30px 34px; background: var(--m07-blue); color: #fff; }
.ov__t { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #9fe0c6; box-shadow: 0 0 0 4px rgba(159, 224, 198, .2); }
.hero__quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hero__quick li { display: grid; gap: 4px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .25); }
.hero__quick li:first-child { padding-left: 0; border: 0; }
.hero__quick span { font-size: 14px; opacity: .8; }
.hero__quick b { font-family: var(--m07-en); font-size: 18px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero__quick a:hover { color: #fff; text-decoration: underline; }
.ov__quick { display: grid; grid-template-columns: repeat(3, 1fr); }
.ov__quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px 8px; font-size: 16px; font-weight: 700; border-left: 1px solid var(--ailo-line); border-bottom: 1px solid var(--ailo-line); transition: background-color .2s, color .2s; }
.ov__quick a:nth-child(n+4) { border-bottom: 0; }
.ov__quick a:hover { background: var(--m07-tint); color: var(--m07-blue); }
.ov__quick i { font-size: 22px; color: var(--m07-blue); }

/* ---------- News (탭) ---------- */
.news__grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.news__grid > * { min-width: 0; }
.news__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.news__list { border-top: 1px solid var(--ailo-fg); }
.nw { display: grid; grid-template-columns: 64px auto 1fr; align-items: center; gap: 14px; padding: 17px 4px; border-bottom: 1px solid var(--ailo-line); }
.nw time { font-family: var(--m07-en); font-size: 15px; color: var(--ailo-muted); font-variant-numeric: tabular-nums; }
.nw__cat { font-size: 14px; font-weight: 700; color: var(--m07-blue); background: var(--m07-tint); padding: 2px 10px; border-radius: 4px; }
.nw b { font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw:hover b { text-decoration: underline; text-underline-offset: 3px; }
.news__side { background: var(--m07-surface); border-radius: var(--m07-r); padding: 30px; display: grid; gap: 12px; }
.news__side-t { font-size: 21px; font-weight: 800; }
.news__side > p:not(.news__side-t) { font-size: 16px; color: var(--ailo-muted); margin-bottom: 8px; }

/* ---------- About ---------- */
.about { background: var(--m07-surface); }
.about__grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.about__vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.val { background: #fff; border-radius: var(--m07-r); padding: 30px 26px; }
.val__ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--m07-tint); color: var(--m07-blue); font-size: 20px; margin-bottom: 18px; }
.val h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.val p { font-size: 16px; color: var(--ailo-muted); }

/* ---------- Clinic ---------- */
.clinic__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--ailo-fg); }
.clinic__list a { display: grid; grid-template-columns: 56px 1fr 20px; align-items: center; gap: 18px; padding: 22px 4px; border-bottom: 1px solid var(--ailo-line); transition: background-color .2s; }
.clinic__list a:hover { background: var(--m07-surface); }
.cl__ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--m07-tint); color: var(--m07-blue); font-size: 22px; }
.cl__txt { display: grid; gap: 2px; }
.cl__txt b { font-size: 19px; }
.cl__txt small { font-size: 15px; color: var(--ailo-muted); }
.cl__go { color: #9aa5b0; }

/* ---------- Device ---------- */
.device { background: var(--m07-surface); }
.dv { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.dv__tabs { display: flex; flex-direction: column; border-top: 1px solid var(--ailo-line); }
.dv__tabs button { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--ailo-line); background: transparent; text-align: left; font-size: 17px; font-weight: 600; color: var(--ailo-muted); }
.dv__tabs em { font-family: var(--m07-en); font-style: normal; font-size: 14px; color: #8b96a1; }
.dv__tabs small { font-family: var(--m07-en); font-size: 13px; }
.dv__tabs button[aria-selected="true"] { color: var(--ailo-fg); background: #fff; box-shadow: inset 3px 0 0 var(--m07-blue); }
.dv__tabs button[aria-selected="true"] em { color: var(--m07-blue); }
.dv__panels { min-width: 0; }
.dv__panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 3vw, 48px); align-items: center; background: #fff; border-radius: var(--m07-r); padding: clamp(20px, 2.4vw, 32px); }
.dv__panel[hidden] { display: none; }
.dv__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.dv__no { font-family: var(--m07-en); font-size: 14px; color: var(--m07-blue); font-weight: 600; }
.dv__txt h3 { font-size: clamp(22px, 1.8vw, 28px); font-weight: 800; margin: 8px 0 12px; }
.dv__txt > p { font-size: 17px; color: var(--ailo-muted); }
.dv__txt dl { margin: 20px 0 0; border-top: 1px solid var(--ailo-line); }
.dv__txt dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ailo-line); }
.dv__txt dt { font-size: 15px; font-weight: 700; }
.dv__txt dd { margin: 0; font-size: 16px; }

/* ---------- Stats ---------- */
.stats { padding-block: clamp(56px, 6vw, 88px); background: var(--m07-blue); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.st { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .22); }
.st:first-child { padding-left: 0; border: 0; }
.st b { font-family: var(--m07-en); font-size: clamp(38px, 3.6vw, 54px); font-weight: 600; 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; opacity: .85; }

/* ---------- Flow ---------- */
.flow__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow__list li { position: relative; padding: 26px 22px; background: var(--m07-surface); border-radius: var(--m07-r); display: grid; gap: 6px; }
.flow__list span { font-family: var(--m07-en); font-size: 15px; font-weight: 700; color: var(--m07-blue); }
.flow__list b { font-size: 18px; }
.flow__list p { font-size: 15px; color: var(--ailo-muted); }

/* ---------- Doctors ---------- */
.doc__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.doc { text-align: center; }
.doc__img { margin-bottom: 18px; border-radius: var(--m07-r); overflow: hidden; background: var(--m07-surface); }
.doc__img img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; }
.doc__pos { font-size: 15px; font-weight: 700; color: var(--m07-blue); }
.doc h3 { font-size: 24px; font-weight: 800; margin: 2px 0 4px; }
.doc p { font-size: 16px; color: var(--ailo-muted); }

/* ---------- Hours (타임라인) ---------- */
.hours { background: var(--m07-surface); }
.tl { background: #fff; border-radius: var(--m07-r); padding: 24px 28px; display: grid; gap: 10px; }
.tl__scale { display: flex; justify-content: space-between; margin-left: 56px; font-family: var(--m07-en); font-size: 14px; color: #7d8894; }
.tl__row { display: grid; grid-template-columns: 56px 1fr; align-items: center; min-height: 40px; }
.tl__d { font-size: 16px; font-weight: 700; }
.tl__bar { position: relative; height: 34px; background: var(--m07-surface); border-radius: 6px; }
.tl__bar::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--s, 0) / 12 * 100%); width: calc((var(--e, 0) - var(--s, 0)) / 12 * 100%); background: color-mix(in srgb, var(--m07-blue) 18%, #fff); border-radius: 6px; }
.tl__bar i { position: absolute; top: 0; bottom: 0; left: calc(var(--ls) / 12 * 100%); width: calc((var(--le) - var(--ls)) / 12 * 100%); background: repeating-linear-gradient(45deg, #fff 0 4px, #e3e8ed 4px 8px); }
.tl__bar em { position: absolute; left: 12px; top: 50%; translate: 0 -50%; font-style: normal; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl__row.is-night .tl__bar::before { background: color-mix(in srgb, var(--m07-blue) 32%, #fff); }
.tl__row.is-off .tl__bar em { color: #a0303a; }
.tl__row.is-today .tl__d { color: var(--m07-blue); }
.tl__row.is-today .tl__bar::before { background: var(--m07-blue); }
.tl__row.is-today .tl__bar em { color: #fff; }
.hours__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.hours__foot p { font-size: 15px; color: var(--ailo-muted); display: flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 18px; height: 12px; border-radius: 2px; background: repeating-linear-gradient(45deg, #fff 0 3px, #d3dae1 3px 6px); border: 1px solid var(--ailo-line); }

/* ---------- 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__t { 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: #7d8894; }

/* ---------- Reserve ---------- */
.reserve { background: var(--m07-tint); }
.reserve__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.reserve__info > p:not(.eyebrow) { margin-top: 16px; font-size: 17px; color: var(--ailo-muted); }
.reserve__tips { margin-top: 24px; display: grid; gap: 10px; }
.reserve__tips li { font-size: 16px; display: flex; gap: 10px; }
.reserve__tips i { color: var(--m07-blue); padding-top: 5px; }
.rf { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: #fff; border-radius: var(--m07-r); padding: clamp(28px, 3vw, 44px); }
.fld { display: grid; gap: 6px; }
.fld--full { grid-column: 1 / -1; }
.fld > span { font-size: 15px; font-weight: 600; }
.fld small { color: var(--ailo-muted); font-weight: 400; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cdd6de; border-radius: var(--m07-r); font-size: 16px; background: #fff; color: var(--ailo-fg); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--m07-blue); box-shadow: 0 0 0 3px rgba(27, 111, 143, .15); }
.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(--m07-blue); }
.agree a { color: var(--ailo-fg); text-decoration: underline; }
.rf .ce-btn { min-height: 56px; }

/* ---------- Location ---------- */
.loc__card { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.loc__map { border-radius: var(--m07-r); overflow: hidden; aspect-ratio: 32 / 21; }
.loc__map svg { width: 100%; height: 100%; }
.loc__info ul { margin-top: 24px; border-top: 1px solid var(--ailo-fg); }
.loc__info li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--ailo-line); }
.loc__info li i { color: var(--m07-blue); padding-top: 4px; }
.loc__info li div { display: grid; gap: 2px; }
.loc__info b { font-size: 16px; }
.loc__info li span { font-size: 16px; color: #3e4a55; }

/* ---------- Footer ---------- */
.ft { background: #121820; color: #b0b9c3; 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 .hd__logo { color: #fff; }
.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__copy { margin-top: 14px; font-size: 13px; color: #87909b; }

.mbar { display: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 1199.98px) {
  .hd__cta { display: none; }
  .ov { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .flow__list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
  :root { --ailo-header-h: 68px; --ailo-overlap: 56px; }
  .hd__util, .hd .ailo-sitemap-btn { display: none; }
  .hd__in { height: 68px; justify-content: space-between; }
  .news__grid, .dv, .dv__panel, .reserve__grid, .loc__card { grid-template-columns: 1fr; }
  .dv__tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-top: 0; border-bottom: 1px solid var(--ailo-line); }
  .dv__tabs button { flex: none; border-bottom: 0; min-height: 52px; }
  .dv__tabs button small { display: none; }
  .dv__tabs button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--m07-blue); background: transparent; }
  .about__vals, .doc__row { grid-template-columns: 1fr 1fr; }
  .clinic__list { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .st: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(--m07-blue); }
  .mbar__main, .mbar__main:hover { background: var(--m07-blue); color: #fff; }
  .mbar__main i { color: #fff; }
  body { padding-bottom: 60px; }
}
@media (max-width: 575.98px) {
  .ov__hours { padding: 22px 20px; }
  .hero__quick { grid-template-columns: 1fr 1fr; gap: 12px 0; }
  .hero__quick li:nth-child(3) { padding-left: 0; border: 0; }
  .ov__quick a { font-size: 14px; padding: 14px 4px; }
  .ov__quick a:nth-child(3n+1) { border-left: 0; }
  .about__vals, .doc__row, .flow__list, .rf { grid-template-columns: 1fr; }
  .nw { grid-template-columns: auto 1fr; }
  .nw time { display: none; }
  .tl { padding: 18px 14px; }
  .tl__scale { margin-left: 36px; font-size: 13px; }
  .tl__row { grid-template-columns: 36px 1fr; }
  .tl__bar em { font-size: 14px; left: 8px; }
  .dv__txt dl > div { grid-template-columns: 84px 1fr; }
}
