/* =========================================================
   (주)리엔소프트 리뉴얼 스타일 — Modern Minimal Corporate
   원칙: 흰 배경 · 포인트 컬러 1개(블루) · 가는 큰 제목 · 1px 선 · 장식 없음
   ========================================================= */
:root {
  --primary: #1e5bd6;
  --primary-dark: #1749b0;
  --primary-soft: #eef3fd;

  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #6b7280;
  --ink-4: #9ca3af;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --dark: #1c2230;

  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 16px rgba(17, 24, 39, .04);

  --container: 1200px;
  --header-h: 76px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--ink);
  background: var(--bg); word-break: keep-all; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header / GNB ---------- */
.rn-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
}
.rn-header .container { height: 100%; display: flex; align-items: center; gap: 48px; }
.rn-logo img { height: 34px; width: auto; }
.gnb { display: flex; align-items: center; gap: 4px; flex: 1; }
.gnb > a { position: relative; padding: 0 18px; line-height: var(--header-h); font-size: 16px; font-weight: 500; color: var(--ink-2); }
.gnb > a:hover { color: var(--primary); }
.gnb > a.active { color: var(--ink); font-weight: 700; }
.gnb > a.active::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: var(--primary); }
.gnb .ext { font-size: 12px; color: var(--ink-4); margin-left: 2px; }
.header-util { display: flex; align-items: center; gap: 16px; }
.header-tel { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; } .menu-toggle span::after { top: 7px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-line-white { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-line-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-white { background: #fff; border-color: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-soft); border-color: var(--primary-soft); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.link-more::after { content: "›"; font-size: 20px; line-height: 1; transform: translateY(-1px); transition: transform .2s; }
.link-more:hover { color: var(--primary); }
.link-more:hover::after { transform: translate(3px, -1px); }

/* ---------- Section ---------- */
.section { padding: 110px 0; }
.section-sm { padding: 72px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-blue { background: var(--primary); color: #fff; }
.bg-dark { background: var(--dark); color: #fff; }

.sec-title { text-align: center; margin-bottom: 56px; }
.sec-title h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.35; }
.sec-title h2 b { font-weight: 700; }
.sec-title p { margin-top: 16px; font-size: 17px; color: var(--ink-3); }
.bg-blue .sec-title p, .bg-dark .sec-title p { color: rgba(255,255,255,.7); }
.sec-title.left { text-align: left; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head-row .sec-title { margin-bottom: 0; }

/* ---------- Main visual ---------- */
.visual { background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.visual .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.visual-kicker { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 20px; }
.visual h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; line-height: 1.28; letter-spacing: -0.04em; }
.visual h1 b { font-weight: 700; }
.visual-lead { margin-top: 24px; font-size: 18px; color: var(--ink-2); max-width: 520px; }
.visual-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.visual-figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.visual-figure img { border-radius: 4px; }
.visual-caption { margin-top: 12px; font-size: 13px; color: var(--ink-3); text-align: right; }

/* ---------- Quick links (카드 바로가기) ---------- */
.quick-links { border-bottom: 1px solid var(--line); }
.quick-links .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.ql { display: block; padding: 36px 28px; border-right: 1px solid var(--line); transition: background .2s; }
.ql:first-child { border-left: 1px solid var(--line); }
.ql:hover { background: var(--bg-soft); }
.ql h3 { font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.ql h3::after { content: "›"; font-size: 24px; color: var(--ink-4); font-weight: 400; transition: transform .2s, color .2s; }
.ql:hover h3::after { color: var(--primary); transform: translateX(4px); }
.ql p { margin-top: 8px; font-size: 14.5px; color: var(--ink-3); }
.ql .free { color: var(--primary); font-weight: 700; }

/* ---------- Icon columns ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature { text-align: center; padding: 8px 12px; }
.feature .ico { width: 64px; height: 64px; margin: 0 auto 22px; color: var(--primary); }
.feature .ico svg { width: 100%; height: 100%; }
.feature h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.feature p { margin-top: 10px; color: var(--ink-3); font-size: 15.5px; }
.feature ul { margin-top: 16px; display: grid; gap: 6px; color: var(--ink-2); font-size: 15.5px; }
.feature .link-more { margin-top: 18px; }

/* 텍스트 중심 메인 비주얼 */
.visual-text .container { display: block; text-align: center; padding-top: 128px; padding-bottom: 120px; }
.visual-text h1 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.3; }
.visual-text .visual-lead { margin: 28px auto 0; max-width: 760px; font-size: 19px; }
.visual-keywords { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.visual-keywords li { padding: 0 22px; font-size: 16px; font-weight: 600; color: var(--ink-2); line-height: 1.2; }
.visual-keywords li + li { border-left: 1px solid var(--line-2); }
.visual-text .visual-actions { justify-content: center; margin-top: 44px; }
.visual-text .visual-tel { margin-top: 22px; }
@media (max-width: 640px) {
  .visual-text .container { padding-top: 72px; padding-bottom: 72px; text-align: left; }
  .visual-text .visual-lead br { display: none; }
  .visual-keywords { justify-content: flex-start; gap: 8px; }
  .visual-keywords li, .visual-keywords li + li { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 14px; }
  .visual-text .visual-actions { justify-content: flex-start; }
}
.visual-tel { margin-top: 18px; font-size: 15px; color: var(--ink-3); }
.visual-tel a { margin-left: 6px; font-weight: 700; color: var(--primary); font-size: 17px; }
.feature.pillar { text-align: left; padding: 36px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; }
.feature.pillar .ico { margin: 0 0 22px; width: 52px; height: 52px; }
.pillar-no { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--primary); }
.feature.pillar h3 { margin-top: 6px; }
.feature.pillar p { margin-top: 12px; }
.pillar-tags { margin-top: 20px !important; display: flex !important; flex-wrap: wrap; gap: 6px !important; }
.pillar-tags li { font-size: 13.5px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--ink-2); }
.feature.pillar .link-more { margin-top: auto; padding-top: 22px; }
/* 핵심 서비스 카드 (기존 사이트 개선 · AI 고도화) */
.feature.pillar-key { position: relative; border: 2px solid var(--primary); background: var(--primary-soft); }
.pillar-badge { position: absolute; top: -14px; left: 30px; padding: 4px 12px; border-radius: var(--radius-sm); background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; }
.pillar-key .pillar-tags li { background: #fff; border-color: rgba(30, 91, 214, .35); color: var(--primary); font-weight: 600; }
.pillar-links { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pillar-links .link-more { margin-top: 0; padding-top: 0; }
.pillar-key .pillar-links .link-more { color: var(--primary); }
.band-kicker { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.dot-list { display: grid; gap: 8px; }
.dot-list li { position: relative; padding-left: 14px; color: var(--ink-2); font-size: 15.5px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 20px; }
.bento-item {
  position: relative; display: flex; flex-direction: column; text-align: left; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s;
}
.bento-item:hover { border-color: var(--primary); }
.bento-item.lg { grid-column: span 2; grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }
.bento-label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.bento-item h3 { margin-top: 6px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.bento-item.lg h3 { font-size: 28px; }
.bento-item p { margin-top: 8px; font-size: 14.5px; color: var(--ink-3); }
.bento-item.lg p { font-size: 16px; max-width: 460px; }
.bento-img { margin-top: auto; padding-top: 18px; display: flex; justify-content: center; align-items: flex-end; min-height: 0; flex: 1; }
.bento-img img { max-height: 100%; width: auto; object-fit: contain; border-radius: 4px; transition: transform .4s; }
.bento-item:hover .bento-img img { transform: translateY(-4px); }
.bento-item.wide { flex-direction: row; gap: 24px; align-items: stretch; }
.bento-item.wide .bento-text { flex: 1 1 52%; display: flex; flex-direction: column; }
.bento-item.wide .bento-img { flex: 1 1 48%; margin: 0; padding: 0; align-items: center; }
.bento-item.stat-card { justify-content: center; background: var(--bg-soft); border-color: transparent; }
.bento-item.stat-card:hover { border-color: transparent; }
.stat-big { font-size: 56px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--primary); }
.stat-big small { font-size: 22px; font-weight: 500; margin-left: 4px; }
.stat-card p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Numbers band ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); }
.num { padding: 8px 24px; border-left: 1px solid rgba(255,255,255,.14); }
.num:first-child { border-left: 0; padding-left: 0; }
.num strong { display: block; font-size: 48px; font-weight: 300; letter-spacing: -0.04em; line-height: 1.1; }
.num strong small { font-size: 20px; font-weight: 500; margin-left: 2px; }
.num span { display: block; margin-top: 8px; color: rgba(255,255,255,.65); font-size: 15px; }

/* ---------- Steps (lifecycle / process) ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); border-top: 1px solid var(--ink); }
.step { padding: 28px 24px 8px 0; position: relative; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step-no { font-size: 14px; font-weight: 600; color: var(--primary); }
.step h3 { margin-top: 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.step p { margin-top: 8px; color: var(--ink-3); font-size: 15px; }
.step .dot-list { margin-top: 14px; }
.step-out { margin-top: 16px; display: inline-block; font-size: 13px; color: var(--ink-2); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: var(--radius-sm); }
.note-line { margin-top: 32px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-2); text-align: center; }
.note-line b { color: var(--primary); font-weight: 600; }

/* ---------- Reasons (rows) ---------- */
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 80px 320px 1fr; gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.row-no { font-size: 15px; font-weight: 600; color: var(--primary); }
.row h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.row p { color: var(--ink-3); }

/* ---------- Project cards ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.tab { height: 52px; padding: 0 22px; border: 0; background: none; font-size: 16px; font-weight: 500; color: var(--ink-3); position: relative; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); font-weight: 700; }
.tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); }
.tab em { font-style: normal; font-size: 13px; color: var(--ink-4); margin-left: 4px; font-weight: 500; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.project { display: block; align-self: start; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.project-thumb {
  aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 20px; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s;
}
.project-thumb img { max-height: 100%; width: auto; object-fit: contain; transition: transform .4s; }
.project:hover .project-thumb { border-color: var(--primary); }
.project:hover .project-thumb img { transform: scale(1.03); }
.project-meta { margin-top: 16px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.project-meta .tag { margin-left: 6px; padding: 1px 7px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 12px; }
.project h3 { margin-top: 4px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.45; }
.project:hover h3 { color: var(--primary); }
.project p { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); }
.project .project-tags { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--primary); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .6); }
.modal-dialog {
  position: relative; width: calc(100% - 32px); max-width: 1080px; max-height: calc(100vh - 48px); margin: 24px auto;
  background: #fff; border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border: 0; background: #fff; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--ink-2); }
.gallery { background: var(--bg-soft); position: relative; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.gallery-main { flex: 1; display: grid; place-items: center; padding: 28px; min-height: 0; }
.gallery-main img { max-height: 60vh; width: auto; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; padding: 0 16px 16px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 72px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; opacity: .6; }
.gallery-thumbs button.active { border-color: var(--primary); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 42%; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 50%; font-size: 20px; color: var(--ink-2); }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.modal-body { padding: 40px 36px; overflow-y: auto; }
.modal-body h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; padding-right: 32px; line-height: 1.4; }
.modal-body .client { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.modal-body .summary { margin-top: 14px; color: var(--ink-2); }
.feature-group { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.feature-group h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.modal-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
body.modal-open { overflow: hidden; }

/* ---------- Blue band (AI 진단) ---------- */
.band-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.band-grid h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 300; line-height: 1.35; letter-spacing: -0.03em; }
.band-grid h2 b { font-weight: 700; }
.band-grid .lead { margin-top: 18px; color: rgba(255,255,255,.8); font-size: 17px; }
.band-grid .visual-actions { margin-top: 32px; }
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pain { padding: 20px; border-radius: var(--radius); background: rgba(255,255,255,.1); font-size: 15.5px; line-height: 1.55; }
.pain b { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.65); margin-bottom: 4px; }

/* ---------- Logos / certs ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-cell { height: 96px; display: grid; place-items: center; padding: 18px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.logo-cell img { max-height: 44px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: .2s; }
.logo-cell:hover img { filter: none; opacity: 1; }
.cert-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.cert { padding: 0; border: 0; background: none; text-align: center; cursor: zoom-in; }
.cert img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; transition: border-color .2s; }
.cert:hover img { border-color: var(--primary); }
.cert span { display: block; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 24px; background: rgba(17,24,39,.85); cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; width: auto; background: #fff; border-radius: 4px; }

/* ---------- Help bar ---------- */
.help { text-align: center; padding: 72px 0; border-top: 1px solid var(--line); background: var(--bg-soft); }
.help h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; letter-spacing: -0.03em; }
.help h2 b { font-weight: 700; }
.help-desc { margin: 14px auto 0; max-width: 640px; color: var(--ink-3); font-size: 16px; }
.help-tel a + a, .help-tel a { white-space: nowrap; }
.footer-about { padding-top: 24px; max-width: 760px; color: rgba(255,255,255,.75); }
.help-actions { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.help-tel { margin-top: 22px; color: var(--ink-3); font-size: 15px; }
.help-tel a { color: var(--primary); font-weight: 700; font-size: 17px; }

/* ---------- Page title (sub) ---------- */
.page-title { padding: 72px 0 56px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-title .crumb { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.page-title .crumb a:hover { color: var(--primary); }
.page-title h1 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.3; }
.page-title h1 b { font-weight: 700; }
.page-title p { margin-top: 16px; font-size: 17.5px; color: var(--ink-2); max-width: 760px; }
.page-title .visual-actions { margin-top: 28px; }
.chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: #fff; }
.chip.on { border-color: var(--primary); color: var(--primary); }

.anchor-nav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.anchor-nav .container { display: flex; overflow-x: auto; scrollbar-width: none; }
.anchor-nav a { flex: none; padding: 16px 18px; font-size: 15px; font-weight: 500; color: var(--ink-3); border-bottom: 2px solid transparent; }
.anchor-nav a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.table { width: 100%; min-width: 720px; border-collapse: collapse; }
.table th, .table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15.5px; }
.table thead th { font-size: 14.5px; font-weight: 600; color: var(--ink-3); background: var(--bg-soft); }
.table tbody th { font-weight: 700; white-space: nowrap; }
.table td.muted { color: var(--ink-3); }
.table td.em { color: var(--primary); font-weight: 600; }
.table-note { margin-top: 18px; color: var(--ink-3); font-size: 15px; }
.table-note b { color: var(--ink); font-weight: 600; }

/* ---------- Service boxes ---------- */
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; background: #fff; display: flex; flex-direction: column; }
.box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.box-no { font-size: 14px; font-weight: 600; color: var(--primary); }
.box-tag { font-size: 12.5px; font-weight: 600; color: var(--primary); border: 1px solid var(--primary); padding: 1px 8px; border-radius: var(--radius-sm); }
.box h3 { margin-top: 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.box .dot-list { margin-top: 16px; }
.box-result { margin-top: auto; padding-top: 18px; }
.box-result p { padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.box-result b { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.quote-list { display: grid; gap: 10px; margin-top: 16px; }
.quote-list li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink-2); }
.panel { padding: 32px; border-radius: var(--radius); background: var(--bg-soft); }
.panel h3 { font-size: 19px; font-weight: 700; }
.panel .dot-list { margin-top: 16px; }
.panel .answer { margin-top: 18px; font-weight: 600; color: var(--primary); }
.big-num { padding: 40px 32px; border-radius: var(--radius); background: var(--dark); color: #fff; }
.big-num strong { display: block; font-size: 88px; font-weight: 300; letter-spacing: -0.05em; line-height: 1; }
.big-num strong small { font-size: 32px; font-weight: 500; }
.big-num h3 { margin-top: 10px; font-size: 20px; font-weight: 700; }
.big-num p { margin-top: 16px; color: rgba(255,255,255,.7); font-size: 15.5px; }
.def-list { border-top: 1px solid var(--ink); }
.def-list > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.def-list dt { font-weight: 700; }
.def-list dd { margin: 0; color: var(--ink-2); }

/* ---------- Contact (기존 문의 폼 · 스타일만 변경) ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.form_box { border-top: 1px solid var(--ink); }
.form_group { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.form_group.top { align-items: start; }
.form_group.top .form_group_ttl { padding-top: 12px; }
.form_group_ttl { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.star { color: var(--primary); margin-right: 3px; }
.form_style {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: inherit; font-size: 15.5px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form_style:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 91, 214, .12); }
.form_style::placeholder { color: var(--ink-4); }
textarea.form_style { height: 220px; padding: 14px 16px; resize: vertical; }
select.form_style {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.5' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.form_inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form_inline.narrow { max-width: 420px; }
.agree_box { margin-top: 32px; max-height: 260px; overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.agree_txt h2 { font-size: 15.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.agree_txt h3 { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 14px 0 4px; }
.form_checkbox { margin: 22px 0 28px; text-align: center; font-size: 15.5px; }
.form_checkbox input { width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; accent-color: var(--primary); }
.form_checkbox label { cursor: pointer; }
.form_button { text-align: center; }
.form_btn { min-width: 280px; }
.contact-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.aside-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.aside-line { display: grid; grid-template-columns: 84px 1fr; gap: 8px; padding: 6px 0; font-size: 15px; }
.aside-line span { color: var(--ink-3); }
.aside-line a:hover { color: var(--primary); }
.aside-tel { font-size: 26px; font-weight: 300; letter-spacing: -0.02em; color: var(--primary); }

/* ---------- Footer ---------- */
.rn-footer { background: var(--dark); color: rgba(255,255,255,.6); font-size: 14px; padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-top img { height: 30px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-nav a { color: rgba(255,255,255,.8); }
.footer-nav a:hover { color: #fff; }
.footer-info { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-copy { margin-top: 12px; color: rgba(255,255,255,.4); font-size: 13px; }

/* ---------- Floating ---------- */
.float-btns { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 8px; }
.float-btns a { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow); transition: border-color .2s, color .2s; }
.float-btns a:hover { border-color: var(--primary); color: var(--primary); }
.float-btns a.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.float-btns svg { width: 22px; height: 22px; }
.float-btns .to-top { opacity: 0; pointer-events: none; transition: opacity .2s; }
.float-btns .to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(4, 1fr); }
  .row { grid-template-columns: 56px 1fr; }
  .row p { grid-column: 2; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps .step:nth-child(4) { border-left: 0; padding-left: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { position: static; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .rn-logo img { height: 28px; }
  .gnb { display: none !important; }
  .menu-toggle { display: inline-flex; }
  .header-tel { display: none; }
  .rn-header .container { justify-content: space-between; }
  .visual .container { grid-template-columns: minmax(0, 1fr); padding-top: 56px; padding-bottom: 56px; }
  .quick-links .container { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .ql, .ql:first-child { border-left: 0; border-bottom: 1px solid var(--line); }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .numbers { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .num:nth-child(3) { border-left: 0; padding-left: 0; }
  .band-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .modal-dialog { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .gallery { border-right: 0; border-bottom: 1px solid var(--line); }
  .gallery-main img { max-height: 42vh; }
  .modal-body { overflow: visible; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .visual-lead, .page-title p { font-size: 16.5px; }
  .visual-actions .btn { flex: 1 1 100%; }
  .quick-links .container { grid-template-columns: 1fr; }
  .ql { padding: 22px 16px; }
  .cols-2, .cols-3, .cols-4, .project-grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .bento-item.lg, .bento-item.wide { grid-column: auto; grid-row: auto; }
  .bento-item.wide { flex-direction: column; }
  .bento-item.wide .bento-img { padding-top: 18px; }
  .bento-img { max-height: 220px; }
  .bento-item.lg .bento-img { max-height: 260px; }
  .num { padding: 0 0 0 16px; }
  .num:nth-child(odd) { border-left: 0; padding-left: 0; }
  .num strong { font-size: 38px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .row { padding: 22px 0; gap: 4px 12px; grid-template-columns: 40px 1fr; }
  .row h3 { font-size: 18px; }
  .pain-grid { grid-template-columns: minmax(0, 1fr); }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .sec-title { margin-bottom: 36px; }
  .form_group { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 0; }
  .form_group.top .form_group_ttl { padding-top: 0; }
  .form_inline { grid-template-columns: minmax(0, 1fr); }
  .form_btn { width: 100%; min-width: 0; }
  .contact-aside { grid-template-columns: minmax(0, 1fr); }
  .def-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .float-btns { right: 12px; bottom: 12px; }
  .float-btns a { width: 46px; height: 46px; }
}
