:root {
  --ink: #282a29;
  --muted: #747873;
  --brand: #287455;
  --brand-dark: #193f31;
  --brand-soft: #edf3ef;
  --accent: #d6aa3a;
  --shape-blue: #c8e4f1;
  --navy: #0e2953;
  --gold: #deb66d;
  --cream: #f6f4ef;
  --line: #e5e2d9;
  --white: #fff;
  --shadow: 0 18px 45px rgba(31, 37, 34, .08);
  --radius: 16px;
}

html { scroll-behavior: smooth; }
[data-scroll], [data-scroll="out"] { opacity: 1 !important; transform: none !important; }
body, html { color: var(--ink); background: #fff; }
body { margin: 0; padding: 0; overflow-x: hidden; }
body.modal-open { padding-right: 0 !important; }
a, button { transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(255, 204, 51, .7); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 2000; padding: 12px 18px; color: #fff; background: var(--brand-dark); border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

#tf-menu { position: sticky; top: 0; z-index: 999; padding: 0; background: rgba(255,255,255,.96); border: 0; border-bottom: 1px solid rgba(40,42,41,.07); backdrop-filter: blur(14px); }
#tf-menu .nav-shell { min-height: 82px; display: flex; align-items: center; justify-content: space-between; }
#tf-menu .navbar-brand { display: flex; align-items: center; gap: 11px; height: auto; padding: 6px 0; margin: 0; }
#tf-menu .navbar-brand .brand-mark { display: block; width: auto; height: 44px; object-fit: contain; }
/* align-items 기본값(stretch)이면 워드마크 이미지가 태그라인 폭까지 가로로 늘어남 */
.brand-text { display: flex; flex-direction: column; align-items: flex-start; }
/* 워드마크는 조선일보명조체로 렌더링한 이미지 (폰트 22.9MB라 웹폰트 배포 불가) */
/* style3.css:89 의 `.navbar-brand img{height:50px}` 를 이기려면 선택자가 더 구체적이어야 함 */
#tf-menu .navbar-brand .brand-word { display: block; width: auto; height: 21px; }
.brand-text small { margin-top: 6px; color: var(--muted); font-family: 'BMDOHYEON', 'NanumSquareNeo-Variable', sans-serif; font-size: 11px; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 700; }
.nav-links a { position: relative; padding: 7px 1px; color: #4b514c; text-decoration: none; letter-spacing: -.02em; }
.nav-links a::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .26s cubic-bezier(.4, 0, .2, 1); }
.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-guide { min-height: 42px; padding: 0 20px; border: 1px solid #c2cec4; border-radius: 999px; color: var(--brand); background: #fff; font-weight: 700; letter-spacing: -.02em; box-shadow: 0 2px 8px rgba(37,49,44,.05); }
.nav-guide:hover { color: #fff; border-color: var(--brand); background: var(--brand); box-shadow: 0 6px 16px rgba(40,116,85,.22); transform: translateY(-1px); }
.skip-link, .primary-cta, .secondary-cta, .photo-item, .modal-cta .btn { text-decoration: none; }

#tf-home { position: relative; min-height: 610px; margin: 0; overflow: hidden; color: #fff; background: #262927; border-radius: 0; box-shadow: none; isolation: isolate; clip-path: ellipse(82% 100% at 50% 0%); }
#tf-home::before { content: ''; position: absolute; inset: -6%; z-index: -2; background: url('../img/bg/01_sc.jpg') center/cover no-repeat; transform: scale(1.04); animation: hero-cinematic 18s ease-in-out infinite alternate; will-change: transform; }
#tf-home::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,22,21,.82), rgba(31,34,32,.5)); }
#tf-home .overlay { min-height: 610px; display: flex; align-items: center; padding: 64px 0 154px; background: radial-gradient(circle at 50% 18%, rgba(214,170,58,.09), transparent 40%); }
@keyframes hero-cinematic {
  0% { transform: scale(1.04) translate3d(-1.2%, -.6%, 0); }
  50% { transform: scale(1.11) translate3d(1.4%, .8%, 0); }
  100% { transform: scale(1.17) translate3d(-.4%, 1.2%, 0); }
}
.hero-layout { display: block; }
#tf-home .content-heading { max-width: 820px; margin: 0 auto; text-align: center; }
#tf-home .eyebrow { display: inline-flex; margin: 0 0 24px; padding: 7px 15px; border: 1px solid rgba(214,170,58,.52); border-radius: 999px; color: #ead8a7; background: rgba(0,0,0,.12); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
#tf-home h1 { margin: 0; color: #fff; font-family: 'Noto Serif KR', serif; font-size: clamp(42px, 5vw, 62px); font-weight: 600; line-height: 1.28; letter-spacing: -.045em; text-transform: none; }
#tf-home h1 strong { color: #dfbc62; font-weight: 700; }
#tf-home .lead { max-width: 650px; margin: 26px auto 0; color: rgba(255,255,255,.84); font-family: NanumSquareNeo-Variable, sans-serif; font-size: 18px; line-height: 1.8; letter-spacing: -.025em; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.primary-cta, .secondary-cta { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border-radius: 12px; font-size: 16px; font-weight: 800; }
.primary-cta { color: #2d260f; background: #dfbc62; box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.primary-cta:hover { color: #2d260f; background: #e7c97f; transform: translateY(-2px); }
.secondary-cta { border: 1px solid rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.08); }
.secondary-cta:hover { background: rgba(255,255,255,.16); }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 24px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.78); font-size: 14px; }
.hero-trust i { margin-right: 5px; color: var(--accent); }
.hero-card { padding: 30px; border: 1px solid rgba(255,255,255,.2); border-radius: 26px; background: rgba(255,255,255,.12); box-shadow: 0 24px 70px rgba(0,0,0,.2); backdrop-filter: blur(14px); }
.hero-card-label { color: #f1dca8; font-size: 14px; font-weight: 800; }
.hero-card ol { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.hero-card li { display: flex; align-items: center; gap: 15px; padding: 16px; border-radius: 15px; background: rgba(255,255,255,.1); }
.hero-card li > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-dark); background: #f1dca8; font-size: 13px; font-weight: 900; }
.hero-card strong, .hero-card small { display: block; }
.hero-card strong { font-size: 16px; }
.hero-card small { margin-top: 5px; color: rgba(255,255,255,.68); font-size: 13px; }

.wave-divider { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; pointer-events: none; }
.wave-divider svg { display: block; width: calc(100% + 2px); height: 100%; }
.wave-divider path { fill: currentColor; }
.wave-hero { display: none; }

.service-summary { margin: -82px 16px 0; position: relative; z-index: 4; }
#tf-home2 .container.card { overflow: hidden; max-width: 960px; border: 1px solid rgba(214,170,58,.14); border-radius: var(--radius); box-shadow: var(--shadow); }
#tf-home2 .row { min-height: 185px; background-color: #fff; background-size: cover; }
#tf-home2 .sub { color: var(--muted); font-size: 15px !important; }
#tf-home2 .title { margin: 7px 0 16px; color: var(--ink); font-size: 26px !important; letter-spacing: -.04em; }
#tf-home2 .guide { border: 0; border-radius: 10px; padding: 10px 16px; background: var(--brand); font-size: 14px !important; font-weight: 800; }

#tf-product, #tf-process, #portfolio { scroll-margin-top: 95px; padding-top: 72px; margin-top: 0 !important; }
#tf-product, #tf-process, #portfolio, .banner { position: relative; isolation: isolate; overflow: hidden; }

/* 배경 13각형 장식 — 각자 정해진 범위 안에서 아주 느리게 표류 */
.deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.deco span { position: absolute; display: block; width: calc(var(--w) * var(--k, 1)); height: calc(var(--w) * var(--k, 1)); background: var(--shape-blue); clip-path: polygon(50% 0, 73.2% 5.7%, 91.1% 21.6%, 99.6% 44%, 96.8% 67.7%, 83.2% 87.4%, 62% 98.5%, 38% 98.5%, 16.8% 87.4%, 3.2% 67.7%, .4% 44%, 8.9% 21.6%, 26.8% 5.7%); animation: deco-drift var(--dur, 46s) ease-in-out infinite alternate; will-change: transform; }
@keyframes deco-drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(var(--dx, 18px), var(--dy, -14px), 0) rotate(var(--dr, 5deg)); }
}
.section-header { margin: 0 auto 40px; padding: 0; text-align: center; }
.section-header h2 { margin: 0; color: var(--ink); font-family: 'Noto Serif KR', serif; font-size: clamp(30px, 4vw, 40px); font-weight: 600; letter-spacing: -.05em; text-transform: none; }
.section-header h5 { margin: 14px 0 0; color: var(--muted); font-size: 16px; font-style: normal; line-height: 1.6; }
.section-header h5 em { font-style: normal; }
.section-header .highlight { color: #b98b1d; }
.section-header .fancy { display: none; }

.basic .company { cursor: pointer; }
.basic .card { height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 8px 22px rgba(35,40,37,.055); }
.basic .card:hover { border-color: #cbbf9f; transform: translateY(-4px); box-shadow: var(--shadow); }
.basic .card-header { display: grid; place-items: center; aspect-ratio: 1500 / 685; border: 0; background: var(--cream); }
.basic .card-header > div { width: 100%; max-height: none !important; }
.basic .card-header img { width: 100%; height: 100%; object-fit: contain; }
.basic .card-body { padding: 20px; color: var(--ink); }
.basic .card-body > div { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.basic .card-body > div > div:first-child { color: var(--muted); font-size: 14px; }
.basic .prdtAmt { color: var(--brand); font-size: 25px; font-weight: 900; letter-spacing: -.04em; }
.basic .prdtAmt::after { content: '부터'; margin-left: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }

#tf-process {
  position: relative; margin-top: 70px !important; padding: 104px 0 172px; background-color: var(--cream);
}
.wave-process-top { top: -1px; height: 98px; color: #fff; }
.wave-process-bottom { bottom: -1px; height: 104px; color: #fff; }
/* 색 띠가 바뀌는 경계는 모두 곡선으로 — 파도 색은 '위쪽 섹션'의 배경색 */
.wave-cost-bottom { bottom: -1px; height: 88px; color: #fff; }
.wave-faq-top { top: -1px; height: 88px; color: #fff; }
/* 일차 카드 — 왼쪽 라벨 패널 + 오른쪽 단계 (아이콘 왼쪽 / 텍스트 오른쪽) */
#tf-process .process-card { position: relative; display: flex; align-items: stretch; overflow: hidden; max-width: 960px; margin: 0 auto 20px; border: 1px solid #ece7dc; border-radius: 18px !important; background: #fff !important; box-shadow: 0 10px 28px rgba(37,49,44,.06) !important; }
#tf-process .process-card:last-of-type { margin-bottom: 0; }
#tf-process .day-label { flex: 0 0 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; margin: 0; padding: 0 10px; background: var(--cream); color: #b08a3e; letter-spacing: -.03em; }
#tf-process .day-label span { font-size: 15px; font-weight: 700; }
#tf-process .day-label strong { font-size: 22px; font-weight: 800; }
#tf-process .process-card > div { flex: 1 1 auto; min-width: 0; padding: 22px 20px !important; }
/* 인라인 max-width:650px + space-around 때문에 단계 폭이 글자 길이대로 달라져 카드마다 어긋났음 */
#tf-process .work-process1 { max-width: none !important; }
#tf-process .work-process1 > div { display: grid !important; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 0 8px; }
#tf-process .work-process1 > div > div:nth-child(odd) { display: grid; grid-template-columns: 54px 1fr; gap: 0 13px; align-items: center; text-align: left !important; }
#tf-process .work-process1 > div > div:nth-child(odd) > div:first-child { grid-row: span 2; margin-bottom: 0 !important; }
/* style3.css:867 에서 92x90px 로 지정돼 있어 그리드 칸을 넘침 — 여기서 재정의 */
#tf-process .work-process i.fa, #tf-process .work-process2 i.fa, #tf-process .work-process3 i.fa { display: grid; place-items: center; width: 54px; height: 54px; margin: 0; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--day-solid); font-size: 22px; box-shadow: 0 6px 14px var(--day-shadow); }

/* 일차별 색 구분 — 라벨 글자는 배경 대비 4.5:1, 흰 아이콘은 3:1 이상 확보 */
#tf-process .day-1 { --day-ink: #8a6522; --day-solid: #b08428; --day-shadow: rgba(176,132,40,.26); --day-panel: #fbf4e4; }
#tf-process .day-2 { --day-ink: #9c5b2e; --day-solid: #bd7440; --day-shadow: rgba(189,116,64,.24); --day-panel: #fcf1e8; }
#tf-process .day-3 { --day-ink: #456e58; --day-solid: #628374; --day-shadow: rgba(98,131,116,.26); --day-panel: #eff5f1; }
#tf-process .process-card .day-label { color: var(--day-ink); background: var(--day-panel); }
#tf-process .fa-angle-double-right { padding: 0 !important; color: #d8d2c4 !important; font-size: 18px !important; }
#tf-process .mini-title { margin: 0 0 6px; color: var(--ink); font-size: 17px; font-weight: 800; }
#tf-process .work-process1 h5 { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; word-break: keep-all; }

#portfolio {
  padding-top: 76px; padding-bottom: 80px;
}
#portfolio .main-portfolio { width: 100%; }
.photo { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 12px; }
/* Safari에서 CSS 다단과 lazy 이미지의 높이 계산이 어긋나므로 명시적인 2열 그리드 사용 */
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; }
.photo-item { position: relative; display: block; aspect-ratio: 16 / 10; margin: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 8px 22px rgba(35,40,37,.06); }
.photo-item img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.88); transition: transform .45s ease, filter .3s ease; }
.photo-item::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20,22,21,0) 52%, rgba(20,22,21,.42)); opacity: 0; transition: opacity .3s ease; }
.photo-item:hover img, .photo-item:focus-visible img { transform: scale(1.045); filter: saturate(1); }
.photo-item:hover::after, .photo-item:focus-visible::after { opacity: 1; }
.photo-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.34); backdrop-filter: blur(6px); opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.photo-item:hover .photo-zoom, .photo-item:focus-visible .photo-zoom { opacity: 1; transform: none; }

/* 라이트박스 스킨 — 모달 백드롭/라운드와 톤을 맞춤 */
.lightboxOverlay { position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; background-color: #1f2522 !important; opacity: .84 !important; }
/* 스테이지 크기를 고정해 사진 비율이 달라도 버튼 위치가 움직이지 않게 함 */
.lightbox { position: fixed !important; top: 50% !important; left: 0; transform: translateY(-50%); }
.lb-outerContainer { width: min(1180px, calc(100vw - 28px)) !important; height: min(720px, calc(100vh - 170px)) !important; border-radius: 0; background-color: transparent; }
.lb-container { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lightbox .lb-image { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.lb-dataContainer { width: min(1180px, calc(100vw - 28px)) !important; padding-top: 14px; }
.lb-data .lb-details { width: calc(100% - 60px); }
.lb-data .lb-caption { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.02em; line-height: 1.45; }
.lb-data .lb-number { margin-top: 5px; padding-bottom: 0; color: rgba(255,255,255,.6); font-size: 12px; }
.lb-data .lb-close { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.14) url(../lib/images/close.png) no-repeat center / 16px; border: 1px solid rgba(255,255,255,.26); opacity: 1; }
.lb-data .lb-close:hover { background-color: rgba(255,255,255,.28); }
.lb-nav a.lb-prev, .lb-nav a.lb-next { position: relative; background-image: none !important; opacity: 1 !important; }
.lb-nav a.lb-prev::before, .lb-nav a.lb-next::before { content: ''; position: absolute; top: 50%; width: 46px; height: 46px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background-color: rgba(255,255,255,.16); background-repeat: no-repeat; background-position: center; background-size: 14px; backdrop-filter: blur(4px); transition: background-color .2s ease; }
.lb-nav a.lb-prev::before { left: 12px; background-image: url(../lib/images/prev.png); }
.lb-nav a.lb-next::before { right: 12px; background-image: url(../lib/images/next.png); }
.lb-nav a.lb-prev:hover::before, .lb-nav a.lb-next:hover::before { background-color: rgba(255,255,255,.32); }
.banner { margin-top: 30px !important; margin-bottom: 90px; }
.banner .container { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.banner .row { border: 0 !important; }

#tf-footer { position: relative !important; width: 100%; height: 196px !important; padding-top: 108px; color: rgba(255,255,255,.9); background: linear-gradient(110deg, #183562 0%, #244b89 52%, #0e2344 100%); }
#tf-footer .custom-shape-divider-top-1693533591 { display: none; }
#tf-footer .content { height: 76px !important; align-items: center !important; }
/* 파도 색은 위 섹션(상담 신청)의 배경색 */
.wave-footer { top: -1px; height: 140px; color: var(--cream); }
/* 남색 워드마크를 네이비 푸터 위에 흰색으로 반전해서 얹는다 */
#tf-footer .content { flex-direction: column; gap: 9px; }
.footer-word { height: 19px; width: auto; filter: brightness(0) invert(1); opacity: .92; }

.modal-backdrop.show { background: #1f2522; opacity: .58; backdrop-filter: blur(3px); }
.modal-content { overflow: hidden; border: 0; border-radius: 20px; box-shadow: 0 28px 80px rgba(0,0,0,.22); }
.modal-header { padding: 20px 24px; border-bottom-color: var(--line); }
.modal-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 800; }
.modal-price { padding: 3px 11px; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: 14px; font-weight: 700; }
.modal .btn-success { border-color: var(--brand); background: var(--brand); }
.modal-cta { justify-content: center; padding: 14px 20px; border-top: 1px solid var(--line); background: #fff; }
.modal-cta .btn { min-width: 288px; border-radius: 12px; font-size: 16px; font-weight: 800; }

/* ===== 상품 팝업 — 업체 브랜드색(--bp)을 JS 가 .modal-content 에 넣어준다 ===== */
.prodListModal .modal-content { --bp: var(--brand); --logo-bg: #fff; }
.prodListModal .modal-header { position: relative; min-height: 140px; padding: 0; overflow: hidden; border-bottom-color: color-mix(in srgb, var(--bp) 24%, #fff); background: var(--logo-bg); }
.prodListModal .modal-header::before { content: ''; position: absolute; top: 0; right: 0; left: 0; z-index: 2; height: 4px; background: var(--bp); }
/* 로고 이미지는 baseline 정렬이면 가격 배지가 처진다 */
.prodListModal .modal-title { position: absolute; inset: 0; z-index: 1; display: block; color: color-mix(in srgb, var(--bp) 80%, #1b1c1e); }
/* 팝업 전용 이미지는 실제 로고 바깥 여백만 잘라냈으므로 contain으로 전체를 보여준다 */
.prod-logo { display: block; width: 100%; height: 100%; margin: 0 auto; padding: 12px 64px; border: 0; border-radius: 0; background: transparent; object-fit: contain; object-position: center; box-shadow: none; }
.prodListModal .modal-price { position: absolute; right: 22px; bottom: 18px; z-index: 2; color: #fff; background: var(--bp); box-shadow: 0 5px 14px rgba(0,0,0,.14); }
.prodListModal .btn-close { position: absolute; top: 18px; right: 20px; z-index: 3; width: 34px; height: 34px; padding: 0; border-radius: 50%; background-color: rgba(255,255,255,.9); background-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.12); opacity: .82; }
.prodListModal .prod-chip { background: color-mix(in srgb, var(--bp) 7%, #fff); }
.prodListModal .prod-chip i { color: var(--bp); }
.prodListModal .prod-group { border-color: color-mix(in srgb, var(--bp) 20%, #fff); }
.prodListModal .prod-group-title { color: color-mix(in srgb, var(--bp) 76%, #14161a); background: color-mix(in srgb, var(--bp) 9%, #fff); }
.prodListModal .prod-group-title i, .prodListModal .prod-group-title span { color: var(--bp); }
.prodListModal .telBtn { border-color: var(--bp); background: var(--bp); }
.prodListModal .telBtn:hover { border-color: color-mix(in srgb, var(--bp) 82%, #000); background: color-mix(in srgb, var(--bp) 82%, #000); }
/* 업체를 넘길 때 내용만 부드럽게 갈아끼운다 */
.prodList.is-in { animation: prod-swap .3s ease both; }
@keyframes prod-swap { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.prod-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.prod-cta .telBtn { grid-column: 2; }
.prod-nav { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; max-width: 100%; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: 13.5px; font-weight: 700; }
.prod-nav:hover { color: var(--bp); border-color: color-mix(in srgb, var(--bp) 45%, #fff); background: color-mix(in srgb, var(--bp) 5%, #fff); }
.prodPrev { grid-column: 1; justify-self: start; }
.prodNext { grid-column: 3; justify-self: end; }
.prod-cta .telBtn { min-width: 240px; }
.prod-nav .nm { max-width: 175px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prod-nav i { flex: 0 0 auto; font-size: 12px; }
/* modal-lg 는 992px 미만에서 폭이 500px 로 줄어 업체명이 잘린다 — 그 아래로는 화살표만 */
@media (max-width: 991px) {
  .prod-cta { grid-template-columns: auto minmax(0, 1fr) auto; }
  .prod-nav .nm { display: none; }
}

.prod-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.prod-chip { padding: 6px 13px; border-radius: 999px; color: var(--muted); background: var(--cream); font-size: 13px; font-weight: 700; }
.prod-chip i { margin-right: 5px; color: var(--brand); }
.prod-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.prod-group { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.prod-group-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 11px 14px; color: var(--brand-dark); background: var(--brand-soft); font-size: 14.5px; font-weight: 800; }
.prod-group-title i { flex: 0 0 auto; color: var(--brand); font-size: 15px; }
.prod-group-title span { min-width: 22px; height: 22px; display: grid; place-items: center; margin-left: auto; padding: 0 6px; border-radius: 999px; color: var(--brand); background: rgba(255,255,255,.75); font-size: 12px; font-weight: 700; }
.prod-rows { margin: 0; }
.prod-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); }
.prod-row:first-child { border-top: 0; }
.prod-row dt { color: var(--muted); font-size: 13.5px; font-weight: 600; word-break: keep-all; }
.prod-row dd { margin: 0; color: var(--ink); font-size: 13.5px; line-height: 1.5; white-space: pre-line; word-break: keep-all; }
.prod-row.is-empty dd { color: #c6c2b7; }

/* 이용가이드 팝업 */
.guideModal .modal-body { counter-reset: guide; }
/* 조각난 <div><span> 문장들이 공백 없이 붙어 나오던 문제 */
.guideTitleBg .d-flex.flex-wrap,
.guideModal .guide-lead .d-flex.flex-wrap,
.guideModal .guide-p .d-flex.flex-wrap { gap: 0 6px; }

.guideTitleBg { overflow: hidden; border-radius: 16px !important; background: linear-gradient(118deg, #6f4a28 0%, #8d5f33 54%, #a2703c 100%) !important; }
.guideTitleBg > .d-flex > .p-3 { flex: 1 1 auto; min-width: 0; padding: 20px 4px 20px 22px !important; }
.guideTitleBg h4 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.guideTitleBg h5 { margin: 9px 0 0; color: rgba(255,255,255,.84); font-size: 14px; font-weight: 500; line-height: 1.6; }
.guideTitleBg img { max-height: 122px; width: auto; -webkit-mask-image: linear-gradient(to left, #000 66%, transparent); mask-image: linear-gradient(to left, #000 66%, transparent); }

/* padding 이 row 의 gutter(padding-top)를 덮어써서 타이틀 배너와 붙어 있었음 — margin 으로 띄운다 */
.guide-steps { margin: 16px 4px 0; padding: 24px 6px 18px; border-radius: 16px; background: var(--cream); }
.guide-steps > .d-flex { counter-reset: step; }
.guide-steps .text-center { position: relative; counter-increment: step; }
.guide-steps .text-center::before { content: counter(step); position: absolute; top: -2px; left: 50%; z-index: 1; display: grid; place-items: center; width: 21px; height: 21px; margin-left: 14px; border-radius: 50%; color: #fff; background: var(--brand); font-size: 11px; font-weight: 800; line-height: 1; }
.guide-steps .fs-1 { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%; color: var(--brand); background: #fff; font-size: 24px !important; line-height: 1; box-shadow: 0 6px 16px rgba(37,49,44,.09); }
.guide-steps .text-center > div:not(.fs-1) { color: var(--ink); font-size: 13px; font-weight: 700; }
.guide-steps .bi-chevron-right { color: #c3bdae; font-size: 13px; }

/* 항목 제목 위 간격을 gy-4(24px)·pt-3(16px) 대신 한 값으로 통일 */
.guideModal .guide-h { counter-increment: guide; padding-top: 30px !important; padding-bottom: 10px; }
.guideModal .guide-h h4 { margin: 0; color: var(--ink); font-size: 19px; }
.guideModal .guide-h .d-flex > div:first-child h4::before { content: counter(guide, decimal-leading-zero); margin-right: 9px; color: var(--brand); font-family: Lato, sans-serif; font-size: 15px; font-weight: 900; }
.guideModal .guide-h .bi { color: var(--accent); }
.guideModal .guide-lead, .guideModal .guide-p { margin: 0 4px; background: var(--brand-soft); }
.guideModal .guide-lead { padding: 20px 22px 10px !important; border-radius: 14px 14px 0 0; color: var(--brand-dark); }
.guideModal .guide-p { padding: 10px 22px 20px !important; border-radius: 0 0 14px 14px; color: var(--muted); line-height: 1.75; }
.guideModal .guide-p .pt-2 { padding-top: 12px !important; }
.guideModal .modal-body { padding: 18px 18px 22px !important; }


/* ================= 추가 섹션 (후불제 / 비용 / 지역 / FAQ / 상담신청) ================= */
/* 섹션마다 골격을 다르게 가져감 — 좌우 분할(후불제) / 가격 밴드(비용) /
   사진 겹침 밴드(지역) / 2단 사이드 제목(FAQ) / 다크 마감 밴드(상담) */
#tf-postpaid, #tf-cost, #tf-area, #tf-faq, #tf-consult { position: relative; isolation: isolate; overflow: hidden; scroll-margin-top: 95px; padding: 76px 0; }
#tf-cost, #tf-faq { background-color: var(--cream); }
/* 파도가 들어간 띠는 위/아래 여백을 파도 높이만큼 더 준다 */
/* 비용 안내는 윗변을 타원 돔으로 — 두 코너 반지름이 각각 폭의 50%라 가운데에서 만나 매끈한 돔이 된다 */
#tf-cost { padding: 132px 0 128px; border-radius: 50% 50% 0 0 / 130px 130px 0 0; }
#tf-faq { padding: 122px 0 84px; }
.section-visual { width: min(290px, 76vw); aspect-ratio: 4 / 3; margin: -10px auto 22px; overflow: hidden; border: 1px solid rgba(37,49,44,.07); border-radius: 20px; background: #f7f7f5; box-shadow: 0 12px 30px rgba(37,49,44,.08); }
.section-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 섹션 눈표 — 제목 위 작은 라벨 */
.eyebrow-tag { display: inline-flex; align-items: center; margin: 0 0 14px; padding: 6px 14px; border: 1px solid rgba(185,139,29,.32); border-radius: 999px; color: #9c761a; background: rgba(214,170,58,.09); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }

/* 헤더 변형: 사진 좌 / 텍스트 우 */
.section-header.is-split { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: center; gap: 40px; max-width: 940px; text-align: left; }
/* 아치형 사진 — 히어로의 타원 클립과 같은 곡선 어휘 */
.section-header.is-split .section-visual { width: 100%; aspect-ratio: 1 / 1.05; margin: 0; border-radius: 999px 999px 28px 28px; }
.section-header.is-split .section-visual img { object-position: center 62%; }
.section-header.is-split h5 { max-width: 34ch; }
/* 헤더 변형: 사진 없이 텍스트만 */
.section-header.is-plain { max-width: 640px; }

/* 선불제 vs 후불제 — 카드 2장이 아니라 하나의 패널을 가운데 VS로 가름 */
.cmp-panel { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 34px; background: #fff; box-shadow: 0 16px 40px rgba(37,49,44,.07); }
.cmp-panel { padding: 10px; }
.cmp-col { padding: 24px 24px 18px; border-radius: 26px; }
.cmp-col.is-ours { background: linear-gradient(180deg, #eef5f1 0%, #f8fbf9 70%); }
/* 두 카드 사이 여백 한가운데 — 세로 중앙에 원형 배지 */
.cmp-vs { position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -50%); }
.cmp-vs span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: #a49c8c; background: #fff; font-family: Lato, sans-serif; font-size: 13px; font-weight: 900; letter-spacing: .04em; box-shadow: 0 4px 12px rgba(37,49,44,.07); }
.cmp-title { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--muted); font-size: 19px; font-weight: 800; }
.cmp-title > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #817b70; background: #f3f1ec; font-size: 16px; }
.cmp-col.is-ours .cmp-title { color: var(--brand-dark); }
.cmp-col.is-ours .cmp-title > i { color: #fff; background: var(--brand); }
.cmp-badge { padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--brand); font-size: 12px; font-weight: 700; }
.cmp-rows { margin: 0; }
.cmp-rows > div { display: grid; gap: 4px; padding: 13px 0; border-top: 1px dashed var(--line); }
.cmp-rows > div:first-child { border-top: 0; padding-top: 0; }
.cmp-rows dt { color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.cmp-rows dd { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; word-break: keep-all; }
.cmp-col.is-ours .cmp-rows dd { color: var(--brand-dark); }
.cmp-note { max-width: 900px; margin: 18px auto 0; padding: 14px 16px; border-radius: 12px; color: var(--brand-dark); background: var(--brand-soft); font-size: 14.5px; text-align: center; word-break: keep-all; }
.cmp-note i { margin-right: 6px; }

/* 비용 안내 — 가격대를 크게 앞세운 밴드 + 세로형 아이콘 타일 */
.cost-band { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: stretch; max-width: 900px; margin: 0 auto 40px; padding: 12px; border-radius: 999px; background: #fff; box-shadow: 0 18px 44px rgba(37,49,44,.09); }
/* 사진 안쪽 끝을 반원으로 — 캡슐형 밴드 */
.cost-band-photo { overflow: hidden; border-radius: 999px; }
.cost-band-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cost-band-body { display: flex; flex-direction: column; justify-content: center; padding: 26px 56px 26px 34px; }
.cost-band-label { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.cost-range { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 0; color: var(--brand-dark); font-family: 'Noto Serif KR', serif; letter-spacing: -.03em; }
.cost-range strong { font-size: clamp(34px, 4.6vw, 46px); font-weight: 700; }
.cost-range em { font-style: normal; font-size: 16px; font-weight: 600; }
.cost-range > span { margin: 0 8px; color: #c9c2b2; font-size: 26px; }
.cost-band-sub { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; word-break: keep-all; }
.cost-sub { max-width: 900px; margin: 0 auto 14px; color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.cost-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; max-width: 900px; margin: 0 auto; }
.cost-item { display: grid; justify-items: center; gap: 10px; padding: 22px 8px; border: 1px solid rgba(37,49,44,.07); border-radius: 999px 999px 24px 24px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700; text-align: center; word-break: keep-all; }
.cost-item i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 20px; }
.cost-help { max-width: 900px; margin: 16px auto 0; color: var(--muted); font-size: 14px; }
.cost-help a { color: var(--brand); font-weight: 700; }
.cost-extra { position: relative; max-width: 900px; margin: 26px auto 0; padding: 4px 0 4px 20px; }
.cost-extra::before { content: ''; position: absolute; top: 2px; bottom: 2px; left: 0; width: 3px; border-radius: 999px; background: var(--gold); }
.cost-extra h3 { margin: 0 0 10px; color: var(--ink); font-size: 16px; font-weight: 800; }
.cost-extra p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; word-break: keep-all; }

/* 서비스 지역 — 사진 위로 흰 패널이 겹치는 와이드 밴드 */
#tf-area { padding: 86px 0; }
.area-feature { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: center; max-width: 1140px; margin: 0 auto; padding: 0 12px; }
/* 사진은 왼쪽 끝을 반원으로 깎고, 겹쳐 올라오는 패널도 큰 곡률 */
.area-photo { overflow: hidden; border-radius: 999px 28px 28px 999px; box-shadow: 0 20px 50px rgba(37,49,44,.12); }
.area-photo img { display: block; width: 100%; height: 100%; max-height: 400px; object-fit: cover; }
.area-panel { position: relative; z-index: 1; margin-left: -80px; padding: 38px 38px 34px; border: 1px solid rgba(37,49,44,.06); border-radius: 34px; background: #fff; box-shadow: 0 22px 54px rgba(37,49,44,.13); }
.area-panel h2 { margin: 0; color: var(--ink); font-family: 'Noto Serif KR', serif; font-size: clamp(26px, 3vw, 33px); font-weight: 600; letter-spacing: -.05em; line-height: 1.35; text-transform: none; word-break: keep-all; }
.area-panel .highlight { color: #b98b1d; }
.area-panel p { margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; word-break: keep-all; }
.area-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.area-tags li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: 13.5px; font-weight: 700; }
.area-tags i { color: var(--brand); font-size: 13px; }

/* FAQ — 왼쪽 제목 고정, 오른쪽 목록 */
.faq-layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px; max-width: 1040px; margin: 0 auto; }
.faq-aside { position: sticky; top: 118px; align-self: start; }
.faq-aside h2 { margin: 0; color: var(--ink); font-family: 'Noto Serif KR', serif; font-size: clamp(28px, 3.4vw, 36px); font-weight: 600; letter-spacing: -.05em; line-height: 1.35; text-transform: none; }
.faq-aside .highlight { color: #b98b1d; }
.faq-aside p { margin: 16px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.faq-aside a { color: var(--brand); font-weight: 700; }
.faq-list { display: grid; gap: 10px; counter-reset: faq; }
/* 캡슐형 아코디언 — 열리면 곡률이 조금 더 부드러워짐 */
.faq-item { overflow: hidden; border: 1px solid rgba(37,49,44,.07); border-radius: 999px; background: #fff; transition: border-radius .25s ease, box-shadow .25s ease; }
.faq-item[open] { border-radius: 30px; box-shadow: 0 12px 30px rgba(37,49,44,.07); }
.faq-item summary { display: flex; align-items: center; gap: 14px; padding: 18px 26px; color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; word-break: keep-all; counter-increment: faq; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: counter(faq, decimal-leading-zero); flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #9c761a; background: rgba(214,170,58,.13); font-family: Lato, sans-serif; font-size: 13px; font-weight: 900; }
.faq-item summary::after { content: '\ff0b'; flex: 0 0 auto; margin-left: auto; color: var(--brand); font-size: 17px; transition: transform .25s ease; }
.faq-item[open] summary { color: var(--brand-dark); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--brand); }
.faq-body { padding: 0 30px 22px 70px; color: var(--muted); font-size: 14.5px; line-height: 1.8; word-break: keep-all; }
.faq-body a { color: var(--brand); font-weight: 700; }

/* 상담 신청 — FAQ 와 같은 크림 바탕 위에 흰 라운드 패널을 얹은 마감 */
#tf-consult { padding: 12px 0 88px; background-color: var(--cream); }
.consult-panel { max-width: 820px; margin: 0 auto; padding: 52px 56px 44px; border-radius: 48px; background: #fff; box-shadow: 0 22px 54px rgba(37,49,44,.08); }
.consult-panel .section-header { max-width: 640px; margin-bottom: 30px; }
/* 마감 CTA — 상조모아 심볼로 누가 접수하는지 각인 */
.consult-symbol { display: block; height: 52px; width: auto; margin: 0 auto 16px; }
.consult-panel .section-header h2 { font-size: clamp(26px, 3vw, 33px); line-height: 1.4; word-break: keep-all; }
.consult-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
/* 폼 아래 한 줄 — 아이콘 배지 없이 담백한 구분점 */
.consult-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; }
.consult-points li { position: relative; color: var(--muted); font-size: 13.5px; word-break: keep-all; }
.consult-points li + li::before { content: ''; position: absolute; top: 50%; left: -12px; width: 3px; height: 3px; border-radius: 50%; background: #cfcabb; transform: translateY(-50%); }
.cf-row { display: grid; gap: 7px; }
.cf-full { grid-column: 1 / -1; }
.cf-row label { color: var(--ink); font-size: 14px; font-weight: 700; }
.cf-row label span { color: #c0392b; }
.cf-row input, .cf-row textarea { width: 100%; padding: 13px 20px; border: 1px solid transparent; border-radius: 999px; color: var(--ink); background: #f6f4ef; font-family: inherit; font-size: 15px; }
.cf-row textarea { border-radius: 24px; }
.cf-row input::placeholder, .cf-row textarea::placeholder { color: #b1ada2; }
.cf-row input:focus, .cf-row textarea:focus { outline: 2px solid rgba(40,116,85,.3); outline-offset: 1px; border-color: var(--brand); background: #fff; }
.cf-row input[aria-invalid="true"] { border-color: #c0392b; }
.cf-row textarea { resize: vertical; }
.cf-status { grid-column: 1 / -1; margin: 0; font-size: 14px; }
.cf-status:empty { display: none; }
.cf-status.is-error { color: #c0392b; }
.cf-status.is-info { color: #b3651f; }
.cf-actions { grid-column: 1 / -1; text-align: center; }
.cf-submit { min-height: 52px; min-width: 260px; padding: 0 30px; border: 0; border-radius: 999px; color: #fff; background: var(--brand); font-size: 16px; font-weight: 800; }
.cf-submit:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* 태블릿 — 겹침/2단 구성을 먼저 푼다 */
@media (max-width: 991px) {
  .section-header.is-split { grid-template-columns: 1fr; gap: 22px; max-width: 560px; text-align: center; }
  .section-header.is-split .section-visual { width: min(290px, 76vw); margin: 0 auto; }
  .section-header.is-split h5 { max-width: none; }
  .cost-band { grid-template-columns: 1fr; max-width: 560px; padding: 10px; border-radius: 40px; }
  .cost-band-photo { border-radius: 32px; }
  .cost-band-photo img { max-height: 220px; }
  .cost-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .area-feature { grid-template-columns: 1fr; padding: 0 18px; }
  .area-photo { border-radius: 34px; }
  .area-photo img { max-height: 300px; }
  .area-panel { margin: -56px 16px 0; padding: 28px 26px; }
  .faq-layout { grid-template-columns: 1fr; gap: 28px; max-width: 720px; }
  .consult-panel { max-width: 720px; padding: 42px 38px 36px; border-radius: 40px; }
  .faq-aside { position: static; }
}

@media (max-width: 767px) {
  #tf-postpaid, #tf-area { padding: 56px 0; }
  #tf-cost { padding: 84px 0 96px; border-radius: 50% 50% 0 0 / 62px 62px 0 0; }
  #tf-faq { padding: 88px 0 64px; }
  #tf-consult { padding: 8px 0 60px; }
  .wave-cost-bottom, .wave-faq-top { height: 58px; }
  .eyebrow-tag { margin-bottom: 12px; padding: 5px 12px; font-size: 12px; }
  .section-header.is-split .section-visual { border-radius: 140px 140px 22px 22px; }
  /* 비교 패널: 위아래로 쌓고 VS 는 두 칸 사이 경계에 */
  .cmp-panel { grid-template-columns: 1fr; padding: 8px; border-radius: 28px; }
  .cmp-col { padding: 20px 18px 16px; border-radius: 22px; }
  .cmp-col.is-ours { background: #eef5f1; }
  .cmp-vs { top: auto; bottom: 50%; left: 50%; transform: translate(-50%, 50%); }
  .cmp-vs span { width: 38px; height: 38px; font-size: 12px; }
  .cost-band { margin-bottom: 30px; border-radius: 34px; }
  .cost-band-photo { border-radius: 26px; }
  .cost-band-body { padding: 22px 20px; }
  .cost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cost-item { padding: 18px 8px; border-radius: 999px 999px 20px 20px; font-size: 13px; }
  .cost-item i { width: 42px; height: 42px; font-size: 18px; }
  .cost-extra { padding-left: 16px; }
  #tf-area { padding: 48px 0 56px; }
  .area-photo { border-radius: 28px; }
  .area-panel { margin: -44px 10px 0; padding: 24px 22px; border-radius: 26px; }
  .area-tags li { padding: 7px 12px; font-size: 12.5px; }
  .faq-item, .faq-item[open] { border-radius: 24px; }
  .faq-item summary { padding: 15px 18px; gap: 11px; font-size: 15px; }
  .faq-item summary::before { width: 26px; height: 26px; font-size: 12px; }
  .faq-body { padding: 0 18px 18px 56px; font-size: 14px; }
  .consult-panel { padding: 32px 22px 28px; border-radius: 30px; }
  .consult-form { grid-template-columns: 1fr; padding: 0; }
  .consult-points { gap: 6px 18px; font-size: 13px; }
  .cf-submit { width: 100%; min-width: 0; }
  .section-visual { width: min(230px, 72vw); margin-top: -4px; margin-bottom: 18px; border-radius: 22px; }
  .section-header.is-split .section-visual { width: min(230px, 72vw); }
}

@media (max-width: 991px) {
  #tf-home, #tf-home .overlay { min-height: auto; }
}

@media (max-width: 575px) {
  .photo-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 767px) {
  #tf-menu .nav-shell { min-height: 66px; padding: 0 18px; }
  #tf-menu .navbar-brand { gap: 8px; }
  #tf-menu .navbar-brand .brand-mark { height: 34px; }
  #tf-menu .navbar-brand .brand-word { height: 17px; }
  .brand-text small { display: none; }
  .nav-links a { display: none; }
  .nav-guide { min-height: 38px; padding: 0 14px; font-size: 13px; }
  #tf-home { min-height: 560px; margin: 0; border-radius: 0; clip-path: ellipse(112% 97% at 50% 0%); }
  #tf-home::before { background-position: 58% center; }
  #tf-home .overlay { min-height: 560px; padding: 48px 0 124px; }
  .hero-layout { padding: 0 22px; }
  #tf-home .eyebrow { font-size: 12px; }
  #tf-home h1 { font-size: 40px; }
  #tf-home .lead { display: block !important; margin-top: 22px; font-size: 16px; line-height: 1.7; }
  .primary-cta, .secondary-cta { width: 100%; }
  .hero-trust { gap: 10px 16px; }
  .service-summary { margin: -66px 12px 0; }
  #tf-home2 .row { min-height: 140px; }
  #tf-home2 .title { font-size: 18px !important; }
  #tf-home2 .guide { font-size: 12px !important; }
  #tf-product, #portfolio { padding-top: 56px; }
  #tf-process { padding-top: 82px; padding-bottom: 136px; }
  .deco span { --k: .62; }
  .wave-process-top, .wave-process-bottom { height: 72px; }
  .section-header { margin-bottom: 28px; }
  /* 모바일: 라벨을 위로, 단계는 세로 타임라인 */
  #tf-process .process-card { flex-direction: column; }
  #tf-process .day-label { flex: 0 0 auto; flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px; padding: 11px 16px; }
  #tf-process .day-label span { font-size: 13px; }
  #tf-process .day-label strong { font-size: 15px; }
  #tf-process .rounded.shadow-sm > div { overflow: visible; padding: 8px 16px 12px !important; }
  #tf-process .work-process1 { min-width: 0; }
  /* 모바일: 가로 3분할 → 세로 타임라인 */
  /* 데스크톱의 5열 그리드(1fr auto 1fr auto 1fr)를 한 열로 되돌림 */
  #tf-process .work-process1 > div { grid-template-columns: 1fr !important; align-items: stretch !important; gap: 0 !important; }
  #tf-process .work-process1 > div > div:nth-child(even) { display: none; }
  #tf-process .work-process1 > div > div:nth-child(odd) { position: relative; display: grid; width: auto; grid-template-columns: 54px 1fr; gap: 0 14px; padding: 16px 0; text-align: left !important; }
  #tf-process .work-process1 > div > div:nth-child(n+3):nth-child(odd) { border-top: 1px solid var(--line); }
  #tf-process .work-process1 > div > div:nth-child(odd) > div:first-child { grid-row: span 2; margin-bottom: 0 !important; }
  #tf-process .work-process1 > div > div:nth-child(odd) > div.d-none { display: block !important; }
  #tf-process .work-process1 > div > div:nth-child(odd)::before { content: ''; position: absolute; top: 72px; bottom: -16px; left: 26px; width: 2px; background: var(--line); }
  #tf-process .work-process1 > div > div:last-child::before { display: none; }
  #tf-process .work-process i.fa, #tf-process .work-process2 i.fa, #tf-process .work-process3 i.fa { width: 50px; height: 50px; font-size: 20px; }
  #tf-process .mini-title { margin-bottom: 5px; font-size: 16px; word-break: keep-all; }
  #tf-process .work-process1 h5 { font-size: 13.5px; }
  .modal-dialog { position: fixed; right: 0; bottom: 0; left: 0; max-width: 100%; margin: 0; }
  .modal-dialog-centered { min-height: 0; align-items: flex-end; }
  .modal.fade .modal-dialog { transform: translateY(100%); }
  .modal.show .modal-dialog { transform: none; }
  .modal-content { max-height: 88dvh; border-radius: 22px 22px 0 0; }
  .modal-header { position: relative; padding: 26px 18px 14px; }
  .modal-header::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 2px; background: #d8d5cc; }
  .modal-title { font-size: 18px; }
  .prod-groups { grid-template-columns: 1fr; }
  .modal-cta { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal-cta .btn { width: 100%; min-width: 0; }
  .prodListModal .modal-header { min-height: 110px; padding: 0; }
  .prod-logo { width: 100%; padding: 10px 44px; }
  .prodListModal .modal-price { right: 14px; bottom: 12px; font-size: 12px; }
  .prodListModal .btn-close { top: 14px; right: 14px; width: 32px; height: 32px; }
  /* 좁은 화면에서는 업체명을 빼고 화살표만 — [‹] [전화 상담하기] [›] 한 줄 */
  .prod-cta { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .prod-nav { min-height: 42px; padding: 0 13px; }
  .prod-nav .nm { display: none; }
  .guideTitleBg img { max-height: 92px; }
  /* 모바일은 사진 폭이 항상 화면 폭이라 가로 위치가 이미 고정 — 높이는 자연스럽게 */
  .lb-outerContainer, .lb-container { height: auto !important; }
  .lightbox .lb-image { max-height: calc(100dvh - 190px) !important; }
  .lb-nav a.lb-prev::before, .lb-nav a.lb-next::before { width: 42px; height: 42px; }
  #tf-footer { height: 154px !important; padding-top: 76px; }
  #tf-footer .content { height: 64px !important; font-size: 11px; }
  .wave-footer { height: 102px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .deco span { transform: none !important; }
  [data-scroll="out"] { opacity: 1 !important; }
  #tf-home::before { transform: scale(1.08); }
}
