:root {
  --ink: #13130A;
  --yellow: #FEEB8F;
  --text: #13130A;
  --muted: #5C5B54;
  --line: #E7E5DE;
  --hero-tint: #F5F3EC;
  --accent: #13130A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  color: var(--text);
  letter-spacing: -0.3px;
  background: #fff;
  padding-bottom: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: #fff; height: 76px;
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 34px; height: 34px; color: var(--ink); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-brand { font-size: 13px; font-weight: 600; color: var(--muted); }
.logo-keyword { font-size: 19px; font-weight: 700; color: var(--text); }

.nav {
  display: flex; align-items: center; gap: 30px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: -0.035em; text-transform: uppercase;
}
.nav > a.active { color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.nav-cta {
  padding: 11px 22px; border-radius: 999px; background: var(--ink); color: #fff !important;
  font-size: 15px;
}
.nav-drop { position: relative; }
.nav-drop__trigger { cursor: pointer; }
.nav-drop__panel {
  position: absolute; top: 100%; left: 0; margin-top: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; display: none; flex-direction: column; min-width: 200px;
  box-shadow: 0 20px 40px rgba(0,0,0,.10); z-index: 201;
}
.nav-drop:hover .nav-drop__panel, .nav-drop:focus-within .nav-drop__panel { display: flex; }
.nav-drop__panel a {
  padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: -0.035em;
}
.nav-drop__panel a:hover { background: var(--hero-tint); }
.nav-toggle { display: none; background: none; border: none; width: 28px; height: 20px; position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

/* ---------- apt hero (main_skin=2, full-bleed, black type) ---------- */
.apt-hero { background: #fff; }
.apt-hero__media { position: relative; width: 100%; height: 62vh; min-height: 420px; max-height: 720px; overflow: hidden; background: #F4F2EC; }
.apt-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.apt-hero__media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(to top, rgba(255,255,255,.96), rgba(255,255,255,0));
  pointer-events: none;
}
.apt-hero__copy {
  position: relative; margin-top: -120px; z-index: 1;
  max-width: 1180px; margin-left: auto; margin-right: auto; padding: 0 24px 56px;
}
.apt-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 700; margin: 0 0 18px;
}
.apt-hero h1 {
  font-size: 46px; font-weight: 800; color: var(--ink); line-height: 1.28; letter-spacing: -0.5px;
  margin: 0 0 16px; max-width: 720px;
}
.apt-hero__sub { font-size: 16px; line-height: 28px; color: var(--muted); max-width: 480px; margin: 0 0 26px; }
.apt-hero__cta { display: flex; gap: 12px; margin: 0 0 22px; }
.apt-hero__checks { display: flex; gap: 20px; font-size: 14px; color: var(--muted); list-style: disc inside; }

.btn-fill {
  height: 48px; padding: 14px 26px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 600; display: inline-flex; align-items: center;
}
.btn-line {
  height: 48px; padding: 14px 26px; border-radius: 999px; background: transparent; color: var(--text);
  border: 1px solid var(--text); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center;
}

/* ---------- generic sections ---------- */
section { padding: 96px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--ink); margin: 0 0 14px; }
.section-title { font-size: 30px; font-weight: 700; margin: 0 0 14px; }
.section-lead { font-size: 16px; color: var(--muted); max-width: 640px; margin: 0 0 40px; line-height: 1.7; }

/* ---------- about (split) ---------- */
#about { background: #FBFAF7; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-copy p { font-size: 16px; line-height: 1.85; color: var(--text); margin-bottom: 18px; }
.about-media img { border-radius: 20px; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* ---------- service ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.service-card { padding: 8px 0; }
.svc-icon { display: block; width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; color: var(--ink); margin-bottom: 18px; }
.svc-icon svg { display: block; width: 100%; height: 100%; max-width: 44px; max-height: 44px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* ---------- cases (home carousel, apt style) ---------- */
#cases { background: #fff; }
.case-carousel { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.case-carousel::-webkit-scrollbar { height: 6px; }
.case-carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.case-card {
  flex: 0 0 320px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.case-card__img { aspect-ratio: 16/11; overflow: hidden; background: #F4F2EC; }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.case-card:hover .case-card__img img { transform: scale(1.04); }
.case-card__body { padding: 18px 20px 22px; }
.case-card__region { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.case-card__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.case-card__excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* grid variant for /설치사례/ list page */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-grid .case-card { flex: none; }

/* ---------- process ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.process-item { padding: 28px 20px 28px 24px; border-right: 1px solid var(--line); }
.process-item:first-child { padding-left: 0; }
.process-item:last-child { border-right: none; }
.pnum { color: var(--ink); font-weight: 700; font-size: 13px; display: block; margin-bottom: 10px; }
.process-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.process-item p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- region ---------- */
#region { background: #FBFAF7; }
.region-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.region-chip {
  padding: 16px; border: 1px solid var(--line); border-radius: 12px; text-align: center;
  font-size: 14.5px; font-weight: 600; background: #fff;
}
.region-chip:hover { border-color: var(--ink); }
.region-more { margin-top: 24px; text-align: center; }

/* ---------- faq ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 10px; }
.faq-item p { font-size: 15px; color: var(--muted); line-height: 1.75; }

/* ---------- closing (apt: solid black bg) ---------- */
.closing { background: #000; padding: 96px 0; }
.closing__inner { text-align: center; }
.closing__head {
  font-size: 30px; font-weight: 700; color: #fff; white-space: nowrap; margin: 0 0 18px;
}
.closing__quote { font-size: 16px; color: #cfcfc6; margin: 0 0 28px; }
.btn-ghost-line {
  display: inline-flex; align-items: center; height: 48px; padding: 0 30px; border: 1px solid #fff;
  color: #fff; font-size: 15px; font-weight: 600; border-radius: 2px;
}

/* ---------- footer (apt: black) ---------- */
.site-footer { background: #000; color: #cfcfc6; padding: 56px 0 100px; }
.footer__inner { display: flex; flex-direction: column; gap: 20px; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand .logo-icon { color: #fff; }
.footer__brand .logo-brand { color: #9a9a90; }
.footer__brand .logo-keyword { color: #fff; }
.footer__biz p { font-size: 13px; line-height: 1.9; color: #9a9a90; margin: 0; }
.footer__links { display: flex; gap: 18px; font-size: 13.5px; }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: 12.5px; color: #77776d; margin-top: 6px; }

/* ---------- mobile bottom bar + fab ---------- */
.mobile-bar { display: none; }
.fab-consult {
  position: fixed; right: 20px; bottom: 90px; z-index: 150;
  width: 60px; height: 60px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
@media (min-width: 768px) { .fab-consult { bottom: 30px; } }

/* ---------- sub page tint panel (hub/region/faq header) ---------- */
.hero-panel {
  max-width: 1180px; margin: 40px auto 0; padding: 48px 56px; background: var(--hero-tint);
  border-radius: 26px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.hero-panel__label { display: inline-block; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--yellow); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero-panel h1 { font-size: 34px; font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
.hero-panel p { font-size: 15.5px; color: var(--muted); line-height: 1.7; }
.hero-panel__media img { border-radius: 18px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- case list page-hero (full photo) ---------- */
.page-hero { position: relative; z-index: 0; min-height: 340px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(19,19,19,.5); pointer-events: none; z-index: 0; }
.page-hero .copy { position: relative; z-index: 1; color: #fff; pointer-events: none; }
.page-hero .copy .eyebrow { color: #fff; }
.page-hero h1 { color: #fff; font-size: 34px; font-weight: 800; margin: 0; }

/* ---------- case detail body ---------- */
.case-body { max-width: 640px; margin: 48px auto 0; text-align: center; }
.case-body__img { border-radius: 18px; overflow: hidden; background: #F4F2EC; margin-bottom: 16px; }
.case-body__img img { width: 100%; object-fit: contain; }
.case-body__label { font-size: 13px; color: #888; margin-bottom: 18px; }
.case-body h2 { font-size: 28px; font-weight: 700; margin-bottom: 24px; }
.case-body__text { text-align: left; font-size: 15.5px; line-height: 1.85; color: var(--text); }
.case-back { text-align: center; margin: 56px 0; }
.case-back a { font-size: 14.5px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 3px; }

/* ---------- tables ---------- */
.data-table { width: 100%; border-collapse: collapse; margin: 24px 0 40px; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; text-align: left; }
.data-table th { color: var(--muted); font-weight: 700; font-size: 13px; }

.region-list-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 48px; }
.region-list-grid a { padding: 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; }
.region-list-group h3 { font-size: 18px; font-weight: 700; margin: 40px 0 14px; }

.hub-faq, .case-faq { margin-top: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-item:nth-child(2) { border-right: none; }
  .process-item:nth-child(3) { padding-left: 0; }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .region-list-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-panel { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 767px) {
  .nav { position: fixed; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 24px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav > a, .nav-drop { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-drop__panel { position: static; box-shadow: none; border: none; display: none; padding: 0 0 0 12px; }
  .nav-drop.open .nav-drop__panel { display: flex; }
  .nav-cta { width: fit-content; margin-top: 12px; }
  .nav-toggle { display: block; }

  .apt-hero__media { height: 46vh; min-height: 320px; }
  .apt-hero__copy { margin-top: -80px; padding: 0 20px 40px; }
  .apt-hero h1 { font-size: 30px; }

  section { padding: 64px 0; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-item:nth-child(2n) { border-right: none; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .region-list-grid { grid-template-columns: 1fr 1fr; }

  .closing__head { white-space: normal; font-size: 24px; }

  body { padding-bottom: 72px; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 60px; z-index: 190; }
  .mobile-bar__item { flex: 1; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; background: #fff; border-top: 1px solid var(--line); }
  .mobile-bar__item--fill { background: var(--ink); color: #fff; }
  .fab-consult { display: none; }
}
