/* 휴대폰 화면 전용 보정 (모든 홈페이지 화면에 자동으로 붙음 — serve.ps1 Send-Bytes). PC 화면에는 영향 없음 */
@media (max-width:640px){
  /* 글줄: 제목·소개 문구가 한 글자만 따로 떨어지거나 단어 중간에서 끊기지 않게 */
  h1,h2,h3,.h2,.lead,.sub{text-wrap:balance;word-break:keep-all}
  p,li,figcaption{word-break:keep-all;text-wrap:pretty}

  /* 맨 아래 메뉴: 한 줄씩 길게 늘어서지 않게 두 칸으로 */
  footer .fgrid{grid-template-columns:1fr 1fr!important;gap:30px 18px}
  footer .fgrid>div:first-child{grid-column:1/-1}

  /* 서비스 카드 위 어두운 그림 칸: 휴대폰에서는 낮게 */
  .zig .vis{min-height:120px!important;height:120px}

  /* 서비스 상세 맨 아래 '견적 문의' 상자: 버튼을 위아래로, 글씨는 한 줄로 */
  .cta-end .box{grid-template-columns:1fr;gap:0;border-radius:22px}
  .cta-end .l{padding:36px 24px 30px}
  .cta-end p{margin-bottom:24px}
  .cta-end .cta{flex-direction:column;flex-wrap:nowrap;gap:10px}
  .cta-end .cta .btn{flex:none;width:100%;min-height:54px;height:auto;padding:15px 20px;border-radius:999px;white-space:nowrap;font-size:16px;line-height:1.3}
  .cta-end .r{padding:30px 24px 34px}

  /* '실제 현장 사진': 제목 둘째 줄로, 설명은 두 줄로 고르게 */
  .field-sec .h2 em{display:block}
  .field-sec .lead{max-width:290px;margin-left:auto;margin-right:auto;text-wrap:wrap}
  .field-mq{padding:28px 0 6px}

  /* 페이지 맨 아래 'CONTACT' 상자(회사소개 등): 버튼을 위아래로, 글씨 한 줄 */
  .final .cta{display:flex;flex-direction:column;flex-wrap:nowrap;gap:10px}
  .final .cta .btn{flex:none;width:100%;min-height:54px;height:auto;padding:15px 20px;white-space:nowrap;line-height:1.3}

  /* 맨 아래 회사 정보 */
  .fbottom{gap:10px;line-height:1.7}
}
