/* 라이트만 지원 선언 (UA 자동 다크 방지용) */
:root {
  color-scheme: light only;
}

/* OS가 다크여도 우리 페이지는 라이트 유지 */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light only !important;
  }

  /* 핵심 영역은 확실한 라이트 배경으로 고정 */
  html,
  body {
    background: #ffffff !important;
    color: #111 !important;
  }

  /* 네 사이트 구조에 맞춰 추가: 반투명/블러가 있으면 어둡게 보여서 라이트 고정 */
  header,
  .global-header,
  .global-nav,
  .site-nav,
  .hero,
  .hero-overlay,
  .cd-pricing-hero,
  .cd-card,
  .cd-result {
    background: #ffffff !important;
    /* 혹시 배경에 반투명/그라데이션을 쓰면 여기서 라이트 값으로 재정의 */
  }

  /* 자동 다크가 이미지/비디오에 필터를 먹일 때 해제 */
  html {
    filter: none !important;
  }
  img,
  picture,
  video,
  canvas {
    filter: none !important;
  }
}

/* =========================
   Fonts
   ========================= */
@font-face {
  font-family: "GimpoTitle";
  src: url("../fonts/cts2688_file2.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "GimpoBatang";
  src: url("../fonts/cts2688_file4.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Arita Dotum";
  src: url("../fonts/Arita DotumKR-Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Arita Dotum";
  src: url("../fonts/Arita DotumKR-Medium.ttf") format("truetype");
  font-weight: 500;
}
@font-face {
  font-family: "Arita Dotum";
  src: url("../fonts/Arita DotumKR-Light.ttf") format("truetype");
  font-weight: 300;
}
@font-face {
  font-family: "Arita Dotum";
  src: url("../fonts/Arita DotumKR-SemiBold.ttf") format("truetype");
  font-weight: 600;
}
@font-face {
  font-family: "Arita Dotum";
  src: url("../fonts/Arita DotumKR-Thin.ttf") format("truetype");
  font-weight: 100;
}
@font-face {
  font-family: "YanoljaYache";
  src: url("../fonts/야놀자 야체 Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "YanoljaYache";
  src: url("../fonts/야놀자 야체 Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Moneygraphy Pixel";
  src: url("../fonts/Moneygraphy-Pixel.ttf") format("truetype");
}
@font-face {
  font-family: "Moneygraphy Rounded";
  src: url("../fonts/Moneygraphy-Rounded.ttf") format("truetype");
}
@font-face {
  font-family: "Moneygraphy Rounded OT";
  src: url("../fonts/Moneygraphy-Rounded.otf") format("opentype");
}

/* =========================
      Base / Theme
      ========================= */
:root {
  --cd-blue: #0066f5;
  --cd-bg: #c9d7f4;
  --cd-white: #fff;
  --cd-deep: #0b2e8a;
  --cd-dark: #1e2a5c;
  --cd-header-h: 0px;
}
[id] {
  scroll-margin-top: calc(var(--cd-header-h) + 12px);
}
html,
body {
  margin: 0;
}
body.is-pricing {
  padding-top: 0 !important;
}
.cd-pricing-wizard {
  margin-top: 0;
}

/* =========================
      Wizard Section
      ========================= */
#cd-pricing-wizard {
  background: var(--cd-bg);
  padding: 56px 16px 72px;
  color: var(--cd-blue);
  font-family: "Arita Dotum", system-ui, -apple-system, "Segoe UI", Roboto,
    "Noto Sans KR", sans-serif;
}
#cd-pricing-wizard * {
  box-sizing: border-box;
}

/* Hero */
.cd-pricing-hero {
  display: flex;
  justify-content: center;
}
.cd-pricing-hero .hero-inner {
  text-align: center;
}
.cd-pricing-hero .eyebrow {
  font-family: "GimpoTitle";
  margin: 0 0 8px;
  color: var(--cd-blue);
}
.cd-pricing-hero .title {
  margin: 0 0 16px;
  line-height: 1.04;
  font-family: "GimpoTitle";
  font-size: clamp(42px, 6.5vw, 84px);
  color: var(--cd-blue);
  text-shadow: -4px 0 0 #fff, 4px 0 0 #fff, 0 -4px 0 #fff, 0 4px 0 #fff,
    0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Buttons */
.cd-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid var(--cd-blue);
  background: var(--cd-blue);
  color: #fff;
  font-weight: 800;
  font-family: "Arita Dotum", sans-serif;
}
.cd-start img {
  height: 22px;
  width: auto;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--cd-blue);
  font-family: "GimpoTitle";
  font-size: clamp(16px, 2vw, 40px);
  color: #fff;
  font-weight: 300;
  border: 2px solid var(--cd-blue);
}
.btn-primary.lg {
  padding: 16px 28px;
  font-size: 18px;
}

/* Progress */
.cd-progress {
  max-width: 980px;
  margin: 24px auto 0;
  display: none;
  align-items: center;
  gap: 12px;
}
.cd-progress .bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  overflow: hidden;
}
.cd-progress .fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--cd-blue);
}
.cd-progress .step-text {
  font-weight: 700;
}

/* Cards */
.cd-card {
  max-width: 1100px;
  margin: 18px auto 0;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 3px solid var(--cd-blue);
  border-radius: 24px;
  display: none;
}
.cd-card.active {
  display: block;
  animation: fadeIn 0.22s ease;
}

/* 질문/설명 */
.cd-card .q {
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.25;
  margin: 0 0 20px;
  font-family: "GimpoTitle";
  text-align: center;
  font-weight: 400;
  color: #000749;
}
.cd-card .sub {
  text-align: center;
  margin: 0 0 8px;
  color: #3b4a7a;
}

/* Grid */
.grid-1,
.grid-2 {
  display: grid;
  gap: 14px;
}
.grid-1 {
  grid-template-columns: 1fr;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 760px) {
  .grid-1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 옵션 버튼 */
.opt {
  border: 4px solid var(--cd-blue);
  background: #fff;
  color: var(--cd-blue);
  border-radius: 22px;
  padding: 18px 20px;
  font-weight: 600;
  font-family: "GimpoTitle";
  font-size: clamp(18px, 2.4vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.12s ease;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
}
.opt i {
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
  font-weight: 600;
  font-style: normal;
  font-family: "GimpoTitle";
  font-size: clamp(22px, 2.4vw, 30px);
}
.opt:hover {
  transform: translateY(-1px);
}
.opt.small {
  padding: 12px 16px;
  font-size: 16px;
  border-width: 3px;
}

/* 옵션 텍스트 파츠(모바일 줄바꿈용) */
.opt .opt-text {
  display: inline;
}
.opt .opt-dim {
  display: inline;
}

/* Inline inputs */
#cd-pricing-wizard .inline-input {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}
#cd-pricing-wizard .inline-input input {
  width: 340px;
  max-width: 70vw;
  background: #fff;
  border: 4px solid var(--cd-blue);
  border-radius: 20px;
  padding: 14px 16px;
  font-size: 18px;
  text-align: center;
  color: #333;
  font-family: "Arita Dotum";
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
#cd-pricing-wizard .inline-input label {
  position: absolute;
  left: -9999px;
}
#cd-pricing-wizard .inline-input .opt.small {
  width: auto !important;
  min-width: auto;
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 16px;
  border-width: 3px;
}

/* Result */
.cd-result {
  max-width: 1100px;
  margin: 18px auto 0;
  padding: 28px 24px;
  background: #fff;
  border: 4px solid var(--cd-blue);
  border-radius: 28px;
  color: #222;
}
.cd-result .result-head {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.cd-result .result-head h3 {
  margin: 0;
  background: #6f8cff;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
}
.cd-result .pill-total {
  background: #0b2e8a;
  color: #fffd64;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 900;
}
.cd-result .price {
  font-size: clamp(22px, 4vw, 32px);
}
.cd-result .breakdown {
  margin: 12px auto 0;
  max-width: 780px;
}
.cd-result .hint {
  margin: 14px auto 0;
  max-width: 960px;
  color: #5a6b9a;
  text-align: center;
}
.result-cta {
  margin-top: 16px;
  text-align: center;
}
#cd-pricing-wizard .cd-result .result-head .area-badge {
  display: none !important;
}

/* 인터랙션 공통 */
#cd-pricing-wizard .cd-start,
#cd-pricing-wizard .btn-primary {
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.2s ease,
    box-shadow 0.2s ease;
}
#cd-pricing-wizard .cd-start:hover,
#cd-pricing-wizard .btn-primary:hover {
  background: #004fe0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
#cd-pricing-wizard .cd-start:active,
#cd-pricing-wizard .btn-primary:active {
  transform: scale(0.97);
}
#cd-pricing-wizard .opt {
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
#cd-pricing-wizard .opt:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 90, 255, 0.18);
}
#cd-pricing-wizard .opt.small.is-confirmed {
  background: var(--cd-blue);
  color: #fff;
  border-color: var(--cd-blue);
}
.cd-card .opt.small.is-confirmed,
.cd-card .count-custom button.is-confirmed {
  background: var(--cd-blue);
  color: #fff;
  border-color: var(--cd-blue);
}

/* 숫자 인풋 스피너 제거 */
#cd-pricing-wizard input[type="number"]::-webkit-outer-spin-button,
#cd-pricing-wizard input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#cd-pricing-wizard input[type="number"] {
  -moz-appearance: textfield;
}

/* 결과 카드 나오면 '다음' 숨김 */
#cd-pricing-wizard .cd-card[data-step="result"] ~ .cd-nav-arrows .cd-next {
  display: none !important;
}

/* 결과 요약(임시) */
#cd-pricing-wizard .cd-result .answers {
  margin: 10px 0 14px;
  line-height: 1.6;
  color: #233;
}
#cd-pricing-wizard .cd-result .answers b {
  color: #0b2e8a;
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 선택된 옵션 스타일 */
.opt.is-selected {
  background: var(--cd-blue);
  color: #fff;
  border-color: var(--cd-blue);
  box-shadow: 0 0 0 4px rgba(0, 102, 245, 0.14) inset;
}
.opt.is-selected i {
  background: #fff;
  color: var(--cd-blue);
  border-color: #fff;
}

/* 결과 리스트 */
#cd-pricing-wizard .cd-result .breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 16px auto 0;
  max-width: 980px;
}
#cd-pricing-wizard .cd-result .pair {
  break-inside: avoid;
  padding: 4px 0 10px 12px;
  border-left: 3px solid var(--cd-blue);
}
#cd-pricing-wizard .cd-result .pair .k {
  color: var(--cd-deep);
  font-weight: 900;
  margin: 0 0 4px;
}
#cd-pricing-wizard .cd-result .pair .v {
  color: #111;
  line-height: 1.6;
}
#cd-pricing-wizard .cd-result .pair .v .amt {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) {
  #cd-pricing-wizard .cd-result .breakdown {
    grid-template-columns: 1fr;
  }
}

/* CTA */
.cd-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.cd-cta .cta-hand {
  width: 72px;
  height: auto;
  transform: rotate(-10deg);
  animation: handFloat 1.8s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

/* CTA 버튼 강조 */
#cd-pricing-wizard .cd-start {
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 800;
  border: 2px solid var(--cd-blue);
  background: var(--cd-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 102, 245, 0.28),
    inset 0 -2px 0 rgba(0, 0, 0, 0.06);
  position: relative;
}
#cd-pricing-wizard .cd-start:focus-visible {
  outline: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(0, 102, 245, 0.28);
}
#cd-pricing-wizard .cd-start:hover {
  transform: translateY(-1px);
  background: #004fe0;
}
#cd-pricing-wizard .cd-start:active {
  transform: scale(0.98);
}
#cd-pricing-wizard .cd-start::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 2px solid rgba(0, 102, 245, 0.35);
  animation: pulseRing 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes handFloat {
  0%,
  100% {
    transform: rotate(-10deg) translateY(0);
  }
  50% {
    transform: rotate(-6deg) translateY(-6px);
  }
}
@keyframes pulseRing {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  70% {
    opacity: 0;
    transform: scale(1.15);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}
@media (max-width: 560px) {
  .cd-cta {
    gap: 10px;
  }
  .cd-cta .cta-hand {
    width: 56px;
  }
}

/* Hero 중앙정렬(보강) */
.cd-pricing-hero {
  display: flex !important;
  justify-content: center !important;
}
.cd-pricing-hero .hero-inner {
  width: min(960px, 92vw);
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  text-align: center;
}

/* 버튼 중앙 + 손가락 왼쪽 정렬 */
.cd-cta {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  margin: 14px auto 0 !important;
  gap: 0 !important;
}
#cd-pricing-wizard .cd-start {
  grid-column: 2/3 !important;
  justify-self: center !important;
  position: relative;
  margin: 0 !important;
  z-index: 1;
}
.cd-cta .cta-hand {
  grid-column: 1/2 !important;
  justify-self: end !important;
  width: 72px;
  height: auto;
}

/* ---- Wizard error box ---- */
#cd-pricing-wizard .cd-card .cd-error {
  display: block;
  margin-top: 12px;
  padding: 12px 16px;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  color: #b10000;
  background: #ffefef;
  border: 2px solid #ff9e9e;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) inset;
}

/* 에러 흔들림 */
#cd-pricing-wizard .cd-card.shake {
  animation: cdshake 0.25s linear 0s 1;
}
@keyframes cdshake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-2px);
  }
  100% {
    transform: none;
  }
}

/* 직접입력/층수 기본 비노출 */
.cd-card .count-custom,
.cd-card .floor-wrap {
  display: none !important;
  visibility: hidden !important;
}
.cd-card .count-custom.show,
.cd-card .floor-wrap.show {
  display: flex !important;
  visibility: visible !important;
}

/* =========================
      📱 모바일·저세로 대응
      ========================= */
@supports (-webkit-touch-callout: none) {
  html {
    -webkit-text-size-adjust: 100%;
  }
}

/* 기본 폰트 스케일 */
html {
  font-size: clamp(12px, 3.1vw, 16px);
}

/* 세로 짧은 기기 */
@media (max-height: 720px) {
  html {
    font-size: clamp(11px, 2.8vw, 15px);
  }
  #cd-pricing-wizard {
    padding: 40px 14px 56px;
  }
  .cd-pricing-hero .title {
    font-size: clamp(34px, 6.2vw, 62px);
  }
  .cd-cta .cta-hand {
    width: 56px;
  }
}

/* 모바일(≤420px): 폰트 추가 축소 + (전용/공급면적) 아래줄 */
@media (max-width: 420px) {
  #cd-pricing-wizard {
    padding: 36px 12px 52px;
  }

  .cd-pricing-hero .eyebrow {
    font-size: clamp(12px, 3.2vw, 14px);
  }
  .cd-pricing-hero .title {
    font-size: clamp(30px, 7vw, 56px);
    text-shadow: -3px 0 0 #fff, 3px 0 0 #fff, 0 -3px 0 #fff, 0 3px 0 #fff,
      0 6px 14px rgba(0, 0, 0, 0.12);
    margin-bottom: 12px;
  }

  .cd-progress {
    margin-top: 16px;
    gap: 8px;
  }
  .cd-progress .bar {
    height: 6px;
  }

  .cd-card {
    margin-top: 12px;
    padding: 20px 14px;
    border-radius: 18px;
    border-width: 3px;
  }
  .cd-card .q {
    font-size: clamp(18px, 5.4vw, 22px);
    margin-bottom: 14px;
    line-height: 1.22;
  }
  .cd-card .sub {
    font-size: clamp(12px, 3.4vw, 14px);
    margin-bottom: 6px;
  }

  .opt {
    padding: clamp(12px, 3.2vw, 16px) clamp(12px, 3.2vw, 18px);
    border-width: 3px;
    border-radius: 18px;
    font-size: clamp(13.5px, 4vw, 17px); /* ← 살짝 더 축소 */
    gap: 8px;
  }
  .opt i {
    font-size: clamp(16px, 4.6vw, 22px);
  }

  /* ⬇️ 괄호 내용은 모바일에서 아래 줄로 */
  .opt .opt-dim {
    display: block;
    font-size: 0.9em; /* 본문보다 살짝 작게 */
    margin-top: 2px;
    line-height: 1.25;
  }

  #cd-pricing-wizard .inline-input {
    gap: 8px;
    margin-top: 10px;
  }
  #cd-pricing-wizard .inline-input input {
    width: 280px;
    max-width: 78vw;
    padding: 12px 12px;
    border-width: 3px;
    border-radius: 16px;
    font-size: clamp(12px, 3.6vw, 14px);
  }
  #cd-pricing-wizard .inline-input .opt.small {
    padding: 8px 12px;
    font-size: clamp(12px, 3.6vw, 14px);
    border-width: 2px;
  }

  .btn-primary,
  #cd-pricing-wizard .cd-start {
    padding: 12px 18px;
    border-width: 2px;
    font-size: clamp(13px, 3.8vw, 16px);
    box-shadow: 0 8px 18px rgba(0, 102, 245, 0.22),
      inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  }

  .cd-cta .cta-hand {
    width: 50px;
  }

  .cd-result {
    padding: 20px 14px;
    border-radius: 20px;
    border-width: 3px;
  }
  .cd-result .result-head h3 {
    padding: 8px 12px;
    font-size: clamp(12px, 3.4vw, 14px);
  }
  .cd-result .pill-total {
    padding: 8px 12px;
    font-size: clamp(12px, 3.4vw, 14px);
  }
  .cd-result .price {
    font-size: clamp(18px, 5.2vw, 24px);
  }
  #cd-pricing-wizard .cd-result .breakdown {
    gap: 10px 18px;
    margin-top: 12px;
  }
  #cd-pricing-wizard .cd-result .pair {
    padding: 2px 0 8px 10px;
  }
  #cd-pricing-wizard .cd-result .pair .k {
    font-size: clamp(12px, 3.6vw, 14px);
    margin-bottom: 2px;
  }
  #cd-pricing-wizard .cd-result .pair .v {
    font-size: clamp(12px, 3.6vw, 14px);
    line-height: 1.5;
  }
}

/* 초소형 기기(≤340px) 세이프가드 */
@media (max-width: 340px) {
  html {
    font-size: clamp(10px, 3.2vw, 14px);
  }
  .opt {
    gap: 6px;
  }
  .cd-cta {
    margin-top: 10px !important;
  }
}

/* ===== 유틸 ===== */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:root {
  --ink: #0b2e8a;
  --soft: #6f84c9;
  --bg: #f6f9ff;
  --ring: rgba(0, 102, 245, 0.16);
  --cd-blue: #0066f5;
}

/* ===== 섹션 래퍼 ===== */
.cd-price-compact {
  padding: 56px 16px;
  background: #fff;
  font-family: "Arita Dotum", system-ui, "Noto Sans KR", sans-serif;
}
.cd-price-compact * {
  box-sizing: border-box;
}
.cd-price-compact > .pc-foot {
  margin-top: 16px;
  color: #445ca7;
  font-weight: 700;
}
.cd-price-compact > .pc-foot a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: underline;
}

/* ===== 포함사항 콜아웃 ===== */
.pc-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7faff;
  border: 1px solid #d8e5ff;
  font-size: 14px;
  line-height: 1.6;
  color: #334;
}
.pc-note b {
  color: #0b2e8a;
}
.pc-note .except {
  color: #c00;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.chip-success {
  background: #e8f9ef;
  border: 1px solid #34c759;
  color: #0a7a2f;
}

.chip-danger {
  background: #fff0f0;
  border: 1px solid #ff3b30;
  color: #c20f0f;
}

.chip-note {
  background: #fff9e6;
  border: 1px solid #ffcc00;
  color: #8a6d00;
}

/* 좁은 화면에서는 줄바꿈되어도 정돈되게 */
@media (max-width: 680px) {
  .pc-head {
    align-items: flex-start;
  }
}

/* ===== 블록 공통 ===== */
.pc-block {
  width: min(1080px, 92vw);
  margin: 20px auto 0;
}
.pc-block .pc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.pc-block h3 {
  margin: 0;
  color: var(--ink);
  font-family: "GimpoTitle";
  font-size: clamp(18px, 2.4vw, 24px);
}
.pc-block .sub {
  margin: 0;
  color: #3a4f9a;
  font-weight: 700;
}

/* ===== 고정가/평당가 공용 리스트 ===== */
.pc-fixed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
} /* gap을 살짝 넓힘 */
.pc-fixed .row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 2px solid var(--cd-blue);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.pc-fixed .row:nth-child(even) {
  background: #f8fbff;
}
.pc-fixed .name {
  font-family: "GimpoTitle";
  color: var(--cd-blue);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 900;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 8px;
}
.pc-fixed .price {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pc-fixed .price .pill {
  font-family: "GimpoTitle";
  background: var(--ink);
  color: #fffd64;
  border-radius: 10px;
  padding: 6px 16px; /* 좌우 여백 줄여서 버튼 폭 축소 */
  font-size: clamp(16px, 2.6vw, 22px);
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 102, 245, 0.22);
  width: auto;
  min-width: unset;
}
.pc-fixed .price i {
  font-style: normal;
  font-weight: 900;
}
/* === 모바일에서도 '이름 왼쪽 · 가격 오른쪽' 가로 정렬 유지 === */
@media (max-width: 780px) {
  .pc-fixed .row {
    /* 한 줄(세로)로 바꾸지 말고 2열 유지 */
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 10px;
  }

  /* 이름은 여러 줄로 자연스럽게 줄바꿈 */
  .pc-fixed .name {
    gap: 6px 6px;
    word-break: keep-all;
  }

  /* 가격은 항상 오른쪽 정렬 */
  .pc-fixed .price {
    justify-content: flex-end;
  }

  /* 아주 좁은 화면에서 버튼(필) 크기 살짝 줄여서 넘침 방지 */
  .pc-fixed .price .pill {
    font-size: clamp(14px, 4vw, 18px);
    padding: 6px 12px;
  }
}

/* 초소형 기기 보정(선택) */
@media (max-width: 360px) {
  .pc-fixed .row { column-gap: 8px; }
  .pc-fixed .price .pill { padding: 5px 10px; }
}


/* ===== 메타 뱃지 (면적 기준) ===== */
.meta-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* 전용면적 뱃지: 초록 계열 */
.meta-badge.exclusive {
  background: #eafff2;
  border: 1px solid #32c77a;
  color: #008a3c;
}

/* 공급면적 뱃지: 파랑 계열 */
.meta-badge.supply {
  background: #e6f0ff;
  border: 1px solid #4a90e2;
  color: #0044cc;
}

/* 부드러운 스크롤(전역) */
html {
  scroll-behavior: smooth;
}

/* 호버와 겹침 방지: 활성일 땐 호버효과 유지 */
.cd-nav .nav-link.is-active:hover {
  filter: brightness(1.02);
}

/* ===== 가격표 타이틀 ===== */


.cd-price-compact .cards-head h2 {
  color: #0066f5;
  font-family: "GimpoTitle";
  font-weight: 600;
  font-size: clamp(20px, 3vw, 40px);
  line-height: 0.8;
  text-align: center;
}

.cd-price-compact .cards-head p {
  color: #3d3b3a;
  font-family: "GimpoTitle";
  font-weight: 500;
  font-size: clamp(15px, 3vw, 30px);
  line-height: 0.5;
  margin-top: 8px;
  text-align: center;
}

.cd-price-compact .cards-head p span {
  color: #000749;
  font-family: "GimpoTitle";
  font-weight: 500;
  font-size: clamp(15px, 3vw, 30px);
  line-height: 0.5;
}


/* 기본 제목 스타일 (기존 .pc-block h3와 동일 톤) */
.pc-title{
  margin: 0;
  color: var(--ink);
  font-family: "GimpoTitle";
  font-weight: 900;
  line-height: 1.05;
  font-size: clamp(18px, 2.4vw, 24px);
  word-break: keep-all;
  white-space: normal;
}
.pc-title .t-1,
.pc-title .t-2{ display: inline; }

/* ✅ 좁아질 때: 두 줄 강제 + 폰트 더 축소 */
@media (max-width: 560px){
  .pc-title{
    /* 기존보다 한 단계 더 줄도록 오버라이드 */
    font-size: clamp(16px, 6vw, 20px);
    line-height: 1.08;
  }
  .pc-title .t-2{
    display: block;        /* ← 두 번째 단어를 다음 줄로 강제 */
    margin-top: 2px;
  }
}

/* 초소형 기기 보정 */
@media (max-width: 360px){
  .pc-title{
    font-size: clamp(15px, 7vw, 18px);
  }
}
