/* 메인(kr) 도입부터 운영까지(④ site/home/_life_kr.html) — 메인과 type 시안이 함께 쓴다.
   site.css에서 옮김(2026-11-16 0단계, 선택자 기준). 하위 페이지는 읽지 않는다 — 공유 규칙(.hx-more 기본형 · 남색 머리말 · 등장 효과 장치)은 site.css에 있다.
   조각 ↔ CSS는 1:1: site/home/_<이름>_kr.html 을 쓰는 페이지는 css/home/<이름>.css 를 읽는다(content.HOME_*) */
.block.hx-svc { padding-block: clamp(56px, 7vw, 96px); }
/* 서비스: 5단계 흐름선(컨설팅 빨강 · 유지보수 네이비) + 다시 진단으로 돌아가는 순환선 → 서비스 카드 2장 */
.hx-life__steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hx-life__steps::before { content: ""; position: absolute; top: 22px; left: calc(10% - 6px); right: calc(10% - 6px); height: 3px; background: linear-gradient(to right, #D7262C 0 87.5%, #1B2A4A 87.5% 100%); } /* 첫 칸~끝 칸 가운데를 잇는 흐름선, 4·5단계 사이에서 색이 바뀐다 */
.hx-life__steps li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hx-life__no { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #D7262C; box-shadow: 0 0 0 6px #fff; font-family: var(--font-display); font-weight: 600; color: #fff; }
.hx-life__steps li.is-sm .hx-life__no { background: #1B2A4A; }
.hx-life__steps strong { margin-top: 14px; font-size: 1.1875rem; color: #1B2A4A; }
.block .hx-life__steps p { max-width: none; margin-top: 8px; font-size: .9375rem; line-height: 1.6; color: #2B3440; }
.block .hx-life__steps p.hx-life__out { align-self: stretch; margin-top: 12px; padding: 8px 12px; background: #FFF7F6; border-radius: 6px; font-size: .875rem; font-weight: 700; color: #1B2A4A; }
.hx-life__out b { display: block; font-size: .75rem; color: #D7262C; }
.block .hx-life__steps li.is-sm p.hx-life__out { background: #EEF1F5; }
.hx-life__steps li.is-sm .hx-life__out b { color: #1B2A4A; }
.block p.hx-life__loop { position: relative; height: 40px; max-width: none; margin: 18px calc(10% - 6px) 0; border: 2px dashed #8A94A3; border-top: 0; border-radius: 0 0 14px 14px; } /* 5단계 아래에서 1단계 아래로 돌아가는 순환선 */
.hx-life__loop::before { content: ""; position: absolute; left: -8px; top: -12px; border: 7px solid transparent; border-top: 0; border-bottom: 10px solid #8A94A3; } /* 1단계를 가리키는 화살촉 */
.hx-life__loop span { position: absolute; left: 50%; bottom: -12px; padding: 0 12px; background: #fff; font-size: .875rem; font-weight: 700; white-space: nowrap; color: #5A6472; transform: translateX(-50%); }
.hx-svc2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.block a.hx-svccard { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; background: #fff; border: 1px solid #D9DEE5; border-top: 4px solid #D7262C; border-radius: 0 0 10px 10px; color: inherit; text-decoration: none; transition: box-shadow .15s; }
.block a.hx-svccard:hover { box-shadow: 0 12px 26px rgba(27, 42, 74, .12); }
.block a.hx-svccard--sm { border-top-color: #1B2A4A; }
.block p.hx-svccard__range { font-size: .875rem; font-weight: 700; color: #D7262C; }
.block .hx-svccard--sm p.hx-svccard__range { color: #1B2A4A; }
.block .hx-svccard h3 { margin-top: 6px; font-size: 1.375rem; color: #1B2A4A; }
.block .hx-svccard > p:is(:not([class]), [class=""], [class="rv"], [class="is-in"], [class="rv is-in"]) { max-width: none; margin-top: 10px; font-size: .9375rem; color: #2B3440; }
.hx-svccard__pts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.hx-svccard__pts li { padding: 2px 10px; background: #EEF1F5; border-radius: 999px; font-size: .8125rem; font-weight: 700; color: #1B2A4A; }
.hx-svccard .hx-more { margin-top: auto; padding-top: 20px; }
@media (max-width: 1099px) {
  .hx-life__steps { gap: 10px; }
}
@media (max-width: 767px) {
  /* 좁은 화면: 세로 타임라인(번호 | 내용), 순환선 대신 안내 문장 */
  .hx-life__steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hx-life__steps::before { top: 0; bottom: 0; left: 22px; right: auto; width: 3px; height: auto; background: linear-gradient(to bottom, #D7262C 0 80%, #1B2A4A 80% 100%); }
  .hx-life__steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; align-items: start; text-align: left; }
  .hx-life__no { grid-row: span 3; }
  .hx-life__steps strong { margin-top: 10px; }
  .block .hx-life__steps p { margin-top: 4px; }
  .block p.hx-life__loop { height: auto; margin: 16px 0 0; border: 0; text-align: center; }
  .hx-life__loop::before { display: none; }
  .hx-life__loop span { position: static; padding: 0; white-space: normal; transform: none; }
  .hx-svc2 { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
  .block a.hx-svccard { padding: 22px 18px; }
}
.block a.hx-svccard.rv { transition: opacity .7s var(--rv-ease), transform .7s var(--rv-ease); } /* 카드 자체 transition(그림자)보다 앞세운다 */
@media (max-width: 767px) {
  .rv-flow.hx-life__steps::before { transform-origin: center top; }
  .rv-flow.hx-life__steps:not(.is-in)::before { transform: scaleY(0); }
}
/* en · cn: 제목 · 설명 줄 수가 칸마다 달라도 번호 · 제목 · 설명 · 결과가 각각 같은 줄에서 시작(가로 5칸일 때 subgrid, 2026-11-18, kr은 그대로) */
@media (min-width: 768px) {
  html:not([lang="ko"]) .hx-life__steps { grid-template-rows: repeat(4, auto); }
  html:not([lang="ko"]) .hx-life__steps li { display: grid; grid-row: span 4; grid-template-rows: subgrid; justify-items: center; align-items: start; }
  html:not([lang="ko"]) .block .hx-life__steps p.hx-life__out { align-self: stretch; justify-self: stretch; }
}
