/* 페이지 빌더 블록 + 신청·문의 폼. 색은 스킨의 CSS 변수(--primary, --surface, --line …)를 따른다. */
.pb-page { display: grid; 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-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-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%; border-radius: var(--radius-lg, 16px); display: block; }
.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; }

/* 카드, 단계, 숫자, 후기 */
.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-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; }

/* 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-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; }
