/* 온픽스 냉장고장 중간벽 제거 — 공통 스타일 */

@font-face {
  font-family: 'Pretendard';
  src: url('/assets/fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --primary: #232f45;
  --primary-light: #445773;
  --primary-50: #eef1f5;
  --accent: #a8703c;
  --accent-dark: #8a5a2c;
  --ink: #111827;
  --ink-soft: #374151;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --bg-soft: #f8fafc;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.15);
  --shadow-sm: 0 4px 14px -6px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 78px; /* 모바일 하단 CTA 바 여백 */
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* ===== 헤더 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .bar {
  max-width: 1220px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; color: var(--primary); white-space: nowrap; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.tel-chip {
  display: none;
  align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.92rem; color: var(--primary);
  border: 1.5px solid var(--primary-50); background: var(--primary-50);
  padding: 8px 14px; border-radius: 999px;
}
.btn-cta {
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; font-size: 0.92rem;
  border: none; cursor: pointer; white-space: nowrap;
}
.btn-cta:hover { background: var(--accent-dark); }
.menu-toggle {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--gray-200);
  background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display:none; }
.menu-toggle svg { width: 20px; height: 20px; }

.nav-panel {
  position: fixed; inset: 0; background: rgba(17,24,39,0.55); z-index: 60;
  display: none;
}
.nav-panel.open { display: block; }
.nav-panel-inner {
  position: absolute; top: 0; right: 0; height: 100%; width: min(340px, 86%);
  background: #fff; padding: 22px; box-shadow: -12px 0 30px rgba(0,0,0,0.2);
  overflow-y: auto;
}
.nav-panel-close {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--gray-200);
  background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-bottom: 18px;
}
.nav-panel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav-panel-list a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--gray-100);
  font-weight: 600; color: var(--ink-soft); font-size: 1rem;
}
.nav-panel-list a.current { color: var(--primary); font-weight: 800; }
.nav-panel-cta { margin-top: 20px; display: block; text-align: center; background: var(--primary); color: #fff; padding: 14px; border-radius: 12px; font-weight: 800; }

/* ===== 히어로 (그라데이션 2단 레이아웃) ===== */
.hero {
  padding: 44px 0 68px;
  background: linear-gradient(135deg, #1a2334 0%, #232f45 45%, #2d3a52 100%);
  overflow: hidden;
  position: relative;
}
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35); color: #fff;
  font-size: 0.82rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
h1 { font-size: 2.15rem; line-height: 1.35; font-weight: 800; margin: 0 0 16px; letter-spacing: -0.01em; }
.hero h1 { color: #fff; }
.lead {
  font-size: 1.08rem; color: var(--ink-soft); font-weight: 500;
  background: #fff; border: 1px solid var(--gray-200); border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 0 0 24px;
}
.hero .lead {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-left: 4px solid #fff;
  color: #eff6ff;
}
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.stat-pill {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 12px 16px; box-shadow: var(--shadow-sm); flex: 1 1 150px; min-width: 140px;
}
.stat-pill .num { display: block; font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.stat-pill .lbl { font-size: 0.82rem; color: var(--gray-500); }
.stat-pill-cta { background: var(--accent); border-color: var(--accent); cursor: pointer; transition: background 0.15s; }
.stat-pill-cta:hover { background: var(--accent-dark); }
.stat-pill-cta .num, .stat-pill-cta .lbl { color: #fff; }
.stat-note { font-size: 0.82rem; color: var(--gray-500); margin: -18px 0 22px; }
.hero .stat-note { color: rgba(255,255,255,0.7); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #fff; font-weight: 800; padding: 15px 26px;
  border-radius: 12px; font-size: 1rem; box-shadow: var(--shadow-sm);
}
.btn-outline {
  background: #fff; color: var(--primary); font-weight: 800; padding: 14px 24px;
  border-radius: 12px; font-size: 1rem; border: 1.5px solid var(--primary);
}
.hero .btn-primary { background: #fff; color: var(--primary); }
.hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }

/* 히어로 사진 크로스페이드 + 스탯 카드 */
.hero-media { position: relative; padding: 0 14px 22px 0; }
.hero-media .frame {
  position: relative; z-index: 3; aspect-ratio: 4/5;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  border: 6px solid rgba(255,255,255,0.18); background: #0f1524;
}
.hero-media .frame .fade-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: heroFade 9s ease-in-out infinite; will-change: opacity;
}
.hero-media .frame .fade-img:nth-child(1) { animation-delay: 0s; }
.hero-media .frame .fade-img:nth-child(2) { animation-delay: 3s; }
.hero-media .frame .fade-img:nth-child(3) { animation-delay: 6s; }
.hero-media .frame.frame-2 .fade-img { animation-duration: 6s; }
.hero-media .frame.frame-2 .fade-img:nth-child(2) { animation-delay: 3s; }
@keyframes heroFade {
  0%, 100% { opacity: 0; }
  4% { opacity: 1; }
  29% { opacity: 1; }
  33% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media .frame .fade-img { animation: none; opacity: 0; }
  .hero-media .frame .fade-img:first-child { opacity: 1; }
}
.hero-float-card {
  position: absolute; z-index: 4; right: 6px; bottom: -6px; background: #fff; border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
}
.hero-float-card .num { font-size: 1.3rem; font-weight: 800; color: var(--primary); display: block; line-height: 1.1; }
.hero-float-card .lbl { font-size: 0.74rem; color: var(--gray-500); }

figure.photo { margin: 0 0 20px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
figure.photo figcaption {
  padding: 10px 14px; font-size: 0.86rem; color: var(--gray-500); background: var(--bg-soft);
}

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; }
}

/* ===== 섹션 공통 ===== */
section.block { padding: 44px 0; }
section.block.soft { background: var(--bg-soft); }
h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 1.12rem; font-weight: 700; margin: 22px 0 8px; }
.section-kicker { color: var(--primary); font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; display: block; }
.section-desc { color: var(--gray-500); margin: 0 0 26px; }
p { margin: 0 0 16px; color: var(--ink-soft); }

/* ===== 피처 2단 섹션(이미지+텍스트) ===== */
.feature-split { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; }
.feature-split-media img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%;
  aspect-ratio: 4/3; object-fit: cover;
}
.feature-split-body h2 { margin-top: 0; }
@media (min-width: 900px) {
  .feature-split { grid-template-columns: 1fr 1fr; gap: 44px; }
  .feature-split.reverse .feature-split-media { order: 2; }
}

/* ===== 비포/애프터 비교 ===== */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba-pair figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.ba-pair img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.ba-tag {
  position: absolute; top: 10px; left: 10px; background: rgba(17,24,39,0.68); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 3px 11px; border-radius: 999px;
}
.ba-tag.after { background: var(--primary); }
.ba-caption { margin: 10px 0 0; font-size: 0.88rem; color: var(--gray-500); text-align: center; }

/* ===== 체크리스트 ===== */
.check-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 0.95rem;
}
.check-list li::before {
  content: ''; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3,8.5 6.5,12 13,4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 11px;
}

/* ===== 표 ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 520px; }
table caption { text-align: left; padding: 14px 18px; font-weight: 700; background: var(--primary); color: #fff; caption-side: top; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--gray-100); font-size: 0.95rem; }
thead th { background: var(--primary-50); color: var(--primary); font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }
.table-note { font-size: 0.85rem; color: var(--gray-500); margin-top: 10px; }

/* ===== 절차 ===== */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 20px 18px 60px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem;
}
.steps li strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.steps li span { color: var(--gray-500); font-size: 0.92rem; }

/* ===== 카드 그리드 ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.info-card h3 { margin-top: 0; }
.info-card p { margin-bottom: 0; font-size: 0.94rem; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 8px; }
.photo-grid figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.photo-grid img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.photo-grid figcaption { padding: 8px 10px; font-size: 0.78rem; color: var(--gray-500); background: var(--bg-soft); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--radius-md); background: #fff; overflow: hidden;
}
.faq-item summary {
  padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--primary); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-a { padding: 0 20px 20px; color: var(--ink-soft); font-size: 0.94rem; }
.faq-item h3 { margin: 0; font-size: 0.98rem; font-weight: 700; }

/* ===== 관련 서비스 카드 ===== */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.related-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); display: block;
}
.related-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.related-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card .label { padding: 14px 16px; font-weight: 700; font-size: 0.94rem; color: var(--ink); }
.related-card .label small { display: block; font-weight: 500; color: var(--gray-500); font-size: 0.78rem; margin-top: 3px; }

/* ===== 하단 CTA 배너 ===== */
.cta-banner {
  background: var(--primary); color: #fff; border-radius: var(--radius-lg);
  padding: 36px 30px; text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #dbeafe; }
.cta-banner .cta-row { justify-content: center; }
.cta-banner .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }

/* ===== 최종수정일 ===== */
.updated-line { font-size: 0.85rem; color: var(--gray-500); margin: 30px 0 0; padding-top: 16px; border-top: 1px dashed var(--gray-200); }

/* ===== 푸터 ===== */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 34px 0 100px; margin-top: 20px; }
.site-footer .biz-info { font-size: 0.85rem; line-height: 2; color: #94a3b8; }
.site-footer .biz-info strong { color: #e2e8f0; }
.site-footer .copy { margin-top: 14px; font-size: 0.78rem; color: #64748b; }

/* ===== 모바일 하단 고정 CTA 바 ===== */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--gray-200); box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
}
.mobile-cta-bar a {
  background: #fff; padding: 14px 8px; text-align: center; font-weight: 800; font-size: 0.92rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.mobile-cta-bar a.call { background: var(--primary); color: #fff; }
.mobile-cta-bar a.sms { background: var(--accent); color: #fff; }

/* ===== 메인 이동 플로팅 배너(서브/상담 페이지) ===== */
.home-float {
  position: fixed; left: 16px; bottom: 92px; z-index: 54;
  background: #fff; border: 1px solid var(--gray-200); box-shadow: var(--shadow);
  border-radius: 999px; padding: 10px 16px 10px 12px; display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.85rem; color: var(--primary);
}
.home-float svg { width: 16px; height: 16px; }

/* ===== 반응형 ===== */
@media (min-width: 769px) {
  .tel-chip { display: inline-flex; }
  .mobile-cta-bar { display: none; }
  body { padding-bottom: 0; }
  h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 14px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.28rem; }
  .lead { font-size: 1rem; padding: 15px 16px; }
  .hero { padding: 28px 0 46px; }
  .hero-media { padding: 0 4px 18px; max-width: 380px; margin: 0 auto; width: 100%; }
  .hero-float-card { padding: 10px 14px; right: 0; }
  .hero-float-card .num { font-size: 1.1rem; }
  .stat-note { margin-top: -14px; }
  .feature-split { gap: 20px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; gap: 16px; }
  section.block { padding: 32px 0; }
  .cta-banner { padding: 28px 18px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn-primary, .cta-row .btn-outline { text-align: center; width: 100%; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .home-float { left: 10px; bottom: 88px; padding: 8px 14px 8px 10px; font-size: 0.78rem; }
  table { min-width: 480px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 12px; }
  h1 { font-size: 1.4rem; }
  .hero-badge { font-size: 0.76rem; padding: 5px 12px; }
  .stat-pill { min-width: 128px; padding: 10px 12px; }
  .stat-pill .num { font-size: 1.15rem; }
  .btn-primary, .btn-outline { padding: 13px 20px; font-size: 0.94rem; }
  .ba-pair { gap: 6px; }
  .related-card .label { padding: 12px 12px; font-size: 0.88rem; }
}
