/* 메인페이지 리뉴얼 (2026-10) — 8섹션 */
.h-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.h-sec { padding: 72px 0; }
.h-sec--alt { background: var(--paper-dim); }
.h-head { margin-bottom: 32px; }
.h-head .num { display: inline-block; background: var(--ink); color: #fff; font-weight: 800; font-size: .82rem; padding: 3px 10px; border-radius: 3px; margin-right: 8px; }
.h-head .eyebrow { display: inline; color: var(--ink); font-weight: 700; letter-spacing: 0; text-transform: none; }
.h-head h2 { font-size: clamp(1.45rem, 3.4vw, 2.05rem); line-height: 1.3; margin: 10px 0 0; color: var(--ink); }
.h-head p { margin: 10px 0 0; color: var(--text-dim); max-width: 760px; }
.h-more { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--red-dark); text-decoration: none; }

/* 01 hero */
.h-hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.h-hero picture, .h-hero img { display: block; width: 100%; }
.h-hero img { height: clamp(520px, 52vw, 700px); object-fit: cover; object-position: 62% 50%; }
.h-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,38,56,.94) 0%, rgba(16,38,56,.78) 38%, rgba(16,38,56,.05) 72%); }
.h-hero-copy { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.h-hero-copy .h-wrap { width: 100%; }
.h-hero-copy .kicker { font-weight: 700; font-size: 1.05rem; color: #dfe7ec; margin: 0 0 6px; }
.h-hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; color: #fff; }
.h-hero h1 span { color: var(--red); }
.h-hero .desc { max-width: 460px; font-size: 1.08rem; color: #e6edf1; margin: 0 0 28px; }
.h-hero .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.h-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.h-trust { background: var(--ink); color: #fff; }
.h-trust ul { list-style: none; margin: 0 auto; padding: 16px 24px; max-width: 1180px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; text-align: center; font-weight: 700; font-size: .92rem; }
.h-trust li::before { content: "✔ "; color: var(--red); }

/* 02 services */
.h-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h-card { display: block; text-decoration: none; background: #fff; border: 1px solid #d7dfe4; border-radius: 6px; overflow: hidden; color: var(--text); transition: box-shadow .2s, transform .2s; }
.h-card:hover { box-shadow: 0 10px 26px rgba(16,38,56,.16); transform: translateY(-2px); }
.h-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.h-card div { padding: 14px 16px 16px; }
.h-card h3 { margin: 0 0 4px; font-size: 1.1rem; color: var(--ink); }
.h-card p { margin: 0; font-size: .9rem; color: var(--text-dim); line-height: 1.5; }
.h-card .go { display: block; margin-top: 8px; color: var(--red-dark); font-weight: 700; font-size: .88rem; }

/* 03 cases */
.h-cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.h-case { margin: 0; background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid #d7dfe4; }
.h-case img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.h-case figcaption { padding: 10px 12px 12px; font-size: .85rem; line-height: 1.45; }
.h-case b { display: block; color: var(--ink); font-size: .95rem; }
.h-note { margin-top: 18px; font-size: .88rem; color: var(--text-dim); }

/* 04 process */
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.h-steps li { position: relative; background: #fff; border: 1px solid #d7dfe4; border-radius: 6px; overflow: hidden; }
.h-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 38%; z-index: 3; color: var(--red); font-weight: 800; font-size: 1.2rem; }
.h-steps img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.h-steps .n { position: absolute; top: 8px; left: 8px; background: var(--ink); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; border: 2px solid #fff; }
.h-steps div { padding: 12px 14px 16px; }
.h-steps h3 { margin: 0 0 4px; font-size: 1rem; color: var(--ink); }
.h-steps p { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--text-dim); }

/* 05 company */
.h-company { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.h-company-card { background: var(--ink); color: #fff; border-radius: 8px; padding: 28px; }
.h-company-card h3 { margin: 0 0 14px; font-size: 1.25rem; color: #fff; }
.h-company-card dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: .95rem; }
.h-company-card dt { color: #9fb2c0; } .h-company-card dd { margin: 0; }
.h-company-card a { color: #fff; }
.h-company-copy p { margin: 0 0 12px; }
.h-net { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.h-net a { display: block; text-decoration: none; background: #fff; border: 1px solid #d7dfe4; border-left: 4px solid var(--red); border-radius: 4px; padding: 10px 12px; color: var(--ink); }
.h-net b { display: block; font-size: .95rem; } .h-net span { font-size: .8rem; color: var(--text-dim); line-height: 1.4; display: block; }

/* 06 structure */
.h-diagram { background: #fff; border: 1px solid #d7dfe4; border-radius: 8px; padding: 18px; margin-bottom: 24px; }
.h-diagram svg { width: 100%; height: auto; display: block; }
.h-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.h-two p { margin: 0 0 12px; }
.h-parts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.h-parts li { background: var(--paper-dim); border-left: 4px solid var(--ink); padding: 10px 14px; border-radius: 3px; font-size: .95rem; }
.h-parts b { color: var(--ink); }

/* 07 upkeep */
.h-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.h-table th, .h-table td { border: 1px solid #cfd8de; padding: 11px 14px; text-align: left; vertical-align: top; }
.h-table thead th { background: var(--ink); color: #fff; }
.h-table tbody th { background: var(--paper-dim); color: var(--ink); white-space: nowrap; }
.h-warn { margin-top: 18px; background: #fff; border-left: 4px solid var(--red); padding: 14px 18px; border-radius: 3px; font-size: .95rem; }

/* 08 faq */
.h-faq { max-width: 860px; }
.h-faq .faq-list { margin-top: 0; }

/* service hub */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 14px; }
.hub-group { background: #fff; border: 1px solid #d7dfe4; border-top: 4px solid var(--red); border-radius: 6px; padding: 14px 18px; align-self: start; }
.hub-group summary { cursor: pointer; font-weight: 800; color: var(--ink); display: flex; justify-content: space-between; align-items: center; list-style: none; }
.hub-group summary::-webkit-details-marker { display: none; }
.hub-group summary::after { content: '+'; color: var(--red-dark); font-size: 1.3rem; margin-left: 8px; }
.hub-group[open] summary::after { content: '−'; }
.hub-group summary span { margin-left: auto; font-size: .78rem; color: var(--text-dim); font-weight: 600; }
.hub-group ul { margin-top: 10px !important; }
.hub-group h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; }
.hub-group h3 span { font-size: .78rem; color: var(--text-dim); font-weight: 600; }
.hub-group ul { list-style: none; margin: 0; padding: 0; max-height: 15.5em; overflow-y: auto; }
.hub-group li a { display: block; padding: 5px 0; font-size: .9rem; text-decoration: none; color: var(--text); border-bottom: 1px dashed #dbe2e7; }
.hub-group li a:hover { color: var(--red-dark); }

@media (max-width: 960px) {
  .h-cases { grid-template-columns: repeat(2, 1fr); }
  .h-steps { grid-template-columns: 1fr; }
  .h-steps li { display: grid; grid-template-columns: 110px 1fr; align-items: center; }
  .h-steps img { aspect-ratio: 1/1; height: 100%; }
  .h-steps li:not(:last-child)::after { content: "↓"; right: auto; left: 46px; top: auto; bottom: -19px; }
  .h-company, .h-two { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .h-trust ul { grid-template-columns: repeat(3, 1fr); font-size: .85rem; }
}
@media (max-width: 700px) {
  .h-sec { padding: 52px 0; }
  .h-wrap { padding: 0 16px; }
  .h-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .h-card div { padding: 10px 11px 12px; } .h-card h3 { font-size: .98rem; } .h-card p { font-size: .8rem; }
  .h-hero img { height: 540px; object-position: 50% 50%; }
  .h-hero::after { background: linear-gradient(180deg, rgba(16,38,56,.82) 0%, rgba(16,38,56,.45) 45%, rgba(16,38,56,0) 75%); }
  .h-hero-copy { align-items: flex-start; padding-top: 36px; }
  .h-hero .btns .btn { padding: 13px 20px; }
  .h-company-card dl { grid-template-columns: 92px 1fr; }
  .h-net { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .h-trust ul { grid-template-columns: repeat(2, 1fr); padding: 12px 16px; }
  /* 표 → 카드형 */
  .h-table, .h-table tbody, .h-table tr, .h-table th, .h-table td { display: block; width: 100%; }
  .h-table thead { display: none; }
  .h-table tr { border: 1px solid #cfd8de; margin-bottom: 12px; border-radius: 5px; overflow: hidden; background: #fff; }
  .h-table th, .h-table td { border: 0; border-bottom: 1px solid #e3e9ed; padding: 9px 12px; }
  .h-table td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 700; color: var(--red-dark); margin-bottom: 2px; }
  .h-table tbody th { background: var(--ink); color: #fff; }
}
@media (max-width: 700px) { .h-diagram { overflow-x: auto; padding: 12px; } .h-diagram svg { min-width: 640px; } }
