/* =========================================================
   아이웹(iWeb) 공개 사이트 스타일 — 반응형
   ========================================================= */
:root {
  --green: #6fbe44;
  --green-dark: #55a12e;
  --blue: #2aa8e0;
  --blue-dark: #1b8bc0;
  --navy: #0f1b2d;
  --navy-2: #16263d;
  --ink: #182233;
  --ink-soft: #5b6b82;
  --muted: #8a97a8;
  --line: #e6ebf2;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 34px rgba(24, 34, 51, 0.10);
  --shadow-sm: 0 4px 14px rgba(24, 34, 51, 0.06);
  --maxw: 1200px;
  --header-h: 80px;
  --grad: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-x: hidden;
}
body.nav-open, body.lb-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 2000; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s, color .15s, border-color .15s;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(42, 168, 224, 0.28); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(42, 168, 224, 0.36); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn i { font-size: 0.95em; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(24,34,51,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand-logo { height: 58px; width: auto; }
.gnb { display: flex; gap: 6px; }
.gnb-item { position: relative; }
.gnb-link {
  display: block; padding: 10px 16px; font-weight: 700; font-size: 1rem; color: var(--ink);
  border-radius: 999px; transition: color .15s, background .15s;
}
.gnb-item:hover > .gnb-link, .gnb-item.is-active > .gnb-link { color: var(--blue-dark); background: rgba(42,168,224,.08); }
.sub-toggle { display: none; }
.gnb-head, .gnb-foot { display: none; }
.sub {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%) translateY(6px);
  min-width: 180px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.gnb-item:hover .sub, .gnb-item:focus-within .sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.sub a { display: block; padding: 9px 14px; border-radius: 9px; font-size: 0.92rem; color: var(--ink-soft); white-space: nowrap; }
.sub a:hover { background: var(--bg-soft); color: var(--blue-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
/* 헤더(z-index 500, sticky)가 스택 컨텍스트를 만들므로 오버레이는 그보다 아래에 두어 드로어가 위에 보이게 함 */
.gnb-overlay { display: none; position: fixed; inset: 0; background: rgba(10,14,22,.5); z-index: 450; }
.gnb-overlay.is-open { display: block; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-block; color: var(--green-dark); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: 12px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-lead { color: var(--ink-soft); font-size: 1.05rem; }
.section-more { margin-top: 36px; text-align: center; }
.text-center { text-align: center; }

/* ---------- 히어로 ---------- */
.hero { position: relative; min-height: 620px; height: 78vh; max-height: 760px; overflow: hidden; background: var(--navy); color: #fff; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  background-size: cover; background-position: center; opacity: 0; transition: opacity .9s ease; will-change: opacity;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,27,45,.88) 0%, rgba(15,27,45,.62) 45%, rgba(15,27,45,.28) 100%); }
.hero-slide.grad-a { background: radial-gradient(1200px 600px at 85% 10%, rgba(42,168,224,.55), transparent 60%), radial-gradient(900px 500px at 10% 90%, rgba(111,190,68,.45), transparent 60%), var(--navy); }
.hero-slide.grad-b { background: radial-gradient(1000px 600px at 15% 20%, rgba(111,190,68,.5), transparent 60%), radial-gradient(900px 600px at 90% 80%, rgba(42,168,224,.5), transparent 60%), #10203a; }
.hero-slide.grad-a::before, .hero-slide.grad-b::before { background: linear-gradient(90deg, rgba(15,27,45,.35), transparent); }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-content .eyebrow { color: #9fe07a; }
.hero-content h1, .hero-content h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.22; margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero-content p { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.86); max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 1.1rem; transition: background .15s; }
.hero-nav:hover { background: rgba(255,255,255,.22); }
.hero-prev { left: 28px; } .hero-next { right: 28px; }
.hero-dots { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: width .2s, background .2s; }
.hero-dot.is-active { width: 28px; border-radius: 6px; background: #fff; }
.hero-scroll { position: absolute; bottom: 30px; right: 40px; z-index: 3; color: rgba(255,255,255,.7); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; writing-mode: vertical-rl; }

/* ---------- 통계 스트립 ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, var(--green-dark), var(--blue-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: .92rem; }

/* ---------- 서비스 카드 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px 30px;
  transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden;
}
.svc-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::after { transform: scaleX(1); }
.svc-icon { width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, rgba(111,190,68,.16), rgba(42,168,224,.18)); color: var(--blue-dark); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.svc-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.svc-card p { color: var(--ink-soft); font-size: .95rem; }
.svc-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .88rem; font-weight: 700; color: var(--blue-dark); }

/* ---------- 강점 (다크 밴드) ---------- */
.why { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.why::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 400px at 100% 0%, rgba(42,168,224,.28), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(111,190,68,.22), transparent 60%); }
.why .wrap { position: relative; }
.why .section-title, .why .section-lead { color: #fff; }
.why .section-lead { color: rgba(255,255,255,.72); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 30px 26px; transition: background .2s, transform .2s; }
.why-item:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.why-item i { font-size: 1.7rem; color: #9fe07a; margin-bottom: 16px; display: block; }
.why-item h3 { font-size: 1.12rem; margin-bottom: 10px; }
.why-item p { color: rgba(255,255,255,.72); font-size: .93rem; }

/* ---------- 포트폴리오 ---------- */
.pf-filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.pf-filter a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .9rem; font-weight: 600; color: var(--ink-soft); transition: all .15s; }
.pf-filter a:hover { border-color: var(--blue); color: var(--blue-dark); }
.pf-filter a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pf-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pf-card { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.pf-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pf-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.pf-body h3 a { color: inherit; }
.pf-body h3 a:hover { color: var(--blue-dark); }
/* 사이트 방문 버튼 (썸네일 우상단) */
.pf-visit { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(17,24,39,.78); color: #fff; font-size: .78rem; font-weight: 700; line-height: 1; backdrop-filter: blur(4px); box-shadow: 0 4px 12px rgba(0,0,0,.18); opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s, background .2s; }
.pf-visit:hover { background: var(--blue-dark); color: #fff; }
.pf-card:hover .pf-visit, .pf-card:focus-within .pf-visit, .pf-detail-img .pf-visit { opacity: 1; transform: none; }
.pf-detail-img .pf-visit { top: 16px; right: 16px; padding: 10px 16px; font-size: .88rem; }
@media (hover: none), (max-width: 768px) { .pf-visit { opacity: 1; transform: none; } }
.pf-note { display: flex; gap: 8px; align-items: flex-start; margin: -6px 0 22px; padding: 12px 16px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }
.pf-note i { color: var(--blue-dark); margin-top: 4px; }
.pf-note a { color: var(--blue-dark); font-weight: 700; text-decoration: underline; }
/* 솔루션 배지 · 화면 수 */
.pf-badge { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 6px; background: linear-gradient(90deg, var(--blue-dark), #2f7de1); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.pf-count { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(17,24,39,.7); color: #fff; font-size: .72rem; font-weight: 700; }
.pf-card.is-solution { border-color: rgba(47,125,225,.35); }
/* 상세: 사례 연구 */
.case-study { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0 8px; }
.case-study .cs { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(17,24,39,.04); }
.case-study .cs::before { content: attr(data-step); position: absolute; top: -12px; left: 20px; padding: 3px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--blue-dark); }
.case-study .cs.cs-solution::before { background: var(--green-dark); }
.case-study .cs.cs-result::before { background: #e0742e; }
.case-study .cs h3 { font-size: 1.02rem; margin: 6px 0 10px; }
.case-study .cs p { font-size: .93rem; color: var(--ink-soft); line-height: 1.7; }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.feature-list li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--ink); }
.feature-list li i { color: var(--green-dark); font-size: .8rem; }
.tech-stack { margin-top: 12px; font-size: .86rem; color: var(--ink-soft); }
.tech-stack strong { color: var(--ink); margin-right: 6px; }
/* 메인: 솔루션 개발 사례 */
.sol-list { display: grid; gap: 28px; }
.sol-item { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(17,24,39,.05); }
.sol-item:nth-child(even) .sol-shots { order: 2; }
.sol-shots { position: relative; aspect-ratio: 16 / 10.5; }
.sol-shots .shot { position: absolute; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: #fff; box-shadow: 0 14px 34px rgba(17,24,39,.14); }
.sol-shots .shot::before { content: ""; display: block; height: 14px; background: #eef1f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14'%3E%3Ccircle cx='8' cy='7' r='3' fill='%23fc605b'/%3E%3Ccircle cx='18' cy='7' r='3' fill='%23fdbc40'/%3E%3Ccircle cx='28' cy='7' r='3' fill='%2334c84a'/%3E%3C/svg%3E") no-repeat 4px 0; }
.sol-shots .shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.sol-shots .shot .thumb-placeholder { aspect-ratio: 16 / 10; font-size: 3.4rem; }
.sol-shots .shot-1 { left: 0; top: 0; width: 78%; z-index: 1; }
.sol-shots .shot-2 { right: 0; bottom: 4%; width: 52%; z-index: 2; }
.sol-shots .shot-3 { right: 6%; top: 6%; width: 38%; z-index: 3; }
.sol-shots .shot { transition: transform .25s; }
.sol-shots .shot:hover { transform: translateY(-4px); z-index: 4; }
.sol-body .pf-tag { margin-bottom: 12px; }
.sol-body h3 { font-size: 1.32rem; margin-bottom: 8px; }
.sol-body h3 a { color: inherit; }
.sol-body h3 a:hover { color: var(--blue-dark); }
.sol-body .sum { color: var(--ink-soft); margin-bottom: 14px; line-height: 1.7; }
.sol-body .sol-cr { display: grid; gap: 8px; margin: 14px 0; }
.sol-body .sol-cr div { display: flex; gap: 10px; font-size: .9rem; line-height: 1.6; }
.sol-body .sol-cr span { flex: 0 0 auto; padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--blue-dark); height: fit-content; margin-top: 3px; }
.sol-body .sol-cr .r span { background: #e0742e; }
.sol-body .feature-list { margin: 10px 0 18px; }
.sol-body .feature-list li { padding: 5px 10px; font-size: .78rem; }
@media (max-width: 992px) { .sol-item { grid-template-columns: 1fr; gap: 22px; padding: 20px; } .sol-item:nth-child(even) .sol-shots { order: 0; } .case-study { grid-template-columns: 1fr; gap: 22px; } }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.pf-card:hover .pf-thumb img { transform: scale(1.05); }
.thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, hsl(var(--h, 200) 55% 90%), hsl(calc(var(--h, 200) + 40) 60% 82%)); color: hsl(var(--h, 200) 45% 35%); font-size: 2.6rem; font-weight: 800; }
.thumb-placeholder span { opacity: .8; }
.pf-body { padding: 18px 20px 20px; }
.pf-tag { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--green-dark); background: rgba(111,190,68,.12); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.pf-body h3 { font-size: 1.02rem; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pf-body p { font-size: .86rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-empty { text-align: center; padding: 60px 0; color: var(--muted); }

/* 포트폴리오 상세 */
.pf-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.pf-detail-img { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.pf-detail-img img { width: 100%; display: block; }
.pf-detail-img .thumb-placeholder { aspect-ratio: 16/10; font-size: 4rem; }
.pf-meta { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; }
.pf-meta h1 { font-size: 1.5rem; margin-bottom: 8px; }
.pf-meta .summary { color: var(--ink-soft); margin-bottom: 20px; }
.meta-list { display: grid; gap: 10px; }
.meta-list li { display: flex; gap: 12px; font-size: .95rem; border-top: 1px solid var(--line); padding-top: 10px; }
.meta-list li span { min-width: 84px; color: var(--muted); font-weight: 600; }
.meta-list a { color: var(--blue-dark); word-break: break-all; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; background: #fff; border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; color: var(--ink-soft); }
.pf-desc { margin-top: 48px; }
.pf-desc h2, .pf-gallery h2, .related h2 { font-size: 1.3rem; margin-bottom: 18px; padding-left: 14px; border-left: 4px solid var(--green); }
.post-content { font-size: 1.02rem; line-height: 1.85; color: #2b3648; }
.post-content a { color: var(--blue-dark); text-decoration: underline; }
.pf-gallery { margin-top: 48px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.gallery-grid img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.related { margin-top: 64px; }

/* ---------- 프로세스 ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.process li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px 24px; text-align: center; }
.process li::before { counter-increment: step; content: "0" counter(step); display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px; font-size: .95rem; }
.process li::after { content: ""; position: absolute; top: 50px; right: -18px; width: 18px; border-top: 2px dashed #cfd8e3; }
.process li:last-child::after { display: none; }
.process h3 { font-size: 1rem; margin-bottom: 8px; }
.process p { font-size: .85rem; color: var(--ink-soft); }

/* ---------- 소식 ---------- */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.news-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.news-box-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 2px solid var(--navy); margin-bottom: 6px; }
.news-box-head h3 { font-size: 1.15rem; }
.news-box-head a { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.news-box-head a:hover { color: var(--blue-dark); }
.news-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.news-list li:last-child { border-bottom: 0; }
.news-list a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list a:hover { color: var(--blue-dark); }
.news-list .date { color: var(--muted); font-size: .84rem; flex-shrink: 0; }
.news-list .pin { color: var(--green-dark); font-size: .8rem; }
.news-list .file { color: var(--muted); font-size: .8rem; }
.news-list .empty { color: var(--muted); justify-content: center; padding: 30px 0; }

/* ---------- 거래처 ---------- */
.client-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.client-chip { display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; font-size: .92rem; color: var(--ink-soft); text-align: center; transition: border-color .15s, color .15s, transform .15s; }
.client-chip:hover { border-color: var(--blue); color: var(--blue-dark); transform: translateY(-2px); }
.client-chip img { max-height: 44px; width: auto; }
.client-group { margin-bottom: 46px; }
.client-group h2 { font-size: 1.25rem; margin-bottom: 18px; padding-left: 14px; border-left: 4px solid var(--green); }

/* ---------- CTA 밴드 ---------- */
.cta-band { background: var(--grad); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 8px; }
.cta-inner p { color: rgba(255,255,255,.9); }

/* ---------- 문의 ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 48px; align-items: start; }
.info-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px 32px; }
.info-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.info-card > p { color: rgba(255,255,255,.72); margin-bottom: 26px; font-size: .95rem; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.info-list i { width: 22px; text-align: center; color: #9fe07a; margin-top: 3px; }
.info-list span { display: block; font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: 2px; }
.info-list a:hover { text-decoration: underline; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 700; color: var(--ink); }
.field label b { color: #e0503a; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,168,224,.14); }
.field textarea { resize: vertical; min-height: 140px; }
.is-invalid { border-color: #e0503a !important; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.consent { margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); }
.consent summary { cursor: pointer; padding: 12px 16px; font-size: .9rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.consent summary::-webkit-details-marker { display: none; }
.consent[open] summary i { transform: rotate(180deg); }
.consent-body { padding: 0 16px 14px; font-size: .84rem; color: var(--ink-soft); }
.consent-body p { margin-bottom: 6px; }
.consent-body a { color: var(--blue-dark); text-decoration: underline; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.form-actions { margin-top: 24px; text-align: center; }
.form-msg { color: #c0392b; font-size: .9rem; margin-top: 12px; text-align: center; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; margin-bottom: 22px; font-size: .95rem; }
.alert i { font-size: 1.2rem; margin-top: 2px; }
.alert ul { list-style: disc; padding-left: 18px; }
.alert-success { background: #ecf8ea; color: #2c6b1a; border: 1px solid #c8e9bf; }
.alert-danger { background: #fdecec; color: #b3261e; border: 1px solid #f5c6c6; }
.alert-info { background: #e9f5fc; color: #1b5f82; border: 1px solid #bfe2f5; }
.map-embed { margin-top: 48px; }
.map-embed h2 { font-size: 1.3rem; margin-bottom: 16px; padding-left: 14px; border-left: 4px solid var(--green); }
.map-frame { position: relative; padding-top: 42%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-addr { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: .95rem; color: var(--ink-soft); align-items: center; }
.map-addr .btn { margin-left: auto; }

/* ---------- 서브페이지 배너 ---------- */
.page-head { position: relative; background: var(--navy); color: #fff; padding: 74px 0 60px; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 380px at 90% 20%, rgba(42,168,224,.42), transparent 60%), radial-gradient(600px 320px at 5% 100%, rgba(111,190,68,.32), transparent 60%); }
.page-head.has-img { background-size: cover; background-position: center 40%; padding: 96px 0 78px; }
.page-head.has-img::before { background: linear-gradient(100deg, rgba(15,27,45,.9) 0%, rgba(15,27,45,.7) 45%, rgba(15,27,45,.35) 100%); }
.page-head .wrap { position: relative; }
.page-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.page-sub { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 640px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; font-size: .84rem; color: rgba(255,255,255,.6); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: rgba(255,255,255,.4); }
.crumbs a:hover { color: #fff; }

/* 서브 페이지 내 섹션 앵커 보정 */
[id] { scroll-margin-top: 90px; }

/* ---------- 회사소개 ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-intro .lead { font-size: 1.15rem; line-height: 1.8; color: #2b3648; }
.about-intro .lead strong { color: var(--blue-dark); }
.about-intro p + p { margin-top: 14px; }
.info-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; background: var(--bg-soft); border-radius: var(--radius); padding: 20px 28px; }
.info-table div { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.info-table div:nth-last-child(-n+2) { border-bottom: 0; }
.info-table dt { min-width: 90px; color: var(--muted); font-weight: 700; }
.info-table dd { margin: 0; }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.value-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 18px; transition: transform .2s, box-shadow .2s; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card i { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 1.3rem; margin-bottom: 14px; }
.value-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.value-card p { font-size: .88rem; color: var(--ink-soft); }
.vision-quote { max-width: 860px; margin: 0 auto 40px; text-align: center; font-size: 1.12rem; line-height: 1.85; color: #2b3648; }
.vision-quote strong { color: var(--green-dark); }
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.biz-item { text-align: center; padding: 26px 10px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.biz-item i { font-size: 1.6rem; color: var(--blue-dark); margin-bottom: 12px; display: block; }
.biz-item span { font-weight: 700; font-size: .92rem; }
.org { text-align: center; }
.org-top { display: inline-block; background: var(--navy); color: #fff; padding: 14px 40px; border-radius: 12px; font-weight: 800; font-size: 1.05rem; position: relative; }
.org-top::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 28px; background: #cfd8e3; }
.org-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 28px; position: relative; padding-top: 22px; }
.org-row::before { content: ""; position: absolute; left: 7%; right: 7%; top: 0; height: 2px; background: #cfd8e3; }
.org-row li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 8px; font-weight: 700; font-size: .9rem; }
.org-row li::before { content: ""; position: absolute; left: 50%; top: -22px; width: 2px; height: 22px; background: #cfd8e3; }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 96px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-year { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 0 40px; padding-bottom: 34px; }
.tl-year > strong { font-size: 1.5rem; font-weight: 800; color: var(--blue-dark); line-height: 1; padding-top: 2px; }
.tl-year > strong::after { content: ""; position: absolute; left: 90px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px #fff; }
.tl-items li { position: relative; padding: 4px 0 4px 18px; color: #2b3648; font-size: .97rem; }
.tl-items li::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.tl-items .m { color: var(--muted); font-size: .82rem; margin-right: 6px; font-weight: 700; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 900px; margin: 0 auto; }
.cert-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; transition: box-shadow .2s; }
.cert-card:hover { box-shadow: var(--shadow); }
.cert-card a { display: block; background: var(--bg-soft); padding: 22px; }
.cert-card img { max-height: 420px; width: auto; margin: 0 auto; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.cert-card h3 { font-size: 1.05rem; padding: 18px 16px 4px; }
.cert-card p { color: var(--muted); font-size: .85rem; padding: 0 16px 20px; }

/* ---------- 서비스 페이지 ---------- */
.svc-detail { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; padding: 44px 0; border-top: 1px solid var(--line); }
.svc-detail:first-child { border-top: 0; }
.svc-detail .svc-icon { width: 72px; height: 72px; font-size: 1.8rem; border-radius: 22px; }
.svc-detail h2 { font-size: 1.5rem; margin-bottom: 10px; }
.svc-detail .lead { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 18px; }
.svc-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.svc-points li { position: relative; padding-left: 26px; font-size: .95rem; }
.svc-points li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 2px; color: var(--green); font-size: .85rem; }

/* ---------- 게시판 ---------- */
.board-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.board-tabs a { padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; color: var(--ink-soft); background: #fff; }
.board-tabs a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.board-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.board-tools .count { color: var(--ink-soft); font-size: .92rem; }
.search-form { display: flex; gap: 6px; }
.search-form input { padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; min-width: 220px; outline: none; }
.search-form input:focus { border-color: var(--blue); }
.search-form button { border: 0; background: var(--navy); color: #fff; border-radius: 999px; padding: 0 18px; cursor: pointer; }
.board-list { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); }
.board-list th { padding: 14px 12px; font-size: .88rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); background: var(--bg-soft); font-weight: 700; }
.board-list td { padding: 15px 12px; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: middle; }
.board-list .no, .board-list .date, .board-list .hit, .board-list .file { text-align: center; color: var(--ink-soft); font-size: .88rem; white-space: nowrap; }
.board-list .title a { display: inline-flex; align-items: center; gap: 8px; }
.board-list .title a:hover { color: var(--blue-dark); }
.board-list tr.is-notice td { background: #fbfdf9; }
.badge-notice { display: inline-block; font-size: .72rem; font-weight: 700; color: #fff; background: var(--green-dark); padding: 2px 9px; border-radius: 999px; }
.badge-new { display: inline-block; font-size: .66rem; font-weight: 800; color: #fff; background: #e0503a; padding: 1px 6px; border-radius: 4px; }
.board-list .empty { text-align: center; padding: 60px 0; color: var(--muted); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pg-item { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-soft); background: #fff; }
.pg-item:hover { border-color: var(--blue); color: var(--blue-dark); }
.pg-item.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pg-dots { color: var(--muted); padding: 0 4px; }

.post { max-width: 960px; margin: 0 auto; }
.post-head { border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); padding: 26px 8px; }
.post-head h1 { font-size: 1.5rem; margin-bottom: 10px; }
.post-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.post-meta i { margin-right: 4px; }
.post-body { padding: 34px 8px; min-height: 200px; }
.post-images { display: grid; gap: 18px; margin-top: 24px; }
.post-images img { border-radius: var(--radius-sm); border: 1px solid var(--line); }
.post-files { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: var(--bg-soft); margin: 0 8px 20px; }
.post-files h3 { font-size: .9rem; color: var(--ink-soft); margin-bottom: 10px; }
.post-files li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .93rem; }
.post-files a { color: var(--blue-dark); }
.post-files a:hover { text-decoration: underline; }
.post-files .size { color: var(--muted); font-size: .8rem; }
.post-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 10px; }
.post-nav li { display: flex; gap: 14px; padding: 13px 8px; font-size: .93rem; border-top: 1px solid var(--line); }
.post-nav li:first-child { border-top: 0; }
.post-nav span { color: var(--muted); font-weight: 700; min-width: 60px; }
.post-nav a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-nav a:hover { color: var(--blue-dark); }
.post-actions { margin-top: 28px; text-align: center; }

/* ---------- 정책 페이지 ---------- */
.policy { max-width: 900px; margin: 0 auto; font-size: .96rem; line-height: 1.8; color: #2b3648; }
.policy h2 { font-size: 1.15rem; margin: 34px 0 10px; padding-left: 12px; border-left: 4px solid var(--green); }
.policy h2:first-child { margin-top: 0; }
.policy ul { list-style: disc; padding-left: 22px; margin: 8px 0; }
.policy table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .92rem; }
.policy th, .policy td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.policy th { background: var(--bg-soft); }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 64px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer-logo { height: 62px; width: auto; background: #fff; padding: 8px 14px; border-radius: 10px; margin-bottom: 18px; }
.footer-desc { max-width: 420px; color: rgba(255,255,255,.66); }
.footer-sns { display: flex; gap: 8px; margin-top: 18px; }
.footer-sns a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .15s; }
.footer-sns a:hover { background: var(--blue); }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-links li { padding: 5px 0; }
.footer-links a:hover { color: #fff; }
.footer-meta li { display: flex; gap: 10px; padding: 4px 0; }
.footer-meta span { min-width: 108px; color: rgba(255,255,255,.45); flex-shrink: 0; }
.footer-meta a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: rgba(255,255,255,.5); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a:hover { color: #fff; }
.footer-legal strong { color: rgba(255,255,255,.8); }
.admin-link { opacity: .5; }

/* ---------- 라이트박스 / 맨위로 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8,12,20,.92); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; max-width: 100%; }
.lightbox img { max-height: 84vh; max-width: 100%; margin: 0 auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { color: rgba(255,255,255,.8); margin-top: 12px; font-size: .92rem; }
.lightbox-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; box-shadow: var(--shadow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 400; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- 등장 애니메이션 ---------- */
/* JS 가 있을 때만 숨겼다가 등장 (no-js 환경에서는 항상 표시) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="delay-1"] { transition-delay: .1s; }
[data-reveal="delay-2"] { transition-delay: .2s; }
[data-reveal="delay-3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1200px) {
  .pf-grid { grid-template-columns: repeat(3, 1fr); }
  .client-grid { grid-template-columns: repeat(4, 1fr); }
  .biz-grid, .org-row { grid-template-columns: repeat(4, 1fr); }
  .org-row::before { display: none; }
  .org-row li::before { display: none; }
  .process { grid-template-columns: repeat(3, 1fr); }
  .process li::after { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  /* backdrop-filter 는 fixed 자손(드로어)의 기준 박스를 헤더로 바꾸므로 모바일에서는 해제 */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .brand-logo { height: 48px; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .gnb-wrap {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 360px); background: #fff; z-index: 700;
    transform: translateX(100%); transition: transform .28s ease; overflow-y: auto; display: flex; flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,.15);
  }
  .gnb-wrap.is-open { transform: none; }
  .gnb-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .gnb-logo { height: 42px; width: auto; }
  .gnb-close { background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; padding: 6px; }
  .gnb { flex-direction: column; gap: 0; padding: 10px 0; flex: 1; }
  .gnb-item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
  .gnb-link { flex: 1; padding: 15px 22px; border-radius: 0; font-size: 1.05rem; }
  .gnb-item:hover > .gnb-link, .gnb-item.is-active > .gnb-link { background: none; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; background: none; color: var(--ink-soft); cursor: pointer; transition: transform .2s; }
  .gnb-item.is-sub-open .sub-toggle { transform: rotate(180deg); color: var(--blue-dark); }
  /* 데스크톱 hover/focus-within 규칙(특이성 0,3,0)보다 뒤에 두어 모바일에서는 항상 정적 배치 */
  .sub, .gnb-item:hover .sub, .gnb-item:focus-within .sub {
    position: static; transform: none; opacity: 1; visibility: visible; width: 100%; min-width: 0; border: 0; border-radius: 0; box-shadow: none;
    background: var(--bg-soft); padding: 6px 0; display: none;
  }
  .gnb-item.is-sub-open .sub, .gnb-item.is-sub-open:hover .sub, .gnb-item.is-sub-open:focus-within .sub { display: block; }
  .sub a { padding: 10px 34px; font-size: .95rem; }
  .gnb-foot { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 26px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }
  .gnb-foot i { width: 18px; color: var(--blue-dark); }

  .section { padding: 72px 0; }
  .hero { min-height: 520px; height: 68vh; }
  .hero-nav { display: none; }
  .hero-scroll { display: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .about-intro, .pf-detail, .news-grid { grid-template-columns: 1fr; }
  .svc-detail { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { min-height: 460px; height: 62vh; }
  .hero-content p { margin-bottom: 26px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 22px 12px; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--line); }
  .stat strong { font-size: 1.8rem; }
  .pf-grid, .pf-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pf-body { padding: 14px 14px 16px; }
  .client-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .client-chip { min-height: 60px; font-size: .84rem; padding: 10px; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why-grid { grid-template-columns: 1fr; }
  .values-grid, .biz-grid, .org-row { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .info-card { padding: 28px 22px; }
  .info-table { grid-template-columns: 1fr; padding: 8px 20px; }
  .info-table div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .info-table div:last-child { border-bottom: 0; }
  .timeline::before { left: 8px; }
  .tl-year { grid-template-columns: 1fr; gap: 8px; padding-left: 30px; }
  .tl-year > strong::after { left: -28px; top: 6px; }
  .cert-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-points { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .board-list thead { display: none; }
  .board-list tr { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .board-list td { display: block; border: 0; padding: 2px 0; }
  .board-list .no, .board-list .hit { display: none; }
  .board-list .date, .board-list .file { display: inline-block; text-align: left; margin-right: 12px; font-size: .82rem; }
  .board-list .title { font-size: 1rem; }
  .board-tools { flex-direction: column; align-items: stretch; }
  .search-form input { flex: 1; min-width: 0; }
  .map-frame { padding-top: 62%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-head { padding: 52px 0 42px; }
  .pf-filter { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .pf-filter a { flex-shrink: 0; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero { min-height: 420px; }
  .hero-actions .btn { width: 100%; }
  .svc-grid, .pf-grid, .pf-grid.cols-3, .process, .values-grid, .biz-grid, .org-row { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .btn-lg { width: 100%; }
}
