@charset "utf-8";
/* ═══════════════════════════════════════════════════════════
   반응형 — 이 파일을 가장 마지막에 로드할 것
   브레이크포인트: 1280 / 1024 / 768 / 480
   ═══════════════════════════════════════════════════════════ */

/* ───────── ~1280 ───────── */
@media (max-width: 1280px) {
  :root { --pad-x: 32px; }
  .gnb > li > a { padding: 0 18px; font-size: 15px; }
  .mega-inner { gap: 24px; }
}

/* ───────── ~1024 : 태블릿 ───────── */
@media (max-width: 1024px) {
  :root { --header-h: var(--header-h-sm); --pad-x: 24px; }

  .section { padding: 88px 0; }
  .section--tight { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }

  /* 데스크톱 내비 → 드로어 */
  .gnb, .mega, .header-tel { display: none; }
  .nav-toggle { display: block; }
  .header.is-transparent { background: transparent; }
  body.is-nav-open .header { background: #fff; box-shadow: none; }
  body.is-nav-open .header.is-transparent .logo-mark { color: var(--brand-deep); }
  body.is-nav-open .header.is-transparent .logo-mark em { color: var(--brand); opacity: 1; }
  body.is-nav-open { overflow: hidden; }

  .page-hero { height: 280px; }

  .subtab { top: var(--header-h); }
  .subtab-list a { padding: 15px 16px; font-size: 14px; }

  /* 푸터 — 넓은 화면은 4칸, 좁아지면 브랜드가 한 줄을 차지하고 링크가 3칸 */
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* 데스크톱 퀵 → 하단 고정 바 */
  .quick { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    background: #fff;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 18px rgba(14,37,71,.07);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mbar-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; height: 62px;
    font-size: 11.5px; font-weight: 700; letter-spacing: -.04em;
    color: #fff;
  }
  .mbar-item svg { width: 20px; height: 20px; }

  /* 채널별 고유 색상 — 데스크톱 퀵메뉴와 동일한 기준 */
  .mbar-item--tel   { background: var(--brand); }
  .mbar-item--naver { background: var(--naver); }
  .mbar-item--kakao { background: var(--kakao); color: var(--kakao-fg); }
  .mbar-item--map   { background: #fff; color: var(--brand-deep); }
  .mbar-item--map svg { color: var(--brand); }

  body { padding-bottom: 62px; }
  .footer { padding-bottom: 32px; }
}

/* ───────── ~768 : 모바일 ───────── */
@media (max-width: 768px) {
  :root { --pad-x: 20px; }
  body { font-size: 15px; line-height: 1.72; }

  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }
  .eyebrow { font-size: 12px; margin-bottom: 12px; }

  .btn { height: 50px; padding: 0 26px; font-size: 14.5px; }
  .btn--sm { height: 42px; padding: 0 18px; }

  .page-hero { height: 220px; }
  .page-hero p { font-size: 14.5px; }

  .breadcrumb ol { height: 46px; font-size: 12px; }

  .faq-q { padding: 20px 36px 20px 0; }
  .faq-q::after { top: 27px; }
  .faq-a-inner { padding-right: 36px; font-size: 14.5px; }

  .footer { padding-top: 52px; }
  .footer-top { gap: 26px 20px; }
  .footer-info dl { flex-direction: column; gap: 2px; }
  .footer-info dd { margin-right: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  .med-notice { padding: 18px 20px; font-size: 13.5px; }
}

/* ───────── ~480 : 소형 ───────── */
@media (max-width: 480px) {
  :root { --pad-x: 16px; }
  .section { padding: 52px 0; }
  .drawer { padding-left: 20px; padding-right: 20px; }
  .mbar-item { font-size: 10.5px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
