/* 파스텔 팔레트: 라벤더·버터옐로·민트·피치·스카이·핑크 (2026 트렌드: 따뜻하고 채도 살짝 높은 파스텔) */
:root {
  --ink: #1f1b2e;
  --sub: #6f6a85;
  --line: #ebe8f5;
  --bg: #fff;
  --soft: #f6f4fc;
  --primary: #6b57e8;
  --primary-ink: #5a45d6;
  --lav: #e6deff;
  --butter: #fff1b8;
  --mint: #d0f1e3;
  --peach: #ffdfd0;
  --sky: #d6e9ff;
  --pink: #ffdbe8;
  --red: #e5383b;
  --radius: 16px;
  --wrap: 1128px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.5; letter-spacing: -0.01em; word-break: keep-all;
  padding-bottom: 84px; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.hide { display: none !important; }

/* 가로 스크롤: 손으로 밀 수 있고 스크롤바는 보이지 않는다 */
.hs { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.hs::-webkit-scrollbar { display: none; }
.hs.drag, .row.drag { cursor: grabbing; scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; }
.hs.drag a, .row.drag a { pointer-events: none; }

/* header */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
.hd-top { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 10px; }
.logo { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.logo svg { height: 30px; width: auto; display: block; }
.logo small { font-size: 13px; font-weight: 700; color: var(--primary-ink); background: var(--lav); border-radius: 99px; padding: 2px 9px; }
.hd-act { display: flex; gap: 8px; align-items: center; min-width: 0; }
.sel { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.500 4.500L6 8l3.500-3.500' fill='none' stroke='%236f6a85' stroke-width='1.600' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center; padding: 8px 28px 8px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); flex: 0 0 auto; max-width: 100%; }
.btn { background: var(--primary); color: #fff; border: 0; border-radius: 12px; padding: 13px 22px; font-weight: 700; font-size: 16px; display: inline-block; white-space: nowrap; text-align: center; }
.btn:hover { background: var(--primary-ink); }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn.yel { background: #ffd95a; color: var(--ink); }
.btn.yel:hover { background: #ffcf33; }
.hd-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hd-nav .wrap { display: flex; gap: 4px; }
.hd-nav a { padding: 12px 8px; font-size: 15px; font-weight: 700; white-space: nowrap; border-bottom: 2px solid transparent; flex: 0 0 auto; }
.hd-nav a.on { color: var(--primary-ink); border-color: var(--primary-ink); }

/* 메인 배너 슬라이드 */
.banner { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; scroll-snap-type: x proximity; padding: 28px 0 0; }
.bn { scroll-snap-align: start; border-radius: 20px; min-height: 330px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; color: var(--ink); }
.bn > svg { position: absolute; right: 18px; top: 40px; width: 150px; height: 150px; filter: drop-shadow(0 10px 14px rgba(31,27,46,.16)); transition: transform .3s; }
.bn:hover > svg { transform: translateY(-6px) rotate(-3deg); }
.bn span { font-size: 14px; font-weight: 700; color: #4b4666; margin-bottom: 8px; }
.bn b { font-size: 26px; line-height: 1.34; font-weight: 800; letter-spacing: -0.03em; }
.bn b em { font-style: normal; color: var(--primary-ink); }
.bn .tag { position: absolute; left: 28px; top: 28px; background: var(--ink); color: #fff; border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.bn.c1 { background: var(--butter); } .bn.c2 { background: var(--lav); } .bn.c3 { background: var(--mint); }
.bn.c4 { background: var(--peach); } .bn.c5 { background: var(--sky); } .bn.c6 { background: var(--pink); }
.bn.c1 b em { color: #d9480f; }
.sl-ctl { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.sl-bar { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.sl-bar i { display: block; height: 100%; width: 33%; background: var(--ink); border-radius: 3px; transition: width .2s; }
.sl-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 16px; line-height: 1; }
.sl-btn:hover { border-color: var(--ink); }
.sl-btn:disabled { opacity: .35; cursor: default; }

/* section */
.sec { padding: 46px 0 0; }
.sec-hd { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; gap: 12px; }
.sec-hd h2, .sec-hd h1 { font-size: 21px; font-weight: 800; line-height: 28px; letter-spacing: -0.02em; }
.sec-hd p { font-size: 14px; color: var(--sub); margin-top: 2px; }
.more { color: var(--primary-ink); font-size: 14px; font-weight: 700; white-space: nowrap; padding-top: 4px; }
.chips { display: flex; gap: 6px; margin-bottom: 14px; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 99px; height: 34px; padding: 0 14px; font-size: 14px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* cards */
.row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.row.c4 { grid-template-columns: repeat(4, 1fr); }
.row.c3 { grid-template-columns: repeat(3, 1fr); }
.card { display: block; min-width: 0; }
.card .th { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--soft); position: relative; }
.card .th img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .th img { transform: scale(1.04); }
.card h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 10px 4px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 13px; color: var(--sub); margin: 3px 4px 0; }
.card .badge { position: absolute; left: 8px; top: 8px; background: rgba(31,27,46,.66); color: #fff; font-size: 12px; font-weight: 600; border-radius: 8px; padding: 3px 8px; }
.card.wide .th { aspect-ratio: 4 / 3; }
.card.photo .th::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(31,27,46,.72)); }
.card.photo .cap { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.ico .th { display: grid; place-items: center; }
.card.ico .th svg { width: 58%; height: 58%; filter: drop-shadow(0 8px 10px rgba(31,27,46,.14)); }
.tile { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }

/* 특장점 */
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feat li { list-style: none; border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; align-items: center; }
.feat svg { width: 64px; height: 64px; flex: 0 0 auto; filter: drop-shadow(0 6px 8px rgba(31,27,46,.14)); }
.feat span { font-size: 14px; color: #4b4666; font-weight: 600; display: block; }
.feat b { font-size: 19px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; display: block; }
ul.feat { padding: 0; margin: 0; }

/* 후기 */
.rv { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; background: #fff; }
.rv p { font-size: 15px; color: #33303f; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rv div { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); font-weight: 600; }
.rv img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }

/* 통계 + 실시간 접수 */
.box { border: 1px solid var(--line); border-radius: 20px; }
.stats { margin-top: 46px; padding: 22px 0 0; overflow: hidden; }
.stats-n { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats-n div + div { border-left: 1px solid var(--line); }
.stats-n span { font-size: 13px; color: var(--sub); font-weight: 600; }
.stats-n b { display: block; font-size: 22px; font-weight: 800; margin-top: 2px; }
.ticker { margin-top: 20px; border-top: 1px solid var(--line); padding: 14px 0; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-t { display: inline-flex; gap: 28px; animation: tick 70s linear infinite; }
.ticker:hover .ticker-t { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #4b4666; font-weight: 500; }
.ticker i { width: 22px; height: 22px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
@keyframes tick { to { transform: translateX(-50%); } }
.stats small { display: block; text-align: center; color: var(--sub); font-size: 12px; padding: 0 16px 12px; }

.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.qa details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.qa summary { font-weight: 700; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa p { color: #4b4666; font-size: 15px; margin-top: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { background: var(--soft); border-radius: 99px; padding: 7px 13px; font-size: 14px; font-weight: 600; }

/* 탐색기(검색·정렬·셀렉트) */
.xp { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.xp input { flex: 1 1 220px; min-width: 150px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; background: var(--soft); }
.xp input:focus, .sel:focus { outline: 2px solid var(--lav); border-color: var(--primary); }
.xp-sel { display: flex; gap: 8px; flex: 0 1 auto; min-width: 0; }
.xp-count { font-size: 14px; color: var(--sub); margin-bottom: 12px; }
.xp-count b { color: var(--ink); }
.more-btn { display: block; margin: 24px auto 0; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 28px; font-weight: 700; }
.more-btn:hover { border-color: var(--ink); }
.empty { padding: 40px 0; text-align: center; color: var(--sub); }

/* article / detail */
.crumb { font-size: 13px; color: var(--sub); padding: 20px 0 0; }
.crumb a:hover { text-decoration: underline; }
.page-hd { padding: 14px 0 20px; }
.page-hd h1 { font-size: 28px; font-weight: 800; line-height: 1.35; letter-spacing: -0.03em; }
.page-hd p { color: var(--sub); margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span { background: var(--soft); border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 600; color: #4b4666; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.8; color: #2c2940; }
.prose p { margin: 0 0 16px; }
.prose h2 { font-size: 23px; font-weight: 800; margin: 40px 0 14px; line-height: 1.4; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.prose img { border-radius: var(--radius); margin: 18px 0; height: auto; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li p { margin: 0 0 4px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; display: block; overflow-x: auto; scrollbar-width: none; }
.prose table::-webkit-scrollbar { display: none; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--soft); }
.prose mark { background: var(--butter); }
.prose a { color: var(--primary-ink); text-decoration: underline; }
.lead { background: var(--soft); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; }
.hero-img { border-radius: var(--radius); width: 100%; max-width: 760px; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 24px; background: var(--soft); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 760px; margin: 24px 0; }
.gallery img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; width: 100%; background: var(--soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; padding: 0; margin: 0; }
.steps li { list-style: none; border-radius: var(--radius); padding: 18px; font-size: 14px; color: #4b4666; counter-increment: s; }
.steps li:nth-child(1) { background: var(--lav); } .steps li:nth-child(2) { background: var(--butter); } .steps li:nth-child(3) { background: var(--mint); } .steps li:nth-child(4) { background: var(--peach); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.steps b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.area h3 { font-size: 18px; font-weight: 800; margin: 26px 0 8px; }
.note { font-size: 13px; color: var(--sub); margin-top: 10px; }
.longimg { max-width: 640px; margin: 28px auto 0; }
.longimg img { width: 100%; height: auto; }
.go { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 신청폼: 폭이 줄면 통째로 축소 */
.formsec { background: var(--soft); border-radius: 20px; padding: 22px; max-width: 760px; margin: 32px 0; }
.formsec > b { font-size: 19px; font-weight: 800; display: block; }
.formsec > p { color: var(--sub); font-size: 14px; margin: 4px 0 14px; }
.fit { background: #fff; border-radius: 12px; overflow: hidden; position: relative; }
.fit iframe { display: block; border: 0; width: 100%; min-height: 560px; transform-origin: 0 0; }

.cta-box { background: var(--soft); border-radius: 20px; padding: 24px; margin: 32px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
/* 본문(760px) 바로 아래에서는 본문 폭에, 그 밖에서는 다른 섹션과 같은 전체 폭에 맞춘다 */
.prose + .cta-box, .alert + .cta-box, .gallery + .cta-box { max-width: 760px; }
.cta-box b { font-size: 19px; font-weight: 800; }
.cta-box p { color: var(--sub); font-size: 14px; margin-top: 4px; }
.card.photo:not(:has(.cap)) .th::after { display: none; }

/* 지원금 공지 */
.alert { border-radius: 20px; background: #fff5f5; border: 1px solid #ffd6d6; padding: 22px; max-width: 760px; text-align: center; line-height: 1.7; }
.alert p { font-size: 17px; font-weight: 600; }
.alert p + p { margin-top: 12px; }
.alert .hot { color: var(--red); font-weight: 800; font-size: 19px; }
.alert .warn { font-size: 15px; color: #b42318; font-weight: 700; }

/* footer + 고정 버튼 */
.ft { margin-top: 64px; border-top: 1px solid var(--line); padding: 28px 0 24px; font-size: 13px; color: var(--sub); }
.ft b { color: var(--ink); }
.ft .go { margin-bottom: 16px; }
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(31,27,46,.06); }
.sticky .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; padding-bottom: 12px; max-width: 640px; }
.sticky .btn { padding: 14px 8px; }
.fab { position: fixed; right: 16px; bottom: 96px; z-index: 41; display: flex; flex-direction: column; gap: 10px; }
.fab button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: 0 4px 14px rgba(31,27,46,.14); display: grid; place-items: center; font-size: 12px; font-weight: 800; padding: 0; }
.fab .sos { border-color: #ffc9c9; background: #fff5f5; animation: glow 1s ease-in-out infinite; }
.fab .sos svg { width: 30px; height: 30px; animation: blink 1s steps(2, jump-none) infinite; }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: .35; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,56,59,.45); } 50% { box-shadow: 0 0 0 10px rgba(229,56,59,0); } }

/* 팝업 */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(31,27,46,.55); display: none; align-items: center; justify-content: center; padding: 12px; }
.modal.on { display: flex; }
.modal-in { background: #fff; border-radius: 20px; width: 100%; max-width: 660px; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 20px; position: relative; scrollbar-width: none; }
.modal-in::-webkit-scrollbar { display: none; }
.modal-in.s { max-width: 420px; text-align: center; }
.modal-in h2 { font-size: 20px; font-weight: 800; margin: 0 40px 12px 0; }
.modal-in.s h2 { margin: 6px 0 14px; }
.modal-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); font-size: 18px; line-height: 1; }
.modal-in.s > svg { width: 56px; height: 56px; }
.modal-in.s p { font-size: 15px; line-height: 1.65; }
.modal-in.s p + p { margin-top: 10px; }
.modal-in.s .hot { color: var(--red); font-weight: 800; }
.modal-in.s .warn { color: #b42318; font-weight: 700; font-size: 14px; }
.modal-in.s .btn { display: block; margin-top: 16px; }

@media (max-width: 1024px) {
  .banner { grid-auto-columns: calc((100% - 12px) / 2); }
  .row, .row.c4 { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 29%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; margin-right: -20px; padding-right: 20px; }
  .row::-webkit-scrollbar { display: none; }
  .row.grid { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; margin-right: 0; padding-right: 0; }
  .row.c3 { grid-auto-columns: 44%; }
  .feat { grid-template-columns: repeat(2, 1fr); }
  .xp { flex-wrap: wrap; }
  .xp input { flex: 1 1 100%; }
  .xp-sel { flex: 1 1 100%; margin-right: -20px; padding-right: 20px; }
}
@media (max-width: 640px) {
  .banner { grid-auto-columns: 86%; }
  .bn { min-height: 270px; padding: 22px; }
  .bn b { font-size: 22px; }
  .bn > svg { width: 112px; height: 112px; top: 44px; }
  .bn .tag { left: 22px; top: 22px; }
  .row, .row.c4 { grid-auto-columns: 44%; }
  .row.c3 { grid-auto-columns: 82%; }
  .row.grid { grid-template-columns: repeat(2, 1fr); }
  .feat { grid-template-columns: 1fr; }
  .feat li { padding: 16px; }
  .qa { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .page-hd h1 { font-size: 23px; }
  .stats-n b { font-size: 17px; }
  .formsec { padding: 14px; }
  .modal { padding: 8px; }
  .modal-in { padding: 12px; border-radius: 16px; }
  .cta-box { padding: 18px; }
  .cta-box .go { width: 100%; }
  .cta-box .btn { flex: 1; padding: 13px 8px; }
  .hd-act .sel { max-width: 104px; }
  .logo svg { height: 23px; }
  .prose { font-size: 16px; }
  .fab { right: 12px; }
  .fab button { width: 46px; height: 46px; }
}
