:root {
  --green: #28734c;
  --green-dark: #16442e;
  --lime: #dcefae;
  --cream: #f8f7f0;
  --ink: #1d2b22;
  --muted: #647168;
  --line: #e4e8df;
  --shadow: 0 18px 45px rgba(34, 65, 47, .11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  word-break: keep-all;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.cp-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #cfe8a2;
  border-bottom: 1px solid #b8db86;
  backdrop-filter: blur(12px);
}

  .cp-header-inner {
    max-width: 1160px;
    margin: auto;
    padding: 0 32px;
    height: 68px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
  }

.cp-logo {
  justify-self: start;
  display: flex;
  align-items: center;
}

  .cp-logo img {
    width: auto;
    height: 60px;          /* 원하는 로고 크기 */
    object-fit: contain;
    display: block;
  }

.cp-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid #b8db86;
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  color: #37662f;
  font-size: 15px;
  font-weight: 600;
}

.cp-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.cp-nav a:hover {
  background: rgba(63, 148, 87, .14);
  color: #276b34;
}

/* .cp-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  border: 1px solid #fff;
  border-radius: 99px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, .85);
  color: #2e6b3c;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(46, 107, 60, .12);
}

.cp-cta:hover {
  background: #fff;
  color: #20401f;
} */

main {
  max-width: none;
  margin: auto;
  padding: 0;
}

.hero-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 32px 56px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 52px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.hero-kicker span {
  width: 34px;
  height: 2px;
  background: #24331f;
}

.hero-copy h1 {
  margin: 0;
  color: #24331f;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.12;
}

.hero-copy h1 span,
.hero-copy h1 em {
  display: block;
}

.hero-copy h1 em {
  font-style: normal;
  color: #3f9a53;
}

.hero-copy p:not(.eyebrow) {
  max-width: 340px;
  margin: 26px 0 0;
  color: rgba(93, 107, 85, .72);
  font-size: 17px;
  line-height: 1.7;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.6px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 8px;
}

.hero-chat-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 0;
  background: none;
  padding: 0;
  color: #37662f;
}

.hero-chat-button span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1.5px solid rgba(93, 107, 85, .35);
  border-radius: 50%;
  color: #3f9a53;
  font-size: 18px;
  transition: all .2s ease;
}

.hero-chat-button strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.hero-chat-button:hover span {
  background: #3f9a53;
  border-color: #3f9a53;
  color: #fff;
  transform: scale(1.06) rotate(45deg);
}

.cp-soft-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: #eef6e0;
  color: #37662f;
  font-size: 14px;
  font-weight: 700;
  transition: all .18s ease;
}

.cp-soft-button:hover {
  background: #e0efc9;
  color: #2c5522;
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(36, 51, 31, .16);
  border-radius: 8px;
}

.hero-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / .96;
  height: auto;
  overflow: hidden;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(46, 74, 40, .14);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.hero-photo.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.floating-chatbot {
  position: fixed;
  right: 22px;
  bottom: 25px;
  z-index: 25;
  padding: 8px 14px 8px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 55, 37, .22);
  font-weight: 700;
  color: var(--green-dark);
}

.floating-chatbot img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.chatbot-window {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 24px;
  width: min(410px, calc(100vw - 28px));
  height: min(650px, calc(100vh - 48px));
  /* iOS Safari 주소창이 펼쳐지면 100vh가 실제 화면보다 커서 입력창이 잘린다 */
  height: min(650px, calc(100dvh - 48px));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 25px;
  background: #f6f6f1;
  box-shadow: 0 20px 65px rgba(21, 46, 31, .25);
}

.chatbot-window.is-open {
  display: flex;
  animation: pop .25s ease;
}

.chat-header {
  padding: 17px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green);
  color: #fff;
}

.chat-header small {
  display: block;
  opacity: .72;
  font-size: 10px;
  letter-spacing: 1px;
}

.chat-header strong {
  font-size: 17px;
}

.close-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.chat-body {
  flex: 1;
  overflow: auto;
  padding: 17px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-message, .user-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 17px;
  font-size: 14px;
  line-height: 1.6;
  animation: message-in .2s ease;
}

.bot-message {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 4px;
}

.bot-message span {
  color: var(--muted);
  font-size: 13px;
}

.user-message {
  align-self: flex-end;
  background: #fee500;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.chat-input {
  width: 100%;
  border: 1px solid #dbe2d8;
  border-radius: 99px;
  padding: 11px 15px;
  outline: 0;
}

.chat-input:focus {
  border-color: var(--green);
}

.send-btn {
  width: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 20px;
}

.send-btn:disabled {
  opacity: .6;
}

.loading-message {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--muted);
}

.loading-label {
  margin-right: 3px;
}

.loading-message i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: dot 1s infinite;
}

.loading-message i:nth-of-type(2) {
  animation-delay: .15s;
}

.loading-message i:nth-of-type(3) {
  animation-delay: .3s;
}

.chat-recommendations {
  margin-top: 8px;
}

.chat-recommendations h3 {
  margin: 4px 0 10px;
  font-size: 15px;
}

.recommendation-card {
  overflow: hidden;
  margin-bottom: 11px;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(29, 43, 34, .08);
  animation: message-in .3s ease;
}

.recommendation-photo {
  height: 105px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  color: #fff;
}

.recommendation-photo span {
  padding: 5px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .9);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}

.recommendation-photo b {
  font-size: 24px;
}

.recommendation-content {
  padding: 13px;
}

.recommendation-rank {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.recommendation-content h4 {
  margin: 4px 0;
  font-size: 18px;
}

.place-region, .program-name, .route-info {
  margin: 4px 0;
  font-size: 12px;
  color: var(--muted);
}

.program-name {
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
}

.recommendation-reason {
  margin: 10px 0 8px;
  padding: 9px;
  background: #f5f8ef;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.5;
}

.recommendation-reason strong {
  display: block;
  margin-bottom: 2px;
  color: var(--green);
}

.map-button {
  display: inline-flex;
  margin-top: 7px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fee500;
  font-size: 12px;
  font-weight: 700;
}

.recommendation-footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.scale {
  transform: scale(.94);
}

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

@keyframes pop {
  from {opacity: 0; transform: translateY(10px) scale(.98)}
  to {opacity: 1; transform: none}
}

@keyframes message-in {
  from {opacity: 0; transform: translateY(6px)}
  to {opacity: 1; transform: none}
}

@keyframes dot {
  0%, 80%, 100% {transform: translateY(0); opacity:.4}
  40% {transform: translateY(-4px); opacity:1}
}

@media(max-width:760px) {
  .cp-header-inner {
    height: 62px;
    padding: 0 17px;
  }

  .cp-nav {
    display: none;
  }

  /* .cp-cta {
    padding: 9px 12px;
    font-size: 12px
  } */

  main {
    padding: 0 17px;
  }

  .hero-section {
    min-height: auto;
    padding: 62px 0 70px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-copy h1 {
    font-size: 43px;
    letter-spacing: -3px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-visual {
    height: 340px;
    margin-left: 18px;
  }

  .hero-photo {
    border-radius: 28px;
  }

  .trip-note {
    left: -18px;
    bottom: 18px;
    width: 188px;
    padding: 15px;
  }

  .trip-note strong {
    font-size: 15px;
  }

  .about-section, .planner-section {
    margin: 45px 0;
    padding: 42px 20px;
    border-radius: 24px;
  }

  .about-section h2, .how-section h2, .section-heading h2 {
    font-size: 26px;
  }

  .feature-grid, .realtime-cards-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    margin-top: 27px;
  }

  .how-section {
    margin: 70px 0;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .kakao-map {
    height: 280px;
  }

  .floating-chatbot {
    right: 15px;
    bottom: 16px;
  }

  .floating-chatbot span {
    display: none;
  }

  .chatbot-window {
    right: 14px;
    bottom: 14px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}


/* Additional home sections and chat styles */
/* 홈의 추가 콘텐츠와 브랜드 요소. 기존 home.css를 덮어쓰지 않는다. */

.cp-logo-orbit { position: absolute; top: 28px; right: -24px; width: 108px; height: 108px; display: grid; place-content: center; border-radius: 50%; color: #fff; background: rgba(37, 111, 73, .94); box-shadow: 0 0 0 15px rgba(211, 239, 164, .22), 0 16px 35px rgba(21, 68, 46, .28); font-size: 26px; font-weight: 800; letter-spacing: -2px; animation: float-brand 3.6s ease-in-out infinite; }
.cp-logo-orbit span { margin-top: 2px; font-size: 8px; letter-spacing: 1.6px; text-align: center; }
.seasons-section { margin: 105px 0; }
.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 30px; }
.season-card { min-height: 245px; display: flex; flex-direction: column; justify-content: end; padding: 20px; overflow: hidden; border-radius: 20px; color: #fff; background-position: center; background-size: cover; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.season-card:hover { transform: translateY(-7px); box-shadow: 0 25px 45px rgba(34,65,47,.19); }
.season-card span { font-size: 11px; font-weight: 800; letter-spacing: 1.3px; opacity: .9; }
.season-card h3 { margin: 7px 0 3px; font-size: 27px; }
.season-card p { margin: 0; font-size: 13px; font-weight: 600; }
.spring { background-image: linear-gradient(180deg, transparent 25%, rgba(58,27,28,.64)), url('https://source.unsplash.com/featured/700x800/?spring,flower,korea'); }
.summer { background-image: linear-gradient(180deg, transparent 25%, rgba(13,51,40,.68)), url('https://source.unsplash.com/featured/700x800/?summer,stream,korea'); }
.autumn { background-image: linear-gradient(180deg, transparent 25%, rgba(74,43,10,.66)), url('https://source.unsplash.com/featured/700x800/?autumn,ricefield,korea'); }
.winter { background-image: linear-gradient(180deg, transparent 25%, rgba(25,42,56,.7)), url('https://source.unsplash.com/featured/700x800/?winter,village,korea'); }
.gallery-section { display: grid; grid-template-columns: .65fr 1fr; align-items: center; gap: 40px; margin: 120px 0 115px; }
.gallery-copy h2 { margin: 10px 0; font-size: 34px; line-height: 1.25; letter-spacing: -1.8px; }
.gallery-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.circular-gallery { position: relative; height: 360px; overflow: hidden; border-radius: 28px; cursor: grab; user-select: none; touch-action: pan-y; background: #edf1e8; }
.circular-gallery.is-dragging { cursor: grabbing; }
.gallery-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.gallery-track figure { position: absolute; top: 50%; left: 50%; width: 170px; height: 225px; margin: -112px 0 0 -85px; overflow: hidden; border-radius: 18px; box-shadow: 0 15px 30px rgba(26,55,37,.2); transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s ease; background: #d8e2d4; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gallery-track figcaption { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 99px; background: rgba(255,255,255,.88); color: var(--green-dark); font-size: 12px; font-weight: 800; }
.cp-header { background: rgba(211, 239, 164, .92); }
/* .btn-primary, .cp-cta, .filter-btn.active, .filter-btn:hover { background: #B8DD8A; color: #314c31; } */
.btn-primary { box-shadow: 0 12px 22px rgba(82, 115, 77, .2); }
.about-section, .planner-section { background: #F3FBEA; }
.village-card, .recommendation-card { border-color: #D3EFA4; }
.bot-message { border-color: #D3EFA4; }
.map-button { border-radius: 10px; background: #D3EFA4; color: #22422d; box-shadow: 0 5px 12px rgba(71, 108, 50, .16); transition: transform .18s ease, box-shadow .18s ease; }
.map-button:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(71, 108, 50, .24); }
.floating-chatbot { top: 50%; bottom: auto; padding: 0; flex-direction: column; gap: 3px; background: transparent; box-shadow: none; transform: translateY(-50%); animation: duck-float 3s ease-in-out infinite; }
.floating-chatbot img { width: 76px; height: auto; filter: drop-shadow(0 9px 12px rgba(53, 88, 56, .2)); }
.floating-chatbot span { display: block; color: #52734D; font-size: 11px; white-space: nowrap; }
.floating-chatbot:hover { transform: translateY(-50%) scale(1.04); }
@keyframes float-brand { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes duck-float { 0%,100% { margin-top: 0; } 50% { margin-top: -10px; } }

/* ──────────────────────────────────────────────────────
   챗봇 더기 첫 메시지 & 퀵 버튼 (아바타 포함)
   ────────────────────────────────────────────────────── */
.chat-row {
  display: flex;
  margin-bottom: 16px;
  width: 100%;
  align-items: flex-start;
  animation: message-in .25s ease-out;
}
.bot-chat-row {
  justify-content: flex-start;
  gap: 10px;
}
.user-chat-row {
  justify-content: flex-end;
}
.chat-duck-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0fbe4;
  border: 1px solid #d3efa4;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.chat-duck-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 78%;
  gap: 4px;
}
.chat-duck-name {
  font-size: 12px;
  font-weight: 700;
  color: #3b5a40;
  margin-left: 2px;
}

.bot-message, .user-message {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(34, 65, 47, 0.06);
}
.bot-message {
  background: #fff;
  border: 1.5px solid #d3efa4;
  border-radius: 4px 18px 18px 18px;
  color: #1d2b22;
  align-self: flex-start;
}
.user-message {
  background: #fee500;
  border-radius: 18px 4px 18px 18px;
  color: #191919;
  font-weight: 600;
  align-self: flex-end;
}

.loading-message {
  display:inline-flex !important;
  align-items:center;
  gap:5px;
  color:#647168;
}
.loading-message i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28734c;
  animation: dot 1s infinite;
}


/* 밑에 크레딧 */

.wow {
  padding: 20px 20px 20px;
  text-align: center;
  border-top: 1px solid #c5c5c5;
  margin-top: 60px;
}

.wow-credits {
  font-size: 12px;
  color :#535353;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wow-credits .divider {
  color: #16442e;
  font-size: 10px;
}




@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-quick-actions { display: flex; flex-direction: column; gap: 7px; margin: 4px 0 4px; padding-left: 48px; }
.chat-quick-actions--inline { flex-direction: row; flex-wrap: wrap; gap: 7px; }
.chat-quick-btn { border: 1.5px solid #D3EFA4; border-radius: 99px; padding: 9px 15px; background: #fff; color: var(--green-dark); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .16s, border-color .16s, transform .16s; text-decoration: none; display: inline-block; white-space: nowrap; }
.chat-quick-btn:hover { background: #D3EFA4; border-color: var(--green); transform: translateY(-1px); }

/* ──────────────────────────────────────────────────────
   성향 테스트 CTA 섹션 (홈 중간 삽입)
   ────────────────────────────────────────────────────── */
.personality-cta-section { margin: 90px 0; padding: 0; }
.pct-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, #e8f8d4 0%, #d4efaf 50%, #c5e899 100%); border-radius: 32px; padding: 64px 60px; box-shadow: 0 20px 50px rgba(40,115,76,.14); overflow: hidden; position: relative; }
.pct-inner::before { content: ''; position: absolute; top: -60px; right: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.18); }
.pct-left { position: relative; z-index: 1; }
.pct-left h2 { font-size: 34px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.2; margin: 10px 0 12px; color: #1d3a24; }
.pct-left > p:not(.eyebrow) { color: #3b5a40; font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.pct-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 24px; }
.pct-tags span { padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.72); color: #2a5234; font-size: 12px; font-weight: 700; border: 1px solid rgba(40,115,76,.2); }
.pct-left .btn-primary { background: #28734c; color: #fff; max-width: 320px; box-shadow: 0 12px 28px rgba(40,115,76,.32); }
.pct-right { display: flex; align-items: center; justify-content: center; }
.pct-animal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; font-size: 38px; }
.pct-animal-grid span { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 18px; background: rgba(255,255,255,.65); backdrop-filter: blur(8px); animation: animalFloat 3s ease-in-out infinite; }
.pct-animal-grid span:nth-child(2) { animation-delay: .2s; }
.pct-animal-grid span:nth-child(3) { animation-delay: .4s; }
.pct-animal-grid span:nth-child(4) { animation-delay: .6s; }
.pct-animal-grid span:nth-child(5) { animation-delay: .8s; }
.pct-animal-grid span:nth-child(6) { animation-delay: 1s; }
.pct-animal-grid span:nth-child(7) { animation-delay: 1.2s; }
.pct-animal-grid span:nth-child(8) { animation-delay: 1.4s; }
@keyframes animalFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media(max-width:760px) {
  .cp-logo img { height: 52px; }
  .cp-logo-orbit { top: 12px; right: -12px; width: 82px; height: 82px; font-size: 20px; }
  .seasons-section { margin: 70px 0; }
  .season-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .season-card { min-height: 175px; padding: 14px; }
  .season-card h3 { font-size: 23px; }
  .season-card p { font-size: 12px; }
  .gallery-section { grid-template-columns: 1fr; gap: 20px; margin: 75px 0; }
  .gallery-copy h2 { font-size: 29px; }
  .circular-gallery { height: 300px; }
  .gallery-track figure { width: 142px; height: 190px; margin: -95px 0 0 -71px; }
  .floating-chatbot { top: auto; bottom: 16px; transform: none; }
  .floating-chatbot:hover { transform: scale(1.04); }
  .floating-chatbot span { display: block; }
  .pct-inner { grid-template-columns: 1fr; padding: 36px 24px; gap: 24px; }
  .pct-right { display: none; }
  .pct-left h2 { font-size: 26px; }
  .chat-quick-actions--inline { gap: 6px; }
}

/* ──────────────────────────────────────────────────────
   3문항 퀵 테스트 카드 스타일 (컴팩트 가로 한 줄 레이아웃)
   ────────────────────────────────────────────────────── */
.quick-test-section {
  margin: 30px auto;
  max-width: 1100px;
}
.qt-container {
  background: linear-gradient(135deg, #f3fbea 0%, #e8f7d5 100%);
  border: 1.5px solid #d3efa4;
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(40, 115, 76, .08);
}
.qt-header {
  text-align: center;
  margin-bottom: 16px;
}
.qt-header h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0;
  color: #16442e;
}
.qt-header p, .qt-header .eyebrow {
  display: none;
}

.qt-form {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}
.qt-group {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid #e2ebd8;
  box-shadow: 0 2px 8px rgba(0,0,0,.02);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.qt-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #1d2b22;
  margin-bottom: 8px;
}
.qt-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.qt-chip {
  border: 1.5px solid #dce8d5;
  border-radius: 99px;
  padding: 6px 12px;
  background: #fff;
  color: #48584e;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
}
.qt-chip:hover {
  border-color: #28734c;
  background: #f0fbe4;
  transform: translateY(-1px);
}
.qt-chip.active {
  border-color: #28734c;
  background: #28734c;
  color: #fff;
  box-shadow: 0 4px 10px rgba(40,115,76,0.2);
}

.qt-region-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.qt-select {
  flex: 1;
  border: 1.5px solid #dce8d5;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  background: #fff;
  min-width: 90px;
  text-align: center; /* 추가된 부분 */
}
.qt-select:focus {
  border-color: #28734c;
}
.qt-custom-input {
  flex: 1.2;
  border: 1.5px solid #dce8d5;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  background: #fff;
  min-width: 120px;
}
.qt-custom-input:focus {
  border-color: #28734c;
}

.qt-action {
  display: flex;
  align-items: stretch;
}
.qt-submit-btn {
  height: 100%;
  min-height: 52px;
  font-size: 14px;
  border-radius: 12px;
  padding: 0 20px;
  white-space: nowrap;
  align-self: center;
}

/* 챗봇 p1.png 배너 이미지 */
.chat-banner-img-wrap { margin: 10px 0; text-align: center; }
.chat-p1-img { width: 100%; max-height: 140px; object-fit: cover; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,.08); transition: transform .2s ease; cursor: pointer; }
.chat-p1-img:hover { transform: scale(1.02); }

.about-section {
  max-width: 1096px;
  margin: 6px auto 0;
  padding: 46px 32px;
  border: 1px solid #dcebc4;
  border-radius: 30px;
  background: #eef6e0;
  text-align: center;
}

.about-section h2 {
  margin: 0 0 14px;
  color: #24331f;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.about-section > p:not(.eyebrow) {
  max-width: 640px;
  margin: 0 auto;
  color: #6a7862;
  font-size: 16.5px;
  line-height: 1.75;
}

.promo-section {
  max-width: 1150px;
  margin: 0 auto;
  padding: 56px 32px;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1.12fr 1.0fr;
  gap: 30px;
  /* stretch로 늘리면 카드 높이가 이미지 원본 비율과 어긋나 object-fit:cover가
     글자가 새겨진 이미지를 잘라낸다. 원본 비율을 유지하도록 start 정렬. */
  align-items: start;
}

.promo-stack {
  display: flex;
  flex-direction: column;
  gap: 53px;
}

.promo-card {
  display: block;
  overflow: hidden;
  min-height: 0;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(46, 74, 40, .12);
  transition: transform .18s ease, box-shadow .18s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(46, 74, 40, .2);
}

/* 프로모 이미지는 안내 문구가 그림에 새겨져 있어 잘리면 내용을 읽을 수 없다.
   원본 비율을 그대로 유지(height:auto)해 어떤 화면 폭에서도 크롭되지 않게 한다. */
.promo-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* promo-grid 바로 다음에 오는 세로형 promo-card 선택 */
.promo-grid > .promo-card {
  max-width: 472px;
  margin: 0 auto;
  width: 100%;
}

.quick-test-section {
  max-width: 1160px;
  margin: 0 auto 76px;
  padding: 0 32px;
}

.qt-container {
  padding: 32px;
  border: 1px solid #dcebc4;
  border-radius: 28px;
  background: #eef6e0;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.qt-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(46, 74, 40, .16);
}

.qt-header {
  margin-bottom: 26px;
}

.qt-header h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  color: #24331f;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.qt-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr .82fr;
  gap: 16px;
  align-items: stretch;
  justify-content: center; 
}

.qt-group {
    display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px solid #e6efd8;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

.qt-label {
  margin-bottom: 14px;
  color: #37662f;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.qt-btn-group {
  gap: 9px;
}

.qt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1.5px solid #dbe8c8;
  border-radius: 999px;
  color: #4a5a44;
  font-size: 14px;
  font-weight: 600;
}

.qt-chip.active {
  border-color: #3f9a53;
  background: #3f9a53;
  box-shadow: 0 4px 10px rgba(63, 154, 83, .28);
}

.qt-region-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: center; /* 추가한 부분 */
}

.qt-select {
  flex: none;
  padding: 5px 10px; /* 약간의 내부 패딩을 줘서 보다 보기 좋습니다. */
  border: 1.5px solid #dbe8c8;
  border-radius: 12px;
  background: #f2f7ea;
  color: #2e6b3c;
  font-size: 14px;
  cursor: pointer;
  width: 100%; /* 추가한 부분 */
  text-align: center; /* 추가한 부분 */
}

.qt-custom-input {
  min-width: 0;
  padding: 11px 14px;
  border: 1.5px solid #dbe8c8;
  border-radius: 12px;
  color: #24331f;
  font-size: 14px;
}

.qt-submit-btn {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 18px;
  background: #a5d97a;
  color: #2f5d2a;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.qt-submit-btn:hover {
  background: #93cd63;
}

@media (max-width: 990px) {
  .hero-section,
  .promo-grid,
  .qt-form {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 48px;
  }

  /* 모바일에서도 원본 비율 유지 — 16/9로 강제하면 배너 33%, 정사각 카드 44%가
     잘려 이미지에 새겨진 안내 문구가 보이지 않는다. */
  .promo-card img,
  .promo-card-tall img {
    min-height: auto;
    height: auto;
    aspect-ratio: auto;
  }

  .qt-submit-btn {
    min-height: 58px;
  }
}

@media (max-width: 760px) {
    .cp-header-inner {
      display: grid;
      grid-template-columns: auto 1fr auto; /* cp-logo를 왼쪽으로 이동시킨다 */
      justify-content: space-between; /* 나머지 공간을 분배 */
}

  .cp-logo {
    position: static;
    transform: none;
  }

  .cp-logo:hover {
    transform: translateY(-2px);
  }

  .cp-logo img {
    height: 40px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-buttons {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-section,
  .promo-section,
  .quick-test-section {
    padding-left: 17px;
    padding-right: 17px;
  }

  .about-section {
    margin-left: 17px;
    margin-right: 17px;
    padding: 36px 22px;
  }

  .qt-container {
    padding: 24px;
  }
}

/* ── 모바일 챗봇 UI/UX (PC 스타일 변경 없음) ─────────── */
@media (max-width: 900px) {
  .floating-chatbot {
    top: auto !important;
    bottom: max(18px, env(safe-area-inset-bottom)) !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    left: auto !important;
    transform: none !important;
    z-index: 90;
    width: 64px;
    height: 64px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 28px rgba(26, 55, 37, .28);
    align-items: center;
    justify-content: center;
  }

  .floating-chatbot img {
    width: 46px !important;
    height: auto;
  }

  .floating-chatbot span {
    display: none !important;
  }

  .floating-chatbot:hover {
    transform: scale(1.04) !important;
  }

  body.chat-open {
    overflow: hidden;
    touch-action: none;
  }

  body.chat-open .floating-chatbot {
    display: none !important;
  }

  body.chat-open .cp-header {
    z-index: 50;
  }

  .chatbot-window.is-open {
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: none !important;
    border-radius: 0 !important;
    z-index: 200 !important;
  }

  .chatbot-window .chat-header {
    padding: max(14px, env(safe-area-inset-top)) 16px 14px;
    flex-shrink: 0;
  }

  .chatbot-window .close-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
  }

  .chatbot-window .chat-body {
    padding: 14px 14px 18px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .chatbot-window .chat-input-area {
    padding: 12px 14px max(14px, env(safe-area-inset-bottom));
    gap: 8px;
    flex-shrink: 0;
  }

  .chatbot-window .chat-input {
    min-height: 46px;
    font-size: 16px; /* iOS 줌 방지 */
  }

  .chatbot-window .send-btn {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .chat-quick-actions {
    padding-left: 42px;
  }

  .chat-quick-actions--inline {
    gap: 8px;
  }

  .chat-quick-btn {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .chat-duck-avatar {
    width: 34px;
    height: 34px;
  }

  .chat-duck-bubble-wrap {
    max-width: 82%;
  }

  .bot-message,
  .user-message {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .hero-buttons .hero-chat-button,
  .hero-buttons .cp-soft-button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .qt-select,
  .qt-submit-btn {
    min-height: 48px;
    font-size: 16px;
  }

  .qt-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  footer.wow {
    padding-bottom: max(88px, calc(72px + env(safe-area-inset-bottom)));
  }
}

