/* ===========================================================================
   소상공인 솔루션 메인 전용 (business/index.html 만 싣는다) — 2026-10-06 리디자인
   - 공통 CSS(style.css · business.css · common-header.css)는 고치지 않고 여기서 덮는다.
   - 토큰·버튼·폼·고정 상담 버튼은 하이오더 페이지(css/highorder.css)와 같은 값을 **복사**했다.
     ⛔ highorder.css 를 불러오지 말 것 — 공통화는 docs/보류항목.md 「하이오더·소상공인 공통 CSS 토큰화」.
   - 본문은 전부 .bi 범위 안이다. 범위 밖에 쓰는 것은 아래 「페이지 전역」 블록뿐이다.
   - 빨강은 사이트 톤 #E60012. 글꼴은 이 페이지가 이미 싣는 static 'Pretendard'.
   =========================================================================== */
.bi {
  --bi-red: #E60012;      --bi-red-hover: #C00010;   --bi-red-on-dark: #FF4D5A;
  --bi-red-tint: #FDE8E9; --bi-red-tint-2: #FFF6F6;
  --bi-ink: #111;         --bi-body: #555;           --bi-body-2: #444;
  --bi-muted: #888;       --bi-faint: #AAA;
  --bi-bg-gray: #F6F6F6;  --bi-chip: #F4F4F4;        --bi-line: #EEE;  --bi-line-2: #E8E8E8;
  --bi-dark: #111;        --bi-dark-card: #1E1E1E;   --bi-dark-line: #333;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
  color: var(--bi-ink);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
.bi [hidden] { display: none !important; }
.bi img { display: block; max-width: 100%; }
.bi h1, .bi h2 { text-wrap: balance; }
.bi p { text-wrap: pretty; }

/* ---- 공통 틀 ---- */
.bi-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.bi-sec { padding: 96px 0; }
.bi-sec--gray { background: var(--bi-bg-gray); }
.bi-sec--dark { background: var(--bi-dark); color: #fff; }
.bi-stack { display: flex; flex-direction: column; gap: 48px; }
.bi-head { display: flex; flex-direction: column; gap: 12px; }
.bi-head--center { align-items: center; text-align: center; }
.bi-eyebrow { font-size: 14px; font-weight: 700; color: var(--bi-red); }
.bi-sec--dark .bi-eyebrow { color: var(--bi-red-on-dark); }
.bi-h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.2; letter-spacing: -.03em; font-weight: 800; }
.bi-grid { display: grid; gap: 20px; }
.bi-num { font-size: 13px; font-weight: 700; color: var(--bi-red); }

/* ---- 버튼 ---- */
.bi-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 28px; border-radius: 12px; border: 0;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.3;
  cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s;
}
.bi-btn--red { background: var(--bi-red); color: #fff; }
.bi-btn--red:hover { background: var(--bi-red-hover); color: #fff; }
.bi-btn--gray { background: var(--bi-chip); color: var(--bi-ink); }
.bi-btn--gray:hover { background: #E9E9E9; }
.bi-btn:focus-visible { outline: 3px solid var(--bi-ink); outline-offset: 2px; }
.bi-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ① 히어로 */
.bi-hero { padding: 72px 0 80px; }
.bi-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: center; }
.bi-hero-text { display: flex; flex-direction: column; gap: 24px; }
.bi-chip-outline { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--bi-red); border: 1px solid var(--bi-red); padding: 6px 12px; border-radius: 999px; line-height: 1.3; }
.bi-h1 { margin: 0; font-size: clamp(34px, 6vw, 68px); line-height: 1.08; letter-spacing: -.04em; font-weight: 800; }
.bi-h1 em { color: var(--bi-red); font-style: normal; }
.bi-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--bi-body-2); max-width: 460px; }
.bi-hero-media { aspect-ratio: 4 / 3.4; border-radius: 28px; overflow: hidden; background: var(--bi-chip); }
.bi-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ② 소상공인 솔루션 */
.bi-sol-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.bi-sol-head .bi-head { max-width: 640px; }
.bi-sol-sub { margin: 0; font-size: 16px; line-height: 1.6; color: var(--bi-body); max-width: 380px; }
.bi-sol-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.bi-sol { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; color: var(--bi-ink); text-decoration: none; transition: box-shadow .2s; }
.bi-sol:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); color: var(--bi-ink); }
.bi-sol:focus-visible { outline: 3px solid var(--bi-red); outline-offset: 2px; }
.bi-sol-img { aspect-ratio: 16 / 10; background: #EFEFEF; }
.bi-sol-img img { width: 100%; height: 100%; object-fit: cover; }
.bi-sol-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bi-sol-tag { font-size: 13px; font-weight: 700; color: var(--bi-red); }
.bi-sol-name { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.bi-sol-desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--bi-body); }
.bi-sol-more { margin-top: auto; padding-top: 12px; font-size: 15px; font-weight: 700; color: var(--bi-red); }

/* ③ 왜 메가텔레콤 */
.bi-why-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 28px 24px; margin: 0; padding: 0; list-style: none; }
.bi-why-item { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--bi-ink); }
.bi-why-item h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.bi-why-item p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--bi-body); }

/* ④ 함께한 매장 */
.bi-case-h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; }
.bi-case-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.bi-case { background: var(--bi-dark-card); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.bi-case-img { aspect-ratio: 4 / 3; background: #2A2A2A; }
.bi-case-img img { width: 100%; height: 100%; object-fit: cover; }
.bi-case-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.bi-case-body h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.bi-case-setup { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--bi-red-on-dark); background: rgba(230,0,18,.16); padding: 6px 10px; border-radius: 8px; }
.bi-case-body p { margin: 0; font-size: 16px; line-height: 1.55; color: #CFCFCF; }

/* ⑤ 상담 신청 — 마크업·name·전송 스크립트는 그대로, 겉모습만 */
.bi-consult { position: relative; }
.bi-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.bi-consult-inner { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.bi-consult-inner .bi-head p { margin: 0; font-size: 16px; color: var(--bi-body); }
/* 상담 신청서 — 공통 /css/biz-form.css 로 옮김(2026-10-09 · 8개 페이지 같은 규칙이었다) */
/* 연락 카드 3개 */
.bi-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.bi-contact-card { background: #fff; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; color: var(--bi-ink); text-decoration: none; }
a.bi-contact-card:hover { color: var(--bi-ink); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.bi-contact-label { font-size: 14px; color: #666; font-weight: 600; }
.bi-contact-tel { font-size: 22px; font-weight: 800; color: var(--bi-red); }
.bi-contact-go { font-size: 20px; font-weight: 800; }
.bi-contact-addr { font-size: 15px; font-weight: 700; line-height: 1.5; }

/* ---- 고정 상담: 데스크톱 카드·접힌 버튼·플로팅 버튼 자리는 공통 css/biz-float.css(이 파일 뒤에 싣는다) · 여기는 1024px 미만 하단 바만 ---- */
.bi-mbar { display: none; }
.bi-mbar-spacer { display: none; }

/* ---- 페이지 전역 (이 파일은 이 페이지에만 실린다) ---- */
html { scroll-padding-top: 16px; }

@media (max-width: 767.98px) {
  .bi-sec { padding: 64px 0; }
  .bi-wrap { padding: 0 20px; }
  .bi-hero { padding: 40px 0 56px; }
  .bi-hero-grid { gap: 32px; }
  .bi-lead { font-size: 17px; }
  .bi-btns .bi-btn { flex: 1 1 auto; }
  .bi-sol-body, .bi-case-body { padding: 24px; }
}
/* 고정 상담 버튼: 1024px 미만(폰·태블릿)은 하단 바 — 하이오더 페이지와 같은 기준(대표 승인 2026-10-06) */
@media (max-width: 1023.98px) {
  .bi-mbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 890; gap: 8px;
    background: #fff; border-top: 1px solid var(--bi-line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .bi-mbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; text-decoration: none; line-height: 1.25; }
  .bi-mbar-tel { background: #111; color: #fff; }
  .bi-mbar-tel:hover { color: #fff; }
  .bi-mbar-tel span { font-size: 12px; opacity: .8; }
  .bi-mbar-tel strong { font-size: 16px; font-weight: 800; }
  .bi-mbar-consult { background: var(--bi-red); color: #fff; font-size: 17px; font-weight: 800; }
  .bi-mbar-consult:hover { color: #fff; }
  .bi-mbar-spacer { display: block; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .bi-btn, .bi-sol { transition: none; }
}
