/* ==========================================================
   동원엘리베이터 — 디자인 토큰
   주색은 명함 로고의 남색(#34408F). 색을 바꿀 땐 여기만 수정.
   ========================================================== */
:root {
  --brand: #34408f;
  --brand-ink: #232c6b;
  --brand-soft: #e4e6f2;

  --paper: #f3f1ec;       /* 미색 배경 */
  --paper-2: #e9e6df;     /* 한 단계 짙은 배경 */
  --ink: #15181c;         /* 본문 글자 */
  --ink-2: #4a5056;
  --ink-3: #6f767b;
  --line: #d4d0c7;
  --dark: #121418;        /* 어두운 섹션 배경 */

  --white: #ffffff;
  --nav-h: 72px;
  --gutter: clamp(16px, 3vw, 40px);
  --section-y: clamp(80px, 10vw, 140px);
  --radius: 2px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, h4, figure, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ───────── 초안 표시 (공개 전 html 의 is-draft 제거) ───────── */
.draft-banner { display: none; }
.is-draft .draft-banner {
  display: block; position: fixed; z-index: 100;
  top: calc(var(--nav-h) + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 6px 10px; font-size: 12px; font-weight: 600;
  background: #fff6d6; color: #5a4300; border: 1px solid #e0b100; border-radius: 3px;
  pointer-events: none;
}
.is-draft .draft-banner span { border-bottom: 2px dashed #e0b100; }
.is-draft [data-todo] { outline: 2px dashed #e0b100; outline-offset: 3px; }

/* ───────── 공통 레이아웃 · 글자 ───────── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; border-bottom: 1px solid var(--line); }

.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 20px;
}
.label::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.label--light { color: #b9c0f0; }

.h2 { font-size: clamp(30px, 3.8vw, 52px); font-weight: 800; line-height: 1.2; letter-spacing: -0.035em; }
.h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; }
.h4 { font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; }
.body { font-size: 16px; color: var(--ink-2); line-height: 1.75; }
.body-lg { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.75; }

.title-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.arrow-link {
  display: inline-flex; gap: 8px; font-weight: 700; color: var(--brand);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.arrow-link span { transition: transform .2s; }
.arrow-link:hover span { transform: translateX(3px); }

/* 스크롤 등장 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ───────── 버튼 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap; cursor: pointer;
}
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-ink); }
.btn--ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--brand-soft); }
.btn--outline-light { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ───────── 상단 메뉴 ───────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(243, 241, 236, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
/* 심볼(가로형)은 이전 마크와 같은 높이로 맞춤 → 헤더 높이 유지 */
.brand__mark { width: auto; height: 28px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__en {
  font-size: 10px; font-weight: 600; letter-spacing: .14em; color: var(--ink-2);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px; margin-bottom: 3px;
  align-self: flex-start;
}
.brand__ko { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }

.nav__links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__links a:hover, .nav__links a.is-current { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__actions { display: flex; gap: 8px; flex: none; }

/* 히어로 위: 투명 배경 + 흰 글씨 (js/main.js 가 .nav--over 를 붙였다 뗌) */
.nav { transition: background-color .3s, border-color .3s, backdrop-filter .3s; }
.nav.nav--over {
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  color: var(--white);
}
.nav--over .brand__mark { filter: brightness(0) invert(1); }   /* 영상 위: 흰색 로고 (푸터와 같은 방식) */
.nav--over .brand__en { color: rgba(255,255,255,.8); border-bottom-color: rgba(255,255,255,.8); }
.nav--over .nav__links { color: rgba(255,255,255,.82); }
.nav--over .nav__links a:hover, .nav--over .nav__links a.is-current { color: var(--white); }
.nav--over .nav__links a::after { background: var(--white); }
.nav--over .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.nav--over .btn--ghost:hover { border-color: var(--white); }

/* ───────── 히어로 ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 120px;
  color: var(--white);
  overflow: hidden;
  background: #101215;
}
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
/* 장면마다 밝기가 달라(정비 어두움 / 운행 밝음) 아래·왼쪽을 짙게 깔아 글자 대비 고정 */
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,12,16,.35) 0%, rgba(10,12,16,.15) 35%, rgba(10,12,16,.75) 100%),
    linear-gradient(90deg, rgba(10,12,16,.55) 0%, rgba(10,12,16,0) 65%);
}

.reg { position: absolute; width: 18px; height: 18px; z-index: 2; opacity: .7; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--white); }
.reg::before { left: 0; right: 0; top: 50%; height: 1px; }
.reg::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.reg--tl { top: calc(var(--nav-h) + 20px); left: var(--gutter); }
.reg--tr { top: calc(var(--nav-h) + 20px); right: var(--gutter); }
.reg--bl { bottom: 96px; left: var(--gutter); }
.reg--br { bottom: 96px; right: var(--gutter); }

.hero__content { position: relative; z-index: 3; max-width: 880px; }
.hero__eyebrow { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.85); margin-bottom: 20px; }
.bracket { color: rgba(255,255,255,.5); }
.hero__title {
  margin: 0 0 24px;
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.035em;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero__lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; color: rgba(255,255,255,.88); margin-bottom: 32px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* ───────── 영상 컨트롤 · 눈금 타임라인 ───────── */
.vctl {
  position: absolute; z-index: 4;
  left: var(--gutter); right: var(--gutter); bottom: 32px;
  display: flex; align-items: flex-end; gap: 28px;
}
.vctl__left { display: flex; align-items: center; gap: 14px; flex: none; }
.vctl__play {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.5); border-radius: 50%;
  background: rgba(0,0,0,.2); color: var(--white); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.vctl__play:hover { border-color: var(--white); background: rgba(0,0,0,.35); }
.vctl__play svg { width: 14px; height: 14px; fill: currentColor; }
.vctl__play .i-play { display: none; margin-left: 2px; }
.vctl.is-paused .i-play { display: block; }
.vctl.is-paused .i-pause { display: none; }
.vctl__timer { font-size: 14px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; min-width: 44px; }

/* 눈금: 8px 간격 잔눈금 + 40px 간격 굵은 눈금 */
.vctl__track {
  position: relative; flex: 1; height: 20px; cursor: pointer; touch-action: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.85) 0 1px, transparent 1px 40px) left bottom / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 1px, transparent 1px 8px)  left bottom / 100% 45% no-repeat;
}
.vctl__track:focus-visible { outline-offset: 6px; }
.vctl__thumb {
  position: absolute; left: 0; bottom: 0;
  width: 2px; height: 40px; background: var(--white);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  transform: translateX(-1px); pointer-events: none;
}
.vctl__chapter {
  position: absolute; bottom: 28px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,.6); white-space: nowrap;
  padding-left: 8px; border-left: 1px solid rgba(255,255,255,.6);
  transition: color .3s;
}
.vctl__chapter.is-active { color: var(--white); }

/* ───────── 핵심 정보 띠 ───────── */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); background: var(--paper); }
.strip__cell { padding: 24px var(--gutter); border-right: 1px solid var(--line); }
.strip__cell:last-child { border-right: 0; }
.strip__label { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.strip__value { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.strip__value a { color: var(--brand); }

/* ───────── 회사 소개 ───────── */
.intro__row {
  display: grid; grid-template-columns: 160px minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px); align-items: start;
}
.intro__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.intro__copy { display: grid; gap: 24px; justify-items: start; }

.specs {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--ink);
}
.specs__cell { padding: 24px 20px 0 0; }
.specs__num {
  font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
  font-variant-numeric: tabular-nums; color: var(--brand);
}
.specs__num small { font-size: .42em; font-weight: 700; margin-left: 4px; letter-spacing: -0.01em; color: var(--ink); }
.specs__label { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* ───────── 서비스 (카드 6장, 탭 없음) ───────── */
.services { background: var(--paper-2); }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.svc { background: var(--paper); display: grid; grid-template-rows: auto 1fr; }
.svc__photo { overflow: hidden; background: var(--paper-2); }
.svc__photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc__num { font-size: 13px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; margin-bottom: -10px; }
/* 잘릴 때 보여줄 쪽 지정: <img data-focus="left|right"> (지정 없으면 가운데) */
img[data-focus="left"] { object-position: left center; }
img[data-focus="right"] { object-position: right center; }
.svc__body { display: grid; gap: 18px; align-content: start; padding: clamp(24px, 2.6vw, 36px); }
.ledger { border-top: 1px solid var(--ink); }
.ledger > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ledger dt { color: var(--ink-3); }
.ledger dd { font-weight: 600; }

/* ───────── 승강기 종류 타일 ───────── */
.types__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { position: relative; min-height: 520px; overflow: hidden; color: var(--white); background: var(--dark); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.tile:hover img { transform: scale(1.04); }
.tile__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,16,.15) 0%, rgba(10,12,16,.85) 70%); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; display: grid; gap: 8px; }
.tile__num { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); }
.tile__where { font-size: 14px; font-weight: 600; color: #c9cff5; }
.tile__text { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.88); }

/* ───────── 점검 범위 표 ───────── */
.scope__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); }
.scope__copy { display: grid; gap: 0; align-content: start; }
.scope__copy .h2 { margin-bottom: 20px; }
.table { border-top: 1px solid var(--ink); font-size: 15px; }
.table__head, .table__row { display: grid; grid-template-columns: 120px 1.3fr 1fr; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.table__head { font-size: 13px; color: var(--ink-3); padding-block: 12px; }
.table__row { transition: background-color .2s; }
.table__row:hover { background: var(--paper-2); }
.table__name { font-weight: 700; }
.table__row span:last-child { color: var(--ink-2); }

/* ───────── 등록 · 자격 ───────── */
/* 바로 아래 서비스 섹션(--paper-2)과 구분되도록 기본 바탕, 칸은 흰색 */
.certs { background: var(--paper); }
.certs__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.certs__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.certs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); }
.cert { background: var(--white); padding: 24px; display: grid; gap: 4px; }

/* 적용 안전 부품 (목록은 js/parts.js 가 채움) */
.parts { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--ink); }
.parts__head { display: grid; gap: 12px; margin-bottom: 32px; }
.parts__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.part {
  background: var(--white); padding: 28px 24px; display: grid; align-content: start;
  grid-template-columns: 1fr auto; grid-template-areas: "num grade" "name name" "maker maker";
  column-gap: 12px;
}
.part__num { grid-area: num; font-size: 13px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.part__grade { grid-area: grade; align-self: center; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; white-space: nowrap; }
.part__name { grid-area: name; margin-top: 20px; font-size: 21px; font-weight: 800; letter-spacing: -0.025em; }
.part__maker { grid-area: maker; margin-top: 4px; font-size: 15px; color: var(--ink-2); }
/* 사진이 있는 칸: 칸 위쪽에 4:3 사진을 칸 너비 그대로 */
.part.has-photo { grid-template-areas: "photo photo" "num grade" "name name" "maker maker"; padding-top: 0; }
.part__photo { grid-area: photo; margin: 0 -24px 22px; overflow: hidden; background: var(--paper-2); }
.part__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cert__sub { font-size: 14px; color: var(--ink-2); }
.cert__meta { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* ───────── 진행 절차 ───────── */
.process__lead { max-width: 560px; margin-top: 20px; }
.stations {
  --p: 0;
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  margin-top: clamp(48px, 6vw, 80px); padding-top: 40px;
}
/* 진행선: 회색 바탕 위에 남색이 스크롤만큼 채워짐 */
.stations::before, .stations::after { content: ""; position: absolute; top: 7px; left: 0; height: 2px; }
.stations::before { right: 0; background: var(--line); }
.stations::after { width: calc(var(--p) * 100%); background: var(--brand); transition: width .15s linear; }
.station { position: relative; display: grid; gap: 10px; align-content: start; }
.station__dot {
  position: absolute; top: -40px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line); transition: border-color .3s, background-color .3s;
}
.station.is-done .station__dot { border-color: var(--brand); background: var(--brand); }
.station__no { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
.station .body { font-size: 15px; }
.station__when { font-size: 13px; font-weight: 600; color: var(--ink-3); padding-top: 8px; border-top: 1px solid var(--line); justify-self: start; }

/* ───────── 현장 기록 (공사별 한 줄, js/works.js 가 채움) ───────── */
.wrows { border-bottom: 1px solid var(--line); }
.wrow { padding: clamp(28px, 3.4vw, 44px) 0; border-top: 1px solid var(--line); display: grid; gap: 24px; }
.wrow:first-child { border-top-color: var(--ink); }
.wrow__text {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(24px, 4vw, 64px); row-gap: 10px;
  grid-template-areas: "tag desc" "title desc" "title meta"; align-items: start;
}
.wrow__tag { grid-area: tag; justify-self: start; padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); }
.wrow__title { grid-area: title; }
.wrow__desc { grid-area: desc; }
.wrow__meta { grid-area: meta; font-size: 13px; color: var(--ink-3); }
.wrow__photos { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px; }
.wrow__photo { margin: 0; overflow: hidden; background: var(--paper-2); }
.wrow__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s ease; }
.wrow__photo:hover img { transform: scale(1.04); }

/* ───────── FAQ ───────── */
.faq__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); }
.faq__side { align-self: start; position: sticky; top: calc(var(--nav-h) + 32px); }
.faq__call { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ink); display: grid; gap: 8px; }
.faq__call-label { font-size: 13px; color: var(--ink-3); }
.faq__call-num { font-size: clamp(28px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.03em; color: var(--brand); }
.accordion { border-top: 1px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 4px; font-size: 17px; font-weight: 700; letter-spacing: -0.015em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--brand); transition: transform .25s;
}
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa summary:hover { color: var(--brand); }
.qa__a { padding: 0 48px 24px 4px; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.qa__a strong { color: var(--ink); }

/* ───────── 견적 문의 ───────── */
.contact { background: var(--dark); color: var(--white); border-bottom: 0; }
.contact .body { color: rgba(255,255,255,.75); margin-top: 20px; }
.contact__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__tel { margin-top: 32px; }
.contact__info { margin-top: 40px; border-top: 1px solid rgba(255,255,255,.2); }
.contact__info > div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.contact__info dt { color: rgba(255,255,255,.55); }
.contact__info a:hover { text-decoration: underline; }

.form { background: var(--paper); color: var(--ink); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field--full { grid-column: 1 / -1; }
.field em { font-style: normal; color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field .is-invalid, .field [aria-invalid="true"] { border-color: #c4342b; }
.consent { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--brand); }
.consent__detail { font-size: 13px; color: var(--ink-2); }
.consent__detail summary { cursor: pointer; color: var(--ink-3); text-decoration: underline; }
.consent__detail p { margin-top: 8px; line-height: 1.7; padding: 12px; background: var(--paper-2); }
.form__error { font-size: 14px; font-weight: 600; color: #c4342b; }
/* 접수 진행 · 완료 안내 (js/inquiry.js) */
.form__status { font-size: 14px; font-weight: 600; padding: 12px 14px; background: var(--paper-2); color: var(--ink-2); border-left: 3px solid var(--line); }
.form__status[data-kind="ok"] { background: var(--brand-soft); color: var(--brand); border-left-color: var(--brand); }
.form__submit:disabled { opacity: .6; cursor: progress; }
.form__submit { width: 100%; height: 54px; font-size: 16px; }
.form__note { font-size: 13px; color: var(--ink-3); text-align: center; }

/* ───────── 푸터 ───────── */
.footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 64px 0 40px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__mark { width: auto; height: 30px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 16px; }
.footer__name { font-size: 18px; font-weight: 800; color: var(--white); }
.footer__desc { margin-top: 4px; }
.footer__cols { display: flex; gap: clamp(32px, 6vw, 88px); flex-wrap: wrap; }
.footer__cols > div { display: grid; gap: 10px; align-content: start; }
.footer__h { font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 4px; }
.footer__cols a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.5); }
.footer__bottom a { text-decoration: underline; }

/* ───────── hidden 속성 보장 ─────────
   display 가 지정된 요소(.ledger > div 등)도 hidden 이면 확실히 숨긴다.
   promo.js 는 채우기 전까지 혜택 자리를 hidden 으로 둔다 */
[hidden] { display: none !important; }

/* ───────── 히어로 혜택 카드 ───────── */
.hero__main {
  position: relative; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.promo { flex: none; width: 360px; }
.promo__compact { display: none; }
.promo__full {
  display: grid; gap: 12px;
  padding: 24px; background: var(--paper); color: var(--ink);
  border-top: 4px solid var(--brand);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.promo__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.promo__badge { padding: 3px 8px; background: var(--brand); color: var(--white); }
.promo__target { color: var(--brand); }
.promo__title { display: grid; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.promo__highlight { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; color: var(--brand); line-height: 1.15; }
.promo__desc { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.promo__conditions { margin: 0; padding: 10px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.promo__conditions li { position: relative; padding-left: 12px; font-size: 13px; color: var(--ink-2); }
.promo__conditions li::before { content: "·"; position: absolute; left: 2px; font-weight: 800; color: var(--brand); }
.promo__note { font-size: 12px; color: var(--ink-3); }
.promo__cta { width: 100%; margin-top: 4px; }

/* ───────── 건물 가치 ───────── */
.value { background: var(--brand-ink); color: var(--white); border-bottom: 0; }
.value__title { font-size: clamp(34px, 5vw, 68px); font-weight: 800; line-height: 1.15; letter-spacing: -0.04em; }
.value__lead { max-width: 640px; margin-top: 24px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.75; color: rgba(255,255,255,.82); }
.value__points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid rgba(255,255,255,.3);
}
.value__point { padding-top: 24px; display: grid; gap: 10px; align-content: start; }
.value__point p:last-child { font-size: 15px; line-height: 1.75; color: rgba(255,255,255,.78); }
.value__no { font-size: 13px; font-weight: 700; color: #b9c0f0; }
/* 윗부분: 왼쪽 제목·설명 / 오른쪽 사진 */
.value__head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: end;
}
.value__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ───────── 혜택: 정보 띠 · 사양표 · FAQ ───────── */
.strip__cell--promo { background: var(--brand-soft); }
.strip__cell--promo .strip__label { color: var(--brand); font-weight: 600; }
.ledger > .ledger__promo { background: var(--brand-soft); margin-inline: -10px; padding-inline: 10px; }
.ledger__promo dt { color: var(--brand); font-weight: 700; }
.qa--promo summary { color: var(--brand); }
.qa__a > p + p, .qa__a > ul + p { margin-top: 10px; }
.qa__list { margin: 10px 0 0; padding-left: 18px; }

/* ───────── 오른쪽 아래 빠른 연락 버튼 ───────── */
.quick {
  position: fixed; right: 24px; bottom: 24px; z-index: 55;
  display: flex; flex-direction: column; gap: 12px;
}
.quick__btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  transition: transform .2s, box-shadow .2s;
}
.quick__btn:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.quick__btn--insta { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.quick__btn--blog { background: #03c75a; }
.quick__btn--tel { background: var(--brand); }
.quick__btn--kakao { background: #fee500; color: #3c1e1e; }
/* 주소가 아직 없는 버튼: 초안에서는 점선으로 보이고, 공개 시(is-draft 제거) 숨김 */
html:not(.is-draft) .quick__btn:not([href]) { display: none; }

/* ───────── 모바일 하단 바 ───────── */
.mbar { display: none; }

/* ───────── 반응형 ───────── */
@media (max-width: 1200px) {
  /* 혜택 카드가 제목과 겹치지 않도록 아래로 내린다 */
  .hero__main { flex-direction: column; align-items: flex-start; gap: 16px; }
  .promo { width: 100%; max-width: 760px; }
  /* 가로형 카드: 왼쪽 제목·버튼 / 오른쪽 설명·조건 → 높이를 줄여 첫 화면 안에 둔다 */
  .promo__full {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas: "head conds" "title conds" "cta note";
    column-gap: 28px; row-gap: 8px; padding: 16px 24px;
  }
  .promo__head { grid-area: head; }
  .promo__title { grid-area: title; }
  /* 설명 문장은 조건 목록과 내용이 겹쳐 이 구간에서만 생략 (FAQ 에는 그대로 있음) */
  .promo__desc { display: none; }
  .promo__conditions { border-top: 0; padding-top: 0; align-self: end; }
  .promo__conditions { grid-area: conds; }
  .promo__note { grid-area: note; align-self: center; }
  .promo__cta { grid-area: cta; margin-top: 0; }
  .promo__highlight { font-size: 34px; }
}
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .intro__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .intro__row > .label { grid-column: 1 / -1; margin-bottom: 0; }
  .stations { grid-template-columns: 1fr; gap: 36px; padding-top: 0; padding-left: 40px; }
  .stations::before, .stations::after { top: 0; left: 7px; width: 2px; height: auto; }
  .stations::before { bottom: 0; right: auto; }
  .stations::after { height: calc(var(--p) * 100%); width: 2px; }
  .station__dot { top: 4px; left: -40px; }
}
@media (max-width: 900px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip__cell { border-bottom: 1px solid var(--line); }
  .strip__cell:nth-child(2n) { border-right: 0; }
  .strip__cell:last-child { grid-column: 1 / -1; border-bottom: 0; }

  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs__cell:last-child { grid-column: 1 / -1; }

  .scope__row, .certs__row, .faq__row, .contact__row { grid-template-columns: 1fr; }

  .value__head { grid-template-columns: 1fr; }
  .value__photo img { aspect-ratio: 16 / 10; }
  .value__points { grid-template-columns: 1fr; gap: 0; }
  .value__point { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .types__grid { grid-template-columns: 1fr; }
  .tile { min-height: 380px; }
  .wrow__text { grid-template-columns: 1fr; grid-template-areas: "tag" "title" "desc" "meta"; }
  .faq__side { position: static; }
  .parts__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .brand__mark { height: 22px; }
  .brand__ko { font-size: 15px; }
  .nav__tel { display: none; }
  .nav__actions .btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .hide-sm { display: none; }

  /* 하단 고정 바(64px)에 타임라인이 가리지 않도록 그만큼 뺀다 */
  .hero { min-height: calc(100svh - 64px); padding-bottom: 104px; }
  .reg--bl, .reg--br { bottom: 84px; }
  .vctl { bottom: 24px; gap: 16px; }
  .vctl__play { width: 34px; height: 34px; }
  .vctl__chapter { display: none; }
  .vctl__track { height: 14px; }
  .vctl__thumb { height: 28px; }

  /* 모바일: 혜택은 제목 위 한 줄 배지로 */
  .hero__main { gap: 0; }
  .promo { order: -1; width: auto; max-width: 100%; margin-bottom: 16px; }
  .promo__full { display: none; }
  .promo__compact {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; font-size: 13px; font-weight: 700; line-height: 1.4;
    background: var(--paper); color: var(--brand); border-left: 3px solid var(--brand);
  }

  .strip__cell { padding: 18px 16px; }
  .strip__value { font-size: 15px; }

  .title-row { flex-direction: column; align-items: flex-start; }
  .intro__row { grid-template-columns: 1fr; }
  .ledger > div { grid-template-columns: 96px 1fr; font-size: 14px; }
  .table__head, .table__row { grid-template-columns: 80px 1fr; }
  .certs__grid { grid-template-columns: 1fr; }
  .parts__grid { grid-template-columns: 1fr; }
  .part { padding: 18px 16px; grid-template-areas: "num grade" "name grade" "maker grade"; row-gap: 2px; }
  .part__num { font-size: 12px; }
  .part__name { margin-top: 2px; font-size: 18px; }
  .part__maker { margin-top: 0; font-size: 14px; }
  /* 휴대폰: 사진은 왼쪽 작은 정사각, 글자는 오른쪽 */
  .part.has-photo {
    padding: 12px; column-gap: 14px; grid-template-columns: 104px 1fr;
    grid-template-areas: "photo num" "photo name" "photo maker" "photo grade";
  }
  .part.has-photo .part__grade { justify-self: start; margin-top: 6px; }
  .part__photo { margin: 0; align-self: stretch; }
  .part__photo img { height: 100%; min-height: 104px; aspect-ratio: 1 / 1; }
  .svc-grid { grid-template-columns: 1fr; }
  .wrow__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .form__grid { grid-template-columns: 1fr; }
  .qa summary { font-size: 16px; }
  .qa__a { padding-right: 4px; font-size: 15px; }
  .contact__info > div { grid-template-columns: 72px 1fr; }

  body { padding-bottom: 64px; }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr;
    height: 64px; padding-bottom: env(safe-area-inset-bottom);
    background: var(--paper); border-top: 1px solid var(--line);
  }
  .mbar__btn { display: grid; place-items: center; font-size: 16px; font-weight: 700; }
  .mbar__btn--primary { background: var(--brand); color: var(--white); }

  /* 빠른 연락 버튼: 하단 바 위로, 크기 축소. 전화는 하단 바에 있으므로 숨김 */
  .quick { right: 16px; bottom: calc(64px + env(safe-area-inset-bottom) + 16px); gap: 10px; }
  .quick__btn { width: 48px; height: 48px; }
  .quick__btn--tel { display: none; }
}
