/* ─────────────────────────────────────────────
   청주 정직한 공사 — 공통 스타일 (모바일 우선)
   ───────────────────────────────────────────── */

:root {
  --navy: #1b2a3d;
  --navy-hover: #0f1a28;
  --navy-soft: #eef1f5;
  --navy-line: #c9d1dc;
  --bg: #ffffff;
  --surface: #f5f6f8;
  --line: #e5e7eb;
  --text: #16202e;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --danger: #c62828;
  --ok: #15803d;
  --warn: #b45309;
  --ring: #1b2a3d;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --gutter: 16px;
  --header-h: 56px;
  --tabs-h: 46px;
  --bottom-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 200ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--tabs-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 8px;
}

/* ── 버튼 ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-hover);
}
.btn-outline {
  background: #fff;
  border-color: var(--navy-line);
  color: var(--navy);
}
.btn-outline:hover {
  border-color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}
.btn-danger {
  background: #fff;
  border-color: #f1c4c4;
  color: var(--danger);
}
.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 15px;
}
.btn-lg {
  min-height: 56px;
  font-size: 17px;
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
}
.icon-btn:hover {
  background: var(--surface);
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 0;
}
.link-more .icon {
  width: 16px;
  height: 16px;
}
.link-more:hover {
  color: var(--navy);
}

/* ── 헤더 ───────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  flex: none;
}
.brand-mark {
  width: 34px;
  height: auto;
}
.brand-word {
  height: 17px;
  width: auto;
}
.brand-invert {
  color: #fff;
}
.main-nav {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sub-link,
.header-cta {
  display: none;
}
.sub-link {
  font-size: 15px;
  color: var(--text-2);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.sub-link:hover,
.sub-link[aria-current] {
  color: var(--navy);
}
.menu-btn {
  margin-right: -10px;
}
.cat-tabs {
  display: flex;
  justify-content: space-evenly;
  height: var(--tabs-h);
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-tabs a {
  display: grid;
  place-items: center;
  padding-inline: 6px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-3);
  white-space: nowrap;
  position: relative;
}
.cat-tabs a[aria-current] {
  color: var(--navy);
}
#site-header:empty {
  display: block;
  height: calc(var(--header-h) + var(--tabs-h) + 1px);
  border-bottom: 1px solid var(--line);
}
.cat-tabs a[aria-current]::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -1px;
  height: 2px;
  background: var(--navy);
}

/* 모바일 메뉴 */
.drawer {
  margin: 0 0 0 auto;
  width: min(360px, 88vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  padding: 0 20px 24px;
  display: none;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.drawer[open] {
  display: flex;
  animation: drawer-in 260ms var(--ease);
}
.drawer::backdrop {
  background: rgba(15, 26, 40, 0.45);
}
@keyframes drawer-in {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
  margin-right: -10px;
}
.drawer-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  margin: 16px 0 4px;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.drawer-nav a small {
  font-weight: 400;
  color: var(--text-3);
  font-size: 13px;
}
.drawer-nav a .icon {
  margin-left: auto;
  width: 18px;
  color: var(--text-3);
}
.drawer .btn {
  margin-top: 20px;
}

/* ── 하단 고정 버튼 (모바일) ───────────────────────── */
.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}
.bb-call {
  display: grid;
  place-items: center;
  width: 56px;
  min-height: 48px;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  gap: 2px;
  padding-top: 4px;
}
.bb-call .icon {
  width: 18px;
  height: 18px;
}
.bb-main {
  flex: 1;
}
body.has-bottom-bar {
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom));
}

/* ── 섹션 공통 ───────────────────────── */
.section {
  padding-block: 32px;
}
.section + .section {
  border-top: 8px solid var(--surface);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.section-head p {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 2px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--navy-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.page-head {
  padding-block: 24px 8px;
}
.page-head h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.page-head p {
  color: var(--text-2);
  margin-top: 6px;
  font-size: 15px;
}

/* ── 홈 히어로 ───────────────────────── */
.hero {
  padding-block: 28px 8px;
}
.hero h1 {
  font-size: clamp(26px, 5vw + 8px, 44px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin-top: 12px;
  text-wrap: balance;
}
.hero-lead {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--text-2);
  max-width: 34em;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.hero-actions .btn {
  flex: 1;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-2);
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hero-points .icon {
  width: 16px;
  height: 16px;
  color: var(--navy);
}

/* 카테고리 타일 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.cat-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
}
.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.cat-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 17, 28, 0.78) 0%, rgba(10, 17, 28, 0.15) 55%, rgba(10, 17, 28, 0) 100%);
}
.cat-tile-text {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
}
.cat-tile-text strong {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  font-weight: 700;
}
.cat-tile-text strong .icon {
  width: 16px;
  height: 16px;
}
.cat-tile-text small {
  display: block;
  font-size: 12.5px;
  opacity: 0.9;
  margin-top: 1px;
}

/* ── 사례 카드 그리드 ───────────────────────── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 12px;
}
.case-card {
  display: block;
  min-width: 0;
}
.case-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.badge-sample,
.badge-ba {
  position: absolute;
  top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 6px;
}
.badge-sample {
  left: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-2);
}
.badge-ba {
  right: 8px;
  background: rgba(27, 42, 61, 0.88);
  color: #fff;
}
.case-body {
  padding-top: 10px;
}
.case-top {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.4;
}
.case-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 4px;
}
.case-meta {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.is-skeleton .case-thumb,
.is-skeleton p {
  background: linear-gradient(90deg, var(--surface) 0%, #eceef2 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.is-skeleton p {
  height: 14px;
  border-radius: 4px;
  margin-top: 8px;
}
.is-skeleton p + p {
  width: 60%;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-3);
  background: var(--surface);
  border-radius: var(--radius);
}

/* 목록 필터 */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 8px 16px;
}
.list-count {
  font-size: 14px;
  color: var(--text-2);
}
.list-count strong {
  color: var(--navy);
}
.list-filters {
  display: flex;
  gap: 6px;
}
.select-sm {
  appearance: none;
  height: 36px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* 파트너 배너 */
.band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.band h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.band p {
  font-size: 14.5px;
  color: #c9d3e0;
  margin-top: 4px;
}
.band .btn {
  background: #fff;
  color: var(--navy);
  align-self: flex-start;
}
.band .btn:hover {
  background: var(--navy-soft);
}

/* ── FAQ ───────────────────────── */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: 'Q';
  color: var(--navy);
  font-weight: 800;
  flex: none;
}
.faq-item summary .icon {
  margin-left: auto;
  width: 18px;
  color: var(--text-3);
  transition: transform var(--dur) var(--ease);
  transform: rotate(90deg);
  margin-top: 3px;
}
.faq-item[open] summary .icon {
  transform: rotate(-90deg);
}
.faq-item .faq-a {
  padding: 0 0 20px 22px;
  color: var(--text-2);
  font-size: 15px;
}

/* ── 사례 상세 ───────────────────────── */
.crumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-3);
  padding-block: 14px;
}
.crumbs .icon {
  width: 14px;
  height: 14px;
}
.crumbs a:hover {
  color: var(--navy);
}
.detail-cover {
  position: relative;
  margin-inline: calc(var(--gutter) * -1);
  aspect-ratio: 4 / 3;
  background: var(--surface);
  overflow: hidden;
}
.detail-cover button {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 26, 40, 0.72);
  color: #fff;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
}
.cover-count .icon {
  width: 14px;
  height: 14px;
}
.detail-head {
  padding-top: 20px;
}
.detail-cat {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.detail-head h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin-top: 4px;
}
.detail-summary {
  color: var(--text-2);
  margin-top: 6px;
  font-size: 15px;
}
.spec-card {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 16px;
}
.spec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 15px;
}
.spec-row + .spec-row {
  border-top: 1px solid var(--line);
}
.spec-row .icon {
  width: 18px;
  height: 18px;
  color: var(--text-3);
}
.spec-row dt {
  color: var(--text-3);
  width: 72px;
  flex: none;
}
.spec-row dd {
  margin: 0;
  font-weight: 600;
}
.spec-row.price dd {
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
}
.spec-note {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 8px;
}
.spec-cta {
  display: none;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.tag {
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 999px;
}
.post-body {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.post-body p + p {
  margin-top: 1em;
}
.post-sub {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
}
.photo-stream {
  display: grid;
  gap: 10px;
}
.photo-stream button {
  all: unset;
  display: block;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.photo-stream button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}
.photo-stream img {
  width: 100%;
  height: auto;
}

/* 비포/애프터 */
.ba {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  user-select: none;
  touch-action: pan-y;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after {
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}
.ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.ba-label {
  position: absolute;
  top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 26, 40, 0.72);
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
}
.ba-label.l {
  left: 10px;
}
.ba-label.r {
  right: 10px;
}
.ba input[type='range'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba:has(input:focus-visible) {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}
.ba-caption {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 8px;
}
.ba + .ba-caption + .ba {
  margin-top: 20px;
}

.cta-box {
  margin-top: 36px;
  background: var(--navy-soft);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}
.cta-box h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cta-box p {
  font-size: 14.5px;
  color: var(--text-2);
  margin: 4px 0 16px;
}

/* ── 폼 ───────────────────────── */
.form {
  display: grid;
  gap: 22px;
}
.form-section {
  display: grid;
  gap: 18px;
}
.form-section-title {
  font-size: 17px;
  font-weight: 700;
  padding-top: 8px;
}
.field {
  display: grid;
  gap: 8px;
}
.field > label,
.field > .label {
  font-size: 15px;
  font-weight: 600;
}
.req {
  color: var(--danger);
  margin-left: 2px;
}
.opt {
  font-weight: 400;
  color: var(--text-3);
  font-size: 13px;
  margin-left: 4px;
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d5d9e0;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 16px;
  transition: border-color var(--dur) var(--ease);
}
.select {
  appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer;
}
.textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 42, 61, 0.12);
}
.input[aria-invalid='true'],
.select[aria-invalid='true'] {
  border-color: var(--danger);
}
.field-error {
  font-size: 13.5px;
  color: var(--danger);
}
.field-hint {
  font-size: 13px;
  color: var(--text-3);
}
.input-suffix {
  position: relative;
}
.input-suffix .input {
  padding-right: 44px;
}
.input-suffix span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.chips legend {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}
.chip {
  position: relative;
}
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d5d9e0;
  border-radius: 999px;
  font-size: 15px;
  background: #fff;
  transition: all var(--dur) var(--ease);
}
.chip input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 600;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.chips.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.chips.grid-2 .chip span {
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-2);
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--navy);
  flex: none;
}
.check a {
  text-decoration: underline;
}
.upload-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.upload-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 26, 40, 0.75);
  color: #fff;
  display: grid;
  place-items: center;
}
.upload-thumb button .icon {
  width: 14px;
  height: 14px;
}
.upload-add {
  aspect-ratio: 1;
  border: 1px dashed #b8c0cc;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--text-3);
  font-size: 12.5px;
  cursor: pointer;
  background: #fff;
}
.upload-add:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.upload-add:focus-within {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.ref-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--navy-line);
  background: var(--navy-soft);
  border-radius: var(--radius);
}
.ref-card img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex: none;
}
.ref-card small {
  display: block;
  font-size: 12.5px;
  color: var(--navy);
  font-weight: 600;
}
.ref-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
  margin-top: 2px;
}
.ref-card .ref-price {
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 2px;
}
.ref-card .ref-remove {
  margin-left: auto;
  align-self: flex-start;
  width: 36px;
  height: 36px;
}
.form-note {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}
.done {
  text-align: center;
  padding: 48px 0 24px;
}
.done-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
}
.done-icon .icon {
  width: 30px;
  height: 30px;
}
.done h1 {
  font-size: 22px;
  font-weight: 700;
}
.done p {
  color: var(--text-2);
  margin-top: 8px;
}
.done-summary {
  text-align: left;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 16px;
}
.done-actions {
  display: grid;
  gap: 8px;
}

/* 파트너 */
.benefits {
  display: grid;
  gap: 10px;
  margin: 16px 0 8px;
}
.benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
}
.benefit .icon {
  color: var(--navy);
  margin-top: 2px;
}
.benefit strong {
  display: block;
  font-size: 15px;
}
.benefit p {
  font-size: 14px;
  color: var(--text-2);
}

/* 개인정보처리방침 등 문서 */
.doc {
  max-width: 760px;
  padding-bottom: 48px;
}
.doc h2 {
  font-size: 17px;
  margin: 28px 0 8px;
}
.doc p,
.doc li {
  color: var(--text-2);
  font-size: 15px;
}
.doc ul {
  list-style: disc;
  padding-left: 20px;
}

/* ── 푸터 ───────────────────────── */
.site-footer {
  background: var(--navy);
  color: #c9d3e0;
  margin-top: 48px;
  padding-block: 36px 40px;
  font-size: 13.5px;
}
.footer-inner {
  display: grid;
  gap: 20px;
}
.footer-brand p {
  margin-top: 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.footer-links a {
  color: #fff;
  padding: 6px 0;
}
.footer-info {
  line-height: 1.8;
}
.footer-copy {
  color: #94a3b8;
}
.footer-copy a {
  margin-left: 8px;
  text-decoration: underline;
}

/* ── 토스트, 라이트박스 ───────────────────────── */
.toast-box {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-h) + 16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  display: grid;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
}
.toast {
  background: var(--text);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  animation: toast-in 220ms var(--ease);
}
.toast-error {
  background: var(--danger);
}
@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0b0f16;
  color: #fff;
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox::backdrop {
  background: #0b0f16;
}
.lightbox img {
  max-width: 100%;
  max-height: 100dvh;
  object-fit: contain;
}
.lightbox .icon-btn {
  position: absolute;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.lightbox .icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lb-close {
  top: 12px;
  right: 12px;
}
.lb-prev {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox.single .lb-prev,
.lightbox.single .lb-next {
  display: none;
}
.lb-count {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #cbd5e1;
}

/* ─────────────────────────────────────────────
   태블릿 ≥ 768px
   ───────────────────────────────────────────── */
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 64px;
  }
  .sub-link,
  .header-cta {
    display: inline-flex;
  }
  .menu-btn {
    display: none;
  }
  .brand-mark {
    width: 38px;
  }
  .brand-word {
    height: 19px;
  }
  .hero {
    padding-block: 48px 16px;
  }
  .hero-actions .btn {
    flex: none;
  }
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .cat-tile {
    aspect-ratio: 3 / 4;
  }
  .case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 16px;
  }
  .section {
    padding-block: 48px;
  }
  .section + .section {
    border-top: 0;
  }
  .section-head h2 {
    font-size: 24px;
  }
  .band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px 36px;
  }
  .band .btn {
    align-self: center;
  }
  .page-head {
    padding-block: 40px 12px;
  }
  .page-head h1 {
    font-size: 30px;
  }
  .detail-cover {
    margin-inline: 0;
    border-radius: var(--radius-lg);
  }
  .detail-head h1 {
    font-size: 28px;
  }
  .photo-stream {
    gap: 14px;
  }
  .upload-list {
    grid-template-columns: repeat(6, 1fr);
  }
  .form-narrow {
    max-width: 640px;
  }
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr auto;
  }
  .footer-info,
  .footer-copy {
    grid-column: 1 / -1;
  }
  .lb-prev {
    left: 20px;
  }
  .lb-next {
    right: 20px;
  }
}

/* ─────────────────────────────────────────────
   데스크톱 ≥ 1024px
   ───────────────────────────────────────────── */
@media (min-width: 1024px) {
  :root {
    --header-h: 72px;
    --tabs-h: 0px;
  }
  .cat-tabs {
    display: none;
  }
  .main-nav {
    display: flex;
    gap: 4px;
    margin-right: auto;
    margin-left: 28px;
  }
  .main-nav a {
    position: relative;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-2);
    border-radius: var(--radius-sm);
  }
  .main-nav a:hover {
    color: var(--navy);
  }
  .main-nav a[aria-current] {
    color: var(--navy);
  }
  .main-nav a[aria-current]::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -15px;
    height: 2px;
    background: var(--navy);
  }
  .bottom-bar {
    display: none;
  }
  body.has-bottom-bar {
    padding-bottom: 0;
  }
  .toast-box {
    bottom: 24px;
  }
  .case-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 20px;
  }
  .case-card:hover .case-thumb img,
  .cat-tile:hover img {
    transform: scale(1.04);
  }
  .case-card:hover .case-title {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 56px;
    padding-block: 48px 16px;
  }
  .hero .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }
  .hero .cat-tile {
    aspect-ratio: 16 / 10;
  }
  .cat-tile-text strong {
    font-size: 18px;
  }

  /* 상세: 본문 + 오른쪽 고정 카드 */
  .detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: start;
  }
  .detail-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
  .spec-card {
    margin-top: 0;
    padding: 8px 20px 20px;
  }
  .spec-cta {
    display: grid;
    gap: 8px;
    margin-top: 16px;
  }
  .detail-main .spec-card,
  .detail-main .spec-note {
    display: none;
  }
}

@media (max-width: 1023.98px) {
  .detail-aside {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
