/* 씽크대교체 — Editorial 테마 / 딥그린(Primary #2C4A35 · Accent #5A8B5C) */

.eyebrow-rule { display:inline-block; width:36px; height:2px; background:var(--accent); margin-bottom:10px; }

.grid-3-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 760px) {
  .grid-3-2 { grid-template-columns: repeat(2, 1fr); }
}
/* absolute rule: 3개짜리 그리드는 모바일에서 1열 강제(2+1 배치 금지) */
.grid-3-2.grid-count-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .grid-3-2.grid-count-3 { grid-template-columns: 1fr; }
}
/* 4개짜리 그리드는 PC 4열 / 모바일 2열 */
.grid-3-2.grid-count-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) {
  .grid-3-2.grid-count-4 { grid-template-columns: repeat(2, 1fr); }
}
/* 6개 그리드: PC 3열 / 모바일 2열 */
.grid-3-2.grid-count-6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .grid-3-2.grid-count-6 { grid-template-columns: repeat(2, 1fr); }
}

/* 인라인 3열 통계/특징 카드의 모바일 강제 1열 처리 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* 비교표 — 모바일에서 가로 스크롤 대신 카드형으로 자연스럽게 줄바꿈 */
@media (max-width: 600px) {
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td {
    display: block; width: 100%; box-sizing: border-box;
  }
  .compare-table tr {
    border: 1px solid var(--border) !important; border-radius: var(--radius);
    overflow: hidden; margin-bottom: 12px;
  }
  .compare-table td { border: none !important; border-bottom: 1px solid var(--border) !important; }
  .compare-table tr:last-child { margin-bottom: 0; }
  .compare-table td:last-child { border-bottom: none !important; }
  .compare-table td[data-label]::before {
    content: attr(data-label); display: block;
    font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px;
  }
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: none;
  border: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-icon { color: var(--accent); font-size: 18px; transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 18px;
}
.faq-answer p { margin: 0 0 16px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 300px; }

.gallery-photo-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 3/4;
  background: var(--sub);
}
.gallery-photo-btn img { width: 100%; height: 100%; object-fit: cover; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 20, 17, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-panel { max-width: 600px; width: 100%; text-align: center; }
.lightbox-single-image img { width: 100%; border-radius: var(--radius); }
.lightbox-title { color: #fff; font-size: 14px; margin-top: 14px; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.consult-btn {
  display: block;
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
}
.consult-btn-tel { background: var(--accent); color: #fff; }
.consult-btn-sms { background: var(--bg); color: var(--primary); border: 1px solid var(--border); }

.phone-mask { color: var(--muted); }

.top-btn.show { display: flex !important; align-items: center; justify-content: center; }
