/* ───────── 공용 토스 스타일 ───────── */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --color-text: #191F28;
  --color-text-sub: #4E5968;
  --color-text-tertiary: #8B95A1;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F9FAFB;
  --color-bg-gray: #F2F4F6;
  --color-border: #E5E8EB;
  --color-primary: #3182F6;
  --color-primary-hover: #1B64DA;
  --color-primary-soft: #EAF2FF;
  --color-warn: #FF6B6B;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, Roboto, 'Helvetica Neue', 'Apple SD Gothic Neo', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───────── 헤더 ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-list {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}
.nav-list a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-sub);
  transition: color 0.15s;
}
.nav-list a:hover { color: var(--color-text); }
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff !important;
}
.nav-cta:hover { background: var(--color-primary-hover); color:#fff !important; }

/* ───────── 히어로 ───────── */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #F4F8FE 0%, #FFFFFF 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 800;
  white-space: pre-line;
  margin-bottom: 24px;
}
.hero p {
  font-size: 19px;
  color: var(--color-text-sub);
  white-space: pre-line;
  margin-bottom: 36px;
  line-height: 1.6;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  background: var(--color-bg-gray);
  color: var(--color-text);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--color-border); }

.hero-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-bg-gray);
}
.hero-visual img { width: 100%; height: auto; display: block; }

/* ───────── 섹션 공통 ───────── */
section { padding: 96px 0; }
.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--color-text-sub);
  white-space: pre-line;
  margin-bottom: 56px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

/* ───────── 서비스 그리드 ───────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px 30px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: #fff;
}
.service-card .icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.service-card p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.55;
}

/* ───────── 자동 슬라이드 ───────── */
.slide-wrap {
  background: var(--color-bg-soft);
}
.slide-track-area {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.slide-track {
  display: flex;
  gap: 20px;
  width: max-content;
  /* 자동 슬라이드는 JS 가 직접 transform 으로 움직입니다 */
  will-change: transform;
  cursor: grab;
  touch-action: pan-y; /* 모바일: 가로 드래그는 우리가, 세로 스크롤은 페이지가 */
  user-select: none;
}
.slide-track.is-dragging { cursor: grabbing; }
.slide-item {
  flex: 0 0 auto;
  width: 360px;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--color-bg-gray);
}
.slide-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none; /* 이미지 드래그가 슬라이드 드래그를 가로채지 않도록 */
}
.slide-item .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 18px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

/* 슬라이드 하단 "더 보기" 버튼 */
.slide-more {
  display: flex;
  justify-content: center;
  margin-top: 44px;
  padding: 0 24px;
}
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font-size: 15.5px;
  font-weight: 700;
  border: 1.5px solid var(--color-border);
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
}
.btn-more:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}
.btn-more:active { transform: scale(0.98); }

/* ───────── 통계 ───────── */
.stats {
  background: linear-gradient(135deg, #0F2E5C 0%, #1748A3 100%);
  color: #fff;
}
.stats .section-title { color: #fff; }
.stats .section-subtitle { color: #B7C9E6; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 24px;
}
.stat-item {
  text-align: center;
  padding: 24px 12px;
}
.stat-value {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  color: #fff;
}
.stat-value .unit { font-size: 26px; margin-left: 4px; color: #9ABEFA; }
.stat-label {
  font-size: 15px;
  color: #B7C9E6;
  font-weight: 500;
}

/* ───────── 약속 ───────── */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.promise-card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.promise-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.promise-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.promise-card h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.promise-card p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.6;
}

/* ───────── 견적 카드 ───────── */
.cta-section {
  background: var(--color-bg-soft);
  padding: 96px 0;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: stretch;
}
.cta-info {
  padding: 8px 0;
}
.cta-info h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 18px;
}
.cta-info p {
  font-size: 17px;
  color: var(--color-text-sub);
  margin-bottom: 36px;
  line-height: 1.6;
}
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.contact-list .role {
  font-size: 13px;
  color: var(--color-text-tertiary);
  font-weight: 600;
}
.contact-list .name {
  font-size: 16px;
  font-weight: 700;
}
.contact-list .phone {
  margin-left: auto;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

.inquiry-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.inquiry-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.inquiry-card .lead {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  font-family: inherit;
  color: var(--color-text);
  transition: border-color 0.15s, background 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}
.form-group textarea {
  resize: none;
  min-height: 110px;
  overflow: hidden;
  line-height: 1.55;
}
.btn-submit {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s;
}
.btn-submit:hover { background: var(--color-primary-hover); }
.btn-submit:active { transform: scale(0.99); }
.btn-submit:disabled { background: var(--color-text-tertiary); cursor: not-allowed; }

/* ───────── 개인정보 활용 동의 박스 ───────── */
.form-consent {
  margin: 18px 0 16px;
  padding: 14px 16px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.consent-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.consent-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid #C4CAD2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 1px;
}
.consent-row:hover .consent-mark { border-color: var(--color-primary); }
.consent-row input:checked ~ .consent-mark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.consent-row input:checked ~ .consent-mark::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.consent-row input:focus-visible ~ .consent-mark {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.consent-text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.55;
}
.consent-text b { color: var(--color-warn); margin-right: 2px; font-weight: 700; }
.consent-view {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--color-text-tertiary);
  text-decoration: underline;
  margin-left: 6px;
  cursor: pointer;
  padding: 0;
}
.consent-view:hover { color: var(--color-primary); }
.consent-detail {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.65;
}
.consent-detail p { margin-bottom: 3px; }
.consent-detail p:last-child { margin-bottom: 0; }
.consent-detail b { color: var(--color-text); font-weight: 700; margin-right: 4px; }

/* ───────── 인테리어 폼 전용: 확장 필드 ───────── */
.lbl-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  margin-left: 4px;
}
.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 12px;
  color: var(--color-text-tertiary);
  font-size: 12.5px;
  font-weight: 600;
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.form-hint {
  font-size: 13px;
  color: var(--color-text-sub);
  background: var(--color-bg-soft);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  line-height: 1.55;
}

/* 다중선택 알약 버튼 */
.check-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.check-pill { cursor: pointer; position: relative; }
.check-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.check-pill > span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-bg-gray);
  color: var(--color-text-sub);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.check-pill:hover > span { background: var(--color-border); }
.check-pill input:checked + span {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.check-pill input:focus-visible + span {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 기타 직접입력 칸 */
.form-other-input {
  width: 100%;
  margin-top: 10px;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  font-family: inherit;
  color: var(--color-text);
}
.form-other-input:focus { outline: none; border-color: var(--color-primary); background: #fff; }

/* 가로 2칸 (건물 유형 | 평수) */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row-2 > div > label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.form-row-2 select,
.form-row-2 input {
  width: 100%;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  color: var(--color-text);
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.form-row-2 select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%238B95A1' d='M6 8L1.5 3.5h9z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-row-2 select:focus,
.form-row-2 input:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #fff;
}
@media (max-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

.form-msg {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}
.form-msg.success { color: #2EA64B; }
.form-msg.error   { color: var(--color-warn); }

/* ───────── 푸터 ───────── */
.site-footer {
  background: #191F28;
  color: #B7C2CE;
  padding: 56px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #2C3645;
  margin-bottom: 28px;
}
.footer-top h5 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.footer-top p, .footer-top a {
  font-size: 13.5px;
  line-height: 1.7;
  color: #B7C2CE;
}
.footer-info-row { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.7; }
.footer-info-row .lbl { color: #6E7C8E; width: 78px; flex-shrink: 0; }
.footer-bottom {
  font-size: 12.5px;
  color: #6E7C8E;
}

/* ───────── 시공기록 페이지 ───────── */
.projects-hero {
  padding: 72px 0 48px;
  background: var(--color-bg-soft);
  text-align: center;
}
.projects-hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.projects-hero p {
  font-size: 17px;
  color: var(--color-text-sub);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 64px 0 32px;
}
.project-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--color-border);
}
.project-images .image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--color-bg-gray);
  overflow: hidden;
}
.project-images img { width: 100%; height: 100%; object-fit: cover; }
.project-images .label {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}
.project-body { padding: 22px 24px 26px; }
.project-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--color-text-tertiary);
}
.project-meta .cat {
  color: var(--color-primary);
  font-weight: 700;
  background: var(--color-primary-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.project-body h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.project-body p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.6;
}
.projects-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--color-text-tertiary);
  font-size: 16px;
}

/* 시공기록 페이지 - 더보기 영역 */
.projects-more {
  display: flex;
  justify-content: center;
  margin: 36px 0 16px;
}

/* 카드 위 호버 시 더 보기 안내 */
.project-card { cursor: pointer; }
.project-images .image-wrap.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  font-size: 13px;
}
.project-images .count-badge {
  position: absolute;
  right: 12px; bottom: 12px;
  padding: 5px 11px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.project-images .image-wrap:hover img {
  transform: scale(1.04);
  transition: transform 0.4s;
}
.project-images img { transition: transform 0.4s; }

/* ───────── 라이트박스 (사진 좌우 슬라이드) ───────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 25, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.lightbox.open { display: flex; opacity: 1; }
.lb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 80px;
}
.lb-img-wrap {
  max-width: 92vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.lb-img-wrap img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  -webkit-user-drag: none;
}
.lb-caption {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.lb-counter {
  position: absolute;
  top: 22px;
  right: 70px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lb-close:active, .lb-prev:active, .lb-next:active { transform: scale(0.95); }
.lb-close { top: 16px; right: 16px; font-size: 28px; }
.lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-prev:active { transform: translateY(-50%) scale(0.95); }
.lb-next:active { transform: translateY(-50%) scale(0.95); }
.lb-prev[disabled], .lb-next[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.lb-thumbs {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  max-width: 90vw;
  overflow-x: auto;
}
.lb-thumbs button {
  width: 56px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  background: #444;
  opacity: 0.55;
  transition: opacity 0.15s, transform 0.1s;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
}
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumbs button:hover { opacity: 0.85; }
.lb-thumbs button.active {
  opacity: 1;
  border-color: #fff;
}

@media (max-width: 720px) {
  .lb-stage { padding: 20px 8px; }
  .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 20px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-counter { right: 60px; top: 24px; }
  .lb-thumbs { padding: 6px 8px; }
  .lb-thumbs button { width: 44px; height: 34px; }
}

/* ───────── 문의 접수 성공 모달 ───────── */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.success-modal.open { display: flex; }
.success-modal .sm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 25, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.success-modal .sm-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 36px 32px 26px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: smPop 0.22s ease-out;
}
@keyframes smPop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.success-modal .sm-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #E7F6EC;
  color: #2EA64B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  margin: 0 auto 18px;
}
.success-modal .sm-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--color-text);
  line-height: 1.4;
}
.success-modal .sm-sub {
  font-size: 14.5px;
  color: var(--color-text-sub);
  margin-bottom: 26px;
  line-height: 1.6;
}
.success-modal .sm-ok {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.success-modal .sm-ok:hover { background: var(--color-primary-hover); }
.success-modal .sm-ok:active { transform: scale(0.98); }
.success-modal .sm-ok:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ───────── 반응형 ───────── */
@media (max-width: 960px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 17px; }
  section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .section-subtitle { font-size: 16px; margin-bottom: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 42px; }
  .promise-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 64px 0; }
  .cta-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-info h2 { font-size: 28px; }
  .inquiry-card { padding: 28px 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .nav-list { gap: 14px; }
  .nav-list a:not(.nav-cta) { display: none; }
  .slide-item { width: 280px; height: 200px; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-hero h1 { font-size: 32px; }
}
