/* =========================================================
   UPB 에너지솔루션 - 글로벌 스타일시트
   UPS 배터리 제작 · 납품 · 설치 전문 홈페이지
   ========================================================= */

/* ---------- 1. 디자인 토큰 ----------
   컬러 기준: LG 공식 비주얼 아이덴티티(lge.co.kr / 기업정보 > 비주얼 아이덴티티)
   액티브 레드 #FD312E · 헤리티지 레드 #A50034 · 따뜻한 회색 #F0ECE4 · 화이트 · 블랙
   ------------------------------------------------------------------ */
:root {
  /* --- LG 브랜드 원색 --- */
  --lg-active-red: #fd312e;   /* 액티브 레드  */
  --lg-heritage-red: #a50034; /* 헤리티지 레드 */
  --lg-warm-grey: #f0ece4;    /* 따뜻한 회색  */
  --lg-white: #ffffff;
  --lg-black: #000000;

  /* --- 역할별 매핑 (기존 변수명 유지) --- */
  --navy-900: #0b0b0b;        /* 딥 톤 = 블랙 */
  --navy-800: #1a1a1a;
  --navy-700: #2a2a2a;
  --navy-600: #3d3d3d;
  --blue-500: #a50034;        /* 주요 액션·텍스트 = 헤리티지 레드 */
  --blue-400: #c2154a;        /* 호버 */
  --blue-100: #fae9ef;        /* 연한 틴트 */
  --mint-500: #fd312e;        /* 보조 포인트 = 액티브 레드 (버튼 배경·바) */
  --mint-400: #ff6a68;        /* 밝은 액티브 레드 (다크 배경 위 강조) */
  --mint-100: #ffebea;        /* 액티브 레드 계열 연한 틴트 */
  --amber-500: #ffb020;
  --bg: #f7f5f1;              /* 웜 그레이 기반 배경 */
  --bg-alt: #ffffff;
  --text: #1c1c1c;
  --text-muted: #6e6862;      /* 웜 그레이 계열 보조 텍스트 */
  --border: #e8e3dc;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;          /* LG EI Form: 둥근 모서리 */
  --shadow-sm: 0 2px 10px rgba(70, 25, 35, 0.05);
  --shadow: 0 10px 30px rgba(70, 25, 35, 0.09);
  --shadow-lg: 0 24px 60px rgba(70, 25, 35, 0.15);
  --maxw: 1180px;
  --header-h: 80px;
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto,
    sans-serif;
}

/* ---------- 2. 리셋 & 기본 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 3. 레이아웃 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 84px 0;
}

.section--tight {
  padding: 56px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #f5f5f5;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

/* 좌측 정렬 헤드 중 설명이 긴 경우 — 720px 제한을 풀어
   컨테이너 오른쪽까지 자연스럽게 흐르고 넘칠 때만 줄바꿈한다 */
.section-head--flow {
  max-width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
  background: var(--mint-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section--dark .eyebrow {
  color: #ff8a88;
  background: rgba(253, 49, 46, 0.16);
}

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.03rem;
}

.section--dark .section-desc {
  color: #b5b5b5;
}

/* ---------- 4. 헤더 & 내비게이션 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  white-space: nowrap;
  flex: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--blue-500), var(--mint-500));
  color: #fff;
  box-shadow: 0 6px 16px rgba(165, 0, 52, 0.32);
}

.brand__mark svg {
  width: 23px;
  height: 23px;
}

.brand__text small {
  display: block;
  font-size: 0.56em;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--navy-700);
  transition: background 0.18s ease, color 0.18s ease;
}

.nav__links a:hover {
  background: var(--blue-100);
  color: var(--blue-500);
}

.nav__links a[aria-current="page"] {
  color: var(--blue-500);
  background: var(--blue-100);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--navy-800);
}

.nav__toggle svg {
  width: 26px;
  height: 26px;
  margin: 0 auto;
}

/* ---------- 5. 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  color: #fff;
  box-shadow: 0 10px 22px rgba(165, 0, 52, 0.30);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(165, 0, 52, 0.40);
}

.btn--mint {
  background: linear-gradient(135deg, var(--mint-500), var(--mint-400));
  color: var(--navy-900);
  box-shadow: 0 10px 22px rgba(200, 16, 46, 0.30);
}

.btn--mint:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(200, 16, 46, 0.40);
}

.btn--ghost {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--blue-400);
  color: var(--blue-500);
  background: var(--blue-100);
}

.btn--light {
  background: #fff;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

/* ---------- 6. 히어로 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      1100px 520px at 78% -8%,
      rgba(253, 49, 46, 0.30),
      transparent 60%
    ),
    radial-gradient(900px 460px at 8% 108%, rgba(165, 0, 52, 0.40), transparent 62%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700) 75%);
  color: #fff;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 92px 0 96px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.86rem;
  font-weight: 600;
  color: #dcdcdc;
  margin-bottom: 22px;
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-400);
  box-shadow: 0 0 0 4px rgba(253, 49, 46, 0.30);
}

.hero__title {
  font-size: clamp(1.9rem, 4.2vw, 3.05rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.22;
  margin-bottom: 20px;
}

.hero__title .accent {
  background: linear-gradient(120deg, var(--mint-400), #7fe9d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  font-size: 1.1rem;
  color: #c9c9c9;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.hero__point {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  color: #d5d5d5;
  font-weight: 500;
}

.hero__point svg {
  width: 18px;
  height: 18px;
  color: var(--mint-400);
  flex: none;
}

/* 히어로 우측 비주얼 (CSS로 그린 배터리 랙 카드) */
.hero__visual {
  position: relative;
}

/* 히어로 배경 — 데이터센터 랙 설치 현장 사진 */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.24;
  filter: grayscale(0.3) contrast(1.06);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.95),
    rgba(0, 0, 0, 0.45) 58%,
    rgba(0, 0, 0, 0.2)
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.95),
    rgba(0, 0, 0, 0.45) 58%,
    rgba(0, 0, 0, 0.2)
  );
}

.hero__grid {
  position: relative;
  z-index: 1;
}

.visual-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}

.visual-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.visual-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f2f2f2;
  min-width: 0;
}

.visual-card__tag {
  flex: none;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mint-400);
  background: rgba(253, 49, 46, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
}

.visual-rack {
  display: grid;
  gap: 10px;
}

.rack-unit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.rack-unit__bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.rack-unit__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint-500), var(--blue-400));
}

.rack-unit__label {
  font-size: 0.74rem;
  color: #a8a8a8;
  min-width: 92px;
}

.rack-unit__val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  min-width: 52px;
  text-align: right;
}

.visual-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.metric-chip {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}

.metric-chip strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.metric-chip span {
  font-size: 0.7rem;
  color: #a8a8a8;
}

/* ---------- 7. 신뢰 바 ---------- */
.trustbar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.trustbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.trustbar__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.trustbar__items {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
}

.trustbar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-700);
  font-size: 0.95rem;
}

.trustbar__item svg {
  width: 18px;
  height: 18px;
  color: var(--blue-500);
}

/* ---------- 8. 카드 그리드 ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: #e8cdd7;
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(140deg, var(--blue-100), var(--mint-100));
  color: var(--blue-500);
  margin-bottom: 18px;
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

/* 카드 상단 스펙/분류 배지 (LG전자식 정보 계층) */
.card > .badge {
  margin-bottom: 12px;
}

.card > .badge + .card__title {
  margin-top: 0;
}

.card__title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 카드 내 제품 이미지 — 박스 비율에 맞춰 축소 표시 */
.card__figure {
  display: grid;
  place-items: center;
  height: 132px;
  margin: 0 0 18px;
  padding: 12px;
  background: linear-gradient(160deg, var(--blue-100), var(--mint-100));
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.card__figure img {
  width: auto;
  height: 108px;
  max-width: 100%;
  object-fit: contain;
  /* 배경이 투명해졌으므로 실루엣 기준으로 그림자를 준다 */
  filter: drop-shadow(0 4px 10px rgba(31, 41, 55, 0.22));
}

/* 세로로 긴 랙 이미지는 조금 더 크게 표시 */
.card__figure--rack {
  height: 168px;
}

.card__figure--rack img {
  height: 144px;
}

/* BPU 크롭 이미지 — 슬림한 세로 비율이라 폭을 함께 제한 */
.card__figure--bpu {
  height: 152px;
}

.card__figure--bpu img {
  height: 128px;
  max-width: 92%;
}

/* 다이어그램 이미지 — 원본 자체에 어두운 배경이 있어 패널 톤을 맞춘다.
   그리드 트랙이 auto 라 img 의 높이 % 가 해석되지 않아 잘리므로,
   절대배치 + object-fit 으로 contain 박스를 확실히 만든다 */
.card__figure--diagram {
  position: relative;
  display: block;
  height: 176px;
  padding: 0;
  background: linear-gradient(160deg, #0b1220, #101a2c);
  overflow: hidden;
}

.card__figure--diagram img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none;
}

/* 세로로 긴 S-Frame 이미지는 조금 더 크게 표시 */
.card__figure--diagram-sframe {
  height: 200px;
}

.card__list {
  margin-top: 16px;
  display: grid;
  gap: 9px;
}

.card__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--navy-700);
}

.card__list li svg {
  width: 17px;
  height: 17px;
  color: var(--mint-500);
  flex: none;
  margin-top: 4px;
}

.card--dark {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  border-color: transparent;
  color: #f5f5f5;
}

.card--dark .card__text {
  color: #b5b5b5;
}

.card--dark .card__icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--mint-400);
}

.card--dark .card__list li {
  color: #d5d5d5;
}

/* ---------- 9. 통계 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  text-align: center;
  padding: 28px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.stat--on-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.stat__num {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-500);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat--on-dark .stat__num {
  color: var(--mint-400);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.stat--on-dark .stat__label {
  color: #b5b5b5;
}

/* ---------- 10. 표 ---------- */
.table-wrap {
  overflow-x: auto;
  /* grid 아이템이 min-content(표 최소폭)로 늘어나지 않도록 */
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}

table.spec {
  min-width: 520px;
  font-size: 0.93rem;
}

table.spec caption {
  caption-side: top;
  text-align: left;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-800);
  border-bottom: 1px solid var(--border);
}

table.spec th,
table.spec td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.spec thead th {
  background: #faf8f6;
  font-weight: 700;
  color: var(--navy-800);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

table.spec tbody tr:last-child th,
table.spec tbody tr:last-child td {
  border-bottom: none;
}

table.spec tbody th {
  font-weight: 600;
  color: var(--navy-700);
  background: #fdfcfb;
  white-space: nowrap;
}

table.spec td {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

table.spec .highlight {
  color: var(--blue-500);
  font-weight: 700;
}

.spec-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

/* 배지 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-500);
}

.badge--mint {
  background: var(--mint-100);
  color: #a50034;
}

.badge--amber {
  background: #fff3dd;
  color: #b9770a;
}

.badge--navy {
  background: rgba(255, 255, 255, 0.12);
  color: #dcdcdc;
}

/* ---------- 11. 프로세스 타임라인 ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  box-shadow: var(--shadow-sm);
}

.step__num {
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--blue-500), var(--mint-500));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.step__num::before {
  content: counter(step, decimal-leading-zero);
}

.step__title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.step__text {
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* ---------- 12. 기능 분할 섹션 ---------- */
.figure {
  margin: 40px 0 0;
}

.figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.figure figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- 12-1. 제품 사진 갤러리 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.gallery--3 {
  grid-template-columns: repeat(3, 1fr);
}

.shot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.shot img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.shot--tall img {
  height: 260px;
}

/* 분할 섹션의 미디어 컬럼에서는 세로로 쌓아 크게 보여준다 */
.split__media .gallery {
  grid-template-columns: 1fr;
}

.split__media .shot img {
  height: 300px;
}

.shot figcaption {
  margin-top: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy-800);
}

.shot figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* 다크 섹션 내 이미지 */
.figure--dark img {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.figure--dark figcaption {
  color: #b9b9b9;
}

/* 와이드 일러스트(전체 구성도) */
.figure--wide {
  margin-top: 0;
}

.figure--wide img {
  background: #fff;
  padding: 10px;
  max-height: 560px;
  object-fit: contain;
}

/* 와이드 사진(설치 현장) — 여백 없이 16:9로 채운다 */
.figure--photo img {
  padding: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  height: auto;
  max-height: none;
}

/* 계산값 표기 (공식 사양이 아닌 항목) */
.asterisk {
  color: #b9770a;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* grid 아이템이 내용 최소폭으로 늘어나지 않도록 */
.split > * {
  min-width: 0;
}

.split--reverse .split__media {
  order: -1;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list .tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mint-100);
  color: #a50034;
  margin-top: 2px;
}

.check-list .tick svg {
  width: 15px;
  height: 15px;
}

/* ---------- 12-2. 핵심 역량 리스트 (리플릿 3페이지 구성) ---------- */
.comp-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  counter-reset: comp;
}

.comp-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-500);
  border-radius: var(--radius-sm);
}

.comp-item__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--mint-100);
  color: var(--blue-500);
}

.comp-item__icon svg {
  width: 22px;
  height: 22px;
}

.comp-item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.comp-item span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.comp-item__note {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.check-list strong {
  display: block;
  font-weight: 700;
  color: var(--navy-800);
}

.check-list span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.panel {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  color: #f5f5f5;
  box-shadow: var(--shadow-lg);
}

.panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel__row:last-child {
  border-bottom: none;
}

.panel__row span {
  color: #b5b5b5;
  font-size: 0.92rem;
}

.panel__row strong {
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.flow__node {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

.flow__arrow {
  color: var(--mint-400);
  font-weight: 700;
}

/* ---------- 13. FAQ 아코디언 ---------- */
.faq {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq__item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item.is-open {
  border-color: var(--blue-400);
  box-shadow: var(--shadow-sm);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-800);
}

.faq__q:hover {
  color: var(--blue-500);
}

.faq__icon {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-500);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
  background: var(--blue-500);
  color: #fff;
}

.faq__icon svg {
  width: 15px;
  height: 15px;
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__a-inner {
  padding: 0 22px 22px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- 14. 폼 ---------- */
.form-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-800);
}

.field label .req {
  color: #e5484d;
  margin-left: 3px;
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fdfcfb;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(165, 0, 52, 0.14);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.field .error {
  font-size: 0.78rem;
  color: #e5484d;
  display: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #e5484d;
  background: #fff6f6;
}

.field.has-error .error {
  display: block;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkline input {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  flex: none;
  accent-color: var(--blue-500);
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--mint-100);
  border: 1px solid #f5d6de;
  color: #a50034;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status.is-visible {
  display: block;
}

/* ---------- 15. CTA 밴드 ---------- */
.cta-band {
  background: radial-gradient(
      700px 320px at 100% 0%,
      rgba(253, 49, 46, 0.22),
      transparent 60%
    ),
    linear-gradient(140deg, var(--navy-900), var(--navy-600));
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-lg);
}

.cta-band__title {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cta-band__text {
  color: #c9c9c9;
  font-size: 0.98rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: none;
}

/* ---------- 16. 서브페이지 히어로 ---------- */
.page-hero {
  background: radial-gradient(
      900px 400px at 88% -30%,
      rgba(253, 49, 46, 0.32),
      transparent 60%
    ),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 68px 0 62px;
}

.page-hero__crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #a8a8a8;
  margin-bottom: 16px;
}

.page-hero__crumbs a:hover {
  color: var(--mint-400);
}

.page-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.page-hero__desc {
  color: #c9c9c9;
  max-width: 720px;
  font-size: 1.03rem;
}

/* ---------- 17. 푸터 ---------- */
.site-footer {
  background: var(--navy-900);
  color: #a8a8a8;
  padding: 64px 0 30px;
  font-size: 0.9rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer__about {
  max-width: 320px;
  line-height: 1.7;
}

.footer__title {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer__links {
  display: grid;
  gap: 10px;
}

.footer__links a:hover {
  color: var(--mint-400);
}

.footer__contact {
  display: grid;
  gap: 12px;
}

.footer__contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer__contact svg {
  width: 17px;
  height: 17px;
  color: var(--mint-400);
  flex: none;
  margin-top: 3px;
}

.footer__contact strong {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #8a8a8a;
}

.footer__bottom p {
  max-width: 760px;
}

/* ---------- 18. 탑 버튼 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease,
    background 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--blue-500);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- 19. 등장 애니메이션 (JS 활성 시에만 숨김) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 20. 유틸리티 ---------- */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 21. 반응형 ---------- */
@media (max-width: 1080px) {
  /* 사명(스마트스페이스 UPB)이 길어질 수 있으므로 헤더 요소 축소 */
  .brand {
    font-size: 1.35rem;
  }
  .nav__links a {
    padding: 9px 12px;
    font-size: 0.91rem;
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .process {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 940px) {
  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: #fff;
    padding: 18px 20px 26px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }
  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav__links a {
    padding: 13px 16px;
    border-radius: 10px;
  }
  .nav__toggle {
    display: block;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 66px 0 72px;
  }
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split--reverse .split__media {
    order: 0;
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .gallery,
  .gallery--3 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 0;
  }
  .grid--2,
  .grid--3,
  .grid--4,
  .process,
  .stats,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 38px 26px;
  }
  .cta-band__actions {
    width: 100%;
  }
  .cta-band__actions .btn {
    flex: 1;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .hero__actions .btn {
    flex: 1;
  }
  .visual-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .brand__text small {
    display: none;
  }
  /* 아주 좁은 화면: 로고가 토글 버튼을 밀어내지 않도록 비례 축소 */
  .brand {
    font-size: 1.1rem;
    gap: 10px;
  }
  .brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .brand__mark svg {
    width: 22px;
    height: 22px;
  }
  .rack-unit__label {
    min-width: 72px;
    font-size: 0.68rem;
  }
}






