/* ===== detail page add-on (optional) ===== */

    :root{
      --bg:#ffffff;
      --text:#0b1220;
      --muted:#52627a;
      --line:#e7edf5;
      --card:#ffffff;
      --shadow: 0 10px 30px rgba(11,18,32,.08);
      --radius:18px;

      /* 브랜드 포인트(필요 시 교체) */
      --accent:#173a6a;      /* 아트원 네이비 느낌 */
      --accent2:#2b6cb0;     /* 블루 */
      --santafe:#1aa37a;     /* 그린 */
      --carnival:#2f7dd1;    /* 블루 */
      --pv5:#7a57d1;         /* 퍼플 */
    }

    *{box-sizing:border-box}
    body{
      margin:0;
      font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
      background:var(--bg);
      color:var(--text);
      line-height:1.55;
    }

    a{color:inherit; text-decoration:none}
    .wrap{max-width:1120px; margin:0 auto; padding:0 18px;}

    /* Top bar */
    .topbar{
      position:sticky; top:0;
      background:rgba(255,255,255,.85);
      backdrop-filter:saturate(160%) blur(10px);
      border-bottom:1px solid var(--line);
      z-index:50;
    }
    .topbar .inner{
      display:flex; align-items:center; justify-content:space-between;
      gap:14px; padding:12px 0;
    }
    .brand{
      display:flex; align-items:center; gap:12px; min-width:0;
    }
    .brand img{
      height:34px; width:auto; display:block;
    }
    .nav{
      display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end;
    }
    .chip{
      font-size:13px; color:var(--muted);
      padding:8px 10px; border:1px solid var(--line); border-radius:999px;
      background:#fff;
    }
    .chip:hover{border-color:#cfe0f7; color:var(--text)}

    /* Hero */
    .hero{padding:56px 0 26px;}
    .hero-grid{
      display:grid; grid-template-columns: 1.2fr .8fr;
      gap:26px; align-items:center;
    }
    .kicker{
      display:inline-flex; gap:8px; align-items:center;
      padding:6px 10px; border:1px solid var(--line);
      border-radius:999px; color:var(--muted); font-size:13px;
      background:#fff;
    }
    .h1{
      margin:14px 0 10px;
      font-size:38px; letter-spacing:-.6px; line-height:1.18;
    }
    .sub{
      margin:0;
      color:var(--muted);
      font-size:16px;
      max-width:52ch;
    }
    .hero-cta{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px;}
    .btn{
      display:inline-flex; align-items:center; justify-content:center;
      gap:10px;
      padding:12px 16px;
      border-radius:12px;
      border:1px solid var(--line);
      background:#fff;
      font-weight:700;
      font-size:14px;
      cursor:pointer;
      transition: .15s ease;
    }
    .btn:hover{transform:translateY(-1px); box-shadow:0 8px 18px rgba(11,18,32,.08);}
    .btn.primary{
      background:var(--accent);
      border-color:var(--accent);
      color:#fff;
    }
    .btn.primary:hover{box-shadow:0 10px 24px rgba(23,58,106,.22);}
    .btn.ghost{
      background:#fff;
      color:var(--accent);
      border-color:#cfe0f7;
    }

    .hero-card{
      border:1px solid var(--line);
      border-radius:var(--radius);
      box-shadow:var(--shadow);
      background:linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
      padding:18px;
    }
    .hero-card h3{
      margin:0 0 8px;
      font-size:16px; letter-spacing:-.2px;
    }
    .hero-card ul{
      margin:0; padding-left:18px; color:var(--muted); font-size:14px;
    }
    .hero-card li{margin:6px 0;}

    /* Section */
    section{padding:42px 0;}
    .sec-title{
      font-size:22px; letter-spacing:-.3px; margin:0 0 10px;
    }
    .sec-sub{
      margin:0 0 18px; color:var(--muted);
    }
    .divider{height:1px; background:var(--line); margin:0;}

    /* Lineup cards */
    .grid-3{
      display:grid; grid-template-columns: repeat(3, 1fr);
      gap:16px;
    }
    .card{
      background:var(--card);
      border:1px solid var(--line);
      border-radius:var(--radius);
      box-shadow:var(--shadow);
      overflow:hidden;
    }
    .card .head{
      padding:14px 16px 12px;
      border-bottom:1px solid var(--line);
      background:#fff;
    }
    .tag{
      display:inline-block;
      font-size:12px;
      font-weight:800;
      padding:6px 10px;
      border-radius:999px;
      background:#f2f6ff;
      color:var(--accent);
    }
    .title{
      margin:10px 0 6px;
      font-size:16px;
      letter-spacing:-.2px;
    }
    .desc{
      margin:0;
      color:var(--muted);
      font-size:13.5px;
    }
    .media{
      padding:14px 16px 0;
    }
    .ph{
      width:100%;
      aspect-ratio: 16/9;
      border-radius:14px;
      border:1px dashed #cfe0f7;
      background:linear-gradient(180deg,#fbfdff, #f1f6ff);
      display:flex; align-items:center; justify-content:center;
      color:#7b8aa3;
      font-weight:700;
      font-size:13px;
      overflow:hidden;
    }
    .ph img{width:100%; height:100%; object-fit:cover; display:block;}
    .points{
      padding:12px 16px 12px;
      display:grid; gap:8px;
    }
    .point{
      display:flex; gap:10px;
      color:var(--muted);
      font-size:13.5px;
    }
    .dot{
      width:10px; height:10px; border-radius:50%;
      margin-top:6px; flex:0 0 auto;
      background:var(--line);
    }
    .price{
      padding:14px 16px 16px;
      border-top:1px solid var(--line);
      display:flex; align-items:flex-end; justify-content:space-between; gap:10px;
      background:#fff;
    }
    .price .label{color:var(--muted); font-size:12px; font-weight:700;}
    .price .value{
      font-size:18px; font-weight:900; letter-spacing:-.2px;
      color:var(--text);
      white-space:nowrap;
    }

    .card.santafe .tag{background:rgba(26,163,122,.10); color:var(--santafe);}
    .card.santafe .dot{background:rgba(26,163,122,.45);}
    .card.carnival .tag{background:rgba(47,125,209,.10); color:var(--carnival);}
    .card.carnival .dot{background:rgba(47,125,209,.45);}
    .card.pv5 .tag{background:rgba(122,87,209,.10); color:var(--pv5);}
    .card.pv5 .dot{background:rgba(122,87,209,.45);}

    /* Price notes */
    .note{
      margin-top:14px;
      padding:14px 16px;
      border:1px solid var(--line);
      border-radius:14px;
      background:#fbfcff;
      color:var(--muted);
      font-size:13px;
    }
    .note b{color:var(--text)}

    /* Specs */
    .specs{
      display:grid;
      grid-template-columns: repeat(3, 1fr);
      gap:12px;
    }
    .spec{
      border:1px solid var(--line);
      border-radius:16px;
      padding:14px 14px;
      background:#fff;
      box-shadow: 0 8px 22px rgba(11,18,32,.06);
    }
    .spec .k{font-size:12px; color:var(--muted); font-weight:800; margin-bottom:6px;}
    .spec .v{font-size:14.5px; font-weight:800; letter-spacing:-.1px;}

    /* Collaboration */
    .callout{
      border:1px solid var(--line);
      border-radius:var(--radius);
      background:linear-gradient(180deg,#ffffff 0%, #f7fbff 100%);
      box-shadow:var(--shadow);
      padding:20px;
      display:grid;
      grid-template-columns: 1.1fr .9fr;
      gap:16px;
      align-items:center;
    }
    .callout h3{margin:0 0 8px; font-size:18px; letter-spacing:-.2px;}
    .callout p{margin:0; color:var(--muted); font-size:14px;}
    .callout .cta{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end;}

    /* Footer CTA */
    .footer-cta{
      padding:34px 0 54px;
      text-align:center;
    }
    .footer-cta h2{margin:0 0 10px; font-size:22px; letter-spacing:-.2px;}
    .footer-cta p{margin:0 0 18px; color:var(--muted);}

    /* Responsive */
    @media (max-width: 920px){
      .hero-grid{grid-template-columns:1fr; }
      .grid-3{grid-template-columns:1fr;}
      .specs{grid-template-columns:1fr;}
      .callout{grid-template-columns:1fr;}
      .callout .cta{justify-content:flex-start;}
      .h1{font-size:32px;}
    }
    /* ====== 추가: 버튼/미디어 섹션 ====== */
.card-actions{
  padding: 0 16px 18px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn.sm{
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  font-weight:800;
}

.btn.full{
  width:100%;
}

.media-section{
  padding: 10px 0 42px;
}

.media-box{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.media-head{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}

.media-head h3{
  margin:0;
  font-size:16px;
  letter-spacing:-.2px;
}

.media-head p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
}

.ratio-16x9{
  position:relative;
  width:100%;
  padding-top:56.25%; /* 16:9 */
  background: linear-gradient(180deg,#fbfdff,#f1f6ff);
}

.ratio-16x9 iframe,
.ratio-16x9 img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
  object-fit:cover;
}

.media-body{
  padding:14px 16px;
  color:var(--muted);
  font-size:13px;
}
/* 제원 섹션 이미지 반응형 처리 */
#spec .spec-image {
  display: block;
  width: 100%;
  max-width: 1100px;   /* PC에서 너무 커지지 않게 */
  height: auto;
  margin: 40px auto 32px; /* 가운데 정렬 + 여백 */
  border-radius: 12px;
}

/* 제원 섹션 상단 여백 */
#spec {
  padding-top: 80px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  #spec {
    padding-top: 56px;
  }

  #spec .spec-image {
    margin: 24px auto;
    border-radius: 8px;
  }
}
/* 이미지 확대용 커서 */
.zoom-img {
  cursor: zoom-in;
}

/* 라이트박스 배경 */
.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}

/* 확대 이미지 */
.img-modal-content {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* 하단 컨트롤 영역 공통 (모바일 기준) */
.img-modal .close,
.img-modal .img-caption {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
}

/* 차량명(캡션) */
.img-modal .img-caption {
  bottom: 78px;              /* X 버튼 바로 위 */
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  opacity: 0.95;
  padding: 6px 14px;
  background: rgba(0,0,0,0.45);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 닫기 버튼(X) */
.img-modal .close {
  bottom: 22px;
  top: auto;
  right: auto;
  width: 46px;
  height: 46px;
  border: 0;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 999px;
  font-size: 26px;
  line-height: 46px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

/* PC에서는 기존 패턴 유지 (X 상단 우측, 캡션은 이미지 아래) */
@media (min-width: 769px) {
  .img-modal .close {
    position: absolute;
    top: 24px;
    right: 32px;
    left: auto;
    bottom: auto;
    transform: none;
  }

  .img-modal .img-caption {
    position: static;
    transform: none;
    margin-top: 14px;
    background: none;
    padding: 0;
    font-size: 15px;
  }
}
.cta-3way{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
.cta-btn{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  border:1px solid #e6edf7;background:#fff;border-radius:14px;
  padding:12px 10px;text-decoration:none;cursor:pointer;
  transition:transform .08s ease, box-shadow .08s ease
}
.cta-btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(17,24,39,.08)}
.cta-btn .t{font-weight:700;font-size:14px;color:#0b1b3a}
.cta-btn .s{font-size:12px;color:#6b7a90;margin-top:2px}
.cta-btn.call{border-color:#d7e6ff}
.cta-btn.sms{border-color:#dff3ea}
.cta-btn.form{border-color:#e9e6ff}

@media(max-width:768px){
  .cta-3way{grid-template-columns:1fr;gap:10px}
  .cta-btn{padding:14px 12px}
}

.hero-detail { padding: 54px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; align-items: start; }
.pill { display:inline-flex; padding:6px 10px; border-radius:999px; background:#f3f6ff; color:#193a6a; font-weight:700; font-size:12px; }
.hero-title { font-size: 36px; line-height: 1.18; margin: 12px 0 10px; }
.hero-desc { color:#4b5563; line-height:1.7; }
.hero-cta { display:flex; gap:10px; margin-top: 18px; flex-wrap: wrap; }
.hero-badges { margin-top: 12px; display:flex; gap:8px; flex-wrap: wrap; }
.badge { font-size:12px; padding:6px 10px; border-radius:999px; background:#f6f7fb; border:1px solid #e7eaf2; color:#334155; }

.price-card { margin-top: 12px; padding:14px 16px; border-radius:16px; border:1px solid #e7eaf2; background:#fff; }
.price-card .label { font-size:12px; color:#64748b; font-weight:700; }
.price-card .value { font-size:22px; font-weight:900; margin-top:6px; color:#0f172a; }
.price-card .small { font-size:12px; color:#94a3b8; margin-top:4px; }

.mini-card { padding:16px; border-radius:16px; border:1px solid #e7eaf2; background:#fff; }
.mini-card .k { font-weight:800; color:#0f172a; }
.mini-card .v { margin-top:8px; color:#475569; line-height:1.6; }

.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-soft { padding:18px; border-radius:16px; border:1px solid #e7eaf2; background:#fff; }
.card-title { margin:0 0 10px; font-size:16px; }
.ul { margin:0; padding-left: 18px; color:#475569; line-height:1.8; }

.case-card { padding:16px; border-radius:16px; border:1px solid #e7eaf2; background:#fff; }
.case-title { font-weight:900; margin-bottom:8px; }
.case-desc { color:#475569; line-height:1.6; }

.cta-box { display:flex; justify-content:space-between; gap:16px; padding:20px; border-radius:18px; border:1px solid #e7eaf2; background:#fff; align-items:center; }
.cta-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }

.nav-box { display:flex; justify-content:space-between; gap:10px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 30px; }
  .grid-2 { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .cta-actions { justify-content:flex-start; }
}

/* ====== detail page: image box (composition section) ====== */
.section{padding:42px 0;} /* 안전: .section 클래스 사용 시 */
.ph-lg{aspect-ratio:auto; min-height:240px;} /* hero 이미지 영역이 너무 낮게 잡히는 것 방지(필요시 조절) */

.img-box{
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.img-head{padding:14px 16px; border-bottom:1px solid var(--line);}
.img-head h3{margin:0; font-size:15px; letter-spacing:-.2px;}
.img-head p{margin:6px 0 0; color:var(--muted); font-size:13px;}
.img-ph{padding:14px 16px;}
.img-ph img{width:100%; height:auto; display:block; border-radius:14px; border:1px solid var(--line); background:#f7fbff;}
.img-note{padding:0 16px 16px; color:var(--muted); font-size:12px;}


/* ===== CARNIVAL 이미지 슬라이더 ===== */
.ca-gallery { padding: 32px 0 8px; }

.ca-carousel{
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  outline: none;
}

.ca-viewport{
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.ca-track{
  display: flex;
  transition: transform 240ms ease;
  will-change: transform;
}

.ca-slide{
  min-width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.ca-slide img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.ca-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(15,23,42,0.55);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  z-index: 2;
}

.ca-nav:hover{ background: rgba(15,23,42,0.68); }
.ca-nav.prev{ left: -10px; }
.ca-nav.next{ right: -10px; }

.ca-dots{
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 14px 0 8px;
  flex-wrap: wrap;
}

.ca-dots button{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(15,23,42,0.22);
  cursor: pointer;
}

.ca-dots button.is-active{
  width: 18px;
  background: rgba(15,23,42,0.65);
}

.ca-count{
  text-align: center;
  font-size: 13px;
  color: rgba(15,23,42,0.6);
  padding-bottom: 6px;
}

@media (max-width: 768px){
  .ca-nav{ display:none; } /* 모바일은 스와이프 중심 */
  .ca-slide{ padding: 8px; }
  .ca-viewport{ border-radius: 14px; }
  .ca-slide img{ border-radius: 12px; }
}

.pv5-cases {
  margin: 120px 0;
}

.pv5-cases .section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

.pv5-cases .section-desc {
  text-align: center;
  color: #666;
  margin: 12px 0 48px;
}

.ca-slide {
  text-align: center;
}

.slide-caption {
  margin-top: 20px;
}

.slide-caption h3 {
  font-size: 20px;
  font-weight: 600;
}

.slide-caption p {
  font-size: 15px;
  color: #555;
  margin-top: 8px;
}


