/* ==========================================================================
   모모 플레이랩 — DREXLY 템플릿 (키즈센터·유치원)
   정본: 00-디자인보드.png(색·활자·사이트맵·UI 상태) + 02-페이지시안.png(면별 내용)
   레이아웃 원형: Playful Bento(홈 전용) + Timeline(하루) + Tabs(프로그램·하루)
   ========================================================================== */

:root {
  /* ── 색 (디자인보드 팔레트 5색) ───────────────────────────── */
  --blue: #2f6fd8;
  --blue-700: #1e56ae;
  --blue-800: #17458d;
  --blue-100: #d7e4fa;
  --blue-50: #eaf1fc;
  --yellow: #ffc233;
  --yellow-300: #ffd775;
  --yellow-50: #fff5dd;
  --coral: #f4623f;
  --coral-700: #ce4527;   /* 흰 글자 대비 4.6:1 — 채움 버튼용 */
  --coral-800: #b23a1f;   /* 밝은 바탕 위 글자용 */
  --coral-50: #ffece6;
  --milk: #f7f7f3;
  --paper: #fbf8f1;
  --surface: #ffffff;
  --ink: #333333;
  --ink-2: #5f5c57;
  --muted: #6f6a63;

  --line: rgba(60, 52, 40, 0.13);
  --line-soft: rgba(60, 52, 40, 0.07);

  /* ── 활자 ─────────────────────────────────────────────── */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  /* ── 8px 간격 체계 ────────────────────────────────────── */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s7: 64px; --s8: 80px;

  --wrap: 1200px;
  --gutter: 40px;
  --section: 104px;

  /* ── 라운드 · 그림자 ──────────────────────────────────── */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pill: 999px;
  --sh-1: 0 1px 2px rgba(60, 52, 40, 0.05), 0 8px 22px rgba(60, 52, 40, 0.055);
  --sh-2: 0 2px 4px rgba(60, 52, 40, 0.06), 0 18px 42px rgba(60, 52, 40, 0.09);

  /* ── z 층 ─────────────────────────────────────────────── */
  --z-bar: 55; --z-header: 60; --z-scrim: 80; --z-drawer: 90; --z-toast: 120;

  --ease: cubic-bezier(0.22, 0.72, 0.28, 1);
}

/* --------------------------------------------------------------- 기본 */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  /* 종이 질감 — 미세 그레인 타일(외부 요청 0) */
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  /* 한국어는 어절 단위로 끊는다 */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
/* .btn 등 display 를 가진 클래스가 hidden 속성을 이기는 일이 없도록 */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.34; letter-spacing: -0.028em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
/* figure·dl 의 기본 바깥 여백(1em 40px)이 그리드 칸을 좁힌다 — 반드시 0 으로 */
figure, figcaption, blockquote, dl, dd { margin: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: 12px 20px; font-size: 14px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 사진 액자 — 블록이어야 aspect-ratio 가 먹는다 */
.frame { display: block; overflow: hidden; background: var(--milk); border-radius: var(--r); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* 유기적 얼룩 액자 — 시안의 blob 마스크 */
.blob {
  display: block; overflow: hidden; background: var(--milk);
  border-radius: 46% 54% 52% 48% / 54% 46% 54% 46%;
}
.blob img { width: 100%; height: 100%; object-fit: cover; }

.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 17px; height: 17px; stroke-width: 1.8; }
.ico-lg { width: 32px; height: 32px; stroke-width: 1.5; }

/* --------------------------------------------------------- 활자 계층 */
.display {
  font-size: clamp(30px, 4.3vw, 46px);
  line-height: 1.28;
  letter-spacing: -0.038em;
}
.page-title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.26;
  letter-spacing: -0.04em;
}
.section-title {
  font-size: clamp(23px, 2.5vw, 29px);
  line-height: 1.32;
  letter-spacing: -0.034em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--blue-700);
}
.lead { color: var(--ink-2); font-size: 17px; line-height: 1.78; }
.caption { font-size: 13px; line-height: 1.55; color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
.hl-blue { color: var(--blue-700); }
.hl-coral { color: var(--coral-800); }

.section { padding-block: calc(var(--section) / 2); }
.section-lead { padding-top: var(--section); }
.section-last { padding-bottom: var(--section); }
.section-milk { background: var(--milk); }

.section-head { margin-bottom: var(--s6); max-width: 720px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head p { margin-top: 14px; color: var(--ink-2); }
.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s6);
}
.head-row .section-head { margin-bottom: 0; }

/* --------------------------------------------------------------- 버튼 */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1.5px solid var(--btn-bd); border-radius: var(--pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
  cursor: pointer;
  transition: background 0.24s var(--ease), color 0.24s var(--ease),
    border-color 0.24s var(--ease), transform 0.16s var(--ease), box-shadow 0.24s var(--ease);
}
.btn .arw { transition: transform 0.24s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] {
  background: #e7e5e0; color: #9c968e; border-color: #e7e5e0;
  cursor: not-allowed; pointer-events: none;
}
.btn-coral { --btn-bg: var(--coral-700); --btn-fg: #fff; --btn-bd: var(--coral-700); }
.btn-coral:hover { --btn-bg: var(--coral-800); --btn-bd: var(--coral-800); box-shadow: var(--sh-1); }
.btn-blue { --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--blue); }
.btn-blue:hover { --btn-bg: var(--blue-700); --btn-bd: var(--blue-700); box-shadow: var(--sh-1); }
.btn-line { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn-line:hover { --btn-bd: var(--blue); --btn-fg: var(--blue-700); }
.btn-line-coral { --btn-bg: var(--surface); --btn-fg: var(--coral-800); --btn-bd: rgba(206, 69, 39, 0.4); }
.btn-line-coral:hover { --btn-bd: var(--coral-700); --btn-bg: var(--coral-50); }
.btn-on-blue { --btn-bg: #fff; --btn-fg: var(--blue-800); --btn-bd: #fff; }
.btn-on-blue:hover { --btn-bg: var(--blue-50); --btn-bd: var(--blue-50); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-text {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--blue-700); font-size: 14.5px; font-weight: 700;
  transition: gap 0.24s var(--ease);
}
.btn-text:hover { gap: 11px; }

/* --------------------------------------------------------------- 헤더 */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(251, 248, 241, 0.9);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.15) blur(10px);
  backdrop-filter: saturate(1.15) blur(10px);
  box-shadow: 0 1px 18px rgba(60, 52, 40, 0.07);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-txt { font-size: 21px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.brand-txt .m { color: var(--coral-700); }
.brand-txt .p { color: var(--blue-700); }

.navlinks { display: flex; align-items: center; gap: 30px; }
.navlinks a {
  position: relative; font-size: 15.5px; font-weight: 600; color: var(--ink-2);
  padding: 8px 0; transition: color 0.24s var(--ease);
}
.navlinks a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px;
  border-radius: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.navlinks a:hover { color: var(--ink); }
.navlinks a:hover::after { transform: scaleX(1); }
.navlinks a[aria-current="page"] { color: var(--blue-700); }
.navlinks a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.nav-tel {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  font-size: 15px; font-weight: 700; color: var(--ink-2);
  transition: color 0.24s var(--ease);
}
.nav-tel:hover { color: var(--blue-700); }
.nav-tel .ico { color: var(--blue); }

.menu-btn {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer;
}

/* 모바일 서랍 */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); z-index: var(--z-drawer);
  background: var(--surface); border-left: 1px solid var(--line);
  padding: 20px 22px 32px; transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto; display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-close {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: none; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer;
}
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-size: 18px; font-weight: 700; padding: 15px 4px; min-height: 52px;
  display: flex; align-items: center; border-bottom: 1px solid var(--line-soft);
  transition: color 0.24s var(--ease);
}
.drawer nav a:hover, .drawer nav a[aria-current="page"] { color: var(--blue-700); }
.drawer-cta { margin-top: 22px; display: grid; gap: 10px; }
.drawer-cta .btn { justify-content: flex-start; }
.scrim {
  position: fixed; inset: 0; z-index: var(--z-scrim);
  background: rgba(45, 40, 33, 0.42);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.scrim.open { opacity: 1; visibility: visible; }

/* ------------------------------------------------------- 모바일 고정 CTA */
.cta-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  gap: 10px;
}
.cta-bar .btn { flex: 1; }
.cta-bar .cta-tel { flex: none; width: 52px; padding: 0; }

/* =============================================================== 히어로 */
.hero { position: relative; overflow: hidden; padding-block: 68px 84px; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: var(--s7); align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 27em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.trust-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
}
.chip .ico { color: var(--blue); }
.chip-yellow { background: var(--yellow-50); border-color: rgba(255, 194, 51, 0.45); }
.chip-coral { background: var(--coral-50); border-color: rgba(244, 98, 63, 0.3); }

.hero-media { position: relative; }
.hero-media .blob { aspect-ratio: 326 / 320; box-shadow: var(--sh-2); }
/* 시안의 노랑·파랑 언덕 — 섹션 아래로 흘려 보내 잘린 도형이 아니라 「땅」으로 읽히게 */
.hero-hills {
  position: absolute; left: 0; right: 0; bottom: -18px; width: 100%; height: 198px;
  z-index: 0; pointer-events: none;
}
.doodle { position: absolute; pointer-events: none; z-index: 1; }
.doodle-star { top: 9%; right: 4.5%; width: 52px; color: var(--yellow); }
.doodle-curve { left: 2.5%; top: 28%; width: 78px; color: var(--yellow-300); }

/* 내부 페이지 히어로 */
.page-hero { position: relative; overflow: hidden; padding-block: 56px 60px; }
.page-hero .hero-grid { gap: var(--s6); align-items: center; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .sub { font-size: clamp(19px, 2vw, 23px); font-weight: 700; line-height: 1.45; margin-bottom: 14px; letter-spacing: -0.032em; }
.page-hero .blob { aspect-ratio: 4 / 3; box-shadow: var(--sh-1); }
.page-hero .frame-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 18px; box-shadow: var(--sh-1); display: grid; place-items: center;
}
.page-hero .frame-card img { width: min(320px, 100%); height: auto; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.crumbs a:hover { color: var(--blue-700); }
.crumbs span[aria-current] { color: var(--ink-2); }

/* ============================================== 홈 — Playful Bento (홈 전용) */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.b {
  position: relative; border-radius: var(--r-lg); padding: 26px;
  background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--sh-1);
  display: flex; flex-direction: column;
}
.b h3 { font-size: 19px; margin-bottom: 8px; }
.b p { font-size: 14.5px; color: var(--ink-2); line-height: 1.66; }
.b-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 16px;
}
.b-icon.blue { background: var(--blue-50); color: var(--blue-700); }
.b-icon.yellow { background: var(--yellow-50); color: #a06c00; }
.b-icon.coral { background: var(--coral-50); color: var(--coral-800); }

.b-age { grid-column: span 2; grid-row: span 2; background: var(--blue-50); border-color: rgba(47, 111, 216, 0.16); }
.b-age h3 { font-size: 22px; }
.age-links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: auto; padding-top: 20px; }
.b-age .b-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--blue-800); }
.b-age .b-note .ico { color: var(--blue); }
.age-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 56px; padding: 10px 16px; border-radius: 14px;
  background: var(--surface); border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px;
  transition: border-color 0.22s var(--ease), transform 0.18s var(--ease);
}
.age-link small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.age-link:hover { border-color: var(--blue); transform: translateY(-2px); }
.age-link .ico { color: var(--blue); }

.b-axis3 { grid-column: span 2; }
.b-photo { grid-column: span 2; padding: 0; overflow: hidden; }
.b-photo .frame { border-radius: 0; height: 100%; min-height: 190px; }
.b-photo figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(255, 255, 255, 0.94); border-radius: var(--pill);
  padding: 8px 16px; font-size: 13.5px; font-weight: 700;
}
.b-safe { grid-column: span 2; background: var(--coral-50); border-color: rgba(244, 98, 63, 0.22); }
.safe-list { display: grid; gap: 10px; margin-top: 14px; }
.safe-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.safe-list .ico { color: var(--coral-800); }
.safe-list b { font-weight: 800; }
.b-day { grid-column: span 4; background: var(--yellow-50); border-color: rgba(255, 194, 51, 0.4); }
.day-mini { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.day-mini li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.day-mini .t { color: var(--blue-700); font-variant-numeric: tabular-nums; }
.day-mini .sep { color: rgba(60, 52, 40, 0.28); }
.b-more { margin-top: 16px; }

/* --------------------------------------------------- 홈 — 오늘의 모모 밴드 */
.today { position: relative; background: var(--blue); color: #fff; padding-block: var(--s8); overflow: hidden; }
.today .wave-t, .today .wave-b { position: absolute; left: 0; width: 100%; height: 42px; display: block; }
.today .wave-t { top: -1px; }
.today .wave-b { bottom: -1px; }
.today .section-head { color: #fff; }
.today .section-head p { color: rgba(255, 255, 255, 0.86); }
.today .eyebrow { color: var(--yellow); }
.today-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.today-card { background: rgba(255, 255, 255, 0.1); border-radius: var(--r-lg); padding: 12px; }
.today-card .frame { aspect-ratio: 4 / 3; border-radius: 16px; }
.today-card figcaption { padding: 14px 6px 4px; }
.today-card b { display: block; font-size: 16px; margin-bottom: 4px; }
.today-card span { font-size: 13.5px; color: rgba(255, 255, 255, 0.82); }

/* --------------------------------------------------------- 홈 — 후기 */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.review {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 28px 26px; box-shadow: var(--sh-1); display: flex; flex-direction: column;
}
.stars { display: flex; gap: 3px; color: var(--yellow); margin-bottom: 14px; }
.stars .ico { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.review-q { font-size: 15.5px; line-height: 1.75; color: var(--ink); margin-bottom: 20px; }
.review-by { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.avatar.a1 { background: var(--yellow-50); color: #8a5c00; }
.avatar.a2 { background: var(--blue-50); color: var(--blue-800); }
.avatar.a3 { background: var(--coral-50); color: var(--coral-800); }
.review-by b { font-size: 14px; }
.review-by span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ------------------------------------------------------------ CTA 밴드 */
.cta-band { position: relative; }
.cta-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s6);
  align-items: center; background: var(--yellow-50); border: 1px solid rgba(255, 194, 51, 0.4);
  border-radius: var(--r-xl); padding: 44px 48px; overflow: hidden;
}
.cta-inner h2 { font-size: clamp(23px, 2.6vw, 30px); margin-bottom: 12px; }
.cta-inner p { color: var(--ink-2); margin-bottom: 24px; }
.cta-inner .frame { aspect-ratio: 378 / 294; border-radius: var(--r-lg); }
.cta-coral {
  background: var(--coral-700); border: 0; color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5); align-items: center;
}
.cta-coral h2, .cta-coral p { color: #fff; }
.cta-coral p { color: rgba(255, 255, 255, 0.9); }
.cta-art { width: 190px; height: auto; color: rgba(255, 255, 255, 0.72); }

/* ============================================================== 탭 */
.tabs {
  display: flex; gap: 8px; padding: 6px; margin-bottom: var(--s5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--pill);
  background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}
.tab:hover { background: var(--milk); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--blue); color: #fff; }
.tabs-coral .tab[aria-selected="true"] { background: var(--coral-700); }
.tab[disabled] { color: #b3ada4; cursor: not-allowed; }
.panel[hidden] { display: none; }

/* =========================================== 프로그램 — 연령별 패널 */
.age-summary {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--r); overflow: hidden; margin-bottom: var(--s5);
}
.age-summary div { background: var(--surface); padding: 20px 22px; }
.age-summary dt { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.age-summary dd { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.age-summary dd small { font-size: 13px; font-weight: 600; color: var(--ink-2); }

.split { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: var(--s6); align-items: center; }
.split .frame { aspect-ratio: 4 / 3; box-shadow: var(--sh-1); }
.split h3 { font-size: clamp(21px, 2.2vw, 26px); margin-bottom: 12px; }
.split .lead { font-size: 16px; margin-bottom: 20px; }
.tick { display: grid; gap: 10px; }
.tick li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.tick .ico { color: var(--blue); margin-top: 3px; }

.act-row {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
  margin-top: var(--s5);
}
.act {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 20px 14px; text-align: center;
}
.act .ico-lg { margin: 0 auto 10px; }
.act b { display: block; font-size: 14.5px; }
.act span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.act.i-blue .ico-lg { color: var(--blue); }
.act.i-coral .ico-lg { color: var(--coral); }
.act.i-yellow .ico-lg { color: #d79a00; }

.week-wrap { margin-top: var(--s5); }
.week-wrap h4 { font-size: 17px; margin-bottom: 6px; }
.week-wrap .caption { margin-bottom: 14px; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.week { min-width: 620px; font-size: 14.5px; }
.week th, .week td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.week thead th { background: var(--milk); font-size: 13px; font-weight: 800; color: var(--ink-2); }
.week tbody th { font-weight: 700; color: var(--blue-700); white-space: nowrap; width: 120px; }
.week tr:last-child th, .week tr:last-child td { border-bottom: 0; }
.week td { color: var(--ink-2); }

/* 특별 프로그램 · 특징 */
.icon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.icon-item { text-align: center; padding: 8px; }
.icon-item .ring {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 24px;
  display: grid; place-items: center; background: var(--surface);
  border: 1px solid var(--line-soft); box-shadow: var(--sh-1);
}
.icon-item.c-blue .ring { color: var(--blue); }
.icon-item.c-coral .ring { color: var(--coral); }
.icon-item.c-yellow .ring { color: #d79a00; }
.icon-item.c-green .ring { color: #2e8f6e; }
.icon-item b { display: block; font-size: 16px; margin-bottom: 6px; }
.icon-item p { font-size: 14px; color: var(--ink-2); }

/* ============================================== 하루 — 타임라인 */
.time-strip {
  display: none; gap: 8px; overflow-x: auto; padding: 4px 0 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.time-strip::-webkit-scrollbar { display: none; }
.time-strip a {
  flex: none; min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 16px; border-radius: var(--pill); background: var(--surface);
  border: 1px solid var(--line); font-size: 13.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.timeline { position: relative; padding-left: 0; }
.tl-item {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) 200px;
  gap: var(--s4); align-items: flex-start;
  padding: 22px 0 26px; position: relative;
}
.tl-item::before {
  content: ""; position: absolute; left: 138px; top: 0; bottom: 0; width: 2px;
  background: var(--line-soft);
}
.tl-item:first-child::before { top: 34px; }
.tl-item:last-child::before { bottom: auto; height: 34px; }
.tl-time {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end;
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  font-variant-numeric: tabular-nums; padding-top: 4px;
}
.tl-dot { position: absolute; left: 133px; top: 32px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--paper); }
.tl-dot.d-blue { background: var(--blue); }
.tl-dot.d-coral { background: var(--coral); }
.tl-dot.d-yellow { background: var(--yellow); }
.tl-body { padding-left: 26px; }
.tl-body h3 { font-size: 18px; margin-bottom: 6px; }
.tl-body p { font-size: 14.5px; color: var(--ink-2); }
.tl-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 5px 12px; border-radius: var(--pill); background: var(--milk);
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.tl-item .frame { aspect-ratio: 274 / 146; }

.note-bar {
  display: flex; gap: 14px; align-items: flex-start; margin-top: var(--s5);
  background: var(--blue-50); border: 1px solid rgba(47, 111, 216, 0.18);
  border-radius: var(--r); padding: 20px 24px;
}
.note-bar .ico { color: var(--blue-700); flex: none; margin-top: 2px; }
.note-bar p { font-size: 14.5px; color: var(--ink-2); }

.supply { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.supply-col { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 26px; }
.supply-col h3 { font-size: 17px; margin-bottom: 14px; }
.supply-col li { display: flex; gap: 9px; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; }
.supply-col .ico { color: var(--blue); flex: none; margin-top: 3px; }

/* ============================================ 교사·안전 */
.teacher {
  display: grid; grid-template-columns: 172px minmax(0, 1fr) 300px; gap: var(--s5);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--sh-1); margin-bottom: var(--s3); align-items: start;
}
.teacher .frame { aspect-ratio: 1 / 1; border-radius: var(--r); }
.teacher h3 { font-size: 21px; margin-bottom: 12px; }
.badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.badge {
  padding: 6px 13px; border-radius: var(--pill); background: var(--milk);
  border: 1px solid var(--line-soft); font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.badge.b-blue { background: var(--blue-50); border-color: rgba(47, 111, 216, 0.2); color: var(--blue-800); }
.teacher-q { font-size: 15.5px; color: var(--ink); margin-bottom: 18px; }
.teacher-career { border-left: 1px solid var(--line-soft); padding-left: var(--s4); }
.career-t { font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.career li { font-size: 14.5px; color: var(--ink-2); padding: 3px 0 3px 14px; position: relative; }
.career li::before { content: ""; position: absolute; left: 0; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-100); }

.ratio-table th, .ratio-table td { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.ratio-table thead th { background: var(--milk); font-size: 13px; font-weight: 800; color: var(--ink-2); }
.ratio-table tbody th { font-weight: 800; color: var(--ink); white-space: nowrap; }
.ratio-table td { color: var(--ink-2); }
.ratio-table .hi { color: var(--blue-800); font-weight: 800; }
.ratio-table tr:last-child th, .ratio-table tr:last-child td { border-bottom: 0; }

.safe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.safe-cell { background: var(--surface); padding: 30px 32px; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; }
.safe-cell .ico-lg { margin-top: 2px; }
.safe-cell.s-blue .ico-lg { color: var(--blue); }
.safe-cell.s-coral .ico-lg { color: var(--coral); }
.safe-cell.s-yellow .ico-lg { color: #d79a00; }
.safe-cell h3 { font-size: 17px; margin-bottom: 8px; }
.safe-cell p { font-size: 14.5px; color: var(--ink-2); }

.facility { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.facility figure { margin: 0; }
.facility .frame { aspect-ratio: 408 / 178; }
.facility figcaption { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }

.trust-band {
  background: var(--blue-50); border: 1px solid rgba(47, 111, 216, 0.16);
  border-radius: var(--r-xl); padding: 40px 48px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5);
  text-align: center;
}
.trust-band h2 { grid-column: 1 / -1; font-size: clamp(21px, 2.3vw, 26px); margin-bottom: 4px; }
.trust-item .ico-lg { color: var(--blue); margin: 0 auto 12px; }
.trust-item .num { font-size: 30px; font-weight: 800; color: var(--blue-800); letter-spacing: -0.04em; line-height: 1.2; }
.trust-item p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* =============================================== 체험예약 — 스테퍼·폼 */
.stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: var(--s6); }
.step {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 8px 16px; border-radius: var(--pill);
  background: var(--milk); color: var(--muted); font-size: 15px; font-weight: 700;
  border: 1.5px solid var(--line-soft);
}
.step .n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #ece8e1; color: var(--ink-2); font-size: 13px; font-weight: 800; flex: none;
}
.step[data-state="current"] { background: var(--coral-700); color: #fff; }
.step[data-state="current"] .n { background: rgba(255, 255, 255, 0.28); color: #fff; }
.step[data-state="done"] { background: var(--coral-50); color: var(--coral-800); border-color: rgba(206, 69, 39, 0.28); }
.step[data-state="done"] .n { background: var(--coral-700); }

.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s6); align-items: start; }
.book-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 34px 36px; box-shadow: var(--sh-1);
}
.fieldset { border: 0; padding: 0; margin: 0 0 var(--s5); }
.fieldset:last-of-type { margin-bottom: var(--s3); }
.fieldset legend { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; padding: 0; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field .req { color: var(--coral-800); }
.control {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px;
  font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}
.control::placeholder { color: #a8a29a; }
.control:hover { border-color: rgba(60, 52, 40, 0.24); }
.control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 111, 216, 0.16); }
.control:disabled { background: var(--milk); color: var(--muted); cursor: not-allowed; }
textarea.control { min-height: 116px; resize: vertical; line-height: 1.65; }
.sel { position: relative; }
.sel select.control {
  appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f6a63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
/* 값이 비었을 때만 안내문을 겹쳐 보여준다 (검사 자동입력과 충돌하지 않는 방식) */
.sel::before {
  content: attr(data-ph); position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: #a8a29a; pointer-events: none; opacity: 0;
}
.sel.is-empty::before { opacity: 1; }
.field.filled .control { background: #fdfcf9; }
.field.invalid .control { border-color: var(--coral-700); box-shadow: 0 0 0 4px rgba(206, 69, 39, 0.13); }
.err { display: none; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--coral-800); }
.field.invalid .err { display: flex; }
.counter { text-align: right; font-size: 12px; color: var(--muted); }

.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.radios label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  padding: 0 18px; border-radius: var(--pill); border: 1.5px solid var(--line);
  background: var(--surface); font-size: 14.5px; font-weight: 700; color: var(--ink-2); cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.radios input { position: absolute; opacity: 0; width: 0; height: 0; }
.radios input:checked + label { border-color: var(--blue); background: var(--blue-50); color: var(--blue-800); }
.radios input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }

.agree { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.agree input { position: absolute; opacity: 0; width: 0; height: 0; }
.agree label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.agree .box {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 7px; background: var(--surface); color: transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.agree input:checked + label .box { background: var(--blue); border-color: var(--blue); color: #fff; }
.agree input:focus-visible + label .box { outline: 3px solid var(--blue); outline-offset: 2px; }
.agree .link { color: var(--blue-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.form-actions { display: flex; gap: 10px; margin-top: var(--s4); flex-wrap: wrap; }
.form-actions .btn { flex: 1 1 180px; }
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 일정 선택 */
.pick-t { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.date-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: var(--s4); scrollbar-width: none; }
.date-row::-webkit-scrollbar { display: none; }
.date-btn {
  flex: none; min-width: 76px; min-height: 76px; padding: 10px 8px;
  border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface);
  display: grid; place-items: center; gap: 2px; cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.date-btn b { font-size: 17px; font-weight: 800; }
.date-btn span { font-size: 12px; color: var(--muted); font-weight: 700; }
.date-btn:hover { border-color: var(--blue); }
.date-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.date-btn[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.85); }
.slot-list { display: grid; gap: 10px; }
.slot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 62px; padding: 12px 20px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
  font-size: 15px; font-weight: 700; text-align: left;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.slot small { font-size: 13px; font-weight: 700; color: var(--blue-700); }
.slot:hover:not([disabled]) { border-color: var(--blue); }
.slot[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-50); }
.slot[disabled] { background: var(--milk); color: var(--muted); cursor: not-allowed; }
.slot[disabled] small { color: var(--muted); }

.done { text-align: center; padding: 20px 0 8px; }
.done .seal { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); }
.done h3 { font-size: 24px; margin-bottom: 10px; }
.done > p { color: var(--ink-2); margin-bottom: 26px; }
.recap { text-align: left; background: var(--milk); border-radius: var(--r); padding: 22px 24px; margin-bottom: 26px; }
.recap div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.recap div:last-child { border-bottom: 0; }
.recap dt { color: var(--muted); font-weight: 700; }
.recap dd { margin: 0; font-weight: 700; text-align: right; }

/* 예약 안내 사이드 */
.aside-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 26px 28px; box-shadow: var(--sh-1); margin-bottom: var(--s2);
}
.aside-card h2 { font-size: 17px; margin-bottom: 14px; }
.aside-card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); padding: 7px 0; }
.aside-card .ico { color: var(--blue); flex: none; margin-top: 3px; }
.aside-card.warm { background: var(--yellow-50); border-color: rgba(255, 194, 51, 0.42); }
.aside-card.warm .ico { color: #b07a00; }
.aside-tel { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 4px; }
.aside-tel .ico { color: var(--coral-700); }
.sticky { position: sticky; top: 100px; }

/* 아코디언 */
.accordion { border-top: 1px solid var(--line-soft); }
.acc-item { border-bottom: 1px solid var(--line-soft); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 66px; padding: 18px 4px; background: none; border: 0; cursor: pointer;
  font-size: 16px; font-weight: 700; text-align: left; letter-spacing: -0.025em;
}
.acc-trigger .ico { color: var(--blue); transition: transform 0.3s var(--ease); flex: none; }
.acc-item.open .acc-trigger .ico { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.acc-item.open .acc-body { max-height: 460px; }
.acc-body p { padding: 0 4px 22px; font-size: 15px; color: var(--ink-2); line-height: 1.75; }

/* --------------------------------------------------------------- 푸터 */
.site-footer { background: var(--milk); border-top: 1px solid var(--line-soft); padding-top: var(--s8); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.foot-brand .brand { margin-bottom: 18px; }
.foot-brand address { font-style: normal; font-size: 14px; color: var(--ink-2); line-height: 2; }
.foot-brand address a:hover { color: var(--blue-700); }
.foot-social { display: flex; gap: 8px; margin-top: 18px; }
.foot-social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.foot-social a:hover { color: var(--blue-700); border-color: var(--blue-100); }
.foot-col h2 { font-size: 14.5px; margin-bottom: 14px; }
.foot-col li a { display: inline-flex; min-height: 36px; align-items: center; font-size: 14px; color: var(--ink-2); }
.foot-col li a:hover { color: var(--blue-700); }
.foot-art { display: block; width: 100%; max-width: 300px; margin: var(--s6) 0 0 auto; color: var(--yellow); }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: var(--s5); padding: 22px 0 26px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.foot-bottom nav { display: flex; gap: 18px; }
.foot-bottom a { min-height: 36px; display: inline-flex; align-items: center; }
.foot-bottom a:hover { color: var(--blue-700); }

/* --------------------------------------------------------------- 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: var(--z-toast);
  transform: translate(-50%, 18px);
  min-width: 260px; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 12px;
  padding: 15px 22px; border-radius: var(--pill);
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 14px 38px rgba(45, 40, 33, 0.28);
  opacity: 0; visibility: hidden;
  /* 알림일 뿐이므로 아래 제출 버튼을 가로막지 않는다 */
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ico { color: var(--yellow); flex: none; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: var(--z-bar);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; border: 0; cursor: pointer;
  box-shadow: var(--sh-2); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.3s var(--ease), visibility 0.3s, transform 0.3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* --------------------------------------------------------------- 등장 */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =============================================================== 반응형 */
@media (max-width: 1180px) {
  :root { --wrap: 1024px; --gutter: 32px; --section: 92px; }
  .navlinks { gap: 22px; }
  .split { grid-template-columns: 320px minmax(0, 1fr); gap: var(--s5); }
  .book-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s5); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) repeat(4, minmax(0, 0.7fr)); gap: var(--s4); }
}

@media (max-width: 1024px) {
  :root { --section: 84px; }
  .navlinks, .nav-tel { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { height: 72px; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .hero-media { max-width: 520px; }
  .page-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero .blob, .page-hero .frame-card { max-width: 460px; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-age { grid-column: span 2; grid-row: span 1; }
  .b-axis3, .b-photo, .b-safe, .b-day { grid-column: span 2; }
  .age-links { padding-top: 18px; }

  .today-strip { grid-template-columns: repeat(3, minmax(240px, 1fr)); }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .cta-inner { grid-template-columns: minmax(0, 1fr); padding: 34px; }
  .cta-inner .frame { max-width: 420px; }
  .cta-coral { grid-template-columns: minmax(0, 1fr); }
  .cta-art { width: 150px; }

  .age-summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .frame { max-width: 460px; }
  .act-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tl-item { grid-template-columns: 108px minmax(0, 1fr) 160px; gap: var(--s3); }
  .tl-item::before { left: 114px; }
  .tl-dot { left: 109px; }

  .supply { grid-template-columns: minmax(0, 1fr); }
  .teacher { grid-template-columns: 140px minmax(0, 1fr); gap: var(--s4); }
  .teacher-career { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: var(--s3); }
  .facility { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-band { padding: 34px; gap: var(--s4); }

  .book-layout { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
  .foot-brand { grid-column: 1 / -1; }
  .foot-art { margin-inline: auto 0; max-width: 240px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --section: 64px; }
  /* 320px 에서 헤더가 넘치지 않도록 — CTA 는 하단 고정 바와 서랍이 맡는다 */
  .nav-actions .btn { display: none; }
  .nav-actions { gap: 0; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-txt { font-size: 19px; }
  body { font-size: 15.5px; padding-bottom: 78px; }
  body.no-bar { padding-bottom: 0; }
  .cta-bar { display: flex; }
  body.no-bar .cta-bar { display: none; }
  .toast { bottom: 92px; }
  body.no-bar .toast { bottom: 26px; }
  .to-top { display: none; }

  .hero { padding-block: 40px 56px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .doodle-cloud, .doodle-curve { display: none; }
  .doodle-star { width: 42px; }

  .section-head { margin-bottom: var(--s4); }
  .head-row { margin-bottom: var(--s4); }

  /* 모바일 정보 우선순위 — 연령 추천을 맨 앞으로 */
  /* 1열에서는 span 을 반드시 풀어야 한다 — 안 풀면 암시적 2번째 열이 생겨
     span 없는 타일이 0px 열에 갇힌다(실측: 폭 0·높이 1300px) */
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .b-age, .b-axis3, .b-photo, .b-safe, .b-day { grid-column: span 1; grid-row: span 1; }
  .b { padding: 22px; }
  .b-age { order: -1; }
  .age-links { grid-template-columns: minmax(0, 1fr); }
  .b-icon { width: 46px; height: 46px; margin-bottom: 12px; }

  /* 모바일 일정 — 가로 스크롤 */
  .today-strip {
    display: flex; overflow-x: auto; gap: 12px; padding-bottom: 8px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .today-strip::-webkit-scrollbar { display: none; }
  .today-card { flex: 0 0 78%; scroll-snap-align: start; }

  .cta-inner { padding: 26px 22px; }
  .cta-inner .btn { width: 100%; }

  .age-summary { grid-template-columns: minmax(0, 1fr); }
  .age-summary div { padding: 16px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .age-summary dt { margin-bottom: 0; }
  .act-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icon-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .icon-item { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 16px; text-align: left; align-items: center; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 16px; }
  .icon-item .ring { width: 62px; height: 62px; margin: 0; box-shadow: none; }

  .time-strip { display: flex; }
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 0 20px 26px; }
  .tl-item::before { left: 5px; }
  .tl-item:first-child::before { top: 22px; }
  .tl-item:last-child::before { height: 22px; }
  .tl-dot { left: 0; top: 20px; }
  .tl-time { justify-content: flex-start; padding-top: 0; }
  .tl-body { padding-left: 0; }
  .tl-item .frame { max-width: 100%; }

  .teacher { grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: 22px; }
  .teacher-career { padding-top: var(--s2); }
  .teacher .frame { width: 128px; }
  .safe-grid { grid-template-columns: minmax(0, 1fr); }
  .safe-cell { padding: 22px; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .facility { grid-template-columns: minmax(0, 1fr); }
  .trust-band { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; gap: var(--s3); }

  .stepper { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .step { justify-content: flex-start; }
  .book-card { padding: 24px 20px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { flex: 1 1 100%; }

  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
  .foot-art { max-width: 190px; margin-top: var(--s4); }
  .foot-bottom { padding-bottom: 20px; }
}

@media (max-width: 380px) {
  .today-card { flex: 0 0 86%; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 큰 글자(200%) 확대에서도 조판이 무너지지 않게 */
@media (max-width: 1024px) and (min-resolution: 0.001dpcm) {
  .tabs { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .drawer, .scrim, .cta-bar, .to-top, .toast { display: none !important; }
}
