* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "맑은 고딕", system-ui, sans-serif;
  background-color: #f3f4f6;
  color: #111827;
  line-height: 1.6;
}

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

/* 공통 레이아웃 */
.page-wrap {
  max-width: 1200px;
  margin: 24px auto 40px;
  padding: 0 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .page-wrap {
    padding: 0 16px 32px;
    margin-top: 32px;
  }
  .section-title {
    font-size: 20px;
  }
}

/* 상단 로고 영역 */
.top-wrap {
  background: #020617;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-mark {
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 8px 14px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.logo-mark span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  opacity: 0.8;
}

.logo-text-main {
  font-size: 14px;
  font-weight: 600;
}

.logo-text-sub {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.tel-area {
  text-align: right;
  font-size: 12px;
}

.tel-main {
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
}

.tel-small {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .top-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px 8px;
  }
  .tel-area {
    text-align: left;
  }
  .tel-main {
    font-size: 16px;
  }
}

/* 네비게이션 (고정 바) */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  overflow-x: auto;
}

.nav-inner a {
  font-size: 13px;
  color: #e5e7eb;
  padding: 6px 12px;
  border-radius: 9999px;
  white-space: nowrap;
  opacity: 0.8;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.nav-inner a:hover {
  opacity: 1;
  border-color: rgba(148, 163, 184, 0.7);
}

.nav-inner a.active {
  background: #f97316;
  color: #111827;
  opacity: 1;
  border-color: #f97316;
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 8px 16px;
    gap: 8px;
  }
  .nav-inner a {
    font-size: 12px;
  }
}

/* HERO 영역 (메인 상단) */
.hero-wrap {
  margin-top: 24px;
  padding: 24px 24px 28px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #1d293b, #020617);
  color: #f9fafb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.55);
}

.hero-main {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-main-left {
  flex: 1 1 55%;
  min-width: 260px;
}

.hero-main-right {
  flex: 1 1 40%;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.hero-sub {
  font-size: 14px;
  opacity: 0.9;
}

.hero-list {
  list-style: none;
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.95;
}

.hero-list li + li {
  margin-top: 4px;
}

@media (max-width: 768px) {
  .hero-wrap {
    margin-top: 18px;
    padding: 18px 16px 22px;
    border-radius: 18px;
  }
  .hero-main {
    flex-direction: column;
  }
  .hero-title {
    font-size: 22px;
  }
  .hero-sub {
    font-size: 13px;
  }
}

/* 메인 슬라이더 */
.slider {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #020617;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.4s ease, transform 0.6s ease, visibility 0.4s ease;
}

/* JS에서 .active 클래스를 부여 */
.slides img.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.slider::before {
  content: "";
  display: block;
  padding-bottom: 56.25%; /* 16:9 비율을 위한 더미 */
}

.slider > .slides,
.slider > .slides img {
  position: absolute;
  inset: 0;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(248, 250, 252, 0.45);
  transition: width 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.slider-dot.active {
  width: 18px;
  background: #f97316;
  border-color: #f97316;
}

@media (max-width: 768px) {
  .slider {
    border-radius: 16px;
  }
}

/* 상단 작은 해시태그 갤러리 */
.small-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.small-thumb {
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 11px;
  color: #e5e7eb;
}

/* 슬로건 & 사진 섹션 */
.slogan-wrap {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.slogan-text-main {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.slogan-text-sub {
  font-size: 14px;
  color: #4b5563;
}

.slogan-photo {
  border-radius: 18px;
  background: linear-gradient(135deg, #e5e7eb, #cbd5f5);
  padding: 16px;
  font-size: 13px;
  color: #111827;
  text-align: center;
}

@media (max-width: 768px) {
  .slogan-wrap {
    grid-template-columns: 1fr;
    margin-top: 26px;
  }
  .slogan-photo {
    margin-top: 4px;
  }
}

/* 견적/문의 섹션 */
#quote {
  scroll-margin-top: 90px;
}

.quote-wrap {
  margin-top: 40px;
  background: #f9fafb;
  border-radius: 22px;
  padding: 22px 22px 24px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

.quote-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 13px;
}

.form-row label {
  font-weight: 600;
  color: #111827;
}

.form-row input,
.form-row select,
.form-row textarea {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25);
}

.form-row textarea {
  resize: vertical;
  min-height: 90px;
}

.form-check-row {
  margin-top: 6px;
  font-size: 12px;
  color: #4b5563;
}

.btn-submit {
  margin-top: 10px;
  width: 100%;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 0;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(249, 115, 22, 0.5);
  opacity: 0.97;
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

.quote-panel {
  background: #020617;
  color: #e5e7eb;
  border-radius: 18px;
  padding: 14px 14px 16px;
}

.quote-panel .panel-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.quote-panel .panel-sub {
  font-size: 11px;
  opacity: 0.8;
  margin-bottom: 10px;
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.quote-table th,
.quote-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.5);
  padding: 6px 4px;
  text-align: left;
}

.quote-table th {
  font-weight: 600;
  opacity: 0.9;
}

.quote-table tr:last-child th,
.quote-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .quote-wrap {
    padding: 18px 16px 20px;
    border-radius: 18px;
  }
  .quote-main {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* 실제 설치 사례 / 리뷰 섹션 */
.review-wrap {
  margin-top: 36px;
  margin-bottom: 8px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  background: #f9fafb;
  border-radius: 18px;
  padding: 12px 12px 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-img {
  padding: 0;
  background: none;
}
.review-img img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.review-body {
  font-size: 13px;
}

.review-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #111827;
}

.review-text {
  font-size: 13px;
  color: #4b5563;
}

@media (max-width: 900px) {
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}

/* 푸터 */
footer {
  border-top: 1px solid rgba(31, 41, 55, 0.7);
  margin-top: 28px;
  background: #020617;
  color: #9ca3af;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px 18px;
  font-size: 11px;
}

/* 기타 보정 */
html, body {
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  .hero-wrap,
  .quote-wrap,
  .review-wrap {
    margin-top: 22px;
  }
}

/* 모바일에서 슬라이더가 글씨를 덮지 않도록 여백 조정 */
@media (max-width: 768px) {
  .hero-main {
    flex-direction: column;
  }
  .hero-main-left {
    margin-bottom: 18px;
  }
  .hero-main-right {
    position: relative;
    z-index: 1;
  }
  .slider {
    position: relative;
    z-index: 0;
  }
}

/* 인치대별 추천 구성 섹션 */
.inch-wrap {
  margin-top: 40px;
  background: #f9fafb;
  border-radius: 18px;
  padding: 18px 20px 20px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.inch-sub {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 12px;
}

.inch-table-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
}

.inch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px;
}

.inch-table th,
.inch-table td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  text-align: left;
}

.inch-table th {
  background: #eef2ff;
  font-weight: 700;
  color: #111827;
}

.inch-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.inch-note {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
}

.inch-note-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111827;
}

.inch-note-text {
  font-size: 12px;
  color: #4b5563;
}

@media (max-width: 900px) {
  .inch-notes {
    grid-template-columns: 1fr;
  }
}

/* 공통 서브 페이지 섹션 (호텔TV / DID / 룸매니저 / 서비스로봇) */
.table-section {
  margin-top: 32px;
  background: #f9fafb;
  border-radius: 18px;
  padding: 18px 20px 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.table-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0f172a;
}

.table-section p {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 10px;
}

.table-section .table-scroll {
  width: 100%;
  overflow-x: auto;
}

/* 표 스타일 */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 520px;
}

.price-table thead {
  background: #e5e7eb;
}

.price-table th,
.price-table td {
  border: 1px solid #d1d5db;
  padding: 6px 8px;
  text-align: left;
}

.price-table th {
  font-weight: 700;
  color: #111827;
}

.price-table td {
  color: #374151;
}

/* 카드 리스트 (포인트/장점 정리) */
.card-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 12px 12px 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  font-size: 13px;
}

.card-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #111827;
}

.card-text {
  font-size: 13px;
  color: #4b5563;
}

/* 불릿 리스트 */
.bullet-list {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 13px;
  color: #374151;
}

.bullet-list li + li {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .card-list {
    grid-template-columns: 1fr;
  }
  .table-section {
    padding: 16px 14px 18px;
  }
}

/* 모바일/태블릿에서 메인 사진과 글씨가 겹치지 않도록 분리 */
@media (max-width: 1024px) {
  .hero-main {
    flex-direction: column;
    gap: 18px;
  }
  .hero-main-left {
    margin-bottom: 0;
  }
  .hero-main-right {
    position: relative;
    z-index: 1;
  }
  .slider {
    position: relative;
    z-index: 0;
    margin-bottom: 4px;
  }
}

/* 모든 페이지 모바일에서 사진과 타이틀이 겹치지 않도록 여백 강제 */
@media (max-width: 1024px) {
  .hero-main-right {
    margin-top: 32px;
  }
}

@media (max-width: 1024px) {
  .hero-main {
    gap: 28px;
  }
}

/* 모바일에서 히어로 사진/텍스트 완전히 분리 */
@media (max-width: 768px) {
  .hero-main {
    display: block;
  }
  .hero-main-left,
  .hero-main-right {
    width: 100%;
  }
  .hero-main-left {
    margin-bottom: 0;
  }
  .hero-main-right {
    position: static !important;
    margin-top: 32px;
  }
  .slider {
    position: relative !important;
  }
}

/* 모바일에서 '인치대별 추천 구성' 표 폭 줄이기: 비고(4열) 숨김 */
@media (max-width: 768px) {
  .price-table {
    min-width: 0;
    font-size: 12px;
  }
  .price-table th:nth-child(4),
  .price-table td:nth-child(4) {
    display: none;
 
 }
/* 테이블이 카드 밖으로 삐져나오지 않게 */
.price-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
}

/* 테이블 자체 레이아웃 안정화 */
.price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* 셀 안의 텍스트가 자동 줄바꿈 되도록 */
.price-table th,
.price-table td {
  padding: 12px 10px;
  border: 1px solid #e5e5e5;
  word-break: keep-all;
  white-space: normal;
}

/* 헤더 스타일 */
.price-table th {
  background: #f7f9fc;
  font-weight: 600;
}

}
