/* 부기사 리뉴얼 전체 페이지 공통 반응형 스타일 */

@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .wrap {
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 긴 히어로 문구가 화면 밖으로 밀리지 않도록 모바일 크기를 통일합니다. */
  .cph-in,
  .hero-in {
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .cph-h,
  .hero-in .h1,
  .h8-h1 {
    width: 100%;
    max-width: calc(100vw - 40px) !important;
    margin-left: auto;
    margin-right: auto;
    font-size: 27px !important;
    line-height: 1.24 !important;
    letter-spacing: -0.045em;
    white-space: normal;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .cph-h em {
    display: block;
    max-width: calc(100vw - 40px) !important;
  }

  .h2,
  .cta-h {
    font-size: 25px !important;
    line-height: 1.3 !important;
    text-wrap: balance;
  }

  .cph-p,
  .cph-d,
  .hero-in .lead,
  .hero-in .sub,
  .cta-d {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px !important;
    line-height: 1.6 !important;
    white-space: normal !important;
    overflow-wrap: break-word;
  }

  /* 좁은 화면의 주요 CTA 버튼은 위아래 두 줄로 배치합니다. */
  .cta-p .cta-b {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cta-p .cta-b > .btn {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto !important;
    white-space: normal;
  }

  .cta-p .btn,
  .hero-in .btn,
  .sv-hb .btn,
  .pr-card .btn {
    min-height: 52px;
    padding: 0 16px;
    font-size: 15px;
    line-height: 1.35;
    white-space: normal;
  }

  /* 가격 카드의 데스크톱용 음수 여백을 모바일 패딩에 맞춥니다. */
  .pr-cards,
  .pr-pick,
  .pr-cm,
  .pr-cost {
    grid-template-columns: minmax(0, 1fr) !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    margin-left: auto;
    margin-right: auto;
  }

  .pr-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    padding: 28px 22px;
    border-radius: 24px;
    overflow: hidden;
  }

  .pr-hd {
    width: auto;
    min-width: 0;
    margin: -28px -22px 0 !important;
    padding: 28px 22px 24px !important;
    border-radius: 24px 24px 0 0;
  }

  .pr-top,
  .pr-price,
  .pr-spec li,
  .pr-zc,
  .pr-zc-b {
    min-width: 0;
    flex-wrap: wrap;
  }

  .pr-price b {
    font-size: clamp(34px, 10vw, 40px);
    line-height: 1.15;
  }

  .pr-spec,
  .pr-tags {
    width: 100%;
    min-width: 0;
  }

  .pr-spec {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pr-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .pr-tags li,
  .pr-spec b,
  .pr-spec span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  /* 고객사례는 좁은 화면에서 한 열로 읽기 쉽게 표시합니다. */
  .cpg-bar {
    min-width: 0;
    overflow: visible;
  }

  .cpg-tabs {
    max-width: none;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    overflow-y: hidden;
    margin-left: -20px !important;
    margin-right: -20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    scroll-padding: 0 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .cpg-tabs::-webkit-scrollbar {
    display: none;
  }

  .cpg-tab {
    flex: 0 0 auto !important;
    min-height: 42px;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  .cpg-g {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
  }

  .cpc {
    width: 100%;
    min-width: 0;
  }

  .cpc-v {
    height: 120px;
  }

  .cpc-n {
    min-height: 0;
    font-size: 15px;
    line-height: 1.45;
  }

  /* 상품 차이 비교표는 모바일에서 열을 찌그러뜨리지 않고 표 영역만 좌우로 탐색합니다. */
  .dt {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 10px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #aeb9d8 #eef1f7;
  }

  .dt::-webkit-scrollbar {
    height: 7px;
  }

  .dt::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #eef1f7;
  }

  .dt::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #aeb9d8;
  }

  .dt > .dt-hd,
  .dt > .dt-g,
  .dt > .dt-r,
  .dt > .dt-ft,
  .dt > sc-for {
    min-width: 760px;
  }

  .dt > sc-for {
    display: block;
  }

  .dt .dt-hd,
  .dt .dt-g,
  .dt .dt-r,
  .dt .dt-ft {
    display: grid;
    grid-template-columns: 220px 258px 258px;
    grid-template-areas: none;
    column-gap: 12px;
    width: 760px;
  }

  .dt .dt-hd {
    position: static;
    padding-top: 14px;
  }

  .dt .dt-hf {
    display: flex;
    padding: 0 4px 18px;
  }

  .dt .dt-hc {
    padding: 18px 16px 16px;
    border-radius: 18px 18px 0 0;
  }

  .dt .dt-hc > span {
    font-size: 14px;
  }

  .dt .dt-hc > b {
    font-size: 22px;
  }

  .dt .dt-g {
    align-items: stretch;
  }

  .dt .dt-g .dt-gc {
    display: block;
  }

  .dt .dt-gl {
    display: block;
    padding: 22px 4px 8px;
  }

  .dt .dt-r {
    grid-template-areas: none;
    row-gap: 0;
    padding: 0;
    border-top: 0;
    align-items: stretch;
  }

  .dt .dt-f,
  .dt .dt-c.pm,
  .dt .dt-c.ex {
    grid-area: auto;
  }

  .dt .dt-f {
    padding: 12px 4px;
    border-top: 1px solid #f1f3f6;
    gap: 12px;
  }

  .dt .dt-c {
    min-height: 0;
    padding: 12px 16px;
    border-radius: 0;
  }

  .dt .dt-c::before {
    display: block;
  }

  .dt .dt-ft {
    display: grid;
  }

  /* 모바일 하단 메뉴의 제품·서비스·가격안내 선택 패널 */
  .mbp-backdrop {
    position: fixed;
    inset: 0 0 calc(66px + env(safe-area-inset-bottom));
    z-index: 57;
    border: 0;
    padding: 0;
    background: rgba(15, 27, 51, 0.08);
    -webkit-tap-highlight-color: transparent;
  }

  .mbp-panel {
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 63;
    width: min(var(--mbp-width, 300px), calc(100vw - 24px));
    max-height: min(66vh, 460px);
    overflow: hidden;
    border: 1px solid rgba(15, 27, 51, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 46px -14px rgba(15, 27, 51, 0.3);
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.98);
    transform-origin: 50% 100%;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(.2,.8,.2,1);
  }

  .mbp-panel.show {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  .mbp-head {
    padding: 15px 18px 11px;
    border-bottom: 1px solid #eef0f4;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
  }

  .mbp-list {
    display: flex;
    flex-direction: column;
    max-height: min(58vh, 396px);
    overflow-y: auto;
    padding: 7px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mbp-list a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 38px 10px 13px;
    border-radius: 11px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    word-break: keep-all;
  }

  .mbp-list a::after {
    content: '›';
    position: absolute;
    right: 14px;
    top: 50%;
    color: #a2a9b5;
    font-size: 21px;
    font-weight: 400;
    transform: translateY(-52%);
  }

  .mbp-list a:active,
  .mbp-list a.current {
    color: #2f46f5;
    background: #eef1ff;
    font-weight: 800;
  }

  .mbp-list a.current::before {
    content: '';
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: #2f46f5;
  }

  .btab-i.mbp-open {
    color: var(--b, #2f46f5);
  }

  .btab-i.mbp-open .btab-t {
    font-weight: 800;
  }

  .btab-i.mbp-open .btab-ic {
    border-radius: 50%;
    background: #2f46f5;
    box-shadow: 0 0 0 5px #fff, 0 10px 18px -8px rgba(47, 70, 245, 0.65);
    transform: translateY(-5px);
  }

  .btab-i.mbp-open .btab-ic img {
    filter: brightness(0) invert(1);
  }

  /* 하단 고정 메뉴에 마지막 콘텐츠가 가려지지 않도록 여유를 둡니다. */
  .dc-root {
    padding-bottom: 78px;
  }
}

@media (max-width: 360px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cph-h,
  .hero-in .h1,
  .h8-h1 {
    font-size: 28px !important;
  }

  .h2,
  .cta-h {
    font-size: 23px !important;
  }
}

/* 서비스 공통 혜택 영역: 큰 배경/헤더 없이 4개 카드만 표시 */
.pr-sec.ap-dk {
  background: transparent !important;
  color: #fff !important;
  padding: 28px 0 !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.pr-sec.ap-dk::before,
.pr-sec.ap-dk::after,
.pr-sec.ap-dk .ap-dk-hd {
  display: none !important;
}

.pr-sec.ap-dk .ap-us {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: min(1280px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: linear-gradient(110deg, #101b5c 0%, #151f72 58%, #26105d 100%) !important;
  box-shadow: 0 18px 45px rgba(22, 31, 93, .16) !important;
}

.pr-sec.ap-dk .ap-uc {
  min-width: 0 !important;
  min-height: 118px !important;
  padding: 25px 26px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pr-sec.ap-dk .ap-uc + .ap-uc {
  border-left: 1px solid rgba(255, 255, 255, .12) !important;
}

.pr-sec.ap-dk .ap-uc,
.pr-sec.ap-dk .ap-uc * {
  color: #fff !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}

.pr-sec.ap-dk .ap-uc p {
  display: block !important;
  opacity: .72 !important;
  line-height: 1.55 !important;
}

@media (max-width: 900px) {
  .pr-sec.ap-dk .ap-us {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: calc(100% - 32px) !important;
  }
  .pr-sec.ap-dk .ap-uc:nth-child(3) {
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .12) !important;
  }
  .pr-sec.ap-dk .ap-uc:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, .12) !important;
  }
}

@media (max-width: 520px) {
  .pr-sec.ap-dk .ap-us {
    grid-template-columns: 1fr !important;
  }
  .pr-sec.ap-dk .ap-uc + .ap-uc {
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .12) !important;
  }
}

/* 37. PC 상단 메뉴(GNB): 글자 18.5px + 앞 아이콘(면형) — data-t 있는 링크만 */
html body .gnb .gnb-a[data-t]{display:inline-flex;align-items:center;gap:7px;font-size:18.5px}
html body .gnb .gnb-a[data-t]::before{content:"";flex:none;width:21px;height:21px;background:var(--gc,currentColor);opacity:1;-webkit-mask:var(--gi) center/contain no-repeat;mask:var(--gi) center/contain no-repeat}
html body .gnb .gnb-a[data-t].on,html body .gnb .gnb-a[data-t].cur,html body .gnb .gnb-a[data-t]:hover,html body .gnb .gnb-a[data-t]:focus,html body .gnb .gnb-a[data-t]:active{color:var(--gc)}
html body .gnb .gnb-a[data-t="제품"]{--gc:#10b981;--gi:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cpath%20fill=%22%23000%22%20d=%22M12%202.4%2021.2%207.2%2012%2012%202.8%207.2Z%22/%3E%3Cpath%20fill=%22%23000%22%20d=%22M2.4%208.7%2011.2%2013.3V22L2.4%2017.4Z%22/%3E%3Cpath%20fill=%22%23000%22%20d=%22M12.8%2013.3%2021.6%208.7V17.4L12.8%2022Z%22/%3E%3C/svg%3E")}
html body .gnb .gnb-a[data-t="서비스"]{--gc:#0284c7;--gi:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cpath%20fill=%22%23000%22%20d=%22M10.5%202.5%2012.6%208.4%2018.5%2010.5%2012.6%2012.6%2010.5%2018.5%208.4%2012.6%202.5%2010.5%208.4%208.4Z%22/%3E%3Cpath%20fill=%22%23000%22%20d=%22M18.5%2014.5%2019.5%2017.5%2022.5%2018.5%2019.5%2019.5%2018.5%2022.5%2017.5%2019.5%2014.5%2018.5%2017.5%2017.5Z%22/%3E%3C/svg%3E")}
html body .gnb .gnb-a[data-t="고객사례"]{--gc:#2f46f5;--gi:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cpath%20fill=%22%23000%22%20fill-rule=%22evenodd%22%20d=%22M12%202a7%207%200%201%201%200%2014%207%207%200%200%201%200-14Zm0%203.3%201.2%202.5%202.7.4-2%201.9.5%202.7L12%2011.5l-2.4%201.3.5-2.7-2-1.9%202.7-.4Z%22/%3E%3Cpath%20fill=%22%23000%22%20d=%22M7.6%2015.6%206.3%2022.3%2012%2019.4l5.7%202.9-1.3-6.7A8.7%208.7%200%200%201%2012%2017a8.7%208.7%200%200%201-4.4-1.4Z%22/%3E%3C/svg%3E")}
html body .gnb .gnb-a[data-t="고객센터"]{--gc:#7c3aed;--gi:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cpath%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222.2%22%20stroke-linecap=%22round%22%20d=%22M4.5%2013.5V12a7.5%207.5%200%200%201%2015%200v1.5M18%2018.5c0%201.6-2.4%202.8-5.5%202.8%22/%3E%3Crect%20x=%222.5%22%20y=%2212%22%20width=%225.5%22%20height=%227.5%22%20rx=%222.2%22%20fill=%22%23000%22/%3E%3Crect%20x=%2216%22%20y=%2212%22%20width=%225.5%22%20height=%227.5%22%20rx=%222.2%22%20fill=%22%23000%22/%3E%3C/svg%3E")}
html body .gnb .gnb-a[data-t="가격안내"]{--gc:#db2777;--gi:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cpath%20fill=%22%23000%22%20fill-rule=%22evenodd%22%20d=%22M2.5%204.5a2%202%200%200%201%202-2h7.2a2%202%200%200%201%201.4.6l8.3%208.3a2%202%200%200%201%200%202.8l-7.3%207.3a2%202%200%200%201-2.8%200L3.1%2013.1a2%202%200%200%201-.6-1.4Zm5%201.3a1.7%201.7%200%201%200%200%203.4%201.7%201.7%200%200%200%200-3.4Z%22/%3E%3C/svg%3E")}
@media (min-width:1100px) and (max-width:1439px){
  html body .gnb{gap:2px !important}
  html body .gnb .gnb-a[data-t]{padding-left:12px;padding-right:12px;gap:6px}
}
@media (min-width:1100px) and (max-width:1239px){
  html body .gnb .gnb-a[data-t]{font-size:17px;padding-left:9px;padding-right:9px}
  html body .gnb .gnb-a[data-t]::before{width:18px;height:18px}
}

/* 고객사례 카드: 모바일 2칸 통일 (G) */
@media (max-width: 767px) {
  html body .cpg-g { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}

/* 고객사례 분류 탭(.cpg-tabs): 모바일은 박스형 대신 개별 칩형(모서리 14px 유지) (M) */
@media (max-width: 759px) {
  html body .cpg-tabs { background: none !important; box-shadow: none !important; border-radius: 0 !important; gap: 8px !important; padding-top: 2px !important; padding-bottom: 8px !important; }
  html body .cpg-tab { background: #fff !important; box-shadow: inset 0 0 0 1px #e5e8eb !important; border-radius: 14px !important; color: var(--t2); }
  html body .cpg-tab.on { background: linear-gradient(135deg, #4a5fff 0%, #2f46f5 100%) !important; box-shadow: 0 10px 20px -14px rgba(47, 70, 245, .75) !important; color: #fff; }
}

/* 비교표 기능 미리보기 모달(.cmd): 넓은 화면샷이 좌우로 잘리지 않게 전체 표시 + 세로 길이 축소 (K) */
html body .cmd-v { aspect-ratio: 2 / 1 !important; }
html body .cmd-v img { object-fit: contain !important; }
