/* ==========================================================================
   AILO Public P08 — 글로벌톡 어학원
   원형: A 풀블리드 슬라이드형 — 수업 실사 3장 슬라이드(인사말 회전 eyebrow), 투명→흰 메가메뉴,
         언어 과정 사진 카드 · 숫자 띠 · 레벨 테스트(셀프 체크) · 레벨 테스트 CTA 띠 · 주간 시간표 · 탑승권 신청 폼
   타이포: Pretendard + DM Sans(영문 eyebrow·언어 코드·숫자)
   컬러: 틸 #1d6b6b 1색 + 무채색(다색 언어 표시 제거 — 언어는 코드 글자로 구분)
   ========================================================================== */

:root {
  --ailo-bg: #ffffff;
  --ailo-fg: #151b1b;
  --ailo-muted: #4e5858;
  --ailo-line: #e0e6e6;
  --ailo-accent: #1d6b6b;
  --ailo-accent-ink: #ffffff;
  --ailo-header-h: 84px;

  --p08-soft: #f3f6f6;
  --p08-tint: #e6eeee;
  --p08-dark: #0f2626;
  --p08-num: "DM Sans", "Pretendard Variable", Pretendard, sans-serif;
  --p08-sec: clamp(80px, 9vw, 132px);
  --p08-r: 12px;

  --ailo-hero-dim: linear-gradient(90deg, rgba(8, 24, 24, .72) 0%, rgba(8, 24, 24, .42) 55%, rgba(8, 24, 24, .2) 100%);
  --ailo-hero-btn-radius: 999px;
  --ailo-mega-col: 7.5em;
  --ailo-mega-col-md: 6em;
  --ailo-cta-dim: rgba(8, 30, 30, .7);
}

body { font-size: 17px; line-height: 1.7; }
.sec { padding-block: var(--p08-sec); }
.ailo-eyebrow { font-family: var(--p08-num); letter-spacing: .12em; }
.head-note { max-width: 28em; font-size: 16.5px; color: var(--ailo-muted); }
.btn-p { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ailo-accent); color: #fff; font-size: 16px; font-weight: 700; }
.btn-p:hover { color: #fff; background: color-mix(in srgb, var(--ailo-accent) 82%, #000); }
.btn-p--light { background: #fff; color: var(--ailo-accent); }
.btn-p--light:hover { background: var(--p08-tint); color: var(--ailo-accent); }

/* ===== 헤더 ===== */
.hd__in { height: var(--ailo-header-h); display: flex; align-items: center; gap: 18px; }
.hd__logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.hd__logo span { display: flex; align-items: baseline; font-family: var(--p08-num); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.hd__logo b { font-weight: 800; }
.hd__logo small { margin-left: 8px; font-family: var(--ailo-font); font-size: 14px; font-weight: 600; opacity: .8; letter-spacing: 0; }
.hd.is-scrolled .hd__logo svg, .hd.is-mega-open .hd__logo svg { color: var(--ailo-accent); }
.hd__nav { flex: 1; display: flex; justify-content: center; }
@media (max-width: 991.98px) { .hd__nav.ailo-mega { display: none; } }
.hd__nav .ailo-mega__link { font-weight: 600; }
.hd__cta { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--ailo-accent); font-size: 15px; font-weight: 700; }
.hd.is-scrolled .hd__cta, .hd.is-mega-open .hd__cta, .hd:has(:focus-visible) .hd__cta { background: var(--ailo-accent); color: #fff; }
.mnav { background: #fff; }
.mnav__in { display: flex; flex-direction: column; padding: calc(var(--ailo-header-h) + 16px) var(--ailo-gutter) 40px; }
.mnav__in > a { padding: 16px 0; border-bottom: 1px solid var(--ailo-line); font-size: 21px; font-weight: 700; }
.mnav__in > a.mnav__cta { margin-top: 24px; padding: 16px; border: 0; border-radius: 999px; background: var(--ailo-accent); color: #fff; text-align: center; font-size: 17px; }
.mnav__hello { margin-top: 20px; font-family: var(--p08-num); font-size: 15px; color: var(--ailo-muted); }

/* ===== 히어로 ===== */
.hero__word { display: inline-block; min-width: 4.5em; color: #fff; transition: opacity .3s, transform .3s; }
.hero__word.is-out { opacity: 0; transform: translateY(-6px); }

/* ===== 소개 ===== */
.about__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.values li { display: grid; gap: 6px; padding: 30px 26px; border-radius: var(--p08-r); background: var(--p08-soft); }
.values b { font-family: var(--p08-num); font-size: clamp(34px, 2vw + 16px, 48px); font-weight: 800; color: var(--ailo-accent); letter-spacing: -.02em; line-height: 1.1; }
.values span { font-size: 16px; color: var(--ailo-muted); }

/* ===== 언어 과정 ===== */
.courses { background: var(--p08-soft); }
.langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lang { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--p08-r); background: #fff; transition: transform .3s var(--ailo-ease), box-shadow .3s; }
.lang:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -18px rgba(10, 40, 40, .3); }
.lang img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.lang__body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 26px 26px 28px; }
.lang__code { position: absolute; top: -22px; right: 22px; display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; background: var(--ailo-accent); color: #fff; font-family: var(--p08-num); font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.lang h3 { font-size: 23px; font-weight: 800; }
.lang p { margin: 6px 0 12px; font-size: 16px; color: var(--ailo-muted); }
.lang ul { display: grid; gap: 4px; margin-bottom: 18px; }
.lang li { position: relative; padding-left: 16px; font-size: 15px; }
.lang li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--ailo-accent); }
.lang__go { margin-top: auto; align-self: flex-start; font-weight: 700; color: var(--ailo-accent); border-bottom: 1px solid currentColor; }
.lang__go::after { content: " →"; }
.lang--kids .lang__code { background: var(--p08-dark); }

/* ===== 숫자 띠 ===== */
.nums { background: var(--ailo-accent); color: #fff; padding-block: clamp(52px, 5vw, 80px); }
.nums__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.num { display: grid; gap: 4px; padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, .2); }
.num:first-child { border-left: 0; padding-left: 0; }
.num b { font-family: var(--p08-num); font-size: clamp(36px, 2.6vw + 14px, 58px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.num span { font-size: 16px; color: rgba(255, 255, 255, .82); }

/* ===== 레벨 테스트 ===== */
.lt__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.lt__steps { margin-top: 32px; border-top: 1px solid var(--ailo-fg); }
.lt__steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--ailo-line); }
.lt__steps span { font-family: var(--p08-num); font-size: 22px; font-weight: 800; color: var(--ailo-accent); }
.lt__steps b { font-size: 18px; }
.lt__steps p { font-size: 15.5px; color: var(--ailo-muted); }
.quiz { padding: clamp(24px, 3vw, 40px); border-radius: var(--p08-r); background: var(--p08-soft); }
.quiz__tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--ailo-accent); color: #fff; font-size: 14px; font-weight: 700; }
.quiz h3 { margin: 12px 0 18px; font-size: 22px; font-weight: 800; }
.quiz fieldset { margin: 0 0 16px; padding: 0; border: 0; display: grid; gap: 6px; }
.quiz legend { margin-bottom: 6px; font-size: 16px; font-weight: 700; }
.quiz label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 8px; background: #fff; font-size: 15.5px; cursor: pointer; }
.quiz label:has(input:checked) { outline: 1px solid var(--ailo-accent); color: var(--ailo-accent); font-weight: 700; }
.quiz input { accent-color: var(--ailo-accent); width: 17px; height: 17px; }
.quiz__result { display: grid; gap: 10px; justify-items: start; }
.quiz__result[hidden] { display: none; }
.quiz__lv { font-family: var(--p08-num); font-size: 40px; font-weight: 800; color: var(--ailo-accent); }
.quiz__again { border: 0; background: none; font-size: 15px; color: var(--ailo-muted); text-decoration: underline; text-underline-offset: 3px; }
.cta__eyebrow { color: rgba(255, 255, 255, .8); }

/* ===== 시간표 ===== */
.tt-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-filter button { min-height: 42px; padding: 0 16px; border: 1px solid var(--ailo-line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; color: var(--ailo-muted); }
.tt-filter button.is-on { background: var(--ailo-accent); border-color: var(--ailo-accent); color: #fff; }
.week-wrap { overflow-x: auto; }
.week { display: grid; grid-template-columns: 80px repeat(4, minmax(180px, 1fr)); grid-template-rows: auto repeat(5, minmax(88px, auto)); gap: 8px; min-width: 860px; }
.week__h { padding: 10px; font-size: 15px; font-weight: 700; color: var(--ailo-muted); border-bottom: 1px solid var(--ailo-fg); grid-row: 1; }
.week__t { grid-column: 1; padding-top: 12px; font-family: var(--p08-num); font-size: 16px; font-weight: 700; color: var(--ailo-accent); }
.cls { position: relative; display: grid; align-content: start; gap: 2px; padding: 14px 16px; border-radius: 10px; background: var(--p08-soft); transition: opacity .2s; }
.cls i { font-style: normal; font-family: var(--p08-num); font-size: 13px; font-weight: 800; color: var(--ailo-accent); letter-spacing: .06em; }
.cls b { font-size: 15.5px; line-height: 1.4; }
.cls span { font-size: 14px; color: var(--ailo-muted); }
.cls em { position: absolute; top: 12px; right: 12px; padding: 2px 8px; border-radius: 999px; background: var(--p08-dark); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; }
.cls.is-dim { opacity: .25; }
.tt-note { margin-top: 18px; font-size: 14.5px; color: var(--ailo-muted); }
.tt-note i { color: var(--ailo-accent); margin-right: 6px; }

/* ===== 강사진 ===== */
.teachers { background: var(--p08-soft); }
.tlist { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tch__ph { overflow: hidden; border-radius: var(--p08-r); }
.tch__ph img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s var(--ailo-ease); }
.tch:hover .tch__ph img { transform: scale(1.04); }
.tch h3 { margin-top: 14px; font-size: 19px; font-weight: 800; }
.tch__lang { font-family: var(--p08-num); font-size: 14px; font-weight: 700; color: var(--ailo-accent); }
.tch__q { margin-top: 4px; font-size: 15px; color: var(--ailo-muted); }

/* ===== 소식 ===== */
.ncards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ncard { display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 26px; border-radius: var(--p08-r); background: var(--p08-soft); transition: background-color .2s, color .2s; }
.ncard:hover { background: var(--ailo-accent); color: #fff; }
.ncard:hover .ncard__k, .ncard:hover time { color: rgba(255, 255, 255, .8); }
.ncard__k { font-size: 14px; font-weight: 700; color: var(--ailo-accent); }
.ncard b { font-size: 18px; line-height: 1.45; }
.ncard time { margin-top: auto; font-family: var(--p08-num); font-size: 14px; color: var(--ailo-muted); }

/* ===== 연혁 ===== */
.history { padding-bottom: 0; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ailo-fg); }
.stamps li { display: grid; gap: 6px; padding: 24px 20px 24px 0; }
.stamps b { font-family: var(--p08-num); font-size: 28px; font-weight: 800; color: var(--ailo-accent); }
.stamps span { font-size: 16px; color: #3f4848; }
.partners { margin-top: 48px; padding: 28px 0; border-block: 1px solid var(--ailo-line); }

/* ===== 오시는 길 ===== */
.map__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.map__art { border-radius: var(--p08-r); overflow: hidden; }
.map__art svg { width: 100%; height: auto; aspect-ratio: 560 / 360; }
.map__title { font-size: clamp(26px, 1.2vw + 18px, 40px); }
.map__info ul { margin-top: 24px; border-top: 1px solid var(--ailo-fg); }
.map__info li { display: flex; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--ailo-line); font-size: 16.5px; }
.map__info li i { width: 18px; color: var(--ailo-accent); }

/* ===== 신청 폼 (탑승권) ===== */
.apply { background: var(--p08-tint); }
.ticket { display: grid; grid-template-columns: 1fr 300px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 24px 48px -24px rgba(10, 40, 40, .3); }
.ticket__main { padding: clamp(24px, 4vw, 52px); }
.ticket__title { font-size: clamp(24px, 1vw + 18px, 34px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.pick legend { float: left; width: 100%; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; inset: 0; opacity: 0; }
.pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #bfcaca; border-radius: 999px; font-size: 15.5px; font-weight: 600; }
.pick input:checked + span { background: var(--ailo-accent); border-color: var(--ailo-accent); color: #fff; }
.pick input:focus-visible + span { outline: 2px solid var(--ailo-accent); outline-offset: 2px; }
.ticket__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 6px; margin-bottom: 14px; }
.fld span { font-size: 15px; font-weight: 700; }
.fld input, .fld select { min-height: 48px; padding: 0 14px; border: 1px solid #bfcaca; border-radius: 8px; font-size: 16px; background: #fff; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ailo-muted); }
.agree input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ailo-accent); flex: none; }
.ticket__stub { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 32px; background: var(--ailo-accent); color: #fff; }
.ticket__stub::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; border-left: 1px dashed rgba(255, 255, 255, .5); }
.stub__lbl { font-family: var(--p08-num); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.stub__lang { font-family: var(--p08-num); font-size: 34px; font-weight: 800; }
.stub__info { font-family: var(--p08-num); font-size: 14px; opacity: .8; margin-bottom: 14px; }

/* ===== 푸터 ===== */
.ft { background: #0c1a1a; color: rgba(255, 255, 255, .72); padding: 56px 0 36px; font-size: 15px; }
.ft__in { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px; }
.ft__logo { font-family: var(--p08-num); font-size: 24px; font-weight: 700; color: #fff; }
.ft__sub { margin-top: 2px; color: rgba(255, 255, 255, .6); }
.ft__info p { line-height: 1.85; }
.ft__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 !important; }
.ft__links a { color: rgba(255, 255, 255, .8); }
.ft__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ft__links b { color: #fff; }
.ft__copy { font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ===== 반응형 ===== */
@media (max-width: 1279.98px) { .hd__cta { display: none; } .hd__logo small { display: none; } .tlist { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1199.98px) { .langs { grid-template-columns: repeat(2, 1fr); } .ncards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991.98px) {
  :root { --ailo-header-h: 64px; }
  .ailo-sitemap-btn { display: none; }
  .hd__in .ailo-burger { margin-left: auto; }
  .about__grid, .lt__grid, .map__grid, .ft__in { grid-template-columns: 1fr; }
  .nums__row { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .num:nth-child(3) { border-left: 0; padding-left: 0; }
  .ticket { grid-template-columns: 1fr; }
  .ticket__stub::before { left: 24px; right: 24px; top: 0; bottom: auto; border-left: 0; border-top: 1px dashed rgba(255, 255, 255, .5); }
  .stamps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575.98px) {
  .hd__logo span { font-size: 19px; }
  .values { grid-template-columns: 1fr; }
  .langs, .ncards { grid-template-columns: 1fr; }
  .num { padding: 0 14px; }
  .num:nth-child(odd) { border-left: 0; padding-left: 0; }
  .tlist { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ticket__row { grid-template-columns: 1fr; gap: 0; }
  .stamps { grid-template-columns: 1fr 1fr; }
  .ncard { min-height: 0; }
}
