/* 라임라잇수학학원 - 공통 스타일 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --yellow: #ffe433;
  --yellow-deep: #f5cf00;
  --yellow-soft: #fff8cc;
  --ink: #111111;
  --ink-2: #2a2a2a;
  --text: #333333;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --danger: #c62828;
  --radius: 14px;
  --wrap: 1120px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', sans-serif;
  font-size: 16px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--ink); color: #d8d8d8; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.section.dark .eyebrow { color: var(--yellow); }
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.section-desc { margin-top: 12px; color: var(--muted); max-width: 640px; }
.section.dark .section-desc { color: #b5b5b5; }
.section-head { margin-bottom: 40px; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.mark { background: linear-gradient(transparent 58%, var(--yellow) 58%); padding: 0 2px; }
.dark .mark, .hero .mark { background: none; color: var(--yellow); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.link-more { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--yellow); padding-bottom: 2px; white-space: nowrap; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.topbar { background: var(--ink); color: #cfcfcf; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 4px 18px; min-height: 34px; flex-wrap: wrap; }
.topbar-label { color: #8f8f8f; margin-right: auto; }
.topbar a { color: #fff; font-weight: 700; padding: 6px 0; white-space: nowrap; }
.topbar a small { font-weight: 500; font-size: 12px; color: var(--yellow); margin-right: 2px; }
.topbar a:hover { color: var(--yellow); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 44px; width: auto; flex: none; }
.logo-text { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; padding-left: 10px; border-left: 1px solid var(--line); line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a.nav-link { padding: 10px 13px; font-weight: 600; font-size: 15px; color: var(--ink-2); border-radius: 8px; position: relative; }
.nav a.nav-link:hover { background: var(--bg-soft); }
.nav a.nav-link.active::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 3px; background: var(--yellow); border-radius: 2px; }
.nav .btn { margin-left: 10px; }
.nav .btn + .btn { margin-left: 6px; }
@media (min-width: 961px) and (max-width: 1100px) {
  .logo-text { display: none; }
  .nav a.nav-link, .nav button.nav-link { padding-left: 9px; padding-right: 9px; }
}
.nav button.nav-link { border: 0; background: none; font: inherit; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 10px 13px; border-radius: 8px; position: relative; display: inline-flex; align-items: center; gap: 6px; }
.nav button.nav-link:hover { background: var(--bg-soft); }
.nav button.nav-link.active::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 3px; background: var(--yellow); border-radius: 2px; }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .6; transition: transform .15s; }
.nav-group { position: relative; }
.nav-sub { display: none; position: absolute; left: 0; top: 100%; min-width: 180px; padding: 8px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--yellow); border-radius: 0 0 12px 12px; box-shadow: var(--shadow); z-index: 60; }
.nav-sub a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--yellow-soft); color: var(--ink); }
.nav-sub a.current { color: var(--ink); background: var(--bg-soft); }
.nav-group.open .nav-sub { display: block; }
.nav-group.open .caret { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 961px) {
  .nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { display: block; }
  .nav-group:hover .caret { transform: rotate(180deg); }
}
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* 히어로 */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 0 34%, rgba(255, 228, 51, .13) 34% 100%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--yellow); opacity: .9; }
.hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hero-tags span { font-size: 13px; font-weight: 600; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; color: #e9e9e9; }
.hero h1 { color: #fff; font-size: clamp(34px, 6vw, 60px); font-weight: 800; line-height: 1.18; }
.hero p.lead { margin-top: 20px; font-size: clamp(16px, 2vw, 19px); color: #cfcfcf; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; max-width: 640px; }
.hero-stats div { border-top: 2px solid var(--yellow); padding-top: 12px; }
.hero-stats b { display: block; font-size: 24px; color: #fff; font-weight: 800; }
.hero-stats span { font-size: 13px; color: #b5b5b5; }

.page-hero { background: var(--ink); color: #cfcfcf; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: rgba(255, 228, 51, .12); clip-path: polygon(45% 100%, 100% 0, 100% 100%); }
.page-hero .wrap { position: relative; }
.page-hero .eyebrow { color: var(--yellow); }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; }
.page-hero p { margin-top: 12px; max-width: 620px; }

/* 그리드 / 카드 */
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 19px; font-weight: 800; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.card .num { font-size: 13px; font-weight: 800; color: var(--ink); background: var(--yellow); display: inline-block; padding: 2px 10px; border-radius: 999px; margin-bottom: 12px; }
.section.dark .card { background: #1c1c1c; border-color: #2e2e2e; }
.section.dark .card p { color: #b5b5b5; }

.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
.chip.yellow { background: var(--yellow); color: var(--ink); }
.chip.dark { background: var(--ink); color: #fff; }

/* 관 소개 카드 */
.division { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.division-top { padding: 28px 28px 22px; background: var(--ink); color: #fff; }
.division.smart .division-top { background: var(--yellow); color: var(--ink); }
.division-top .range { font-size: 14px; font-weight: 700; opacity: .85; }
.division-top h3 { color: inherit; font-size: 28px; font-weight: 800; margin-top: 4px; }
.division-top small { display: block; margin-top: 4px; font-size: 13px; opacity: .8; }
.division-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.division-body p { color: var(--muted); }
.division-body ul { display: grid; gap: 8px; }
.division-body li { padding-left: 20px; position: relative; font-size: 15px; }
.division-body li::before { content: ''; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; }
.division-body .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* 단계 흐름 */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.flow li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.flow li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.flow li b { display: block; color: var(--ink); font-size: 18px; }
.flow li span { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }
.section.dark .flow li { background: #1c1c1c; border-color: #2e2e2e; }
.section.dark .flow li b { color: var(--yellow); }
.section.dark .flow li span, .section.dark .flow li::before { color: #b5b5b5; }

/* 로드맵 */
.roadmap { display: grid; gap: 14px; }
.roadmap-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; align-items: start; }
.roadmap-row .who b { display: block; font-size: 20px; font-weight: 800; color: var(--ink); margin-top: 6px; }
.roadmap-row h3 { font-size: 18px; font-weight: 800; }
.roadmap-row p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.roadmap-row .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* 선생님 */
.teacher { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.teacher-head { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: none; }
img.avatar.photo { width: 72px; height: 72px; object-fit: cover; object-position: center 20%; background: var(--bg-soft); }
img.avatar.photo.big { width: 96px; height: 96px; }
.teacher.lead .avatar { background: var(--yellow); color: var(--ink); }
.teacher h3 { font-size: 20px; font-weight: 800; }
.teacher h3 small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.teacher .school { font-weight: 700; color: var(--ink); font-size: 15px; }
.teacher ul { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }

.staff-group + .staff-group { margin-top: 32px; }
.staff-group h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; padding-left: 12px; border-left: 5px solid var(--yellow); }
.staff { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.staff .avatar { width: 44px; height: 44px; font-size: 18px; background: var(--bg-soft); color: var(--ink); }
.staff b { color: var(--ink); font-size: 17px; }
.staff span { color: var(--muted); font-size: 14px; }
.staff small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.teacher .slogan { font-weight: 700; color: var(--ink); font-size: 14.5px; border-left: 3px solid var(--yellow); padding-left: 10px; }
.teacher .more { align-self: flex-start; margin-top: auto; font-size: 14px; }
.profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.profile-side { position: sticky; top: 122px; }
.profile-side .btn { align-self: stretch; }
.point { border-top: 1px solid var(--line); padding: 28px 0; }
.point:first-of-type { margin-top: 20px; }
.point h3 { font-size: 22px; font-weight: 800; }
.point .num { font-size: 12px; font-weight: 800; background: var(--yellow); color: var(--ink); padding: 2px 10px; border-radius: 999px; display: inline-block; margin-bottom: 10px; }
.point .lead { font-weight: 700; color: var(--ink); margin: 10px 0 12px; font-size: 17px; }
.point p + p { margin-top: 12px; }
@media (max-width: 960px) { .profile { grid-template-columns: 1fr; gap: 32px; } .profile-side { position: static; } }

/* 시간표 짜기 */
.planner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.planner-list, .planner-board { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.planner-board { scroll-margin-top: 120px; }
@media (min-width: 1280px) {
  .wrap:has(> #planner) { max-width: 1440px; }
  .planner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .planner-board { position: sticky; top: 122px; max-height: calc(100vh - 140px); overflow-y: auto; }
  .pl-bar { display: none !important; }
}
.pl-step { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; }
.pl-step:first-child { margin-top: 0; }
.pl-step > span { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.pl-step > b { font-size: 18px; color: var(--ink); }
.pl-step input { margin-left: auto; width: min(260px, 50%); min-height: 40px; padding: 6px 12px; border: 1.5px solid #cfcfcf; border-radius: 10px; font: inherit; }
.pl-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pl-branch { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.pl-branch b { font-size: 19px; color: var(--ink); }
.pl-branch span { font-size: 13px; color: var(--muted); }
.pl-branch small { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pl-branch.active { border-color: var(--ink); background: var(--yellow); }
.pl-branch.active span { color: var(--ink-2); }
#pl-groups { margin-bottom: 0; }
#pl-groups .filter small { opacity: .6; font-weight: 500; }
.pl-section + .pl-section { margin-top: 26px; }
.pl-subject { font-size: 17px; font-weight: 800; padding: 10px 12px; background: var(--bg-soft); border-radius: 10px 10px 0 0; border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: 8px; }
.pl-subject small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: auto; }
.pl-table { width: 100%; border-collapse: collapse; }
.pl-table th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pl-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; color: var(--ink-2); }
.pl-table tr.on td { background: var(--yellow-soft); }
.pl-table tr.clash td { background: #fff6f5; }
.pl-table .c-name b { display: block; font-size: 16.5px; color: var(--ink); }
.pl-table .c-name small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.pl-table .c-name em { display: block; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--danger); margin-top: 5px; }
.pl-table .c-teacher { font-weight: 700; color: var(--ink); white-space: nowrap; }
.pl-table .c-time div { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pl-table .c-time div + div { margin-top: 5px; }
.pl-days-pill { display: inline-flex; gap: 3px; }
.pl-days-pill i { font-style: normal; width: 24px; height: 24px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.pl-time { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-table .c-start { white-space: nowrap; font-size: 14px; }
.pl-table .c-start small { display: block; color: var(--muted); font-size: 12.5px; }
.pl-table .c-btn { text-align: right; white-space: nowrap; }
.pl-table .c-btn .btn { min-width: 78px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pl-bar { display: none; position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 45; background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 22px; box-shadow: var(--shadow); align-items: center; gap: 14px; font-size: 14.5px; white-space: nowrap; }
.pl-bar.show { display: flex; }
.pl-bar span { color: #9be29b; font-weight: 700; }
.pl-bar.bad span { color: #ff9c94; }
.pl-bar i { font-style: normal; color: var(--yellow); font-weight: 700; }
@media (max-width: 720px) {
  .pl-table thead { display: none; }
  .pl-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .pl-table tr.on, .pl-table tr.clash { padding-left: 10px; padding-right: 10px; }
  .pl-table tr.on { background: var(--yellow-soft); }
  .pl-table tr.clash { background: #fff6f5; }
  .pl-table td { display: block; padding: 0; border: 0; background: none !important; }
  .pl-table .c-name { grid-column: 1 / -1; }
  .pl-table .c-time { grid-column: 1; }
  .pl-table .c-teacher { grid-column: 2; grid-row: 2; text-align: right; }
  .pl-table .c-start { grid-column: 1; }
  .pl-table .c-start small { display: inline; margin-left: 4px; }
  .pl-table .c-btn { grid-column: 2; grid-row: 3; }
  .pl-branches { grid-template-columns: 1fr; }
  .pl-step { flex-wrap: wrap; }
  .pl-step input { width: 100%; margin: 4px 0 0; }
  .pl-bar { left: 12px; right: 12px; transform: none; justify-content: space-between; gap: 8px; padding: 12px 16px; font-size: 13.5px; }
  .pl-bar i { display: none; }
  .planner-list, .planner-board { padding: 16px; }
}
.planner-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.planner-filters select, .planner-filters input { min-height: 44px; padding: 8px 12px; border: 1.5px solid #cfcfcf; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); width: 100%; }
.planner-filters input { grid-column: 1 / -1; }
.planner-count { font-size: 13px; color: var(--muted); margin: 12px 0 8px; }
.pl-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pl-item.on { border-color: var(--ink); background: var(--yellow-soft); }
.pl-item .meta { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.pl-item h3 { font-size: 15.5px; font-weight: 800; }
.pl-item p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.pl-item p.when { color: var(--muted); font-size: 12.5px; }
.pl-item p.warn { color: var(--danger); font-weight: 700; font-size: 12.5px; margin-top: 4px; }
.pl-item .btn { flex: none; }
.planner-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.planner-head h2 { font-size: 20px; font-weight: 800; }
.planner-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.planner-board .notice { margin: 10px 0 14px; font-size: 14px; }
.pl-days { display: grid; grid-template-columns: 42px repeat(7, 1fr); text-align: center; font-weight: 800; font-size: 13px; color: var(--ink); padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.pl-body { display: grid; grid-template-columns: 42px repeat(7, 1fr); position: relative; }
.pl-hours { position: relative; }
.pl-hours span { position: absolute; left: 0; font-size: 11px; color: var(--muted); transform: translateY(2px); }
.pl-col { position: relative; border-left: 1px solid var(--line); }
.pl-col i { position: absolute; left: 0; right: 0; border-top: 1px dashed #ececec; }
.pl-block { position: absolute; box-sizing: border-box; border-radius: 6px; padding: 3px 4px; overflow: hidden; font-size: 11px; line-height: 1.25; color: var(--ink); border: 1px solid rgba(0, 0, 0, .18); }
.pl-block b { display: block; font-weight: 700; word-break: break-all; }
.pl-block span { display: block; opacity: .75; font-size: 10px; }
.pl-block.bad { border: 2px solid var(--danger); background-image: repeating-linear-gradient(45deg, rgba(198, 40, 40, .16) 0 6px, transparent 6px 12px); }
.pl-picked { margin-top: 16px; display: grid; gap: 6px; }
.pl-picked li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.pl-picked li > i { width: 12px; height: 12px; border-radius: 3px; flex: none; border: 1px solid rgba(0, 0, 0, .2); }
.pl-picked li > div { flex: 1; min-width: 0; }
.pl-picked b { display: block; font-size: 14px; color: var(--ink); }
.pl-picked span { font-size: 12.5px; color: var(--muted); }
.pl-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); padding: 4px 8px; }
.pl-x:hover { color: var(--danger); }
@media print {
  .site-header, .site-footer, .page-hero, .planner-list, .planner-actions, .fab, .planner-note, .pl-bar { display: none !important; }
  .section { padding: 0 !important; background: #fff !important; }
  .planner { display: block; }
  .planner-board { border: 0; position: static; padding: 0; }
  .pl-block, .pl-picked li > i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 설명회 */
.seminar { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.seminar + .seminar { margin-top: 12px; }
.seminar .when { text-align: center; border-right: 1px solid var(--line); padding-right: 20px; }
.seminar .when b { display: block; font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.seminar .when span { font-size: 13px; color: var(--muted); }
.seminar h3 { font-size: 18px; font-weight: 800; margin-top: 6px; }
.seminar p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.seminar.closed { background: var(--bg-soft); }
.seminar.closed h3, .seminar.closed .when b { color: var(--muted); }
.chip.closed { background: var(--danger); color: #fff; }
.btn[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; }
.tt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 12px 0 20px; }
.tt-images { display: grid; gap: 16px; max-width: 900px; }
.tt-images a { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.tt-images img { width: 100%; height: auto; }
.result-year + .result-year { margin-top: 56px; }
.result-year .section-title { margin-bottom: 20px; padding-left: 14px; border-left: 6px solid var(--yellow); }
.site-footer ul.two { columns: 2; column-gap: 20px; }
.empty { padding: 32px; text-align: center; color: var(--muted); background: var(--bg-soft); border-radius: var(--radius); }

/* 블로그 */
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post .thumb { aspect-ratio: 16 / 10; background: var(--bg-soft) center / cover no-repeat; position: relative; overflow: hidden; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post .thumb.none { display: grid; place-items: center; background: var(--ink); color: var(--yellow); font-weight: 800; letter-spacing: .12em; font-size: 14px; }
.post .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.post h3 { font-size: 16.5px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post time { font-size: 13px; color: var(--muted); margin-top: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 15px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.searchbar { display: flex; gap: 8px; margin-bottom: 28px; max-width: 420px; }
.pager { display: flex; justify-content: center; margin-top: 32px; }

/* 지점 */
.branch { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.branch h3 { font-size: 22px; font-weight: 800; }
.branch .addr { color: var(--ink-2); font-weight: 600; }
.branch table { width: 100%; border-collapse: collapse; font-size: 14px; }
.branch td { padding: 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.branch td:last-child { text-align: right; white-space: nowrap; color: var(--muted); padding-left: 10px; }
.branch td small { color: var(--muted); display: inline-block; margin-top: 4px; }
.branch td b { color: var(--ink); }
.section.dark .branch td b, .section.dark .branch .link-more { color: #fff; }
.section.dark .branch td small { color: #b5b5b5; }
.branch .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.section.dark .branch { background: #1c1c1c; border-color: #2e2e2e; color: #d8d8d8; }
.section.dark .branch .addr { color: #fff; }
.section.dark .branch td { border-color: #2e2e2e; }
.section.dark .branch td:last-child { color: #b5b5b5; }
.section.dark .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* CTA 띠 */
.cta-band { background: var(--yellow); padding: 56px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.cta-band p { color: var(--ink-2); margin-top: 6px; }
.cta-band .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 폼 */
.faq-list { max-width: 860px; border-top: 2px solid var(--ink); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 4px; font-weight: 700; color: var(--ink); font-size: 17px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q. '; color: var(--yellow-deep); font-weight: 800; }
.faq summary::after { content: '+'; position: absolute; right: 8px; top: 14px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq[open] summary::after { content: '–'; }
.faq p { padding: 0 40px 20px 4px; color: var(--text); }

/* 상담 · 신청: 관 선택 */
.division-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.division-pick button { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.division-pick b { font-size: 18px; color: var(--ink); }
.division-pick span { font-size: 13px; color: var(--muted); }
.division-pick button.active { border-color: var(--ink); background: var(--yellow); }
.division-pick button.active span { color: var(--ink-2); }
.side-card .tel.dim { opacity: .4; }
.btn small { font-weight: 500; font-size: 12px; opacity: .8; }
.nav-cta { margin-left: 6px; }
.nav-cta .nav-parent { margin-left: 0; }
.nav-cta .nav-sub { left: auto; right: 0; min-width: 210px; }
.nav-cta .nav-sub a b { color: var(--ink); }
.nav-cta .nav-sub a small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

/* 바로가기 / 패밀리 / 고민 */
.quick { background: var(--yellow); }
.quick .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick a { padding: 20px 16px; font-weight: 800; color: var(--ink); border-left: 1px solid rgba(0, 0, 0, .12); display: flex; flex-direction: column; gap: 2px; }
.quick a:last-child { border-right: 1px solid rgba(0, 0, 0, .12); }
.quick a small { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.quick a:hover { background: var(--yellow-deep); }
.family { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.family h3 { font-size: 18px; font-weight: 800; }
.family p { color: var(--muted); font-size: 14.5px; }
.family .tel { font-weight: 700; color: var(--ink); margin-top: auto; }
.family.main, .family.smart { border-top: 4px solid var(--yellow); }
.concern { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.concern q { display: block; quotes: '“' '”'; font-weight: 800; color: var(--ink); font-size: 17.5px; }
.concern p { color: var(--muted); font-size: 15px; margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--yellow); }

.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }
.tab { border: 2px solid var(--line); background: #fff; border-radius: var(--radius); padding: 16px 12px; text-align: center; font-weight: 700; color: var(--muted); }
.tab small { display: block; font-weight: 500; font-size: 13px; margin-top: 2px; }
.tab.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.tab.active small { color: var(--yellow); }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-card h2 { font-size: 24px; font-weight: 800; }
.form-card > p { color: var(--muted); margin-top: 6px; margin-bottom: 22px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field .req { color: var(--danger); margin-left: 2px; }
.field input, .field select, .field textarea, .searchbar input {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #cfcfcf; border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .searchbar input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .error { font-size: 13px; color: var(--danger); min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.assigned { display: flex; align-items: center; gap: 8px; background: var(--yellow-soft); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.consent { background: var(--bg-soft); border-radius: 10px; padding: 14px 16px; font-size: 13px; color: var(--muted); }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 700; color: var(--ink); margin-top: 10px; cursor: pointer; }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { margin-top: 22px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.notice { border-radius: 10px; padding: 14px 16px; font-size: 14.5px; margin-top: 16px; }
.notice.ok { background: #e9f7ec; color: #1b5e20; border: 1px solid #b7dfbd; }
.notice.err { background: #fdecea; color: var(--danger); border: 1px solid #f5c2bd; }
.notice.info { background: var(--yellow-soft); color: var(--ink-2); border: 1px solid #f0e08a; }
.side-card { background: var(--ink); color: #d8d8d8; border-radius: var(--radius); padding: 26px; position: sticky; top: 122px; }
.side-card h3 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.side-card .tel { display: block; padding: 12px 0; border-top: 1px solid #2e2e2e; }
.side-card .tel span { font-size: 13px; color: #b5b5b5; display: block; }
.side-card .tel b { font-size: 21px; color: var(--yellow); font-weight: 800; }
.side-card p { font-size: 14px; color: #b5b5b5; margin-top: 14px; }

/* 기타 */
.about-logo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: grid; place-items: center; }
.about-logo img { max-width: 380px; width: 100%; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.prose p + p { margin-top: 14px; }
.prose p { color: var(--text); font-size: 17px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.info { width: 100%; border-collapse: collapse; min-width: 560px; }
table.info th, table.info td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
table.info thead th { background: var(--ink); color: #fff; font-weight: 700; }
table.info tbody tr:last-child td, table.info tbody tr:last-child th { border-bottom: 0; }
table.info tbody th { color: var(--ink); white-space: nowrap; }

/* 푸터 */
.site-footer { background: #0b0b0b; color: #9a9a9a; padding: 52px 0 36px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer .f-logo { height: 60px; width: auto; }
.site-footer li { margin-bottom: 6px; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .copy { border-top: 1px solid #222; margin-top: 32px; padding-top: 20px; font-size: 13px; }

.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; box-shadow: var(--shadow); }

/* 반응형 */
@media (max-width: 960px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 0; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a.nav-link { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.nav-link.active::after { left: 6px; right: auto; width: 28px; bottom: 6px; }
  /* 모바일: 드롭다운은 항상 펼쳐서 보여줍니다 */
  .nav { max-height: calc(100vh - 104px); overflow-y: auto; }
  .nav button.nav-link { width: 100%; justify-content: flex-start; padding: 14px 6px 4px; border-radius: 0; font-size: 13px; color: var(--muted); pointer-events: none; }
  .nav button.nav-link.active::after, .nav button.nav-link .caret { display: none; }
  .nav-sub { display: block; position: static; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 0 0 6px; min-width: 0; }
  .nav-sub a { padding: 11px 6px; }
  .nav .btn { margin: 14px 0 0; }
  .nav .btn + .btn { margin: 8px 0 0; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .nav-parent { display: none; }
  .nav-cta .nav-sub { border-bottom: 0; display: grid; gap: 8px; }
  .nav-cta .nav-sub a { background: var(--yellow); border-radius: 12px; padding: 12px 14px; text-align: center; color: var(--ink); }
  .nav-cta .nav-sub a small { display: inline; margin-left: 6px; color: var(--ink-2); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .hero::after { width: 130px; height: 130px; right: -50px; top: -50px; }
  .grid.c2, .grid.c3, .grid.c4, .flow, .fields { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 10px; }
  .roadmap-row { grid-template-columns: 1fr; gap: 10px; }
  .seminar { grid-template-columns: 1fr; gap: 12px; }
  .seminar .when { text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px; display: flex; gap: 10px; align-items: baseline; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .topbar-label, .topbar a small { display: none; }
  .topbar .wrap { justify-content: space-between; }
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .quick .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .quick a { border-bottom: 1px solid rgba(0, 0, 0, .12); }
  .tab { padding: 12px 6px; font-size: 14px; }
  .tab small { display: none; }
  .fab { display: inline-flex; }
  .cta-band .actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
