/* 페이지 빌더 블록 + 신청·문의 폼. 색은 스킨의 CSS 변수(--primary, --surface, --line …)를 따른다. */
.pb-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }  /* 칸이 블록 속 넓은 표만큼 늘어나지 않게 */
.pb { margin: 0 0 56px; }
.pb:last-child { margin-bottom: 0; }
.pb-heading { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 20px; }
.pb-center { text-align: center; }
.pb-intro { text-align: center; color: var(--muted); max-width: 640px; margin: -8px auto 28px; }
.pb-narrow { max-width: 760px; margin-left: auto; margin-right: auto; width: 100%; } /* .pb-page 는 grid: 좌우 auto 여백만 두면 내용 폭으로 줄어든다 */
.pb-align-center { text-align: center; }
.pb-caption, .pb figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
.pb-placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--surface-2); color: var(--muted); border-radius: var(--radius-lg, 16px); }

/* 화면 폭 가득: 가운데 정렬된 본문 상자 밖으로 뻗는다 */
.pb-bleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0 !important; }

.pb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; text-decoration: none !important; }
.pb-btn:hover { transform: translateY(-1px); }
.pb-btn-primary { background: var(--primary); color: var(--on-primary, #fff) !important; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 30%, transparent); }
.pb-btn-primary:hover { background: var(--primary-dark, var(--primary)); color: var(--on-primary, #fff); }
.pb-btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.pb-btn-outline { background: var(--surface); border-color: var(--line); color: var(--text) !important; }
.pb-btn-outline:hover { border-color: var(--text); }

/* 큰 배너 */
.pb-hero { border-radius: var(--radius-lg, 20px); overflow: hidden; }
.pb-hero .pb-inner { max-width: var(--container, 1120px); margin: 0 auto; padding: clamp(56px, 10vw, 120px) 24px; }
.pb-hero.pb-align-center .pb-inner { text-align: center; }
.pb-hero.pb-align-center .pb-hero-text { margin-left: auto; margin-right: auto; }
.pb-hero-title { font-size: clamp(32px, 6vw, 60px); font-weight: 800; line-height: 1.15; letter-spacing: -0.04em; margin: 0 0 18px; }
.pb-hero-text { font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin: 0 0 30px; opacity: .88; }
.pb-hero-eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .02em; background: color-mix(in srgb, currentColor 10%, transparent); }
.pb-hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-hero.pb-align-center .pb-hero-buttons { justify-content: center; }
/* 옆 이미지가 있으면 글 | 이미지 두 칸 (가운데 정렬 대신 왼쪽 정렬) */
.pb-hero-has-media .pb-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pb-hero-has-media.pb-align-center .pb-inner { text-align: left; }
.pb-hero-has-media.pb-align-center .pb-hero-text { margin-left: 0; }
.pb-hero-has-media.pb-align-center .pb-hero-buttons { justify-content: flex-start; }
.pb-hero-media { margin: 0; min-width: 0; }
.pb-hero-media img { display: block; width: 100%; height: auto; }
.pb-frame-browser { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(16, 24, 40, .1); box-shadow: 0 40px 80px -40px rgba(16, 24, 40, .45), 0 2px 6px rgba(16, 24, 40, .06); }
.pb-frame-bar, .pb-show-bar { display: flex; gap: 6px; padding: 10px 14px; background: #f2f3f5; border-bottom: 1px solid #e6e8ec; }
.pb-frame-bar i, .pb-show-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5d8de; }
.pb-frame-phone { max-width: 300px; justify-self: center; border: 10px solid #111318; border-radius: 40px; overflow: hidden; background: #111318; box-shadow: 0 40px 80px -40px rgba(16, 24, 40, .55); }
.pb-frame-phone img { border-radius: 30px; }
.pb-frame-none img { border-radius: var(--radius-lg, 18px); }
@media (max-width: 860px) {
    .pb-hero-has-media .pb-inner { grid-template-columns: 1fr; }
}
.pb-hero-primary { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #0b1020)); color: #fff; }
.pb-hero-primary .pb-btn-primary { background: #fff; color: var(--primary) !important; box-shadow: none; }
.pb-hero-dark { background: #0f1115; color: #fff; }
.pb-hero-light { background: var(--surface-2); color: var(--text); }
.pb-hero-image { color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.6)), var(--pb-hero-image) center / cover no-repeat; }
.pb-hero-image .pb-btn-primary { box-shadow: none; }
/* 밝은 일러스트 배경: 그림은 가장자리에 두고 글이 놓이는 쪽만 흰빛으로 덮는다(어두운 막 없음). 그림이 밝으므로 글자는 늘 진하게 */
.pb-hero-illust { --text: #0f172a; --muted: #475569; color: #0f172a; background: var(--pb-hero-veil, none), var(--pb-hero-image, none) right center / cover no-repeat, #f6f8fc; }
.pb-hero-illust.pb-align-left { --pb-hero-veil: linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .72) 42%, rgba(255, 255, 255, 0) 66%); background-size: auto, auto 100%; }
/* ↑ 왼쪽 정렬은 그림을 높이에 맞춰 오른쪽에 붙인다(배너가 낮아도 위아래가 잘리지 않고, 그림 바탕이 배너 바탕색과 같아 이음새가 없다) */
.pb-hero-illust.pb-align-center { --pb-hero-veil: radial-gradient(ellipse 40% 62% at 50% 50%, rgba(255, 255, 255, .88), rgba(255, 255, 255, 0)); background-position: 0 0, center; }
.pb-hero-illust .pb-hero-text { color: #475569; opacity: 1; }
/* 화면이 좁아질수록 그림이 글 쪽으로 들어오므로 흰빛을 더 넓게 */
@media (max-width: 1240px) {
    .pb-hero-illust.pb-align-left { --pb-hero-veil: linear-gradient(90deg, rgba(255, 255, 255, .93) 0%, rgba(255, 255, 255, .84) 54%, rgba(255, 255, 255, 0) 82%); }
    .pb-hero-illust.pb-align-center { --pb-hero-veil: radial-gradient(ellipse 52% 70% at 50% 50%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .2)); }
}
/* 휴대폰: 그림을 글 뒤에 흐리게 깔지 않고 버튼 아래 띠로 또렷하게 보여 준다.
   그림(2:1)은 오른쪽에 그림이 모여 있으므로 오른쪽 끝에 붙인다(높이 300px → 폭 600px 이라 화면을 다 덮어 이음새가 없다) */
@media (max-width: 760px) {
    section.pb-hero.pb-hero-illust { background: var(--pb-hero-image, none) 100% 100% / auto 300px no-repeat, #f6f8fc; }
    section.pb-hero.pb-hero-illust .pb-inner { padding-bottom: 312px; }
}

/* 글, 이미지+글 */
.pb-text .rich-content { font-size: 17px; }
.pb-image-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.pb-side-right .pb-it-media { order: 2; }
.pb-it-media img { width: 100%; height: auto; border-radius: var(--radius-lg, 16px); display: block; }
.pb-it-plain .pb-it-media img { border-radius: 0; }
.pb-it-body .pb-btn { margin-top: 12px; }

/* 이미지, 갤러리, 동영상 */
.pb-image img { width: 100%; display: block; border-radius: var(--radius-lg, 16px); }
.pb-width-normal { max-width: 860px; margin-left: auto; margin-right: auto; }
.pb-width-full img { border-radius: 0; max-height: 80vh; object-fit: cover; }
.pb-grid { display: grid; gap: 20px; }
.pb-cols-1 { grid-template-columns: 1fr; }
.pb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.pb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pb-cols-4 { grid-template-columns: repeat(4, 1fr); }
.pb-gallery figure { margin: 0; }
.pb-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius, 12px); display: block; transition: transform .25s; }
.pb-gallery a:hover img { transform: scale(1.02); }
.pb-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg, 16px); overflow: hidden; background: #000; }
.pb-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 유튜브 채널: 일반 영상 16:9, 쇼츠 9:16 (유튜브 썸네일 4:3 을 잘라 맞춘다) */
.pb-yt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.pb-yt-grid + .pb-yt-grid { margin-top: 40px; }
.pb-yt-grid.is-shorts { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 16px; }
.pb-yt-item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pb-yt-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg, 16px); background: #0f0f0f; }
.is-shorts .pb-yt-thumb { aspect-ratio: 9 / 16; }
.pb-yt-thumb img, .pb-yt-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; transition: transform .25s; }
a.pb-yt-thumb:hover img { transform: scale(1.03); }
.pb-yt-play { position: absolute; left: 50%; top: 50%; width: 60px; height: 42px; margin: -21px 0 0 -30px; border-radius: 12px; background: rgba(15, 15, 15, .75); transition: background .15s; }
.pb-yt-play::after { content: ''; position: absolute; left: 24px; top: 13px; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff; }
a.pb-yt-thumb:hover .pb-yt-play, a.pb-yt-thumb:focus-visible .pb-yt-play { background: #e62117; }
.pb-yt-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.45; color: inherit; }
.pb-yt-title:hover { color: var(--primary); }
.pb-yt-item time { margin-top: -4px; font-size: 13px; color: var(--muted); }
.pb-yt-more { margin: 32px 0 0; text-align: center; }
@media (max-width: 900px) {
    .pb-yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pb-yt-grid.is-shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .pb-yt-grid { grid-template-columns: minmax(0, 1fr); }
    .pb-yt-grid.is-shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}

/* 유튜브 채널: 동영상 재생 모달 (일반 영상 16:9, 쇼츠 9:16) */
.yt-modal-open { overflow: hidden; }
.yt-modal { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: center; justify-content: center; padding: 20px; }
.yt-modal[hidden] { display: none; }
.yt-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 14, 24, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s; }
.yt-modal-card { position: relative; width: 100%; max-width: min(960px, calc((100dvh - 108px) * 16 / 9)); display: flex; flex-direction: column; overflow: hidden; background: #0f1117; color: #f8fafc; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg, 20px); box-shadow: 0 32px 80px -16px rgba(0, 0, 0, .65); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .2s, transform .25s cubic-bezier(.16, 1, .3, 1); outline: none; }
.yt-modal.is-short .yt-modal-card { max-width: min(420px, calc((100dvh - 108px) * 9 / 16)); }
.yt-modal.is-open .yt-modal-backdrop, .yt-modal.is-open .yt-modal-card { opacity: 1; }
.yt-modal.is-open .yt-modal-card { transform: none; }
.yt-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; background: #141720; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.yt-modal-title { margin: 0; font-size: clamp(15px, 1.8vw, 18px); font-weight: 700; line-height: 1.4; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.yt-modal-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.yt-modal-ext { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .86); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.yt-modal-ext:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.yt-modal-close { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background .15s; }
.yt-modal-close:hover { background: rgba(255, 255, 255, .18); }
.yt-modal-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.yt-modal.is-short .yt-modal-player { aspect-ratio: 9 / 16; }
.yt-modal-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 560px) {
    .yt-modal { padding: 12px; }
    .yt-modal-head { padding: 12px 14px; }
    .yt-modal-ext { display: none; }
}
@media (prefers-reduced-motion: reduce) { .yt-modal-card, .yt-modal-backdrop { transition: none; } }

/* 카드, 단계, 숫자, 후기 */
.pb-card { display: block; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg, 18px); transition: transform .2s, box-shadow .2s; color: inherit; }
a.pb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow, 0 10px 24px rgba(0,0,0,.08)); color: inherit; }
.pb-card-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 14px; background: var(--accent-soft, #eef2ff); font-size: 26px; margin-bottom: 16px; }
.pb-card h3 { font-size: 19px; margin: 0 0 8px; }
.pb-card p { margin: 0; color: var(--muted); font-size: 15px; }
.pb-steps-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: step; }
.pb-steps-list li { position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg, 18px); }
.pb-step-num { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary); color: var(--on-primary, #fff); font-weight: 800; margin-bottom: 12px; }
.pb-steps-list h3 { margin: 0 0 6px; font-size: 18px; }
.pb-steps-list p { margin: 0; color: var(--muted); font-size: 15px; }
.pb-stats-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 0; }
.pb-stats-list div { text-align: center; padding: 28px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg, 18px); display: flex; flex-direction: column-reverse; gap: 4px; }
.pb-stats-list dd { margin: 0; font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.04em; color: var(--primary); line-height: 1.1; }
.pb-stats-list dt { color: var(--muted); font-size: 15px; }
.pb-quote { margin: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg, 18px); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.pb-quote blockquote { margin: 0; font-size: 17px; line-height: 1.7; }
.pb-quote blockquote::before { content: '“'; display: block; font-size: 48px; line-height: .6; color: var(--primary); font-family: Georgia, serif; }
.pb-quote figcaption { text-align: left; margin: 0; color: var(--text); }
.pb-quote figcaption span { display: block; color: var(--muted); font-size: 13px; }

/* 가격표 */
.pb-price-grid { align-items: stretch; }
.pb-price { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg, 18px); }
.pb-price.is-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg, 0 20px 40px -12px rgba(0,0,0,.18)); }
.pb-price-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pb-price h3 { margin: 0; font-size: 18px; }
.pb-price-badge { padding: 4px 10px; border-radius: 999px; background: var(--primary); color: var(--on-primary, #fff); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pb-price-desc { margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.pb-price-amount { margin: 4px 0 0; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.pb-price-amount strong { font-size: clamp(32px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.04em; font-weight: 800; }
.pb-price-amount span { color: var(--muted); font-size: 15px; font-weight: 600; }
.pb-price-features { list-style: none; margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; flex: 1; align-content: start; }
.pb-price-features li { display: flex; gap: 8px; align-items: flex-start; }
.pb-price-features svg { flex-shrink: 0; margin-top: 3px; color: var(--primary); }
.pb-price .pb-btn { margin-top: 6px; width: 100%; }
.pb-price-note { text-align: center; color: var(--muted); font-size: 14px; margin: 20px 0 0; }

/* 포트폴리오 */
.pb-show-card { display: block; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg, 18px); overflow: hidden; transition: transform .2s, box-shadow .2s; }
a.pb-show-card:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-lg, 0 20px 40px -12px rgba(0,0,0,.18)); }
.pb-show-media { aspect-ratio: 16 / 10; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding: 28px 28px 0; background: var(--tone-bg); }
.pb-show-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-show-media:has(> img) { padding: 0; }
.pb-show-shot { width: 100%; height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 -2px 28px rgba(16, 24, 40, .12); transition: transform .3s; }
.pb-show-shot .pb-show-bar { padding: 8px 12px; }
.pb-show-shot .pb-show-bar i { width: 8px; height: 8px; }
.pb-show-shot img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top center; display: block; }
a.pb-show-card:hover .pb-show-shot { transform: translateY(-4px); }
.pb-tone-blue { --tone-bg: #e8eeff; --tone: #3355ff; }
.pb-tone-green { --tone-bg: #e3f5ec; --tone: #148a55; }
.pb-tone-violet { --tone-bg: #efe9ff; --tone: #6d4bdb; }
.pb-tone-orange { --tone-bg: #fff0e3; --tone: #d9600f; }
.pb-tone-slate { --tone-bg: #eceef2; --tone: #4b5565; }
.pb-show-mock { width: 100%; height: 100%; background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 -2px 24px rgba(16, 24, 40, .08); display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 0 0 14px; overflow: hidden; transition: transform .3s; }
a.pb-show-card:hover .pb-show-mock { transform: translateY(-4px); }
.pb-show-bar { display: flex; gap: 5px; padding: 9px 12px; background: #f2f3f5; }
.pb-show-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d5d8de; }
.pb-show-nav, .pb-show-hero, .pb-show-row { display: flex; gap: 8px; padding: 0 16px; }
.pb-show-nav b { height: 6px; width: 34px; border-radius: 3px; background: #e3e6eb; }
.pb-show-nav b:first-child { width: 52px; background: var(--tone); opacity: .9; }
.pb-show-hero { flex-direction: column; justify-content: center; border-radius: 8px; margin: 0 16px; padding: 14px 16px; background: var(--tone-bg); }
.pb-show-hero b { height: 8px; border-radius: 4px; background: var(--tone); opacity: .85; width: 62%; }
.pb-show-hero b:nth-child(2) { width: 44%; opacity: .45; }
.pb-show-hero b:nth-child(3) { width: 22%; height: 12px; border-radius: 6px; margin-top: 4px; opacity: 1; }
.pb-show-row b { flex: 1; height: 34px; border-radius: 6px; background: #f2f3f5; }
/* 업종마다 화면 모양을 조금씩 다르게: 초록=글 목록, 보라=가운데 배너, 주황=사진 격자 */
.pb-tone-green .pb-show-mock, .pb-tone-orange .pb-show-mock { grid-template-rows: auto auto auto 1fr; }
.pb-tone-green .pb-show-hero, .pb-tone-orange .pb-show-hero { padding: 12px 16px; }
.pb-tone-green .pb-show-row { flex-direction: column; gap: 9px; }
.pb-tone-green .pb-show-row b { flex: none; height: 14px; }
.pb-tone-green .pb-show-row b:nth-child(2) { width: 82%; }
.pb-tone-violet .pb-show-hero { align-items: center; }
.pb-tone-violet .pb-show-row b:nth-child(3) { display: none; }
.pb-tone-orange .pb-show-row b { height: auto; min-height: 48px; background: var(--tone-bg); }
.pb-show-body { padding: 20px 24px 24px; }
.pb-show-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.pb-show-body h3 { margin: 0 0 6px; font-size: 19px; }
.pb-show-body p { margin: 0; color: var(--muted); font-size: 15px; }

/* 포트폴리오: 자세히 보기 힌트 (마우스를 올리거나 키보드로 고르면) */
.pb-show-media { position: relative; }
.pb-show-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, .5); opacity: 0; transition: opacity .2s; pointer-events: none; }
.pb-show-hint > span { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 999px; background: #fff; color: #0f172a; font-size: 14px; font-weight: 700; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); transform: translateY(6px); transition: transform .2s; }
.js-pf-trigger:hover .pb-show-hint, .js-pf-trigger:focus-visible .pb-show-hint { opacity: 1; }
.js-pf-trigger:hover .pb-show-hint > span, .js-pf-trigger:focus-visible .pb-show-hint > span { transform: none; }
@media (hover: none) { .pb-show-hint { display: none; } }

/* 포트폴리오: 자세히 보기 창 */
.pf-modal-open { overflow: hidden; }
.pf-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pf-modal[hidden] { display: none; }
.pf-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s; }
.pf-modal-card { position: relative; width: 100%; max-width: 1000px; max-height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden; background: var(--surface, #fff); color: var(--text); border-radius: var(--radius-lg, 22px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .2s, transform .25s cubic-bezier(.16, 1, .3, 1); outline: none; }
.pf-modal.is-open .pf-modal-backdrop, .pf-modal.is-open .pf-modal-card { opacity: 1; }
.pf-modal.is-open .pf-modal-card { transform: none; }
.pf-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.pf-modal-tag { display: inline-block; margin-bottom: 8px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--accent-soft, #eef2ff); color: var(--primary); }
.pf-modal-title { margin: 0; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.03em; }
.pf-modal-close { flex-shrink: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.pf-modal-close:hover { background: var(--surface); color: var(--text); }
.pf-modal-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; padding: 26px; overflow-y: auto; }
.pf-modal-shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; align-self: start; }
.pf-modal-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f2f3f5; border-bottom: 1px solid #e6e8ec; font-size: 12px; color: #5d6573; }
.pf-modal-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5d8de; flex-shrink: 0; }
.pf-modal-bar span { margin-left: 8px; flex: 1; min-width: 0; padding: 3px 10px; border-radius: 6px; background: #fff; border: 1px solid #e6e8ec; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-modal-shot-view { max-height: 440px; overflow-y: auto; background: #f8fafc; }
.pf-modal-shot-view img { display: block; width: 100%; height: auto; }
.pf-modal-info { display: flex; flex-direction: column; gap: 22px; }
.pf-modal-info h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.pf-modal-info p { margin: 0; line-height: 1.75; }
.pf-modal-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pf-modal-info li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.55; }
.pf-modal-info li::before { content: ''; position: absolute; left: 0; top: .2em; width: 17px; height: 17px; border-radius: 50%; background: var(--accent-soft, #eef2ff); }
.pf-modal-info li::after { content: ''; position: absolute; left: 5px; top: calc(.2em + 5px); width: 6px; height: 3.5px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.pf-modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-modal-tags span { padding: 5px 11px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 500; }
.pf-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.pf-modal-actions .pb-btn { min-height: 46px; }
/* 좁은 화면: 높이가 정해진 스크롤 상자 안의 한 칸 그리드는 첫 줄(스크롤 되는 캡처)이 최소 높이로 줄어 아래 내용과 겹친다 → 그냥 위아래로 쌓는다 */
@media (max-width: 820px) { .pf-modal-body { display: block; padding: 20px; } .pf-modal-shot + .pf-modal-info { margin-top: 22px; } .pf-modal-shot-view { max-height: 300px; } .pf-modal-head { padding: 18px 20px 14px; } }
@media (prefers-reduced-motion: reduce) { .pf-modal-card, .pf-modal-backdrop, .pb-show-hint, .pb-show-hint > span { transition: none; } }

/* FAQ, 버튼 띠 */
.pb-faq-list { border-top: 1px solid var(--line); }
.pb-faq-list details { border-bottom: 1px solid var(--line); }
.pb-faq-list summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 4px; font-weight: 700; font-size: 16px; position: relative; }
.pb-faq-list summary::-webkit-details-marker { display: none; }
.pb-faq-list summary::after { content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; color: var(--muted); }
.pb-faq-list details[open] summary::after { content: '−'; }
.pb-faq-list details > div { padding: 0 4px 20px; color: var(--muted); line-height: 1.8; }
.pb-faq-list details > div p { margin: 0 0 10px; }
.pb-faq-list details > div p:last-child { margin-bottom: 0; }
.pb-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg, 20px); }
.pb-cta h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.03em; }
.pb-cta p { margin: 0; opacity: .85; }
.pb-cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.pb-cta-primary { background: var(--primary); color: var(--on-primary, #fff); }
.pb-cta-primary .pb-btn-primary { background: #fff; color: var(--primary) !important; box-shadow: none; }
.pb-cta-dark { background: #0f1115; color: #fff; }
.pb-cta-light { background: var(--surface-2); border: 1px solid var(--line); }

/* 최신글, 지도 */
.pb-latest-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pb-latest-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.pb-latest-list time, .pb-post-card time { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.pb-post-card { padding: 0 0 20px; overflow: hidden; }
.pb-post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; margin-bottom: 14px; }
.pb-post-card > :not(img) { margin-left: 20px; margin-right: 20px; }
.pb-post-card:not(:has(img)) { padding-top: 20px; }
.pb-post-board { display: block; font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.pb-post-card h3 { font-size: 17px; margin-bottom: 6px; }
.pb-post-card p { margin-bottom: 10px; }
.pb-map-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.pb-map-frame { width: 100%; border: 0; border-radius: var(--radius-lg, 16px); background: var(--surface-2); }
.pb-map-address { font-weight: 700; font-size: 17px; }
.pb-map-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pb-map-links .pb-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

.pb-spacer-s { height: 8px; } .pb-spacer-m { height: 32px; } .pb-spacer-l { height: 80px; }
.pb-spacer hr { border: 0; border-top: 1px solid var(--line); margin: 0; position: relative; top: 50%; }
.pb-spacer { margin-bottom: 56px; }

@media (max-width: 760px) {
    .pb { margin-bottom: 40px; }
    .pb-image-text, .pb-map-grid { grid-template-columns: 1fr; }
    .pb-side-right .pb-it-media { order: 0; }
    .pb-cols-3, .pb-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .pb-cards .pb-cols-3, .pb-cards .pb-cols-4, .pb-latest .pb-cols-3, .pb-testimonials .pb-grid { grid-template-columns: 1fr; }
    .pb-price-grid, .pb-show-grid { grid-template-columns: 1fr; }
}

/* 신청·문의 폼 */
.fm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg, 18px); padding: clamp(20px, 4vw, 36px); }
.fm-desc { color: var(--muted); margin: 0 0 20px; }
.fm-form { display: grid; gap: 18px; }
.fm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fm-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.fm-req { color: var(--danger, #dc2626); font-weight: 700; margin-left: 2px; }
.fm-check { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; cursor: pointer; }
.fm-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.fm-choices { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.fm-help { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.fm-error { color: var(--danger, #dc2626); font-size: 13px; margin: 6px 0 0; }
.fm-field.has-error .input { border-color: var(--danger, #dc2626); }
.fm-errors { padding: 12px 14px; border-radius: 10px; background: var(--err-bg, #fef2f2); color: var(--err-text, #991b1b); font-size: 14px; }
.fm-submit { justify-self: start; min-height: 48px; padding: 0 28px; }
.fm-done { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 14px; background: var(--ok-bg, #ecfdf5); color: var(--ok-text, #065f46); }
.fm-done span { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: currentColor; color: #fff; font-weight: 800; flex-shrink: 0; }
.fm-done span { color: var(--surface); background: var(--ok-text, #065f46); }
.fm-done p { margin: 0; font-weight: 600; }
.fm-closed { margin: 0; color: var(--muted); }

/* 옆 기둥(사이드바)이 있는 레이아웃에서는 "화면 폭 가득" 대신 본문 폭에 맞춘다 */
.site-main.has-sidebar .pb-bleed, .layout-sidebar .pb-bleed, .pt-main .pb-bleed, .page-article .pb-bleed {
    width: auto; margin-left: 0; margin-right: 0; border-radius: var(--radius-lg, 18px) !important;
}
.page-article .pb-hero .pb-inner { padding-left: 16px; padding-right: 16px; }
