/* 공통: 변수 · 기본 · 헤더 · 푸터 · 버튼 · 폼 · 팝업 · 고정 바 */
:root {
  --blue: #1d5cff;
  --blue-dark: #1548d6;
  --blue-soft: #eef3ff;
  --navy: #0b2a6f;
  --ink: #16191f;
  --ink2: #333a45;
  --muted: #5f6875;
  --muted2: #8a929e;
  --line: #e5e8ec;
  --gray-50: #f7f8fa;
  --gray-100: #f0f2f5;
  --red: #e5484d;
  --maxw: 1160px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sec { padding: 110px 0; }
.sec.gray { background: var(--gray-50); }
.sec-head { margin-bottom: 52px; }
.sec-head.center { text-align: center; }
.sec-head .label { display: block; font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.sec-head h2 { font-size: 40px; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; }
.sec-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 28px; border-radius: 10px;
  font-size: 17px; font-weight: 700; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--gray-100); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-line { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; border-radius: 8px; }
.btn i { font-size: .95em; }

/* 헤더 */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 76px; transition: background .25s var(--ease), box-shadow .25s var(--ease); }
.nav .bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav .logo img { height: 42px; width: auto; }
.nav .logo .dark { display: none; }
.nav-links { display: flex; gap: 40px; }
.nav-links a { font-size: 17px; font-weight: 600; color: #fff; padding: 8px 0; position: relative; }
.nav-links a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-tel { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: #fff; }
.nav-tel i { font-size: 15px; }
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

.nav.solid, .nav.scrolled { background: #fff; box-shadow: 0 1px 0 var(--line); }
.nav.solid .logo .light, .nav.scrolled .logo .light { display: none; }
.nav.solid .logo .dark, .nav.scrolled .logo .dark { display: block; }
.nav.solid .nav-links a, .nav.scrolled .nav-links a { color: var(--ink); }
.nav.solid .nav-links a.on, .nav.scrolled .nav-links a.on { color: var(--blue); }
.nav.solid .nav-tel, .nav.scrolled .nav-tel { color: var(--ink); }
.nav.solid .nav-toggle span, .nav.scrolled .nav-toggle span { background: var(--ink); }
body.has-solid-nav { padding-top: 76px; }

/* 서브 페이지 머리 */
.page-head { background: var(--gray-50); padding: 72px 0 64px; }
.page-head .crumb { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.page-head h1 { font-size: 44px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.page-head p { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 640px; }

/* 푸터 */
.foot { background: #12151b; color: #a4abb6; padding: 64px 0 48px; font-size: 15px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot .logo img { height: 42px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.foot-links a { color: #d6dae0; font-weight: 600; }
.foot-links a:hover { color: #fff; }
.foot-call { text-align: right; }
.foot-call small { display: block; font-size: 14px; }
.foot-call .num { font-size: 34px; font-weight: 800; color: #fff; line-height: 1.3; letter-spacing: -.01em; }
.foot-call .time { font-size: 14px; }
.foot-info { padding-top: 28px; line-height: 1.9; }
.foot-info b { color: #d6dae0; }
.foot-info .dot { margin: 0 10px; color: #4c535f; }
.foot-copy { margin-top: 20px; font-size: 14px; color: #6e7683; }

/* 고정 바 */
.quickbar { position: fixed; right: 24px; bottom: 32px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.quickbar a {
  width: 64px; height: 64px; border-radius: 16px; background: #fff; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 12px; font-weight: 700; box-shadow: 0 6px 20px rgba(15, 23, 42, .14); border: 1px solid var(--line);
  transition: transform .18s var(--ease);
}
.quickbar a:hover { transform: translateY(-2px); }
.quickbar a i { font-size: 19px; }
.quickbar a.q-main { background: var(--blue); color: #fff; border-color: var(--blue); }
.quickbar a.q-kakao { background: #fee500; color: #191919; border-color: #fee500; }
.mobile-bar { display: none; }

/* 폼 */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .lab { font-size: 15px; font-weight: 700; color: var(--ink2); }
.field .req { color: var(--blue); margin-left: 2px; }
.input, .textarea {
  width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s; outline: none;
}
.textarea { height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #a9b0ba; }
.input:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 92, 255, .14); }
.input.err, .textarea.err { border-color: var(--red); }

.choice { display: grid; gap: 8px; }
.choice.c5 { grid-template-columns: repeat(5, 1fr); }
.choice.c4 { grid-template-columns: repeat(4, 1fr); }
.choice.c3 { grid-template-columns: repeat(3, 1fr); }
.choice label { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: 50px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--muted); background: #fff; transition: all .15s;
}
.choice label:hover span { border-color: #b9c0ca; }
.choice input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(29, 92, 255, .2); }

.agree { position: relative; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); cursor: pointer; }
.agree input { position: absolute; opacity: 0; }
.agree .box { flex: none; width: 22px; height: 22px; border: 1px solid #c3c9d2; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 12px; transition: all .15s; }
.agree input:checked + .box { background: var(--blue); border-color: var(--blue); color: #fff; }
.agree a { color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; }

/* 팝업 */
.pp-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .2s var(--ease), visibility .2s; }
.pp-modal.open { visibility: visible; opacity: 1; }
.pp-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.pp-card { position: relative; width: 100%; max-width: 380px; background: #fff; border-radius: 18px; padding: 36px 28px 28px; text-align: center; transform: translateY(12px) scale(.98); transition: transform .22s var(--ease); }
.pp-modal.open .pp-card { transform: none; }
.pp-icon { width: 60px; height: 60px; margin: 0 auto 18px; }
.pp-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.pp-icon .pp-ic-c { opacity: .14; fill: currentColor; stroke: none; }
.pp-icon.is-success { color: var(--blue); }
.pp-icon.is-error { color: var(--red); }
.pp-title { font-size: 21px; font-weight: 800; }
.pp-msg { margin-top: 10px; font-size: 16px; color: var(--muted); white-space: pre-line; }
.pp-btn { margin-top: 26px; width: 100%; height: 52px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 700; }

/* 스크롤 등장 */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 960px) {
  .sec { padding: 76px 0; }
  .sec-head { margin-bottom: 36px; }
  .sec-head h2 { font-size: 30px; }
  .sec-head p { font-size: 16px; }
  .nav { height: 64px; }
  body.has-solid-nav { padding-top: 64px; }
  .nav .logo img { height: 34px; }
  .nav-tel { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
    padding: 8px 24px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav .nav-links a { color: var(--ink); padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--gray-100); }
  .nav-links a.on::after { display: none; }
  .page-head { padding: 48px 0 44px; }
  .page-head h1 { font-size: 32px; }
  .page-head p { font-size: 16px; }
  .foot { padding: 48px 0 36px; }
  .foot-top { flex-direction: column; gap: 28px; }
  .foot-call { text-align: left; }
  .foot-info .dot { display: none; }
  .foot-info span { display: block; }
  .quickbar { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  }
  .mobile-bar a { height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; }
  .mobile-bar .m-call { border: 1px solid var(--line); color: var(--ink); }
  .mobile-bar .m-form { background: var(--blue); color: #fff; }
  body.has-mobile-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .choice.c5 { grid-template-columns: repeat(3, 1fr); }
  .choice.c4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .sec-head h2 { font-size: 26px; }
  .btn { height: 52px; font-size: 16px; padding: 0 22px; }
  .choice.c5 { grid-template-columns: repeat(2, 1fr); }
  .choice.c3 span { font-size: 14px; padding: 0 4px; }
}
