:root {
  --gray-900: #121212;
  --gray-800: #1e1e1e;
  --gray-700: #383838;
  --gray-600: #575757;
  --gray-500: #757575;
  --gray-400: #9a9a9a;
  --gray-300: #c9c9c9;
  --gray-200: #e2e2e2;
  --gray-100: #f1f1f1;
  --gray-50: #fafafa;
  --white: #ffffff;
  --accent: #141414;
  --accent-hover: #000000;
  --accent-soft: #eeeeee;
  --point: #C9C9C9;
  --point-soft: #F5F5F5;
  --success: #2f7d4f;
  --radius: 12px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.14);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Noto Sans KR", sans-serif; font-weight: 800; margin: 0; color: var(--gray-900); letter-spacing: -0.01em; }

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

ul { margin: 0; padding: 0; list-style: none; }

img { max-width: 100%; display: block; }

.br-mobile { display: none; }

/* ---------- Layout helpers ---------- */
.section { padding: 88px 24px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gray-500);
  margin: 0 0 10px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.section-lead { max-width: 640px; color: var(--gray-600); font-size: 1.02rem; margin-bottom: 48px; }
.text-emphasis { color: var(--gray-900); font-weight: 700; text-decoration: underline; }
.text-emphasis .text-accent { color: #AE510F; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-orange { background: #AE510F; }
.btn-orange:hover { background: #A43E08; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--gray-800);
}
.btn-outline:hover { border-color: var(--gray-900); color: var(--gray-900); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo { display: flex; align-items: center; margin-right: auto; }
.logo-img { height: 80px; width: auto; display: block; }

.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  font-weight: 500;
  color: var(--gray-600);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gray-900); border-color: var(--gray-900); }

.nav-cta { white-space: nowrap; padding: 10px 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-800); margin: 0 auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 24px 80px;
  background:
    radial-gradient(circle at 85% 15%, var(--gray-200) 0%, transparent 55%),
    linear-gradient(180deg, var(--gray-100) 0%, var(--gray-50) 100%);
  border-bottom: 1px solid var(--gray-200);
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; text-align: left; position: relative; }
.hero-illustration {
  position: absolute;
  right: 0;
  bottom: -18px;
  width: 390px;
  height: auto;
  opacity: 0.92;
  pointer-events: none;
  z-index: 0;
}
.eyebrow {
  display: inline-block;
  background: var(--gray-900);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(1rem, 4.4vw, 3.2rem);
  line-height: 1.35;
  margin-bottom: 22px;
  max-width: 800px;
}
.hero-line-nowrap { display: inline-block; white-space: nowrap; }
.hero-desc { font-size: 1.1rem; color: var(--gray-600); max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 56px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); }
.hero-stats span { color: var(--gray-600); font-size: 0.9rem; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.intro-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
}
.intro-icon { font-size: 1.8rem; margin-bottom: 16px; filter: grayscale(1); }
.intro-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.intro-card p { color: var(--gray-600); font-size: 0.95rem; margin: 0; }

.mission-box {
  background: var(--gray-900);
  color: var(--gray-100);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.mission-box h3 { color: var(--white); margin-bottom: 14px; }
.mission-box p { margin: 0; color: var(--gray-300); font-size: 1.02rem; }
.mission-box strong { color: var(--white); }

/* ---------- Intro: 차별화 비교 ---------- */
.compare-block { margin-top: 64px; }
.compare-heading { font-size: 1.4rem; margin-bottom: 14px; }
.compare-lead { color: var(--gray-600); font-size: 0.98rem; max-width: 760px; margin-bottom: 32px; }

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--white); }
.compare-table th,
.compare-table td { padding: 14px 18px; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--gray-200); }
.compare-table thead th { background: var(--gray-100); color: var(--gray-700); font-size: 1rem; font-weight: 700; border-bottom: 2px solid var(--gray-400); }
.compare-table tbody th { color: var(--gray-700); font-weight: 600; white-space: nowrap; }
.compare-table tbody td { color: var(--gray-600); }
.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .highlight-col { background: var(--point); color: var(--gray-900); font-weight: 700; }
.compare-table thead th.highlight-col { color: var(--gray-900); background: var(--point); }

.compare-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.feature-icon { font-size: 1.5rem; margin-bottom: 12px; filter: grayscale(1); }
.feature-card h4 { font-size: 1rem; margin-bottom: 8px; color: var(--gray-900); }
.feature-card p { margin: 0; color: var(--gray-600); font-size: 0.88rem; }

/* ---------- Curriculum ---------- */
.curriculum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 28px; }
.curriculum-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.curriculum-card.featured {
  border: 2px solid var(--gray-900);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
/* 마우스를 올리면 테두리가 선택된 것처럼 진하게 반전 (레이아웃 이동 없이 box-shadow로 두께 보강) */
.curriculum-card { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.curriculum-card:hover {
  border-color: var(--gray-900);
  box-shadow: 0 0 0 1px var(--gray-900), var(--shadow-md);
}
.curriculum-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.badge-basic { background: var(--gray-100); color: var(--gray-700); }
.badge-mid { background: var(--gray-900); color: var(--white); }
.badge-pro { background: var(--gray-700); color: var(--white); }
.badge-hot { background: #EBC014; color: #111; }
.badge-green { background: #2E7D4F; color: var(--white); }
.badge-pink { background: #6C0FAE; color: var(--white); }
.badge-num { background: var(--white); color: var(--gray-900); box-shadow: inset 0 0 0 1.5px var(--gray-900); }
.badge-rose { background: #B5577A; color: var(--white); }
.badge-cobalt { background: #0F51AE; color: var(--white); }
.curriculum-badges { display: flex; gap: 6px; align-self: flex-start; margin-bottom: 16px; }
.curriculum-badges .curriculum-badge { margin-bottom: 0; }
.curriculum-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.curriculum-meta { color: var(--gray-500); font-size: 0.88rem; margin: 0 0 18px; }
.curriculum-list { display: flex; flex-direction: column; gap: 10px; flex: 1; } /* 같은 줄 카드의 버튼 위치를 맞춤 */
.curriculum-cta { margin-top: 20px; }
.curriculum-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  color: var(--gray-700);
}
.curriculum-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-900);
}
.curriculum-note { color: var(--gray-500); font-size: 0.9rem; }

/* ---------- Reservation ---------- */
.section-reservation { background: var(--gray-100); scroll-margin-top: 40px; } /* 앵커 이동 시 고정 헤더에 제목이 가리지 않도록 */
/* 좌: 교육비용 + 예약 안내 / 우: 예약 폼 */
.cost-reserve-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: stretch; }
.cost-col { display: flex; flex-direction: column; gap: 24px; }
.cost-col .pricing-grid { grid-template-columns: 1fr; margin-bottom: 0; }
.cost-col .pricing-block { margin-bottom: 0; }
/* 카드 상단 높이를 예약 폼 상단과 맞춘다 (기본 featured 카드의 위로 띄우기 해제) */
.cost-col .pricing-card.featured { transform: none; }
.cost-reserve-wrap .section-lead { max-width: none; margin-bottom: 40px; }
/* 예약 폼: 좌측 두 블록의 전체 높이에 맞춰 늘리고, 남는 공간은 항목 사이에 고르게 배분 */
.reserve-col { display: flex; flex-direction: column; }
/* 제목도 폼 항목과 같은 흐름에 두어 space-evenly로 제목~항목 간격이 다른 항목 간격과 동일하게 유지됨 */
.reserve-title { grid-column: 1 / -1; font-size: 1.6rem; line-height: 1.2; font-weight: 800; color: var(--gray-900); margin: 0; }
.reserve-col .reservation-form { flex: 1; align-content: space-evenly; }
.reservation-form .btn { grid-column: 1 / -1; justify-self: center; width: min(100%, 280px); }
.reservation-form .form-note { text-align: center; }
.reservation-form .form-note:empty { display: none; }
.reservation-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-row-full { grid-column: 1 / -1; }
.form-row label { font-weight: 500; font-size: 0.92rem; color: var(--gray-800); }
.req { color: var(--gray-900); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--gray-50);
  color: var(--gray-900);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gray-900);
  background: var(--white);
}
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--gray-600); flex-direction: row; }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--gray-900); }
.form-note { grid-column: 1 / -1; font-size: 0.9rem; min-height: 1.2em; margin: 0; }
.form-note.success { color: var(--success); font-weight: 700; }
.form-note.error { color: var(--gray-900); font-weight: 700; }

.reservation-info {
  background: var(--gray-900);
  color: var(--gray-100);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.reservation-info h3 { color: var(--white); margin-bottom: 20px; }
.reservation-info ul { display: flex; flex-direction: column; gap: 18px; }
.reservation-info li { display: flex; flex-direction: column; gap: 4px; }
.reservation-info strong { color: var(--white); font-size: 0.92rem; }
.reservation-info span { color: var(--gray-300); font-size: 0.92rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.pricing-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing-card.featured { border: 2px solid var(--gray-900); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.pricing-ribbon {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.pricing-card h3 { font-size: 1.6rem; font-weight: 800; }
.price-event { display: block; margin-top: 4px; color: #A8402F; font-weight: 800; font-size: 1.1rem; line-height: 1.4; word-break: keep-all; }
.pricing-sub { color: var(--gray-500); font-size: 0.88rem; margin: -10px 0 0; }
.price { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); margin: 0; }
.price.price-guide { font-size: 1.05rem; font-weight: 700; line-height: 1.5; word-break: keep-all; text-decoration: underline; text-underline-offset: 4px; }
.price span { font-size: 1rem; font-weight: 500; color: var(--gray-500); margin-left: 4px; }
.pricing-card ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.pricing-card ul li { font-size: 0.92rem; color: var(--gray-700); padding-left: 18px; position: relative; }
.pricing-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gray-900); font-weight: 700; }
.pricing-note { color: var(--gray-500); font-size: 0.9rem; }
.pricing-block { margin-bottom: 56px; }

/* ---------- 시공사례 페이지 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.case-card { display: flex; flex-direction: column; gap: 6px; }
.case-embed {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #111;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 10px;
}
.case-embed iframe, .case-play, .case-play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.case-play { padding: 0; background: none; cursor: pointer; }
.case-play img { object-fit: cover; }
.case-play-icon {
  position: absolute; top: 50%; left: 50%;
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.62);
  transition: background 0.15s ease, transform 0.15s ease;
}
.case-play-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  margin: -9px 0 0 -6px;
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.case-play:hover .case-play-icon, .case-play:focus-visible .case-play-icon { background: #C4302B; transform: scale(1.08); }
.case-card h3 { font-size: 1.1rem; margin: 0; }
.case-sub { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--gray-800); }
.case-desc { margin: 0; font-size: 0.86rem; color: var(--gray-600); line-height: 1.55; word-break: keep-all; }
.case-link { margin-top: 6px; font-size: 0.88rem; font-weight: 600; color: var(--gray-700); }
.case-link:hover { color: var(--gray-900); text-decoration: underline; }
@media (max-width: 960px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }

/* ---------- 수강생 직업군 ---------- */
.section-location .section-lead { margin-bottom: 0; }
.student-jobs { max-width: 640px; margin: 1.6em 0 62px; }
.student-jobs-lead { color: var(--gray-700); font-size: 1rem; margin: 0 0 16px; }
.student-jobs-lead strong { color: #AE510F; font-weight: 700; }
.job-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.job-chips li {
  padding: 7px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-800);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- Location ---------- */
.location-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: stretch; }
.location-map {
  background: var(--gray-200);
  border-radius: var(--radius);
  min-height: 360px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--gray-300);
  display: block;
}
.location-info {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.location-info h3 { font-size: 1.25rem; }
.location-list { display: flex; flex-direction: column; gap: 16px; }
.location-list li { display: flex; gap: 16px; font-size: 0.95rem; }
.loc-label {
  flex: 0 0 64px;
  font-weight: 700;
  color: var(--gray-900);
}
.location-info .btn { align-self: flex-start; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-900); color: var(--gray-300); padding: 48px 24px 32px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.footer-brand .logo-img { height: 92px; }
.footer-desc { margin: 0 0 8px; color: var(--gray-200); }
.footer-meta { margin: 0 0 20px; font-size: 0.85rem; color: var(--gray-500); }
.footer-copy { margin: 0; font-size: 0.82rem; color: var(--gray-500); }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .hero-illustration { display: none; }
}

@media (max-width: 960px) {
  .intro-grid, .curriculum-grid, .pricing-grid { grid-template-columns: 1fr; }
  .curriculum-card.featured, .pricing-card.featured { transform: none; }
  .cost-reserve-wrap, .location-wrap { grid-template-columns: 1fr; }
  .reservation-form { grid-template-columns: 1fr; }
  .compare-features { grid-template-columns: repeat(2, 1fr); }
}

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

/* 모바일 로고: 높이를 고정하면 flex에서 가로만 줄어 비율이 깨지므로, 폭 기준으로 비율 유지 */
@media (max-width: 780px) {
  .site-header .logo, .detail-header .logo { flex: 1 1 0; min-width: 0; }
  .site-header .logo-img, .detail-header .logo-img { height: auto; width: 100%; max-width: 200px; }
  .footer-brand .logo-img { height: auto; width: min(260px, 100%); }
}

/* 모바일: 그리드 자식이 내용 폭만큼 늘어나 화면을 넘지 않도록 */
.cost-reserve-wrap > *, .cost-col > *, .cost-col .pricing-grid, .cost-col .pricing-grid > * { min-width: 0; }
@media (max-width: 640px) {
  .cost-reserve-wrap { gap: 24px; }
  .pricing-card { padding: 30px 20px; }
  .pricing-ribbon { left: 20px; }
  .pricing-card h3 { font-size: 1.4rem; }
  .reserve-title { font-size: 1.4rem; }
  .reservation-form { padding: 28px 20px; }
  /* 히어로 버튼 3개를 한 줄에 균등 배치 */
  .hero-actions { flex-wrap: nowrap; gap: 8px; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 12px 4px; font-size: clamp(0.74rem, 3.6vw, 0.88rem); white-space: nowrap; }
  /* 히어로 설명: 각 문장이 줄바꿈 없이 한 줄로 보이도록 화면 폭에 맞춰 글자 크기 조정 */
  .hero-desc { font-size: 3.5vw; white-space: nowrap; }
  /* 비교표: 가로 스크롤 없이 화면 폭에 맞춰 줄바꿈 */
  .compare-table { min-width: 0; table-layout: fixed; }
  .compare-table th, .compare-table td { padding: 10px 8px; font-size: 0.8rem; line-height: 1.45; word-break: keep-all; }
  .compare-table thead th { font-size: 0.82rem; }
  .compare-table tbody th { white-space: normal; }
  .compare-table th:nth-child(1) { width: 21%; }
  .compare-table th:nth-child(2) { width: 36%; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stats strong { font-size: 1.35rem; }
  .hero-stats span { font-size: 0.8rem; }
}

@media (max-width: 780px) {
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 8px 24px 20px;
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; gap: 4px; }
  .site-header.nav-open .main-nav a { display: block; padding: 12px 4px; }
  .br-mobile { display: inline; }
  .section { padding: 64px 20px; }
  .hero { padding: 64px 20px 56px; }
}

/* ---------- Success modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: modal-pop 0.18s ease;
}
.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gray-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 16px;
}
.modal-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.modal-card p { color: var(--gray-600); font-size: 0.92rem; margin: 0 0 24px; }

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Detail page (tile-crack.html 등 과정 상세) ---------- */
.detail-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.detail-header-actions .btn { white-space: nowrap; }
.detail-hero {
  padding: 88px 24px 64px;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--gray-50) 100%);
  border-bottom: 1px solid var(--gray-200);
}
.detail-hero .section-inner { text-align: left; }
.detail-hero-title {
  font-size: clamp(1.5rem, 4.2vw, 2.6rem);
  line-height: 1.4;
  margin-bottom: 20px;
  max-width: 820px;
}
/* 시공사례 제목: 어떤 화면 폭에서도 정확히 두 줄이 되도록 첫 줄 길이에 맞춰 글자 크기 조정 */
.case-hero-title { max-width: none; letter-spacing: -0.03em; font-size: min(2.5rem, calc((100vw - 48px) / 19.5)); }
.case-hero-title span { display: block; white-space: nowrap; }
.case-blog-link { color: var(--gray-900); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.case-blog-link:hover { color: #AE510F; }
.detail-hero-lead { font-size: 1.08rem; color: var(--gray-700); max-width: 760px; margin: 0; }
.detail-hero-lead strong { color: var(--gray-900); }
.detail-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.detail-fact {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 700;
}
.detail-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.detail-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--gray-200);
}
.detail-alt { background: var(--gray-100); }
.detail-block { margin-bottom: 40px; }
.detail-block:last-child { margin-bottom: 0; }
.detail-block h3 { font-size: 1.15rem; margin-bottom: 12px; }
.detail-block > p { color: var(--gray-700); margin: 0; max-width: 780px; }
.detail-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.detail-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.detail-table th,
.detail-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.93rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.detail-table thead th { background: var(--gray-100); color: var(--gray-700); font-weight: 700; border-bottom: 2px solid var(--gray-400); }
.detail-table tbody td { color: var(--gray-700); }
.detail-table tr:last-child td { border-bottom: none; }
.detail-table th.detail-hl,
.detail-table td.detail-hl { background: var(--point); color: var(--gray-900); font-weight: 700; }
.detail-lunch {
  text-align: center;
  color: var(--gray-600);
  font-weight: 700;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 12px;
  margin: -12px 0 40px;
}
.detail-checklist { display: grid; gap: 14px; max-width: 780px; }
.detail-checklist li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 20px 16px 52px;
  font-weight: 500;
}
.detail-checklist li::before {
  content: "✔";
  position: absolute;
  left: 20px;
  top: 16px;
  font-weight: 800;
  color: var(--gray-900);
}
.detail-faq { display: grid; gap: 14px; max-width: 860px; }
.detail-qa {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.detail-q { font-weight: 700; color: var(--gray-900); margin: 0 0 8px; }
.detail-a { color: var(--gray-700); margin: 0; }
.detail-closing {
  background: var(--gray-900);
  color: var(--gray-100);
  padding: 80px 24px;
  text-align: center;
  border-bottom: 1px solid var(--gray-700);
}
.detail-closing-lead { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 800; color: var(--white); line-height: 1.55; margin: 0 0 18px; }
.detail-closing-sub { color: var(--gray-300); font-size: 1.05rem; margin: 0 0 36px; }
.detail-price {
  display: inline-block;
  background: var(--white);
  color: var(--gray-900);
  border-radius: var(--radius);
  padding: 22px 32px;
  margin-bottom: 32px;
}
.detail-price-amount { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; }
.detail-price-amount span { font-size: 0.9rem; font-weight: 500; color: var(--gray-600); }
.detail-price-note { font-size: 0.92rem; color: var(--gray-600); margin: 0; }
.detail-price-note.detail-price-note-lg { font-size: 1.05rem; }
.detail-closing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.detail-closing-actions .btn-outline { background: transparent; color: var(--white); border-color: var(--gray-500); }
.detail-closing-actions .btn-outline:hover { border-color: var(--white); color: var(--white); }

@media (max-width: 760px) {
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
  .detail-hero { padding: 56px 20px 44px; }
  /* 모바일에서도 상단 버튼 2개(뒤로가기 / 상담신청)를 함께 표시: 작게, 같은 높이로 정렬 */
  .detail-header .header-inner { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .detail-header-actions { gap: 5px; }
  .detail-header-actions .btn { padding: 9px 9px; font-size: 0.78rem; line-height: 1.2; }
  .detail-table { min-width: 0; }
  .detail-table th,
  .detail-table td { padding: 10px 12px; font-size: 0.85rem; }
}
