:root {
  --navy-900: #061a3d;
  --navy-800: #0a2a5e;
  --navy-700: #12397a;
  --sky: #4fb3ff;
  --sky-soft: #e8f4ff;
  --ink: #14213d;
  --muted: #5b6b85;
  --line: #dde5f0;
  --bg: #ffffff;
  --naver: #03c75a;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* 상단 바 */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: 56px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6, 26, 61, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark { color: var(--sky); display: flex; }
.logo-text { display: flex; align-items: baseline; gap: 5px; }
.logo-text strong { font-size: 17px; letter-spacing: -.3px; }
.logo-text small { font-size: 13px; color: #b9cdf0; }
.topnav { display: flex; gap: 11px; }
.topnav a { font-size: 13.5px; white-space: nowrap; text-decoration: none; color: #dbe6f7; }

/* 첫 화면 */
.hero {
  position: relative; min-height: calc(100svh - 72px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  background: radial-gradient(120% 80% at 80% 10%, #1d5bb8 0%, var(--navy-800) 45%, var(--navy-900) 100%);
}
.hero-slider { position: absolute; inset: 0; overflow: hidden; }
.hero-track { display: flex; height: 100%; transition: transform .7s ease; }
.hero-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; z-index: 2; top: 72px; right: 16px; display: flex; gap: 6px; }
.hero-dots span { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.45); transition: width .3s, background .3s; }
.hero-dots span.on { width: 20px; background: #fff; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,26,61,.25) 0%, rgba(6,26,61,.2) 35%, rgba(6,26,61,.75) 62%, rgba(6,26,61,.95) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 0 20px 56px; width: 100%; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 6px 12px;
  font-size: 13px; font-weight: 600; letter-spacing: -.2px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.hero h1 { margin: 0 0 14px; font-size: 38px; line-height: 1.22; letter-spacing: -1.2px; font-weight: 800; }
.hero-sub { margin: 0 0 26px; font-size: 16px; color: #d5e2f7; }
.hero-btns { display: grid; gap: 10px; }

/* 버튼 */
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 20px; border-radius: 12px;
  font-size: 17px; font-weight: 700; text-decoration: none;
}
.btn-primary { background: var(--sky); color: var(--navy-900); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline { border: 1.5px solid var(--navy-800); color: var(--navy-800); }
.btn-block { width: 100%; margin-top: 20px; }

/* 공통 섹션 */
.section { padding: 64px 20px; }
.section-tint { background: var(--sky-soft); }
.section-dark { background: var(--navy-800); color: #fff; }
.section-label { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--sky); }
.section-dark .section-label { color: var(--sky); }
.section h2 { margin: 0 0 10px; font-size: 26px; letter-spacing: -.8px; line-height: 1.3; }
.section-desc { margin: 0 0 24px; color: var(--muted); font-size: 16px; }
.section-dark .section-desc { color: #c3d3ee; }

/* 프로그램 카드 */
.card {
  position: relative; margin-bottom: 14px; padding: 22px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: 0 4px 18px rgba(10, 42, 94, .06);
}
.card h3 { margin: 0 0 14px; font-size: 20px; letter-spacing: -.5px; }
.card-premium { background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); color: #fff; border: none; }
.badge {
  display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  background: var(--sky); color: var(--navy-900);
}
.price { margin: 0; display: grid; gap: 8px; }
.price div { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--line); }
.card-premium .price div { border-top-color: rgba(255,255,255,.18); }
.price dt { font-size: 15px; color: var(--muted); }
.card-premium .price dt { color: #b9cdf0; }
.price dd { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }

.recommend { margin-top: 28px; padding: 20px; border-radius: var(--radius); background: var(--sky-soft); }
.recommend h3 { margin: 0 0 10px; font-size: 18px; }
.recommend ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.recommend li { position: relative; padding-left: 26px; font-size: 16px; }
.recommend li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--navy-800); font-weight: 900;
}

/* 갤러리 */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: #cfdcee; aspect-ratio: 3 / 4; }
.gallery figure.wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.more-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 18px; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px rgba(10,42,94,.08); font-weight: 700; color: var(--navy-800); text-decoration: none; }
.ig-logo { flex: none; }

/* 오시는 길 */
.info { margin: 18px 0 0; }
.info div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info dt { font-weight: 700; color: var(--navy-800); }
.info dd { margin: 0; font-size: 16px; }
.info a { font-weight: 700; text-decoration: none; }
.muted { color: var(--muted); font-size: 14px; }

/* 문의 */
.contact-list { display: grid; gap: 10px; }
.contact-item {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border-radius: 14px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); text-decoration: none;
}
.contact-item strong { display: block; font-size: 17px; }
.contact-item small { color: #b9cdf0; font-size: 14px; }
.ci-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--sky); color: var(--navy-900);
}
.ci-naver { background: var(--naver); color: #fff; font-weight: 900; font-size: 20px; }

/* 푸터 */
.footer { padding: 32px 20px 28px; background: var(--navy-900); color: #8fa3c4; font-size: 13px; }
.footer p { margin: 0 0 4px; }
.footer strong { color: #fff; font-size: 15px; }
.footer .copy { margin-top: 12px; }

/* 하단 빠른 버튼 */
.quickbar {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(6, 26, 61, .08);
}
.quickbar a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 50px; border-radius: 12px; font-size: 15px; font-weight: 700;
  text-decoration: none; color: var(--navy-800); background: var(--sky-soft);
}
.quickbar .qb-main { background: var(--navy-800); color: #fff; font-size: 16px; }

/* 큰 화면에서도 휴대폰처럼 가운데 정렬 */
@media (min-width: 720px) {
  .section, .hero-inner, .footer { max-width: 640px; margin-left: auto; margin-right: auto; }
  .section-tint, .section-dark { max-width: none; padding-left: max(20px, calc(50% - 300px)); padding-right: max(20px, calc(50% - 300px)); }
  .hero h1 { font-size: 52px; }
  .hero-btns { grid-template-columns: 1fr 1fr; }
  .quickbar { max-width: 520px; margin: 0 auto; border-radius: 16px 16px 0 0; }
}

/* 첫 PT 체험 카드 */
.card-trial { border: 2px solid var(--sky); background: var(--sky-soft); }
.card-trial .badge { background: var(--navy-800); color: #fff; letter-spacing: 0; }
.card-trial .price div { border-top-color: #c4dcf5; }
.card-trial .btn-block { margin-top: 16px; min-height: 48px; font-size: 16px; }
.card-trial .trial-note { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--navy-800); }

/* 네이버 로고 */
.naver-logo { flex: none; margin-right: 8px; border-radius: 5px; }
.quickbar .naver-logo { margin-right: 0; }
.ci-naver { background: none; overflow: hidden; }
.ci-naver .naver-logo { margin: 0; border-radius: 12px; }

/* 리뷰·소식 */
.link-cards { display: grid; gap: 10px; }
.link-card {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 0 4px 14px rgba(10,42,94,.06); text-decoration: none;
}
.link-card .naver-logo { margin: 0; border-radius: 10px; }
.link-card strong { display: block; font-size: 17px; }
.link-card small { color: var(--muted); font-size: 14px; }
.link-card .arrow { margin-left: auto; color: var(--navy-800); font-weight: 800; }

/* 원장 소개 */
.about { display: grid; grid-template-columns: 42% 1fr; gap: 16px; align-items: end; margin-top: 18px; }
.about-photo { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.about-stats { margin: 0; display: grid; gap: 10px; }
.about-stats div { padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(10,42,94,.06); }
.about-stats dt { font-size: 13px; color: var(--muted); }
.about-stats dd { margin: 2px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.8px; color: var(--navy-800); }
.about-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.about-list li { padding: 14px 16px; border-radius: 14px; background: #fff; font-size: 15px; color: var(--muted); }
.about-list strong { display: block; margin-bottom: 2px; font-size: 16px; color: var(--ink); }

/* 인스타그램 */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ig-post { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; background: #cfdcee; text-decoration: none; }
.ig-post img { width: 100%; height: 100%; object-fit: cover; }
.ig-post span {
  position: absolute; inset: auto 0 0 0; padding: 22px 7px 7px;
  font-size: 11.5px; line-height: 1.35; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(6,26,61,.88));
}

/* 리뷰 카드 (옆으로 넘기기) */
.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 6px;
  scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: center; margin: 0; padding: 18px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(10,42,94,.06);
  display: flex; flex-direction: column;
}
.review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.stars { color: #ffb400; letter-spacing: 1px; font-size: 15px; }
.review-menu { font-size: 12px; font-weight: 700; color: var(--navy-800); background: var(--sky-soft); padding: 3px 8px; border-radius: 999px; }
.review p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; flex: 1; }
.review footer { font-size: 12.5px; color: var(--muted); }
.review-note { margin: 8px 0 18px; font-size: 13px; color: var(--muted); }
.reviews { align-items: start; }
.review p { flex: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9; overflow: hidden; }
.review.open p { -webkit-line-clamp: unset; display: block; }
.review-more { align-self: flex-start; margin: -4px 0 10px; padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--navy-800); cursor: pointer; }

/* 첫 화면 문구 바뀔 때 */
.hero-copy { transition: opacity .25s ease, transform .25s ease; }
.hero-copy.fade { opacity: 0; transform: translateY(6px); }
.hero-title { min-height: 2.44em; }
.hero-sub { min-height: 3.2em; }
@media (prefers-reduced-motion: reduce) { .hero-copy { transition: none; } }

/* 자세 유형 셀프체크 안내 칸 */
.selfcheck-list { margin: 0; padding-left: 20px; line-height: 1.8; }
.selfcheck-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* 좁은 휴대폰: 메뉴 4개가 한 줄에 들어가게 '전하점'을 아래로, 메뉴 간격 좁게 */
@media (max-width: 420px) {
  .logo-text { flex-direction: column; gap: 0; line-height: 1.1; }
  .logo-text small { font-size: 11px; }
  .topnav { gap: 9px; }
  .topnav a { font-size: 13px; }
}
@media (max-width: 340px) {
  .topnav a[href="#review"] { display: none; }
}
