@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --ink: #141b2d;
  --body: #3d4658;
  --muted: #6b7486;
  --line: #e6e9f0;
  --bg: #ffffff;
  --soft: #f5f7fb;
  --brand: #1d3f94;
  --brand-dark: #10275f;
  --brand-tint: #e9effc;
  --accent: #ff6b3d;
  --accent-dark: #e8552a;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 39, 95, .08);
}
body.room {
  --brand: #1f5f4a;
  --brand-dark: #12392c;
  --brand-tint: #e6f2ed;
  --accent: #f2a516;
  --accent-dark: #d98f06;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  padding-bottom: 76px;
}
a { color: var(--brand); }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.03em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* 상단 바 */
header.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--ink); text-decoration: none; font-size: 17px;
}
.logo .mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 800;
}
header.top nav { display: flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 999px; }
header.top nav a {
  font-size: 14px; text-decoration: none; color: var(--muted);
  padding: 6px 14px; border-radius: 999px; font-weight: 600; white-space: nowrap;
}
header.top nav a.on { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* 첫 화면 */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #3d63c9 0%, var(--brand) 45%, var(--brand-dark) 100%);
  color: #fff; padding: 56px 0 60px;
}
body.room .hero { background: radial-gradient(120% 140% at 100% 0%, #3a8a6c 0%, var(--brand) 45%, var(--brand-dark) 100%); }
.hero::after {
  content: ""; position: absolute; right: -80px; bottom: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 48px solid rgba(255,255,255,.06);
}
.hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: 30px; line-height: 1.3; margin: 0 0 14px; font-weight: 800; }
.hero h1 em { font-style: normal; color: #ffd2c2; }
body.room .hero h1 em { color: #ffe3a3; }
.hero p.lead { margin: 0 0 24px; color: rgba(255,255,255,.82); font-size: 16px; max-width: 560px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.chips li {
  font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 10px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
}
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border-radius: 12px;
  font-weight: 700; text-decoration: none; font-size: 15px; transition: transform .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
body.room .btn.primary { color: #1d1606; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn svg { width: 18px; height: 18px; }

/* 섹션 공통 */
section { padding: 64px 0; }
section.alt { background: var(--soft); }
.kicker { font-size: 13px; font-weight: 800; color: var(--accent-dark); letter-spacing: .04em; margin: 0 0 8px; }
body.room .kicker { color: var(--brand); }
section h2 { font-size: 26px; line-height: 1.35; margin: 0 0 12px; font-weight: 800; }
section .sub { color: var(--muted); margin: 0 0 28px; }
p { margin: 0 0 12px; }
.note { color: var(--muted); font-size: 14px; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; }
.icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand); margin-bottom: 14px;
}
.icon svg { width: 22px; height: 22px; }

/* 반 구성 카드 */
.level .tag {
  display: inline-block; font-size: 13px; font-weight: 800; color: #fff; background: var(--brand);
  padding: 4px 10px; border-radius: 8px; margin-bottom: 12px;
}
.level dl { margin: 0; }
.level dt { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 10px; }
.level dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; }
.info-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.pill {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 15px;
}
.pill b { color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700;
  color: var(--brand); background: var(--brand-tint); padding: 10px 14px; border-radius: 10px; text-decoration: none;
}

/* 운영 방식 단계 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; padding: 18px 18px 18px 64px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 500;
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-weight: 800; color: var(--accent-dark); font-size: 18px;
}
body.room .steps li::before { color: var(--brand); }

/* 성과 */
section.dark { background: var(--brand-dark); color: rgba(255,255,255,.8); }
section.dark h2, section.dark h3 { color: #fff; }
section.dark .kicker { color: #ffb59e; }
section.dark .sub { color: rgba(255,255,255,.65); }
.stats { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 28px; }
.stat {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 22px;
}
.stat b { display: block; font-size: 44px; line-height: 1.1; color: #fff; font-weight: 800; letter-spacing: -0.04em; }
.stat b small { font-size: 20px; margin-left: 2px; }
.stat span { display: block; margin-top: 8px; color: rgba(255,255,255,.78); }
.post-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.post-list a {
  display: flex; justify-content: space-between; align-items: center;
  color: #fff; text-decoration: none; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-weight: 600;
}
.post-list a::after { content: "→"; opacity: .6; }
section.dark .more { color: #ffd2c2; font-weight: 700; }

/* 표 (정보) */
.facts { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts th, .facts td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 34%; background: var(--soft); color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; }
.facts td { color: var(--ink); font-weight: 500; }

/* 가격 */
.price-list { display: grid; gap: 10px; }
.price {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
}
.price span { color: var(--ink); font-weight: 600; }
.price b { font-size: 20px; color: var(--ink); white-space: nowrap; }
.price.hl { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }

/* 상담 CTA */
.cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; border-radius: 24px; padding: 32px 24px;
}
.cta h2 { color: #fff; }
.cta .facts { margin: 18px 0 22px; }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 18px; position: relative;
  font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 18px; margin: 0; }

/* 오시는 길 */
.map-btn { margin-top: 14px; }
.cross {
  display: flex; gap: 14px; align-items: center; margin-top: 18px;
  background: var(--brand-tint); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink);
}
.cross b { display: block; color: var(--brand); }

footer { background: #0e1424; color: #9aa3b5; padding: 40px 0 48px; font-size: 14px; }
footer .fname { color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 10px; }
footer p { margin: 0 0 6px; }
footer a { color: #cfd6e4; margin-right: 14px; }

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px;
}
.callbar a { flex: 1; }
.callbar .btn.ghost { color: var(--brand); border: 1px solid var(--line); background: var(--soft); }
.callbar .btn.primary { box-shadow: none; }

@media (min-width: 720px) {
  .hero { padding: 88px 0 92px; }
  .hero h1 { font-size: 44px; }
  .hero p.lead { font-size: 18px; }
  section { padding: 88px 0; }
  section h2 { font-size: 32px; }
  .grid.c3 { grid-template-columns: repeat(3, 1fr); }
  .grid.c2 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .cta { padding: 48px; }
  .callbar { display: none; }
  body { padding-bottom: 0; }
}
a[href^="tel:"] { white-space: nowrap; }
