/* ─────────────────────────────────────────────
   법무법인 더킴로펌 형사전문센터 — style.css
   서체: Pretendard · 강조색: 로고 빨강
   ───────────────────────────────────────────── */
:root {
  --red: #D8161E;         /* 로고 빨강(#ED1B23) 기준 */
  --red-dark: #B5121A;
  --red-soft: #FDEDEE;
  --navy: #12283F;        /* 히어로 오버레이 · 다크 섹션 */
  --navy-2: #0C1B2C;
  --text: #1F2430;
  --text-2: #5C6470;
  --muted: #8A919C;
  --bg: #FFFFFF;
  --bg-2: #F6F7F9;
  --line: #E6E8EC;

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

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 6px;
  --shadow: 0 10px 30px -10px rgba(18, 40, 63, .18);
  --shadow-lg: 0 24px 50px -20px rgba(18, 40, 63, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75;
  color: var(--text); background: var(--bg); word-break: keep-all; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .75em 1em; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: var(--bg-2); white-space: nowrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .5em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.hl { color: var(--red); }

/* eyebrow: 짧은 라벨 + 밑줄 (레퍼런스의 "Right Way.." 스타일) */
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; color: var(--text-2);
  padding-bottom: .35em; border-bottom: 2px solid var(--red); margin-bottom: 1.1em; letter-spacing: .02em;
}
.eyebrow.center { display: table; margin-inline: auto; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5em; text-decoration: none; font-weight: 700;
  padding: .85em 1.6em; border-radius: var(--r); border: 1px solid transparent; font-size: .95rem;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-white { background: #fff; color: var(--text); border-color: #fff; }
.btn-white:hover { background: #F1F3F6; }
.btn-outline { border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--text); }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ── top bar ── */
.topbar { background: #fff; border-bottom: 1px solid var(--line); font-size: .85rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 1rem; }
.topbar ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: .4em; color: var(--text-2); }
.topbar a:hover { color: var(--red); }
.topbar svg { width: 14px; height: 14px; color: var(--red); }
.topbar .cta { background: var(--red); color: #fff; font-weight: 700; padding: 0 1.3em; height: 40px; }
.topbar .cta:hover { background: var(--red-dark); color: #fff; }
@media (max-width: 640px) { .topbar { display: none; } }

/* ── header ── */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; position: relative; }
.brand { text-decoration: none; display: flex; align-items: center; gap: .8em; }
.brand img { height: 22px; width: auto; }
.brand span { font-size: .8rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: .8em; line-height: 1; }
.nav { display: flex; gap: 2rem; font-size: .95rem; font-weight: 600; }
.nav a { text-decoration: none; padding: .4em 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .15s; }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.tel { text-decoration: none; font-weight: 800; font-size: 1.05rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .45em; }
.tel svg { width: 18px; height: 18px; color: var(--red); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; }
.menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-btn { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem; box-shadow: 0 16px 30px -10px rgba(18,40,63,.25); border-top: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: .9em 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav a.on { color: var(--red); }
}
@media (max-width: 480px) { .brand span { display: none; } .brand img { height: 18px; } }

/* ── hero ── */
.hero { position: relative; color: #fff; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: var(--navy-2); }
.hero .media { position: absolute; inset: 0; z-index: 0; }
.hero .media video, .hero .media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.45) brightness(.85); }
.hero .media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,40,63,.94) 0%, rgba(18,40,63,.84) 45%, rgba(18,40,63,.74) 100%);
}
.hero .media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: #12283F; mix-blend-mode: color; opacity: .85;   /* 주황 조명을 네이비 톤으로 통일 */
}
.hero .person {
  position: absolute; right: max(0px, calc((100% - var(--max)) / 2 - 40px)); bottom: 0; z-index: 1;
  height: 92%; width: auto; max-width: 48%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(-20px 10px 40px rgba(0,0,0,.45));
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-block: 96px 160px; }
.hero .wrap > * { max-width: 58%; }
.hero .eyebrow { color: #fff; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; color: #fff; }
.hero h1 .hl { color: #FF6B6B; }
.hero .lead { font-size: 1.05rem; color: #D6DEE8; margin-top: 1.3em; max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2em; }
@media (max-width: 960px) { .hero .person { max-width: 42%; height: 70%; opacity: .55; } .hero .wrap > * { max-width: 70%; } }
@media (max-width: 640px) { .hero { min-height: 0; } .hero .wrap { padding-block: 64px 140px; } .hero .person { display: none; } .hero .wrap > * { max-width: none; } }

/* ── 대표변호사 그리드 ── */
.lawyers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.lawyer { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lawyer img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #444446; }
.lawyer figcaption { padding: 1rem 1.2rem 1.1rem; display: flex; align-items: baseline; gap: .6em; border-top: 3px solid var(--red); }
.lawyer figcaption span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.lawyer figcaption b { font-size: 1.15rem; font-weight: 800; }
.lawyer-cta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .4em; padding: 2rem 1.6rem; background: var(--navy); color: #fff; text-decoration: none; border: 0; }
.lawyer-cta svg { width: 36px; height: 36px; color: #FF6B6B; margin-bottom: .6em; }
.lawyer-cta b { font-size: 1.35rem; font-weight: 800; line-height: 1.3; }
.lawyer-cta span { font-size: 1.1rem; font-weight: 700; color: #C9D3DF; }
.lawyer-cta em { font-style: normal; font-size: .9rem; font-weight: 700; color: #FF6B6B; margin-top: auto; }
.lawyer-cta:hover { background: var(--red); }
.lawyer-cta:hover em, .lawyer-cta:hover svg, .lawyer-cta:hover span { color: #fff; }
@media (max-width: 900px) { .lawyers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .lawyers { gap: .8rem; } .lawyer figcaption { padding: .7rem .8rem; } }

/* 히어로 아래 겹치는 카드 3장 */
.lift { position: relative; z-index: 2; margin-top: -110px; }
.lift .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card-f {
  background: #fff; border-radius: var(--r); padding: 2rem 1.8rem; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden; text-decoration: none; display: block;
}
.card-f .ic { width: 48px; height: 48px; background: var(--red); border-radius: 4px; display: grid; place-items: center; margin-bottom: 1.2rem; }
.card-f .ic svg { width: 22px; height: 22px; color: #fff; }
.card-f h3, .card-f h4 { font-size: 1.2rem; margin-bottom: .5em; }
.card-f p { font-size: .92rem; color: var(--text-2); margin: 0; }
.card-f .wm { position: absolute; right: -10px; top: 14px; width: 110px; height: 110px; color: var(--line); opacity: .7; }
@media (max-width: 900px) { .lift .cards { grid-template-columns: 1fr; } .lift { margin-top: -90px; } }

/* ── sections ── */
.section { padding-block: clamp(44px, 5.4vw, 76px); }   /* 2026-09-16 섹션 여백 축소 (110→76) */
.section.gray { background: var(--bg-2); }
.section.dark { background: var(--navy); color: #fff; }
.section-head { max-width: 42em; margin-bottom: 2.6em; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.wide { max-width: none; }   /* 2026-09-29 법률정보 첫 화면 — 소개문을 데스크톱에서 한 줄로 */
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.section-head p { color: var(--text-2); margin-top: 1em; }
.dark .section-head p { color: #C9D3DF; }
.def { font-weight: 700; }

/* ── about ── */
.about .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.collage { position: relative; padding: 24px 24px 24px 0; }
.collage::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 82%; background: var(--bg-2); border-radius: var(--r); z-index: 0; }
.collage img { position: relative; z-index: 1; border-radius: 4px; box-shadow: var(--shadow); }
.collage .a { width: 78%; margin-left: 6%; }
.collage .b { width: 62%; margin-left: 38%; margin-top: -18%; }
.about h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.about .desc { color: var(--text-2); margin-top: 1.2em; }
.checks { list-style: none; padding: 0; margin: 1.6em 0 2em; display: grid; grid-template-columns: 1fr 1fr; gap: .55em 1.5em; font-size: .95rem; }
.checks li { display: flex; align-items: flex-start; gap: .6em; }
.checks svg { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: .2em; }
@media (max-width: 900px) { .about .wrap { grid-template-columns: 1fr; } .checks { grid-template-columns: 1fr; } }

/* ── 강점 타일 (숫자 없이 사실만) ── */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 2rem 1.4rem; text-align: center; }
.tile svg { width: 40px; height: 40px; color: var(--red); margin: 0 auto 1rem; display: block; }
.tile b { display: block; font-size: 1.25rem; font-weight: 800; margin-bottom: .3em; }
.tile span { font-size: .9rem; color: var(--text-2); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }

/* ── 서비스 카드 ── */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 2rem 1.8rem; text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.svc:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.svc .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--red-soft); display: grid; place-items: center; margin-bottom: 1.2rem; }
.svc .ic svg { width: 26px; height: 26px; color: var(--red); }
.svc h3, .svc h4 { font-size: 1.25rem; margin-bottom: .5em; }
.svc p { font-size: .92rem; color: var(--text-2); margin: 0 0 1.4em; }
.svc .more { margin-top: auto; font-size: .9rem; font-weight: 700; color: var(--red); }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ── 절차 트랙 ── */
.track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 1rem; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: var(--line); }
.stage { position: relative; padding-top: 2.4rem; }
.stage::before { content: ""; position: absolute; top: 5px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--text); }
.stage.enter::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px var(--red-soft); }
.stage .who { font-size: .78rem; font-weight: 600; color: var(--muted); }
.stage h3, .stage h4 { font-size: 1.15rem; margin: .2em 0 .5em; }
.stage p { font-size: .92rem; color: var(--text-2); margin: 0; }
.stage .enter-tag { display: inline-block; margin-top: .8em; font-size: .78rem; font-weight: 700; color: var(--red); background: var(--red-soft); padding: .15em .7em; border-radius: 3px; }
.track-legend { margin-top: 1.6rem; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .5em; }
.track-legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--red); display: inline-block; }
@media (max-width: 900px) {
  .track { grid-template-columns: 1fr; gap: 1.6rem; padding-left: 2rem; }
  .track::before { left: 9px; top: 0; bottom: 0; width: 2px; height: auto; right: auto; }
  .stage { padding-top: 0; }
  .stage::before { left: -2rem; top: 4px; }
}

/* ── 2단 카드 ── */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; }
.card h3, .card h4 { font-size: 1.35rem; margin-bottom: .6em; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }

/* ── 프로세스 5단계 ── */
.process { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.process li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem 1.4rem; position: relative; }
.process li::before { content: counter(step, decimal-leading-zero); display: inline-block; font-weight: 800; color: #fff; background: var(--red); border-radius: 4px; padding: .1em .55em; font-size: .85rem; }
.process h3, .process h4 { font-size: 1.05rem; margin: .8em 0 .5em; }
.process p { font-size: .9rem; color: var(--text-2); margin: 0; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ── 초기대응 (다크) ── */
.why ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 3rem; padding-left: 1.4em; margin: 0; }
.why li { color: #DCE3EC; }
.why li b { color: #fff; display: block; font-size: 1.1rem; font-weight: 700; margin-bottom: .2em; }
.why li::marker { color: #FF6B6B; font-weight: 800; }
@media (max-width: 760px) { .why ol { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.4rem 1.2rem 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .4rem; top: 1rem; color: var(--red); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 1.4rem; color: var(--text-2); max-width: 48em; }

/* ── 블로그 카드 ── */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; text-decoration: none; display: block; transition: box-shadow .15s; }
.post:hover { box-shadow: var(--shadow-lg); }
.post time { font-size: .8rem; color: var(--muted); font-weight: 600; }
.post h3, .post h4 { font-size: 1.1rem; margin: .5em 0; }
.post p { font-size: .92rem; color: var(--text-2); margin: 0; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* ── 상담 ── */
.contact .big { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; color: var(--red); text-decoration: none; letter-spacing: -.03em; display: inline-block; margin-bottom: 1.4rem; }
.contact .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.contact .grid a { text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; display: block; background: #fff; }
.contact .grid a:hover { border-color: var(--red); }
.contact .grid .k { font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.contact .grid b { display: block; font-size: 1.2rem; margin: .3em 0; }
.contact .grid span { font-size: .9rem; color: var(--text-2); }
@media (max-width: 900px) { .contact .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .contact .grid { grid-template-columns: 1fr; } }

/* ── footer ── */
.site-footer { background: var(--navy-2); color: #AAB5C2; padding-block: 3rem 5.5rem; font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.site-footer strong { color: #fff; font-size: 1.05rem; display: block; margin-bottom: .6em; }
.site-footer .footer-logo { height: 20px; width: auto; margin-bottom: 1em; }
.site-footer a { color: #DDE3EA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35em; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.2rem; font-size: .8rem; color: #7E8A99; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ── 블로그 본문 ── */
.article { max-width: 780px; margin: 0 auto; padding-block: clamp(40px, 6vw, 72px); }
.article header { margin-bottom: 2.4rem; }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.article .meta { font-size: .85rem; color: var(--muted); margin-top: 1em; display: flex; flex-wrap: wrap; gap: 1.2em; }
.article h2 { font-size: 1.6rem; margin: 2.2em 0 .7em; padding-top: .7em; border-top: 2px solid var(--text); }
.article h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.article table { margin: 1em 0 1.6em; }
.article blockquote { margin: 1.6em 0; padding: 1.1em 1.4em; border-left: 4px solid var(--red); background: var(--bg-2); border-radius: 0 var(--r) var(--r) 0; }
.article .toc { background: var(--bg-2); border-radius: var(--r); padding: 1.2rem 1.4rem 1.2rem 2.4rem; font-size: .92rem; margin: 0 0 2rem; }
.article .toc li { margin-bottom: .3em; }
.crumb { font-size: .8rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumb a { text-decoration: none; }
.crumb span { margin: 0 .5em; }
.disclaimer { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1em; margin-top: 3em; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .svc, .btn { transition: none; } }

/* ═══════════ 브랜드 사이트 확장 ═══════════ */
.wrap.narrow { max-width: 860px; }
.topbar .offices { color: var(--text-2); display: inline-flex; align-items: center; gap: .4em; }
.topbar .offices svg { color: var(--muted); }
@media (max-width: 960px) { .topbar .offices { display: none; } }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; max-width: none; }
.section-head h2 small { font-size: .55em; font-weight: 600; color: var(--muted); margin-left: .5em; }
.link-more { text-decoration: none; font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.link-more svg, .statement-link svg, .svc .more svg { width: 18px; height: 18px; }
.link-more:hover { color: var(--red); }
@media (max-width: 640px) { .section-head.row { flex-direction: column; align-items: flex-start; } }

/* 서브페이지 상단 */
.page-hero { background: var(--navy); color: #fff; padding-block: clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -6%; top: -30%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(216,22,30,.25), transparent 65%); pointer-events: none; }
.page-hero .crumb { color: #9FB0C4; }
.page-hero .eyebrow { color: #fff; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); color: #fff; max-width: 20em; }
.page-hero .lead { color: #C9D3DF; max-width: 38em; margin-top: 1.2em; font-size: 1.05rem; }

/* 브랜드 스테이트먼트 */
.statement h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); max-width: 22em; }
.statement-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.statement-grid > div { border-top: 2px solid var(--text); padding-top: 1.2rem; }
.statement-grid b { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--red); }
.statement-grid span { display: block; font-weight: 700; margin-top: .4em; }
.statement-grid small { display: block; color: var(--text-2); font-size: .85rem; margin-top: .3em; line-height: 1.5; }
.statement-link { margin-top: 2rem; }
.statement-link a { text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: .4em; }
@media (max-width: 900px) { .statement-grid { grid-template-columns: repeat(2, 1fr); } }

/* 서비스 카드 태그 */
.svc .tags { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 1.2em; }
.svc .more { display: inline-flex; align-items: center; gap: .3em; }

/* 성공사례 목록 */
.cases { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--text); }
.case { display: grid; grid-template-columns: 8.5em 1fr 6.5em; gap: 1rem; align-items: center; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.case .cat { font-size: .8rem; font-weight: 700; color: var(--red); }
.case .title { font-weight: 600; }
.case .tag { font-size: .75rem; font-weight: 700; color: var(--navy); background: var(--bg-2); border: 1px solid var(--line); padding: .15em .7em; border-radius: 999px; white-space: nowrap; }
.case time { font-size: .85rem; color: var(--muted); text-align: right; }
.case.hide { display: none; }
@media (max-width: 760px) { .case { grid-template-columns: 1fr auto; } .case .title { grid-column: 1 / -1; } .case time { text-align: left; } }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .45em 1.1em; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--text); color: #fff; border-color: var(--text); }
.note { font-size: .85rem; color: var(--muted); margin-top: 1.2rem; }

/* 언론보도 */
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.press-grid.four { grid-template-columns: repeat(4, 1fr); }
.press { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.press img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.press div { padding: 1rem 1.2rem 1.2rem; }
.press time { font-size: .78rem; color: var(--muted); font-weight: 600; }
.press h3, .press h4 { font-size: 1rem; font-weight: 700; margin-top: .4em; line-height: 1.45; }
@media (max-width: 960px) { .press-grid, .press-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .press-grid, .press-grid.four { grid-template-columns: 1fr; } }

/* 업무분야 */
.subnav { position: sticky; top: 72px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 1.8rem; overflow-x: auto; white-space: nowrap; padding-block: .8rem; font-size: .92rem; font-weight: 600; }
.subnav a { text-decoration: none; color: var(--text-2); }
.subnav a:hover { color: var(--red); }
.practice-head { display: grid; grid-template-columns: 72px 1fr; gap: 1.6rem; align-items: start; }
.practice-head .ic { width: 72px; height: 72px; border-radius: 50%; background: var(--red-soft); display: grid; place-items: center; }
.practice-head .ic svg { width: 32px; height: 32px; color: var(--red); }
.practice-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.practice-head .desc { color: var(--text-2); margin-top: .8em; max-width: 44em; }
.chips { list-style: none; padding: 0; margin: 1em 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font-size: .85rem; font-weight: 600; background: #fff; border: 1px solid var(--line); padding: .3em .9em; border-radius: 999px; }
@media (max-width: 560px) { .practice-head { grid-template-columns: 1fr; } }

/* 사무소 */
.office-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.office { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.office b { display: block; font-size: 1.2rem; margin-bottom: .4em; }
.office p { font-size: .92rem; color: var(--text-2); margin: 0 0 .4em; }
.office span { font-size: .9rem; font-weight: 600; }
@media (max-width: 900px) { .office-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .office-grid { grid-template-columns: 1fr; } }
.contact-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.contact-ways a { text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; display: block; background: #fff; }
.contact-ways a:hover { border-color: var(--red); }
.contact-ways svg { width: 28px; height: 28px; color: var(--red); margin-bottom: .8rem; }
.contact-ways b { display: block; font-size: 1.15rem; }
.contact-ways span { color: var(--text-2); font-size: .92rem; }
@media (max-width: 760px) { .contact-ways { grid-template-columns: 1fr; } }
.office-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.office-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem; scroll-margin-top: 90px; }
.office-card h3, .office-card h4 { font-size: 1.35rem; margin-bottom: .8em; padding-bottom: .5em; border-bottom: 2px solid var(--text); }
.office-card dl { display: grid; grid-template-columns: 5em 1fr; gap: .45em 1em; margin: 0; font-size: .92rem; }
.office-card dt { color: var(--muted); font-weight: 600; }
.office-card dd { margin: 0; }
.office-card dd a { text-decoration: none; font-weight: 700; }
.office-actions { margin: 1.4rem 0 0; display: flex; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 860px) { .office-cards { grid-template-columns: 1fr; } }

/* CTA 밴드 */
.cta-band { background: var(--navy); color: #fff; }
.cta-band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-band .eyebrow { color: #fff; }
.cta-band h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); color: #fff; }
.cta-band p:last-child { color: #C9D3DF; margin: .8em 0 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }
.cta-actions .btn svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }

/* 푸터 2열 — 「바로가기」 열을 지운 뒤(2026-09-16) 사무소를 오른쪽 끝으로 */
.site-footer .wrap { grid-template-columns: 1fr auto; gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.site-footer .wrap > div:nth-child(2) { max-width: 560px; justify-self: end; }
.site-footer .legal { grid-column: 1 / -1; justify-self: start; max-width: none; }
.site-footer ul.offices li { margin-bottom: .5em; line-height: 1.5; }
.site-footer ul.offices b { color: #fff; margin-right: .4em; }
@media (max-width: 900px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer .wrap > div:nth-child(2) { max-width: none; justify-self: stretch; }
}

/* ═══════════ 모션 ═══════════ */
/* JS가 켜진 경우에만(.js) 리빌 대상이 숨었다가 나타납니다. JS가 없으면 그대로 보입니다. */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); will-change: opacity, transform; }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-l { opacity: 0; transform: translateX(-28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rv-l.in { opacity: 1; transform: none; }
.js .rv-r { opacity: 0; transform: translateX(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rv-r.in { opacity: 1; transform: none; }

/* 히어로 등장 */
.js .hero .eyebrow, .js .hero h1, .js .hero .lead, .js .hero .cta { opacity: 0; transform: translateY(26px); animation: heroUp .9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero .eyebrow { animation-delay: .15s; }
.js .hero h1 { animation-delay: .3s; }
.js .hero .lead { animation-delay: .5s; }
.js .hero .cta { animation-delay: .65s; }
.js .hero .person { opacity: 0; transform: translateX(60px); animation: heroPerson 1.1s cubic-bezier(.2,.7,.2,1) .35s forwards; }
.js .hero .eyebrow { border-bottom-color: transparent; position: relative; }
.js .hero .eyebrow::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--red); animation: line 1s cubic-bezier(.2,.7,.2,1) .9s forwards; }
.hero .media video { animation: kenburns 28s ease-in-out infinite alternate; }
@keyframes heroUp { to { opacity: 1; transform: none; } }
@keyframes heroPerson { to { opacity: 1; transform: none; } }
@keyframes line { to { width: 100%; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

/* 서브페이지 상단 글로우 */
.page-hero::after { animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8%, 10%) scale(1.15); } }
.js .page-hero .eyebrow, .js .page-hero h1, .js .page-hero .lead, .js .page-hero .crumb { opacity: 0; transform: translateY(18px); animation: heroUp .8s cubic-bezier(.2,.7,.2,1) forwards; }
.js .page-hero .crumb { animation-delay: .05s; } .js .page-hero .eyebrow { animation-delay: .15s; } .js .page-hero h1 { animation-delay: .28s; } .js .page-hero .lead { animation-delay: .42s; }

/* 숫자 카운터 */
.statement-grid b { font-variant-numeric: tabular-nums; }
.statement-grid > div { position: relative; overflow: hidden; }
.statement-grid > div::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--red); transition: width 1.2s cubic-bezier(.2,.7,.2,1) .2s; }
.statement-grid > div.in::before { width: 100%; }

/* 카드 호버 */
.card-f, .svc, .post, .press, .tile, .office, .contact-ways a { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .2s; }
.card-f:hover, .post:hover, .press:hover, .tile:hover, .office:hover, .contact-ways a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-f .ic, .svc .ic { transition: transform .3s cubic-bezier(.3,1.4,.5,1), background .2s; }
.card-f:hover .ic, .svc:hover .ic { transform: rotate(-6deg) scale(1.08); }
.svc:hover .ic { background: var(--red); }
.svc:hover .ic svg { color: #fff; }
.svc .more svg, .link-more svg, .statement-link svg { transition: transform .2s; }
.svc:hover .more svg, .link-more:hover svg, .statement-link a:hover svg { transform: translateX(4px); }
.card-f .wm { transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.card-f:hover .wm { transform: rotate(-8deg) scale(1.1); opacity: 1; }

/* 구성원 */
.lawyer { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.lawyer img { transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; filter: saturate(.85); }
.lawyer:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.lawyer:hover img { transform: scale(1.05); filter: saturate(1); }
.lawyer figcaption { position: relative; }
.lawyer figcaption::after { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 0; background: var(--navy); transition: width .4s cubic-bezier(.2,.7,.2,1); }
.lawyer:hover figcaption::after { width: 100%; }
.lawyer-cta svg { transition: transform .3s; }
.lawyer-cta:hover svg { transform: rotate(-12deg) scale(1.15); }

/* 성공사례 행 */
.case { transition: background .2s, padding-left .25s; }
.case:hover { background: var(--bg-2); padding-left: .6rem; }
.case .tag { transition: background .2s, color .2s, border-color .2s; }
.case:hover .tag { background: var(--red); color: #fff; border-color: var(--red); }

/* 절차 트랙: 선 그리기 + 점 켜기 */
.js .track::before { transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.js .track.in::before { transform: scaleX(1); }
.js .stage::before { transform: scale(0); transition: transform .5s cubic-bezier(.3,1.5,.5,1); transition-delay: calc(.25s + var(--i, 0) * .28s); }
.js .track.in .stage::before { transform: scale(1); }
.js .stage.enter::before { box-shadow: 0 0 0 0 var(--red-soft); }
.js .track.in .stage.enter::before { animation: pulse 2.4s ease-out calc(1.2s + var(--i, 0) * .28s) 2; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(216,22,30,.35); } 70% { box-shadow: 0 0 0 14px rgba(216,22,30,0); } 100% { box-shadow: 0 0 0 6px var(--red-soft); } }
@media (max-width: 900px) { .js .track::before { transform-origin: top; transform: scaleY(0); } .js .track.in::before { transform: scaleY(1); } }

/* 프로세스 배지 */
.process li::before { transition: transform .4s cubic-bezier(.3,1.5,.5,1), background .2s; }
.process li:hover::before { transform: scale(1.15) rotate(-6deg); background: var(--navy); }
.process li { transition: transform .25s, box-shadow .25s; }
.process li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* 체크리스트 */
.checks svg { transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
.checks li:hover svg { transform: scale(1.25); }

/* 버튼 */
.btn { position: relative; overflow: hidden; }
.btn-red::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.btn-red:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }

/* FAQ 펼침 */
.faq .a { animation: faqIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq summary::after { transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(180deg); }

/* CTA 밴드 */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -10%; top: -40%; width: 40%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(216,22,30,.28), transparent 65%); animation: glow 8s ease-in-out infinite alternate; pointer-events: none; }
.cta-band .wrap { position: relative; }

/* 헤더 스크롤 시 축소 */
.site-header { transition: box-shadow .25s; }
.site-header .wrap { transition: min-height .25s; }
.site-header.compact .wrap { min-height: 60px; }
.site-header.compact { box-shadow: 0 6px 20px -12px rgba(18,40,63,.3); }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv-l, .js .rv-r { opacity: 1; transform: none; transition: none; }
  .js .hero *, .js .page-hero *, .hero .media video, .page-hero::after, .cta-band::before, .js .track::before, .js .stage::before { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .js .hero .eyebrow { border-bottom-color: var(--red); }
  .js .hero .eyebrow::after { display: none; }
}

/* ── 주요 구성원 카드 (2026-09-16) ──────────────────────────────
   이름 · 직책 · 전직을 한 장에 담는다. 사진 아래로 텍스트가 붙는 형태. */
/* 한 줄 5명. 마지막 줄이 덜 차면 가운데로 모인다(grid 로는 안 되고 flex 라야 한다). */
.members {
  --mgap: clamp(1.1rem, 2vw, 1.8rem);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--mgap);
}
.members .member { margin: 0; width: calc((100% - var(--mgap) * 4) / 5); }
.members .member img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  background: #eceef0;
}
.members .member figcaption { padding-top: .75rem; }
.members .member .who {
  margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem;
  padding-bottom: .5rem; border-bottom: 1px solid rgba(20,24,29,.14);
}
.members .member .who b { font-size: 1.02rem; font-weight: 700; color: #14181d; }
.members .member .who span { font-size: .78rem; font-weight: 600; color: var(--red, #E23B3B); }
.members .member .career { list-style: none; margin: .6rem 0 0; padding: 0; }
.members .member .career li {
  font-size: .8rem; line-height: 1.55; color: #56606c;
  padding-left: .62em; position: relative;
}
.members .member .career li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 3px; height: 3px; border-radius: 50%; background: rgba(20,24,29,.32);
}
@media (max-width: 1100px) { .members .member { width: calc((100% - var(--mgap) * 2) / 3); } }
@media (max-width: 640px)  { .members .member { width: calc((100% - var(--mgap)) / 2); } }

/* ── 헤더 우측 상담 신청 버튼 (2026-09-16) ─────────────────────
   기존 전화번호 자리를 대체한다. 상단 띠의 CTA 와 같은 톤. */
.site-header .head-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 1.4em; white-space: nowrap;
  background: var(--red); color: #fff; font-weight: 700; font-size: .95rem;
  text-decoration: none; transition: background .2s;
}
.site-header .head-cta:hover { background: var(--red-dark); color: #fff; }
@media (max-width: 768px) { .site-header .head-cta { height: 38px; padding: 0 1em; font-size: .88rem; } }

/* ── 히어로 = 디자이너 합본 1장, 화면폭 통째로 (2026-09-22 교체) ─────
   디자이너가 같은 시안을 두 벌로 줬다. 글자·인물 위치가 이미 그림 안에서 잡혀 있어서
   CSS 로 좌우를 밀 필요가 없다 → 폭 100% 로 깔고 높이는 비율대로 따라가게 둔다.
     · hero-main-wide.png (1920x750, 2.56:1) → 데스크톱
     · hero-main.png      (1000x750, 1.33:1) → 720px 이하 (picture 의 source 가 교체)
   🚨 두 벌은 비율이 달라서 <picture> 로 갈라야 한다. 한 장을 늘리면 인물이 찌그러진다.
   🚨 그림 배경이 단색이 아니라 회색 그라데이션이다 → object-fit: contain 으로
      여백을 만들면 #eeeeee 와 경계선이 보인다. 높이를 자르지 말고 비율대로 둘 것.
   ※ 옛 분리 배치(hero-text.png + hero-person.png)는 이 교체로 미사용.
      파일은 assets/img 에 남겨 뒀다. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.hero.hero-main { min-height: 0; padding: 0; overflow: hidden; background: #eeeeee; color: inherit; }
.hero.hero-main .hero-art {
  display: block; width: 100%; height: auto; max-width: none;
}

/* ── 성공사례 상세 (2026-09-16) ─────────────────────────────────
   목록 행을 통째로 링크로 만든다. .case 가 grid 라 안쪽 a 도 같은 grid 를 쓴다. */
/* 🚨 .case 가 grid 라 그대로 두면 링크가 첫 칸(8.5em)에 갇혀 제목이 한 글자씩 접힌다. */
.case.has-link { display: block; padding: 0; }
.case-link {
  display: grid; grid-template-columns: 8.5em 1fr 6.5em; gap: 1rem; align-items: center;
  padding: 1.05rem 0; color: inherit; text-decoration: none; transition: background .2s, padding-left .25s;
}
.case-link:hover { background: var(--bg-2); padding-left: .6rem; }
.case-link:hover .title { color: var(--red); }
@media (max-width: 760px) {
  .case-link { grid-template-columns: 1fr auto; }
  .case-link .title { grid-column: 1 / -1; }
  .case-link time { text-align: left; }
}

/* 상세 페이지 */
.case-view .meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.case-facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.2rem; margin: 0 0 1.6em; }
.case-facts dt { font-weight: 700; color: var(--navy); }
.case-facts dd { margin: 0; }
.case-docs { display: grid; gap: 1rem; margin-bottom: 1rem; }
.case-docs img { width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.case-note { font-size: .85rem; color: var(--muted); }
.case-back { margin-top: 2.4rem; }
.case-back a { font-weight: 700; text-decoration: none; }

/* ── 헤더 메뉴 우측 정렬 (2026-09-17) ─────────────────────
   가운데에 떠 있던 메뉴를 상담 신청 버튼 쪽으로 붙인다. 데스크톱만 (모바일은 햄버거 메뉴). */
@media (min-width: 961px) {
  .site-header .nav { margin-left: auto; margin-right: 2.5rem; }
}


/* ── 상담 신청 팝업 (2026-09-17) ─────────────────────────────
   헤더 「상담 신청」을 누르면 뜬다. 필드: 분야 · 이름 · 연락처 + 개인정보 동의.
   JS 가 없으면 버튼은 원래대로 contact.html 로 이동한다. */
.consult-modal { border: 0; padding: 0; border-radius: 10px; width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); box-shadow: var(--shadow-lg); color: var(--text); }
.consult-modal::backdrop { background: rgba(12, 27, 44, .55); }
.consult-form { position: relative; padding: 2rem 1.75rem 1.75rem; display: grid; gap: 1rem; }
.consult-form .dialog-title { font-size: 1.4rem; font-weight: 700; margin: 0; }
.consult-lead { margin: -.4rem 0 .2rem; color: var(--text-2); font-size: .92rem; }
.consult-close { position: absolute; top: .6rem; right: .6rem; width: 40px; height: 40px; border: 0; background: none; font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; }
.consult-close:hover { color: var(--text); }
.cf-field { display: grid; gap: .4rem; }
.cf-field > span, .cf-agree label span { font-size: .9rem; font-weight: 700; }
.consult-form em { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--red); margin-left: .25em; }
.cf-field select, .cf-field input { width: 100%; height: 48px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: var(--r); font: inherit; font-size: 1rem; color: var(--text); background: #fff; }
.cf-field select:focus, .cf-field input:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: transparent; }
.cf-field .is-invalid, .cf-agree.is-invalid { border-color: var(--red); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-agree { border: 1px solid var(--line); border-radius: var(--r); padding: .8rem .9rem; background: var(--bg-2); }
.cf-agree label { display: flex; align-items: flex-start; gap: .5rem; cursor: pointer; }
.cf-agree input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--red); flex: none; }
.cf-agree label span { font-weight: 600; }
.cf-agree details { margin-top: .5rem; font-size: .82rem; color: var(--text-2); }
.cf-agree summary { cursor: pointer; color: var(--muted); }
.cf-agree ul { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .2rem; }
.cf-msg { margin: 0; min-height: 1.2em; font-size: .88rem; color: var(--red); }
.cf-msg.ok { color: #1D7A46; }
.cf-submit { height: 52px; border: 0; border-radius: var(--r); background: var(--red); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.cf-submit:hover { background: var(--red-dark); }
.cf-submit[disabled] { opacity: .6; cursor: default; }
body.consult-open { overflow: hidden; }
@media (max-width: 480px) {
  .consult-modal { width: 100%; max-width: 100%; max-height: 92%; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .consult-form { padding: 1.75rem 1.25rem 1.25rem; }
}


/* ── 개인정보처리방침 박스 (2026-09-29) ─────────────────────────
   별도 페이지 없이 팝업으로 띄운다. 푸터 링크 · 상담 팝업 「전문 보기」에서 연다. */
.privacy-link { border: 0; padding: 0; background: none; font: inherit; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cf-agree .privacy-link { margin-top: .5rem; font-size: .82rem; color: var(--text-2); }
.privacy-modal { border: 0; padding: 0; border-radius: 10px; width: min(640px, calc(100% - 32px)); max-height: calc(100% - 48px); box-shadow: var(--shadow-lg); color: var(--text); display: none; }
.privacy-modal[open] { display: flex; flex-direction: column; }
.privacy-modal::backdrop { background: rgba(12, 27, 44, .6); }
.privacy-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1rem 1rem 1.75rem; border-bottom: 1px solid var(--line); }
.privacy-head .dialog-title { margin: 0; font-size: 1.3rem; font-weight: 700; }
.privacy-close { width: 40px; height: 40px; border: 0; background: none; font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; flex: none; }
.privacy-close:hover { color: var(--text); }
.privacy-body { overflow-y: auto; padding: 1.25rem 1.75rem 1.75rem; font-size: .9rem; line-height: 1.75; color: var(--text-2); overscroll-behavior: contain; }
.privacy-body h4 { margin: 1.4rem 0 .4rem; font-size: .98rem; color: var(--text); }
.privacy-body p { margin: 0 0 .5rem; }
.privacy-body ul { margin: 0 0 .5rem; padding-left: 1.1rem; }
.privacy-body strong { color: var(--text); }
.privacy-body a { color: inherit; }
.privacy-date { margin-top: 1.2rem !important; font-weight: 700; color: var(--text); }
body.privacy-open { overflow: hidden; }
@media (max-width: 480px) {
  .privacy-modal { width: 100%; max-width: 100%; max-height: 92%; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .privacy-head { padding-left: 1.25rem; }
  .privacy-body { padding: 1rem 1.25rem 1.5rem; }
}


/* ── 글 끝 상담 신청 박스 (2026-09-29) ─────────────────────────
   전화·카카오톡 문구 대신 상담 신청 팝업으로 연결한다(data-consult-open). */
.cta-consult { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin: 2.5em 0 1.5em; padding: 1.4rem 1.6rem; border-radius: var(--r); background: var(--bg-2); border-left: 4px solid var(--red); }
.cta-consult p { margin: 0; font-size: 1rem; color: var(--text); }
.cta-consult-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 1.6em; border-radius: var(--r); background: var(--red); color: #fff !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; transition: background .2s; }
.cta-consult-btn:hover { background: var(--red-dark); }
@media (max-width: 480px) { .cta-consult { padding: 1.2rem; } .cta-consult-btn { width: 100%; } }

/* ── 기업센터 분야 페이지 · 링크 (2026-10-13) ── */
.answer-box { margin: 1.6em 0; padding: 1.2em 1.4em; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.answer-box p { margin: .4em 0; }
.answer-box .answer-label { margin: 0 0 .6em; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--red); }
.related-list li { margin: .35em 0; }
.svc-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.svc-links a { display: inline-flex; align-items: center; height: 36px; padding: 0 1em; border: 1px solid var(--red); border-radius: 999px; color: var(--red); font-size: .9rem; font-weight: 600; text-decoration: none; }
.svc-links a:hover { background: var(--red); color: #fff; }
.footer-links { margin: .8rem 0 0; font-size: .85rem; }
.footer-links a { color: inherit; }
.lawyer-figure { display: flex; align-items: center; gap: 1.2rem; margin: 1.4em 0; }
.lawyer-figure img { width: 200px; height: auto; border-radius: var(--r); flex: none; }
.lawyer-figure figcaption { font-size: .95rem; }
@media (max-width: 480px) { .lawyer-figure img { width: 120px; } }

/* 카드 제목 h4 (2026-10-13) — h3 와 같은 굵기 */
.svc h4, .stage h4, .card h4, .process h4, .post h4, .press h4, .office-card h4, .card-f h4 { font-weight: 800; }
.list-title { font-size: 1.3rem; margin: 0 0 1.2rem; }
.answer-sec { padding-block: clamp(28px, 4vw, 44px) 0; }
.steps-list { margin: 0; padding-left: 1.2em; }
.steps-list li { margin: .6em 0; line-height: 1.7; }

/* ── 업무분야 드롭다운 (2026-10-13) ── */
.nav-dd { position: static; display: flex; align-items: center; }
.nav-dd > a { padding: .4em 0; }
.nav .dd { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 32px -14px rgba(18,40,63,.28); padding: 1.6rem var(--gutter, 24px); z-index: 60; }
.nav-dd:hover .dd, .nav-dd:focus-within .dd { display: block; }
.dd-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; max-width: 1180px; margin: 0 auto; }
.nav .dd a::after { display: none; }
.dd-head { display: block; font-weight: 800; font-size: .95rem; padding: 0 0 .5em !important; margin-bottom: .4em; border-bottom: 2px solid var(--text); }
.dd-head:hover { color: var(--red); }
.dd-col ul { list-style: none; margin: 0; padding: 0; }
.dd-col li a { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); padding: .32em 0 !important; }
.dd-col li a:hover { color: var(--red); }
@media (max-width: 960px) {
  .nav.open { max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-dd { display: block; }
  .nav-dd > a { display: block; padding: .9em 0; border-bottom: 1px solid var(--line); }
  .nav .dd { display: block; position: static; box-shadow: none; border: 0; padding: .2rem 0 .4rem 1rem; }
  .dd-grid { display: block; }
  .dd-col ul { display: none; }
  .dd-head { border: 0; font-weight: 600; font-size: .98rem; padding: .6em 0 !important; margin: 0; color: var(--muted); }
}
/* 마우스가 메뉴→펼침판으로 내려가는 동안 닫히지 않도록 헤더 높이 전체를 잡는다 */
@media (min-width: 961px) {
  .nav { align-self: stretch; align-items: center; }
  .nav-dd { align-self: stretch; }
}
/* 분야 페이지 바로가기 탭 — 현재 페이지 표시 */
.subnav a.on { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); padding-bottom: .5rem; }
.article > .meta:first-child { margin-top: 0; }
/* 홈 배너 아래 보이는 h1 (2026-10-13) */
.hero.hero-main .hero-caption { background: #fff; padding-block: clamp(28px, 4vw, 48px) clamp(8px, 2vw, 16px); }
.hero.hero-main .hero-caption h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--text); }
.hero.hero-main .hero-caption .lead { color: var(--text-2); max-width: 52em; margin-top: .9em; font-size: 1rem; line-height: 1.75; }
.hero.hero-main { display: block; }
.hero.hero-main .hero-caption .wrap > * { max-width: none; }
.hero.hero-main .hero-caption .lead { max-width: 52em; }
.hero.hero-main .hero-caption .wrap { padding-block: 0; }
/* 배너 안 바로가기 탭 (2026-10-13) — 제목·부제와 같은 왼쪽 선, 현재 페이지는 빨간 버튼 */
.page-hero .hero-tabs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.page-hero .hero-tabs a { display: inline-flex; align-items: center; height: 38px; padding: 0 1.1em; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; color: #E3E9F0; font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.page-hero .hero-tabs a:hover { border-color: #fff; color: #fff; }
.page-hero .hero-tabs a.on { background: var(--red); border-color: var(--red); color: #fff; }
.js .page-hero .hero-tabs { opacity: 0; transform: translateY(18px); animation: heroUp .8s cubic-bezier(.2,.7,.2,1) .55s forwards; }
@media (prefers-reduced-motion: reduce) { .js .page-hero .hero-tabs { opacity: 1; transform: none; animation: none; } }
@media (max-width: 640px) {
  .page-hero .hero-tabs { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--gutter, 16px)); padding-right: var(--gutter, 16px); scrollbar-width: none; }
  .page-hero .hero-tabs a { flex: none; height: 34px; font-size: .85rem; }
}

/* ── redesign 2026-10-13 (redesign-existing-projects) ── */
/* 제목 한 글자 줄넘김 방지, 본문 줄 끝 다듬기 */
h1, h2, h3, .page-hero h1 { text-wrap: balance; }
p, li { text-wrap: pretty; }
/* ① 카드 버튼을 바닥에 고정 — 카드마다 버튼 높이가 들쭉날쭉하던 것 */
.svc .svc-links { margin-top: auto; padding-top: .2rem; }
/* ② 고정 페이지 소개 문단 (박스 없음, 섹션 제목과 같은 왼쪽 선) */
.answer-sec { padding-block: clamp(36px, 5vw, 56px) 0; }
.page-intro { max-width: 46em; margin: 0; font-size: 1.08rem; line-height: 1.85; color: var(--text); }
/* ③ 기업·센터 페이지 리드 — 박스 대신 큰 글씨 문단 */
.article-lead { font-size: 1.1rem; line-height: 1.85; color: var(--text); margin: 1.4em 0 0; }
.article-lead.article-defs { color: var(--text-2); font-size: 1.02rem; margin-top: 1em; }
.article .toc.toc-light { background: none; border-left: 2px solid var(--line); border-radius: 0; padding: .2rem 0 .2rem 2.2rem; margin: 2.2rem 0 2.6rem; }
.article .toc.toc-light a { text-decoration: none; color: var(--text-2); }
.article .toc.toc-light a:hover { color: var(--red); }
section[id] { scroll-margin-top: 88px; }   /* 배너 버튼으로 섹션 이동 시 고정 메뉴에 제목이 가려지지 않게 */
