/* =============================================
   접근성 유틸 — 화면엔 숨기고 스크린리더/검색엔진엔 노출
   (SEO: 시각적 디자인을 해치지 않고 H1 등 텍스트 신호를 제공)
   ============================================= */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   디자인 토큰 (CSS 변수)
   ============================================= */
:root {
  /* 브랜드 컬러 */
  --color-primary:        #3561ff;
  --color-primary-hover:  #1e46e0;
  --color-accent:         #6135ff;
  --color-accent-hover:   #4d1fe0;
  --color-purple:         #7324ff;
  --color-dark:           #111823;

  /* 텍스트 컬러 */
  --color-text:           #212121;
  --color-text-sub:       #757575;
  --color-text-muted:     #999999;
  --color-text-white:     #ffffff;

  /* 배경 컬러 */
  --color-bg:             #ffffff;
  --color-bg-alt:         #f7f7f7;
  --color-bg-dark:        #111823;

  /* 테두리 */
  --color-border:         #e5e5e5;
  --color-border-dark:    #d3d3d3;

  /* 폰트 */
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', Roboto, 'Noto Sans KR', 'Segoe UI', 'Malgun Gothic',
    sans-serif;

  /* 텍스트 크기 */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
}

/* =============================================
   베이스 리셋 & 전역 스타일
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 767px) {
  body {
    font-size: var(--text-xs);
  }
}

/* =============================================
   타이포그래피
   ============================================= */
h1, .h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h2, .h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h3, .h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h4, .h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--color-text);
}

h5, .h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}

h6, .h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 767px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.625rem; }
  h3, .h3 { font-size: 1.25rem; }
  h4, .h4 { font-size: 1.125rem; }
  h5, .h5 { font-size: 1rem; }
  h6, .h6 { font-size: 0.875rem; }
}

p { line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
/* WebP 자동 래핑(<picture>)이 레이아웃에 영향을 주지 않도록 wrapper 를 박스 트리에서 제거.
   → <img> 가 원래 부모의 직접 자식처럼 배치되어 기존 디자인이 그대로 유지된다. */
picture { display: contents; }

/* =============================================
   버튼 공통 스타일
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text-white);
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* 개발지원(devsupport) 진입 버튼용 — 스토어(accent)와 구분되는 퍼플 변형 */
.btn-purple {
  background-color: var(--color-purple);
  color: var(--color-text-white);
  border-color: var(--color-purple);
}
.btn-purple:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-text-white);
  border-color: var(--color-text-white);
}
.btn-outline-white:hover {
  background-color: var(--color-text-white);
  color: var(--color-dark);
}

.btn-dark {
  background-color: var(--color-dark);
  color: var(--color-text-white);
  border-color: var(--color-dark);
}
.btn-dark:hover {
  background-color: #1d2535;
  border-color: #1d2535;
}

.btn-sm {
  font-size: var(--text-xs);
  padding: 0.5rem 1rem;
}

.btn-lg {
  font-size: var(--text-base);
  padding: 1rem 2rem;
}

/* =============================================
   공통 컨테이너
   ============================================= */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 767px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* =============================================
   섹션 공통
   ============================================= */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 767px) {
  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* =============================================
   TopBar 모바일 대응
   ============================================= */
@media (max-width: 767px) {
  .topbar-naver-text {
    font-size: 12px;
  }
}

/* =============================================
   공통 Spacer
   ============================================= */
.spacer-12 { height: 12px; }
.spacer-30 { height: 30px; }
.spacer-32 { height: 32px; }
.spacer-40 { height: 40px; }
.spacer-48 { height: 48px; }
.spacer-52 { height: 52px; }

/* =============================================
   히어로 높이
   ============================================= */
.hero-spacer { height: 703px; }

@media (max-width: 767px) {
  .hero-spacer { height: 400px; }
}

/* =============================================
   YouTube 섹션
   ============================================= */
.youtube-spacer-top { height: 162px; }
.youtube-spacer-bottom { height: 150px; }
.youtube-title { font-size: 24px; }
.youtube-desc { font-size: 18px; }

/* =============================================
   폼 필드 공통
   ============================================= */
.contact-field { margin-bottom: 20px; }

.form-input {
  padding: 5px 7px !important;
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  outline: none;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(53, 97, 255, 0.15) !important;
}

.form-input::placeholder { color: var(--color-text-muted); }

/* =============================================
   Leaflet 지도 팝업
   ============================================= */
.leaflet-popup-content { font-size: 14px !important; }

/* =============================================
   데스크탑 기본값
   ============================================= */
.service-spacer-top { height: 153px; }
.service-spacer-bottom { height: 150px; }
.gallery-spacer-top { height: 163px; }
.gallery-spacer-mid { height: 286px; }
.gallery-spacer-bottom { height: 178px; }
.gallery-dark-spacer-top { height: 122px; }
.gallery-dark-spacer-bottom { height: 106px; }
.contact-spacer-top { height: 118px; }
.contact-spacer-bottom { height: 155px; }

.center-container {
  padding-top: 150px;
  padding-bottom: 150px;
}

.center-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.branches-container {
  padding-top: 150px;
  padding-bottom: 5rem;
}

.branches-map-list { height: 600px; }
.branches-list { max-height: 600px; }

/* =============================================
   모바일 대응 (max-width: 767px)
   ============================================= */
@media (max-width: 767px) {
  .header-logo {
    display: none !important;
    height: auto !important;
  }
  .topbar-naver-text { display: none; }
  .connect-title { font-size: 26px !important; line-height: 1.5 !important; }
  .connect-desc { font-size: 14px !important; }
  .service-spacer-top { height: 60px; }
  .service-spacer-bottom { height: 60px; }
  .service-main-img { height: auto !important; max-width: 100% !important; }
  .service-title { font-size: 22px !important; line-height: 1.4 !important; }
  .service-body-text { font-size: 14px !important; }
  .gallery-spacer-top { height: 60px; }
  .gallery-spacer-mid { height: 80px; }
  .gallery-spacer-bottom { height: 80px; }
  .gallery-dark-spacer-top { height: 40px; }
  .gallery-dark-spacer-bottom { height: 40px; }
  .topbar-wrap { position: relative !important; }
  .branch-cards-grid { grid-template-columns: 1fr !important; }
  .shop-grid { grid-template-columns: repeat(2, 1fr) !important; margin: 0 !important; }
  .youtube-spacer-top { height: 40px; }
  .youtube-spacer-bottom { height: 60px; }
  .youtube-title { font-size: 18px !important; }
  .youtube-desc { font-size: 14px !important; }
  .gallery-infographic { width: 100% !important; height: auto !important; }
  .gallery-title { font-size: 20px !important; line-height: 1.4 !important; }
  .gallery-service-img { height: auto !important; max-width: 100% !important; }
  .center-container { padding-top: 60px; padding-bottom: 60px; }
  .center-desc { font-size: 14px !important; margin-bottom: 40px !important; }
  .center-gallery { grid-template-columns: repeat(2, 1fr) !important; gap: 6px; }
  .center-gallery-img { height: 180px !important; }
  .contact-spacer-top { height: 48px; }
  .contact-spacer-bottom { height: 60px; }
  .contact-label { font-size: 15px !important; }
  .phone-input-group { gap: 4px !important; }
  .phone-input { width: 0 !important; flex: 1 1 0 !important; min-width: 0 !important; }
  .branches-container { padding-top: 60px; padding-bottom: 3rem; }
  .branches-map-list { height: auto; flex-direction: column !important; }
  .branches-map { flex: none !important; width: 100% !important; min-height: 250px !important; height: 250px; }
  .branches-list { flex: none !important; width: 100% !important; max-height: 500px !important; border-left: none !important; border-top: none !important; }
  .floating-buttons { top: auto !important; bottom: 70px !important; right: 20px !important; }
  .floating-btn-img { width: 61px !important; height: 61px !important; }
}

/* =============================================
   스크롤 애니메이션 — Reveal
   ============================================= */
.reveal, .reveal-left, .reveal-right, .reveal-fade {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal { opacity: 0; transform: translateY(36px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-fade { opacity: 0; }
.reveal-fade.is-visible { opacity: 1; }

@keyframes heroFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-btn-animate { animation: heroFadeInUp 0.9s ease 0.5s both; }

.gallery-img-wrap { overflow: hidden; }
.gallery-img-wrap img { transition: transform 0.45s ease; }
.gallery-img-wrap:hover img { transform: scale(1.06); }

/* =============================================
   주문/결제 페이지 공통
   ============================================= */
.order-page { padding: 60px 0; background: #f7f8fb; min-height: 60vh; }
.order-page-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.order-page-center { max-width: 560px; margin: 0 auto; padding: 0 20px; text-align: center; }
.order-page h1 { font-size: 24px; margin: 0 0 24px; }
.order-card { background: #fff; border-radius: 12px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.order-card h3 { margin: 0 0 14px; font-size: 16px; }
.order-form { display: flex; flex-direction: column; gap: 18px; }
.order-form-fields { display: flex; flex-direction: column; gap: 12px; }
.order-form label.field-label { display: block; font-size: 13px; color: #444; margin-bottom: 6px; }
.order-form input.field-input { width: 100%; padding: 11px; border: 1px solid #d0d4dc; border-radius: 8px; }
.order-form .agree-label { display: block; margin: 8px 0; }
.order-hr { border: none; border-top: 1px solid #eef0f4; margin: 16px 0; }
.order-submit { background: #111; color: #fff; border: none; padding: 16px; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; }
.order-error { background: #fee; color: #c00; padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; }
.order-complete-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.order-info-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; font-size: 13px; color: #64748b; line-height: 1.8; }
.order-info-box strong { color: #334155; }
.order-legal-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px; margin-top: 12px; font-size: 12px; color: #64748b; line-height: 1.8; }
.order-legal-box strong { color: #334155; }
.order-product-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; }
.order-qty-input { width: 80px; padding: 6px; border: 1px solid #d0d4dc; border-radius: 6px; }
.order-status-badge { display: inline-block; padding: 3px 12px; border-radius: 9999px; font-size: 12px; font-weight: 600; }
.order-detail-icon { width: 42px; height: 42px; margin-bottom: 16px; }
.order-consult-msg { color: var(--color-primary); font-size: 16px; font-weight: 600; margin-top: 20px; text-align: center; }

/* =============================================
   계약상담 폼
   ============================================= */
.contact-section { position: relative; background-size: cover; background-position: 50% 50%; }
.contact-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(248,248,248,0.95); }
.contact-inner { position: relative; z-index: 1; }
.contact-title { text-align: center; margin-bottom: 30px; }
.contact-form { max-width: 640px; margin: 0 auto; }
.contact-label { display: block; font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.contact-label .req { color: var(--color-primary); }
.contact-radio { display: block; margin-bottom: 6px; cursor: pointer; color: var(--color-text); font-size: 14px; }
.contact-radio input { margin-right: 8px; }
.contact-phone-group { display: flex; align-items: center; gap: 8px; }
.contact-phone-input { width: 100px; text-align: center; }
.contact-memo { margin-bottom: 30px; }
.contact-submit { text-align: center; }

/* 상담 완료 팝업 */
.contact-modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0); z-index: 10000;
  justify-content: center; align-items: center;
  transition: background 0.3s ease;
}
.contact-modal-box {
  background: #fff; border-radius: 16px; padding: 40px 36px; text-align: center;
  max-width: 380px; width: 90%; box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  transform: scale(0.8) translateY(20px); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
}
.contact-modal-icon { font-size: 48px; margin-bottom: 16px; }
.contact-modal-box h3 { margin-bottom: 12px; }
.contact-modal-box p { color: var(--color-text-sub); margin-bottom: 24px; line-height: 1.6; }

/* =============================================
   세무/법무 (tax-n-law) 공통
   ============================================= */

/* --- 히어로 --- */
.tnl-hero {
  background-size: cover;
  background-position: center;
  padding: 60px 0;
  text-align: center;
  position: relative;
}
.tnl-hero--tall { padding: 80px 0; }
.tnl-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.55);
}
.tnl-hero__inner {
  position: relative;
  z-index: 1;
}
.tnl-hero__title { color: #fff; }

/* --- 폼 컨테이너 --- */
.tnl-form-wrap { max-width: 720px; }

/* --- 안내 섹션 (padding-bottom:0) --- */
.tnl-info-section { padding-bottom: 0; }

/* --- 필드 간격 --- */
.tnl-field { margin-bottom: 24px; }

/* --- 필드 라벨 --- */
.tnl-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #212121;
}
.tnl-required {
  color: #ff3b3b;
  margin-left: 4px;
}

/* --- 개인정보 동의 스크롤 박스 --- */
.tnl-policy-box {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
  background-color: #fafafa;
  margin-bottom: 10px;
  color: #555;
}

/* --- 체크박스/라디오 라벨 (인라인) --- */
.tnl-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}
.tnl-check-label--body { color: #212121; }

/* --- 라디오/체크박스 그룹 (세로) --- */
.tnl-option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- 전화번호 행 --- */
.tnl-phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tnl-phone-sep { color: #999; }
.tnl-phone-input { width: 100px; text-align: center; }

/* --- 전체 너비 인풋/텍스트에어리어 --- */
.tnl-input-full { width: 100%; }

/* --- 텍스트에어리어 --- */
.tnl-textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
}

/* --- 제출 버튼 행 --- */
.tnl-submit-row {
  text-align: center;
  margin-top: 40px;
}
.tnl-submit-btn {
  min-width: 200px;
  padding: 14px 40px;
  font-size: 16px;
}

/* --- 안내 테이블 --- */
.tnl-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.tnl-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}
.tnl-table .tnl-table-total {
  background-color: #fff2cc;
  font-weight: 700;
}

/* --- 안내 텍스트 유틸 --- */
.tnl-mt8  { margin-top: 8px; }
.tnl-mt16 { margin-top: 16px; }
.tnl-mt24 { margin-top: 24px; }
.tnl-mt32 { margin-top: 32px; }
.tnl-lh18 { line-height: 1.8; }
.tnl-text-red { color: #f70707; }
.tnl-text-16 { font-size: 16px; }

.tnl-guide-list {
  padding-left: 24px;
  margin-top: 8px;
  line-height: 1.8;
}

/* --- 구분선 --- */
.tnl-divider {
  margin: 32px 0;
  border-color: rgba(0,0,0,0.05);
  border-top-width: 3px;
}

/* --- index 페이지 전용 --- */
.tnl-icon-img {
  display: block;
  margin: 0 auto 20px;
}
.tnl-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.tnl-service-btn {
  padding: 14px 20px;
  font-size: 15px;
}
.tnl-cta-btn {
  padding: 14px 40px;
  font-size: 16px;
  border-radius: 6px;
}
.tnl-dashed-hr {
  border: none;
  border-top: 1px dashed #ddd;
}

/* =============================================
   상품 상세
   ============================================= */
.shop-detail { background-color: #fff; min-height: 100vh; }
.shop-detail .container { padding-top: 40px; padding-bottom: 80px; }
.shop-breadcrumb { font-size: 14px; color: #999; margin-bottom: 30px; }
.shop-breadcrumb a { color: #999; }
.shop-main { display: flex; gap: 40px; align-items: flex-start; margin-bottom: 60px; flex-wrap: wrap; }
.shop-main-col { flex: 1 1 300px; min-width: 0; }
.shop-main-col img { width: 100%; display: block; }
.shop-title { font-size: 20px; font-weight: 700; color: #212121; margin-bottom: 8px; line-height: 1.4; }
.shop-sale-badge { display: inline-block; background-color: #fe5356; color: #fff; font-size: 14px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.shop-price { font-size: 24px; font-weight: 700; color: #212121; }
.shop-price-old { font-size: 14px; color: #999; text-decoration: line-through; margin-left: 8px; }
.shop-summary { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 20px; }
.shop-meta { border-top: 1px solid #e5e5e5; padding-top: 16px; margin-bottom: 20px; }
.shop-meta-row { display: flex; font-size: 14px; margin-bottom: 8px; }
.shop-meta-label { color: #999; width: 80px; flex-shrink: 0; }
.shop-meta-value { color: #212121; }
.shop-qty-wrap { border-top: 1px solid #e5e5e5; padding: 16px 0; margin-bottom: 16px; }
.shop-qty-box { display: flex; align-items: center; border: 1px solid #e5e5e5; }
.shop-qty-btn { width: 36px; height: 36px; border: none; background: none; cursor: pointer; font-size: 16px; }
.shop-qty-input { width: 40px; height: 36px; border: none; text-align: center; font-size: 14px; }
.shop-total-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.shop-total-label { font-size: 14px; color: #999; }
.shop-total-price { font-size: 20px; font-weight: 700; color: var(--color-primary); }
.shop-action-btn { background: none; border: 1px solid #e5e5e5; padding: 8px 16px; cursor: pointer; font-size: 14px; color: #757575; border-radius: 4px; }
.shop-tab-bar { display: flex; width: 100%; border-bottom: 2px solid #e5e5e5; }
.shop-tab-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 0; border: none; background: none; cursor: pointer; font-size: 15px; font-weight: 600; color: #999; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.shop-tab-btn.active { color: #212121; border-bottom-color: var(--color-primary); }
.shop-tab-content, .shop-detail-content { padding: 40px 0; text-align: center; }
.shop-tab-content img, .shop-detail-content img { margin: 0 auto; display: block; }
.shop-line-total { font-size: 14px; color: #212121; }
.shop-buy-btns { display: flex; gap: 10px; margin-bottom: 16px; }
.shop-buy-btns .btn { flex: 1; justify-content: center; text-align: center; }
.shop-price-wrap { margin-bottom: 16px; }
.shop-detail-section { background: var(--color-bg-alt); border-top: 1px solid var(--color-border-dark); border-bottom: 1px solid var(--color-border); padding: 14px 0; text-align: center; margin-bottom: 0; }
.shop-detail-section h3 { font-size: 15px; font-weight: 600; color: var(--color-text); margin: 0; }
.shop-tab-notice { max-width: 860px; margin: 40px auto 0; text-align: left; font-size: 14px; color: #555; line-height: 1.8; }

/* =============================================
   헤더
   ============================================= */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  position: sticky;
  top: 0;
}
.site-header .container { height: 70px; max-width: 100%; }
.topbar-wrap .container { max-width: 100%; }
.header-logo-link { flex-grow: 1; }
.header-logo-desktop { height: auto; width: 320px; }
.header-logo-mobile { height: auto; width: 129px; }

/* 데스크탑 네비게이션 */
.header-nav { display: flex; align-items: center; }
.header-nav a {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 600;
  padding: 0 17px;
  height: 70px;
  display: flex;
  align-items: center;
}

/* 헤더 버튼 그룹 */
.header-btn-group { display: flex; align-items: center; gap: 8px; }
.header-btn-group-m { display: flex; align-items: center; gap: 12px; }

/* 헤더 버튼 (공통) */
.header-btn {
  border-radius: 9999px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--color-text-white);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100px;
  border: 1px solid transparent;
}
.header-btn-primary { background-color: var(--color-primary); border-color: var(--color-primary); }
.header-btn-accent { background-color: var(--color-accent); border-color: var(--color-accent); }
.header-btn-purple { background-color: var(--color-purple); border-color: var(--color-purple); }
.header-btn-dark { background-color: var(--color-dark); border-color: var(--color-dark); }

/* 좁은 데스크탑(768~1279px): 버튼 4개(세무법무/개발지원/스토어/주문조회) + 네비가
   한 줄에 들어가도록 로고/네비/버튼 폭 축소 (1280px 이상은 기존 그대로) */
@media (min-width: 768px) and (max-width: 1279px) {
  .header-logo-desktop { width: 220px; }
  .header-nav a { padding: 0 10px; font-size: 15px; }
  .header-btn { width: auto; padding: 4px 14px; }
}

/* 모바일 헤더 버튼 */
.header-btn-m {
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--color-text-white);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* 햄버거 버튼 */
.header-hamburger {
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  margin-right: 15px;
  background: none;
  border: none;
  cursor: pointer;
}

/* 모바일 메뉴 패널
   - position:fixed 로 viewport 기준 배치
   - top 값은 JS 에서 헤더 bottom 위치를 측정해 동적 설정
   - 콘텐츠 높이만큼만 표시, 본문 위에 떠 있도록 z-index/그림자 적용 */
.mobile-menu-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  border-top: 1px solid var(--color-border);
  background-color: #fff;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
  .mobile-menu-panel { display: none !important; }
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  gap: 4px;
}
/* 직속 자식 a 만 메뉴 항목 스타일 적용 (.mobile-menu-btns 내부 버튼은 제외) */
.mobile-menu-nav > a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid #f2f2f2;
}
.mobile-menu-btns {
  display: flex;
  gap: 8px;
  padding: 24px 0;
}
.mobile-menu-btns a { flex: 1; text-align: center; font-size: 14px; }

/* =============================================
   반응형 표시/숨김
   ============================================= */
.desktop-only { display: none !important; }
.mobile-only { display: flex !important; }

@media (min-width: 768px) {
  .desktop-only { display: flex !important; }
  .desktop-only img, .desktop-only.header-logo { display: block !important; }
  .mobile-only { display: none !important; }
}

/* =============================================
   Flexbox/Grid 유틸리티 (Tailwind 대체)
   ============================================= */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.w-6 { width: 1.5rem; }
.h-0\.5 { height: 0.125rem; }
.bg-\[\#212121\] { background-color: #212121; }
.p-2 { padding: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.text-center { text-align: center; }
.hidden { display: none; }

/* Tailwind transition helpers */
.transition-all { transition: all 0.15s ease; }
.rotate-45 { transform: rotate(45deg); }
.translate-y-2 { transform: translateY(0.5rem); }
.-rotate-45 { transform: rotate(-45deg); }
.-translate-y-2 { transform: translateY(-0.5rem); }
.opacity-0 { opacity: 0; }

/* Header hamburger */
.hamburger-line {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  background-color: #212121;
  transition: all 0.15s ease;
}

/* =============================================
   개발 업무 지원 (devsupport) — .dvs-
   techunion 이식 섹션. 디자인 토큰만 사용 (신규 색상값 도입 금지 원칙,
   단 다크 카드 제목 #9b7bff 는 명도 대비(AA) 확보용 액센트 밝은 변형)
   ============================================= */

/* --- 공통: 교차 배경 --- */
.dvs-bg-alt { background-color: var(--color-bg-alt); }

/* --- 공통: 섹션 헤더 (eyebrow + 제목 + 부제) --- */
.dvs-eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.dvs-section-head { margin-bottom: 40px; }
.dvs-section-head--center { text-align: center; }
.dvs-section-head--narrow { max-width: 760px; }
.dvs-section-sub {
  margin-top: 12px;
  color: var(--color-text-sub);
  font-size: var(--text-base);
  line-height: 1.8;
}

/* --- ① 히어로 --- */
.dvs-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 110px 0;
  text-align: center;
}
.dvs-hero__overlay {
  position: absolute;
  inset: 0;
  /* 다크 이미지 위 텍스트 가독성 확보용 오버레이 */
  background: linear-gradient(180deg, rgba(12,12,20,0.7) 0%, rgba(12,12,20,0.5) 100%);
}
.dvs-hero__inner { position: relative; z-index: 1; }
.dvs-hero__title { color: var(--color-text-white); margin-bottom: 14px; }
.dvs-hero__sub { color: rgba(255,255,255,0.85); font-size: var(--text-lg); }
@media (max-width: 767px) {
  .dvs-hero { padding: 70px 0; }
  .dvs-hero__sub { font-size: var(--text-base); }
}

/* --- ② OVERVIEW (2컬럼: 슬로건 / 본문) --- */
.dvs-overview-grid {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 40px;
}
.dvs-overview-slogan {
  margin-top: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--color-text);
}
.dvs-overview-body {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--color-text);
}
@media (max-width: 767px) {
  .dvs-overview-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* --- ③ 핵심 역량 (5개 다크 카드) --- */
.dvs-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dvs-cap-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--color-bg-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.dvs-cap-card:hover {
  transform: translateY(-6px);
  border-color: rgba(97,53,255,0.7);
  box-shadow: 0 18px 48px -14px rgba(97,53,255,0.45);
}
.dvs-cap-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-purple) 100%);
  color: var(--color-text-white);
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}
.dvs-cap-card:hover .dvs-cap-icon { transform: scale(1.1); }
.dvs-cap-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-text-white);
}
.dvs-cap-title {
  margin-top: 4px;
  font-size: var(--text-lg);
  font-weight: 600;
  /* 다크 배경(#111823) 대비 약 5.7:1 — WCAG AA 충족하는 액센트 밝은 변형 */
  color: #9b7bff;
}
.dvs-cap-desc {
  margin-top: 8px;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}
@media (max-width: 1023px) {
  .dvs-cap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .dvs-cap-grid { grid-template-columns: 1fr; }
}

/* --- ④ 풀사이클 (3개 이미지 카드) --- */
.dvs-cycle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.dvs-cycle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 20rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dvs-cycle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}
/* 배경 이미지 (WebP 자동 래핑되어도 picture{display:contents} 로 배치 유지) */
.dvs-cycle-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dvs-cycle-card:hover img { transform: scale(1.05); }
.dvs-cycle-card__overlay {
  position: absolute;
  inset: 0;
  /* 텍스트 가독성용 하단 그라데이션 */
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 45%, transparent 100%);
}
.dvs-cycle-card__body {
  position: relative;
  z-index: 1;
  padding: 20px;
}
.dvs-cycle-card__body h3 {
  color: var(--color-text-white);
  font-size: var(--text-lg);
}
.dvs-cycle-card__body p {
  margin-top: 8px;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
}
@media (max-width: 767px) {
  .dvs-cycle-grid { grid-template-columns: 1fr; margin-top: 32px; }
}

/* --- ⑤ 포트폴리오 (태그 필터 + 카드 그리드) --- */
.dvs-pf-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.dvs-filter-btn {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 9999px;
  border: 1px solid var(--color-border-dark);
  background-color: var(--color-bg);
  color: var(--color-text-sub);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.dvs-filter-btn:hover { border-color: var(--color-dark); color: var(--color-text); }
.dvs-filter-btn.is-active {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-text-white);
}
.dvs-pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dvs-pf-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dvs-pf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.dvs-pf-card.is-hidden { display: none; }
.dvs-pf-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  /* 썸네일 로딩 전/누락 시 다크 placeholder */
  background: linear-gradient(135deg, #2a1d5e 0%, var(--color-bg-dark) 100%);
}
.dvs-pf-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dvs-pf-card:hover .dvs-pf-thumb img { transform: scale(1.05); }
.dvs-pf-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 1;
}
.dvs-pf-tag {
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-white);
  background-color: rgba(17,24,35,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}
.dvs-pf-body { padding: 18px 20px 20px; }
.dvs-pf-title { font-size: var(--text-lg); font-weight: 700; }
.dvs-pf-client {
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.dvs-pf-summary {
  margin-top: 8px;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-sub);
}
@media (max-width: 1023px) {
  .dvs-pf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .dvs-pf-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* --- 포트폴리오 간단 모달 --- */
.dvs-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(12,12,20,0.7);
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.dvs-modal-overlay.is-open { display: flex; }
.dvs-modal-box {
  position: relative;
  background-color: var(--color-bg);
  border-radius: 16px;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.dvs-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background-color: rgba(17,24,35,0.6);
  color: var(--color-text-white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.dvs-modal-close:hover { background-color: rgba(17,24,35,0.85); }
.dvs-modal-img {
  width: 100%;
  display: block;
  background-color: var(--color-bg-dark);
}
.dvs-modal-body { padding: 24px 28px 28px; }
.dvs-modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
/* 모달 태그 뱃지는 흰 배경 위 — 다크 칩 그대로 재사용 (.dvs-pf-tag) */
.dvs-modal-title { font-size: var(--text-2xl); }
.dvs-modal-client {
  margin-top: 4px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.dvs-modal-summary {
  margin-top: 12px;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-sub);
}

/* --- ⑥ CTA (다크 풀폭 밴드) --- */
.dvs-cta {
  background-color: var(--color-bg-dark);
  text-align: center;
  padding: 80px 0;
}
.dvs-cta__title { color: var(--color-text-white); }
.dvs-cta__sub {
  margin-top: 12px;
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
}
.dvs-cta__btn { margin-top: 28px; }
@media (max-width: 767px) {
  .dvs-cta { padding: 56px 0; }
}
