/* ==========================================================================
   수리수리 차키수리 by 마이고 (mygo.co.kr)
   모바일 최우선(Mobile-First) 고대비 프리미엄 디자인 시스템 (V2 완벽판)
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --navy: #0f172a;
  --text-title: #0f172a;       /* 가장 짙고 또렷한 잉크 블랙 */
  --text-body: #1e293b;        /* 본문 고대비 차콜 (700) */
  --text-desc: #334155;        /* 설명글 선명한 슬레이트 (600) - 절대 흐릿하지 않음 */
  --text-muted: #475569;       /* 보조 텍스트 (500) */

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #cbd5e1;     /* 모바일에서도 또렷하게 보이는 1.5px 테두리 */
  --border-focus: #2563eb;

  --accent-green: #059669;
  --accent-green-bg: #ecfdf5;
  --accent-red: #dc2626;
  --accent-red-bg: #fef2f2;

  --container-max: 1140px;
  --radius-card: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
}

/* 글로벌 리셋 & 390px 무오버플로우 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  letter-spacing: -0.3px;
}

body {
  padding-bottom: 90px;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 18px;
}

/* ==========================================================================
   헤더 Header (고정 60px / 모바일 56px)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 60px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.badge-specialty {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--primary-border);
  white-space: nowrap;
}

.header-slogan {
  font-size: 0.85rem;
  color: var(--text-desc);
  font-weight: 600;
}

.btn-tel-pill {
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-tel-pill:hover {
  background: var(--primary);
}

/* ==========================================================================
   섹션 공통 헤더 (모바일 고대비 시인성)
   ========================================================================== */
.sec-header {
  text-align: center;
  margin-bottom: 30px;
}

.sec-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--primary-border);
  margin-bottom: 10px;
}

.sec-header h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-title);
  letter-spacing: -0.5px;
  line-height: 1.35;
  margin-bottom: 10px;
  word-break: keep-all;
}

.sec-header p {
  font-size: 1rem;
  color: var(--text-desc);
  font-weight: 600;
  line-height: 1.5;
  word-break: keep-all;
}

/* ==========================================================================
   섹션 0: Hero & 2열 실시간 계산기 (#calculator)
   ========================================================================== */
.sec-hero-calc {
  padding: 30px 0 50px;
  background: linear-gradient(180deg, #f1f5f9 0%, var(--bg-page) 100%);
}

.hero-banner-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  min-height: 200px;
  background: #091224;
}

.hero-banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-banner-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  color: #fff;
  background: linear-gradient(135deg, rgba(9, 18, 36, 0.88) 0%, rgba(15, 30, 61, 0.82) 100%);
}

.hero-subtag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.4);
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  width: fit-content;
  border: 1px solid rgba(147, 197, 253, 0.3);
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #ffffff;
  word-break: keep-all;
}

.hero-title-sub {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #93c5fd;
  margin-top: 4px;
}

.hero-desc {
  font-size: 0.96rem;
  color: #e2e8f0;
  font-weight: 600;
  line-height: 1.5;
  word-break: keep-all;
}

/* 2열 계산기 레이아웃 */
.calc-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.calc-form-wrap {
  flex: 58;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 28px;
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.calc-aside {
  flex: 42;
  position: sticky;
  top: 80px;
}

.sticky-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 26px;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.card-badge {
  display: inline-block;
  background: var(--accent-green);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 900;
  margin-bottom: 6px;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 14px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border-color);
}

.price-val {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
}

.price-unit {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}

.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.price-breakdown .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-body);
}

.price-breakdown .row span:first-child {
  color: var(--text-desc);
}

.price-breakdown .row .free {
  color: var(--accent-green);
  font-weight: 800;
}

.btn-cta-sms {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--primary);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  padding: 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  text-align: center;
}

.btn-cta-sms:hover {
  background: var(--primary-hover);
}

.btn-cta-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--navy);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-align: center;
}

.btn-cta-tel:hover {
  background: #1e293b;
}

.safe-guarantee-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-desc);
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  background: #eff6ff;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--primary-border);
}

/* 폼 스텝 스타일 */
.form-step {
  margin-bottom: 24px;
}

.step-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 12px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.radio-card:hover {
  border-color: #94a3b8;
}

.radio-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}

.rc-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
}

.rc-desc {
  font-size: 0.86rem;
  color: var(--text-desc);
  font-weight: 600;
  line-height: 1.4;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.checkbox-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.checkbox-card .cb-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
}

.checkbox-card .cb-sub {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--primary);
  margin-left: auto;
  white-space: nowrap;
}

/* ==========================================================================
   섹션 1: 전국 6대 권역 (#hubs)
   ========================================================================== */
.sec-hubs {
  padding: 50px 0;
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.hubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hub-card {
  background: var(--bg-page);
  padding: 20px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
}

.hub-card h4 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
}

.hub-card p {
  font-size: 0.88rem;
  color: var(--text-desc);
  font-weight: 600;
  line-height: 1.55;
}

.hub-card.hub-special {
  background: #eff6ff;
  border-color: #93c5fd;
}

.hub-card.hub-special h4 {
  color: var(--primary);
}

/* ==========================================================================
   섹션 2: 3대 안심 실시간 통계 바 (#stats)
   ========================================================================== */
.sec-stats {
  padding: 36px 0;
  background: #091224;
  color: #fff;
}

.stats-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 2.1rem;
  font-weight: 900;
  color: #60a5fa;
  letter-spacing: -0.5px;
}

.stat-lbl {
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 700;
}

/* ==========================================================================
   섹션 3: 공식 센터 vs 마이고 비교표 (#field-service)
   ========================================================================== */
.sec-compare {
  padding: 50px 0;
  background: var(--bg-page);
}

/* 데스크톱 테이블 래퍼 */
.compare-table-wrap {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare-table th, .compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.compare-table th {
  background: #f8fafc;
  font-weight: 900;
  color: var(--navy);
  font-size: 1rem;
}

.col-bad {
  color: #dc2626;
  background: #fef2f2;
  font-weight: 600;
}

.col-good {
  color: var(--primary);
  background: #eff6ff;
  font-weight: 800;
}

/* 모바일 전용 비교 카드 리스트 (모바일에서 테이블 대체) */
.mobile-compare-list {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.m-compare-card {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.m-compare-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}

.m-compare-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
  line-height: 1.4;
}

.m-compare-row .lbl {
  font-weight: 700;
  color: var(--text-desc);
  width: 90px;
  flex-shrink: 0;
}

.m-compare-row.bad .val {
  color: #dc2626;
  font-weight: 600;
}

.m-compare-row.good .val {
  color: var(--primary);
  font-weight: 900;
}

/* ==========================================================================
   섹션 4: 공식 정찰 가격표 (#pricing)
   ========================================================================== */
.sec-pricing {
  padding: 50px 0;
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.price-col {
  background: var(--bg-page);
  padding: 24px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  text-align: center;
  transition: all 0.2s ease;
}

.price-col:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.price-col h3 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 10px;
}

.price-col .p-amount {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 10px;
}

.price-col p {
  font-size: 0.86rem;
  color: var(--text-desc);
  font-weight: 600;
  line-height: 1.5;
}

/* ==========================================================================
   섹션 5: 실사 시공 사례 (#cases)
   ========================================================================== */
.sec-cases {
  padding: 50px 0;
  background: var(--bg-page);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.case-img-wrap {
  position: relative;
  height: 210px;
  background: #0f172a;
}

.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.case-body {
  padding: 20px;
}

.case-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
}

.case-desc {
  font-size: 0.88rem;
  color: var(--text-desc);
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 14px;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 1.5px solid var(--border-color);
  padding-top: 12px;
}

/* ==========================================================================
   섹션 6: 무한 롤링 고객 후기 (#reviews)
   ========================================================================== */
.sec-reviews {
  padding: 50px 0;
  background: #fff;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 35s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  width: 320px;
  background: var(--bg-page);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  flex-shrink: 0;
}

.rc-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.rc-quote {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 10px;
}

.rc-author {
  font-size: 0.82rem;
  color: var(--text-desc);
  font-weight: 700;
}

/* ==========================================================================
   섹션 7: 본사 100% 책임 4대 안심 보증 (#guarantees)
   ========================================================================== */
.sec-guarantees {
  padding: 50px 0;
  background: var(--bg-page);
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.guarantee-card {
  background: #fff;
  padding: 24px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  text-align: center;
}

.guarantee-card .icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.guarantee-card h4 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
}

.guarantee-card p {
  font-size: 0.88rem;
  color: var(--text-desc);
  font-weight: 600;
  line-height: 1.55;
}

/* ==========================================================================
   섹션 8: 지식iN 배제 10문 10답 아코디언 FAQ (#faq)
   ========================================================================== */
.sec-faq {
  padding: 50px 0;
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-page);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}

.faq-q {
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
  display: block;
  line-height: 1.45;
}

.faq-a {
  font-size: 0.92rem;
  color: var(--text-body);
  font-weight: 600;
  line-height: 1.65;
}

/* ==========================================================================
   섹션 9: 협력 파트너십 (#partners)
   ========================================================================== */
.sec-partners {
  padding: 50px 0;
  background: #f1f5f9;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* ==========================================================================
   푸터 Footer & 4대 면책 약관 전문
   ========================================================================== */
.site-footer {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 110px;
}

.footer-info {
  font-size: 0.86rem;
  color: var(--text-desc);
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 24px;
}

.legal-terms-box {
  margin-top: 16px;
  padding: 22px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-desc);
  line-height: 1.7;
}

.legal-header {
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 14px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* ==========================================================================
   모바일 하단 플로팅 고정 바 (Mobile Fixed Bar)
   ========================================================================== */
.mobile-fixed-bar {
  display: none;
}

/* ==========================================================================
   📱 모바일(390px ~ 768px) 반응형 완벽 최적화
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding-bottom: 84px !important;
  }

  .container-narrow {
    padding: 0 16px;
  }

  /* 헤더 모바일: 슬로건 숨김, 로고와 전화버튼 깔끔 정렬 */
  .site-header {
    height: 56px;
  }

  .header-slogan {
    display: none;
  }

  .logo-name {
    font-size: 1.12rem;
  }

  .badge-specialty {
    font-size: 0.72rem;
    padding: 2px 6px;
  }

  .btn-tel-pill {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  /* 히어로 배너 */
  .hero-banner-card {
    min-height: 190px;
    margin-bottom: 20px;
  }

  .hero-banner-content {
    padding: 20px 18px;
  }

  .hero-title {
    font-size: 1.45rem;
    line-height: 1.35;
  }

  .hero-title-sub {
    font-size: 0.95rem;
  }

  .hero-desc {
    font-size: 0.88rem;
  }

  /* 계산기 레이아웃 1열 스택 */
  .calc-layout {
    flex-direction: column;
    gap: 20px;
  }

  .calc-form-wrap, .calc-aside {
    flex: 100%;
    width: 100%;
    padding: 20px 16px;
  }

  .calc-aside {
    position: static;
  }

  .step-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rc-title {
    font-size: 1.02rem;
  }

  .rc-desc {
    font-size: 0.88rem;
    color: var(--text-desc);
    font-weight: 600;
  }

  .price-val {
    font-size: 2.3rem;
  }

  /* 권역 안내 */
  .hubs-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* 통계 바 */
  .stats-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-num {
    font-size: 1.8rem;
  }

  .stat-lbl {
    font-size: 0.82rem;
  }

  /* 비교표: 데스크톱 테이블 숨기고 모바일 전용 카드 리스트 표시 */
  .compare-table-wrap {
    display: none;
  }

  .mobile-compare-list {
    display: flex;
  }

  /* 가격표 */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 시공 사례 */
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-img-wrap {
    height: 180px;
  }

  /* 보증 4대 */
  .guarantees-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 법적 약관 */
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* 모바일 하단 플로팅 고정 바 */
  .mobile-fixed-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 68px;
    background: #ffffff;
    border-top: 1.5px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .m-price-box {
    display: flex;
    flex-direction: column;
  }

  .m-lbl {
    font-size: 0.72rem;
    color: var(--text-desc);
    font-weight: 700;
  }

  .m-val {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
  }

  .m-btn-sms {
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    font-size: 0.88rem;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  }

  .m-btn-tel {
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
  }
}


/* ==========================================================================
   상단 GNB 내비게이션 & 모바일 슬라이드 드로어 메뉴
   ========================================================================== */

/* 데스크톱 GNB */
.header-gnb {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gnb-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 4px;
  transition: color 0.15s ease;
  position: relative;
}

.gnb-link:hover {
  color: var(--primary);
}

.gnb-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.gnb-link:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 모바일 햄버거 버튼 */
.mobile-hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
}

.ham-line {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* 모바일 슬라이드 드로어 메뉴 */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-drawer-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #ffffff;
  z-index: 10002;
  box-shadow: -6px 0 24px rgba(15, 23, 42, 0.2);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer-menu.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1.5px solid var(--border-color);
  background: #f8fafc;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.drawer-quick-cta {
  padding: 16px 20px 10px;
}

.drawer-btn-calc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.drawer-nav-list {
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy);
  transition: background 0.15s ease;
}

.drawer-nav-item:hover, .drawer-nav-item:active {
  background: #f1f5f9;
}

.drawer-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.drawer-text-col {
  display: flex;
  flex-direction: column;
}

.drawer-item-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
}

.drawer-item-sub {
  font-size: 0.76rem;
  color: var(--text-desc);
  font-weight: 600;
}

.drawer-footer-actions {
  padding: 16px 20px 24px;
  border-top: 1.5px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 미디어 쿼리 조정 */
@media (max-width: 960px) {
  .header-gnb {
    display: none;
  }
  .mobile-hamburger-btn {
    display: flex;
  }
}


/* ==========================================================================
   모바일 햄버거 버튼 시인성 극대화 (Mobile Hamburger High-Visibility)
   ========================================================================== */
.mobile-hamburger-btn {
  display: none;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-hamburger-btn:active {
  background: #e2e8f0;
  transform: scale(0.95);
}

.ham-line {
  display: block;
  width: 20px;
  height: 2.5px;
  background: #0f172a;
  border-radius: 2px;
}

@media (max-width: 960px) {
  .header-gnb {
    display: none !important;
  }
  .mobile-hamburger-btn {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 14px;
  }
  .btn-tel-pill {
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 800;
  }
  .btn-tel-pill span.tel-full {
    display: none;
  }
  .btn-tel-pill span.tel-short {
    display: inline;
  }
}

@media (min-width: 769px) {
  .btn-tel-pill span.tel-short {
    display: none;
  }
}


/* ==========================================================================
   헤더 영구 상단 고정 (Fixed Header) & 앵커 스크롤 여백 보정
   ========================================================================== */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 60px !important;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1.5px solid var(--border-color) !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08) !important;
}

body {
  padding-top: 60px !important;
}

@media (max-width: 768px) {
  .site-header {
    height: 56px !important;
  }
  body {
    padding-top: 56px !important;
  }
}

/* 앵커 링크 이동 시 헤더 가림 방지 */
section, article, div[id] {
  scroll-margin-top: 74px;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}


/* ==========================================================================
   3단계 차량 드롭다운 선택기 시스템 (From Sidemirror)
   ========================================================================== */
.car-select-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

@media (min-width: 640px) {
  .car-select-grid {
    grid-template-columns: 1fr 1fr 1.2fr;
  }
}

.calc-select {
  width: 100%;
  height: 44px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 0.92rem;
  font-weight: 700;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.calc-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.calc-select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.step-req {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
}


/* ==========================================================================
   CASE 시공 사례 카드 칼정렬 & 높이 통일 (Perfect Horizontal Alignment)
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.case-img-wrap {
  position: relative;
  height: 210px;
  background: #0f172a;
  flex-shrink: 0;
}

.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 20px;
}

.case-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 10px;
  min-height: 1.5rem;
  line-height: 1.35;
}

.case-desc {
  font-size: 0.88rem;
  color: var(--text-desc);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
  min-height: 4.8rem;
}

.case-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 1.5px solid var(--border-color);
  padding-top: 14px;
}


/* ==========================================================================
   가격표 카드 한 줄 칼정렬 & 줄바꿈 방지 (Perfect Pricing Grid Alignment)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-col {
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  padding: 24px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  text-align: center;
  transition: all 0.2s ease;
  height: 100%;
}

.price-col:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  background: #ffffff;
}

.price-col h3 {
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 10px;
  min-height: 1.4rem;
  line-height: 1.3;
  word-break: keep-all;
}

.price-col .p-amount {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--primary);
  margin: 8px 0 14px;
  white-space: nowrap;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
}

.price-col p {
  font-size: 0.84rem;
  color: var(--text-desc);
  font-weight: 600;
  line-height: 1.5;
  margin-top: auto;
  min-height: 2.8rem;
  word-break: keep-all;
}

@media (max-width: 1024px) {
  .price-col .p-amount {
    font-size: 1.08rem;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .price-col {
    padding: 20px 18px;
  }
  .price-col .p-amount {
    font-size: 1.35rem;
  }
  .price-col p {
    min-height: auto;
  }
}
