:root {
  --blue: #1F66B5;
  --blue-deep: #143C6E;
  --blue-soft: #E8F1FB;
  --teal: #2E9E8F;
  --teal-soft: #E6F5F1;
  --ink: #1D2B3A;
  --body: #4A5868;
  --mute: #7B8896;
  --line: #E1E8F0;
  --bg: #FFFFFF;
  --tint: #F4F8FC;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 14px 40px rgba(20, 60, 110, .09);
  --font-body: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-head: 'NanumSquareRound', 'Pretendard Variable', Pretendard, 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--body); background: var(--bg); font-size: 17px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.35; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(800px, 100% - 40px); }

/* 브랜드 */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__symbol { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__tag { font-family: var(--font-head); font-size: 11px; font-weight: 700; color: var(--teal); letter-spacing: .08em; }
.brand__name { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--blue-deep); letter-spacing: -.03em; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__tag { color: #8FE3CF; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 16.5px; line-height: 1.2; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(31, 102, 181, .28); }
.btn--primary:hover { background: #1A5AA2; }
.btn--white { background: #fff; color: var(--blue-deep); box-shadow: 0 10px 28px rgba(8, 30, 60, .25); }
.btn--ghost { border-color: rgba(255, 255, 255, .65); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 14.5px; color: var(--teal); margin-bottom: 14px; letter-spacing: .02em; }
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow--light { color: #9BE8D6; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--teal-soft); color: #1F7F72; font-size: 13px; font-weight: 700; }

/* 헤더 */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.nav { display: flex; gap: 28px; margin-left: auto; font-weight: 600; color: var(--ink); font-size: 16px; }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); border-color: var(--blue); }
.header__cta { padding: 11px 22px; font-size: 15.5px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--blue-deep); margin: 5px 0; }

/* 히어로 */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15, 48, 92, .94) 0%, rgba(20, 66, 122, .86) 42%, rgba(31, 102, 181, .45) 75%, rgba(46, 158, 143, .25) 100%); }
.hero__inner { position: relative; padding: 112px 0 104px; max-width: 1160px; }
.hero h1 { color: #fff; font-size: clamp(31px, 5vw, 54px); font-weight: 800; max-width: 15em; }
.hero h1 em { font-style: normal; color: #9BE8D6; }
.hero__lead { margin: 24px 0 34px; max-width: 35em; font-size: clamp(16.5px, 1.6vw, 19px); color: rgba(255, 255, 255, .92); }
.hero__lead strong { color: #fff; border-bottom: 2px solid #9BE8D6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero__chips li { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); font-size: 14.5px; font-weight: 600; }
.hero__chips li::before { content: '✓ '; color: #9BE8D6; }

/* 섹션 공통 */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--navy { background: linear-gradient(140deg, #123760 0%, #1B58A6 100%); }
.section--flush { padding-top: 48px; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section__head p:last-child { margin: 14px 0 0; }
.section__head--light h2 { color: #fff; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; flex-wrap: wrap; }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__copy h2 { font-size: clamp(25px, 3.2vw, 36px); font-weight: 800; margin-bottom: 22px; }
.split__copy strong { color: var(--blue-deep); }
.split__copy .btn { margin-top: 12px; }
.signature { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--blue); margin-top: 22px; }

.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-family: var(--font-head); font-weight: 800; margin-bottom: 18px; }
.card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.card p { margin: 0; font-size: 15.5px; }

.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checks li::before { content: ''; position: absolute; left: 0; top: .42em; width: 19px; height: 19px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks strong { color: var(--ink); }
.checks--light li { color: rgba(255, 255, 255, .92); }

.info { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; margin-top: 44px; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.info__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.info__copy { padding: 44px 46px; }
.info__copy h3 { font-size: 25px; font-weight: 800; margin-bottom: 14px; color: var(--blue-deep); }
.info__copy .checks { margin: 20px 0 24px; font-size: 16px; }

.promise { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 36px 30px; color: rgba(255, 255, 255, .88); }
.promise__icon { width: 62px; height: 62px; border-radius: 18px; background: rgba(155, 232, 214, .16); color: #9BE8D6; display: grid; place-items: center; margin-bottom: 22px; }
.promise__icon svg { width: 34px; height: 34px; }
.promise h3 { color: #fff; font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.promise p { margin: 0; font-size: 16px; }

.case { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case img { width: 100%; aspect-ratio: 820 / 740; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.case figcaption { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 2px; }
.case strong { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 18px; }
.case span { font-size: 14.5px; color: var(--mute); }
.case b { align-self: flex-start; margin-top: 6px; font-family: var(--font-head); font-size: 29px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; line-height: 1.25; background: linear-gradient(transparent 62%, #CFE8FF 62%); padding: 0 4px; }
.amount { font-family: var(--font-head); font-weight: 800; font-size: 1.18em; color: var(--blue) !important; background: linear-gradient(transparent 62%, #CFE8FF 62%); padding: 0 3px; white-space: nowrap; }

.story { display: grid; grid-template-columns: .8fr 1.2fr; margin-top: 30px; border-radius: var(--radius); overflow: hidden; background: var(--blue-soft); }
.story__media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.story__copy { padding: 44px 46px; }
.story__copy h3 { font-size: 24px; font-weight: 800; margin: 14px 0 14px; }
.story__copy strong { color: var(--blue-deep); }
.story__calc { display: inline-block; margin: 6px 0 0; padding: 12px 18px; border-radius: var(--radius-sm); background: #fff; font-weight: 700; color: var(--blue-deep); font-size: 16px; }
.fineprint { margin: 22px 0 0; font-size: 14px; color: var(--mute); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 32px 26px; border: 1px solid var(--line); }
.steps li:not(:last-child)::after { content: ''; position: absolute; right: -17px; top: 50px; width: 12px; height: 12px; border-top: 2.5px solid #A9C6E6; border-right: 2.5px solid #A9C6E6; transform: rotate(45deg); z-index: 1; }
.steps__num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 800; margin-bottom: 16px; }
.steps h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 15.5px; }

/* News */
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-soft); }
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card__thumb img { transform: scale(1.04); }
.news-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.news-card h3 { font-size: 19.5px; font-weight: 800; margin: 12px 0 8px; }
.news-card p { font-size: 15px; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); font-size: 15px; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative; font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q.'; color: var(--teal); margin-right: 8px; }
.faq summary::after { content: ''; position: absolute; right: 24px; top: 26px; width: 10px; height: 10px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { margin: 0; padding: 0 24px 22px; }

/* 상담 신청 */
.consult { position: relative; padding: 96px 0; background: linear-gradient(120deg, rgba(15, 48, 92, .95), rgba(27, 88, 166, .9)), url('/assets/photos/consult-docs.jpg') center / cover; color: #fff; }
.consult__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.consult__copy { position: sticky; top: 110px; }
.consult__copy h2 { color: #fff; font-size: clamp(25px, 3.2vw, 36px); font-weight: 800; margin-bottom: 20px; }
.consult__copy p { color: rgba(255, 255, 255, .9); }
.consult__copy .checks { margin-top: 26px; }
.consult__form { background: #fff; border-radius: var(--radius); padding: 30px 26px 22px; box-shadow: 0 24px 60px rgba(4, 20, 44, .35); color: var(--body); }
.consult__form h3 { text-align: center; font-size: 22px; font-weight: 800; color: var(--blue-deep); margin-bottom: 14px; }
.consult__form iframe { display: block; min-height: 520px; border: 0; }
.consult__grid > * { min-width: 0; }
.form-fit { overflow: hidden; max-width: 100%; }
.form-fit iframe { transform-origin: 0 0; }

.notice { background: #EDF3F9; padding: 30px 0; font-size: 14px; color: #5A6878; }
.notice strong { display: block; color: var(--ink); margin-bottom: 6px; font-size: 14.5px; }
.notice p { margin: 0; line-height: 1.8; }

.footer { background: #0F2F56; color: rgba(255, 255, 255, .72); padding: 64px 0 96px; font-size: 15px; }
.footer__top { display: grid; grid-template-columns: 1.3fr .6fr 1.1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer__brand p { margin: 18px 0 0; max-width: 26em; line-height: 1.8; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 16px; letter-spacing: .02em; }
.footer__links { display: grid; gap: 9px; }
.footer__links a:hover { color: #fff; }
.footer__links--wide { gap: 11px; }
.footer__links--wide a { position: relative; padding-left: 16px; line-height: 1.55; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; }
.footer__links--wide a::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #5FD0B5; }
.footer__links--wide a:hover { text-decoration-color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 28px; font-size: 13.5px; }
.footer__bottom p { flex-basis: 100%; margin: 0 0 8px; line-height: 1.8; opacity: .85; }
.footer__bottom a { color: #9BE8D6; font-weight: 700; }

.floating-cta { display: none; }
.to-top { position: fixed; right: 24px; bottom: 28px; z-index: 41; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--blue); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 26px rgba(20, 60, 110, .2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s, background .2s, color .2s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); color: #fff; }

/* News 목록 · 글 */
.page-head { background: linear-gradient(180deg, var(--blue-soft), #fff); padding: 72px 0 24px; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.page-head p:last-child { max-width: 36em; margin: 0; }

.article__head { background: linear-gradient(180deg, var(--blue-soft), #fff); padding: 56px 0 28px; }
.crumb { display: block; margin-bottom: 22px; color: var(--blue); font-weight: 700; font-size: 15px; }
.article__head h1 { font-size: clamp(27px, 4vw, 40px); font-weight: 800; margin: 14px 0 14px; }
.article__desc { font-size: 18px; margin: 0 0 14px; }
.article__head time { color: var(--mute); font-size: 14.5px; }
.article__cover img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; border-radius: var(--radius); margin: 8px 0 44px; }
.prose { font-size: 17.5px; line-height: 1.9; color: #3D4A59; }
.prose h2 { font-size: 25px; font-weight: 800; margin: 52px 0 16px; padding-left: 14px; border-left: 5px solid var(--teal); }
.prose h3 { font-size: 20px; font-weight: 800; margin: 34px 0 10px; color: var(--blue-deep); }
.prose p { margin: 0 0 1.15em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--teal); font-weight: 700; }
.prose blockquote strong { font-family: var(--font-head); font-weight: 800; font-size: 1.12em; color: var(--blue-deep); background: linear-gradient(transparent 62%, #BFE9DD 62%); padding: 0 3px; }
.prose blockquote { margin: 28px 0; padding: 22px 26px; border-radius: var(--radius-sm); background: var(--teal-soft); color: #23594F; font-weight: 500; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
.prose img { border-radius: var(--radius-sm); margin: 26px 0; }
.table-wrap { overflow-x: auto; margin: 22px 0 28px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 460px; }
.prose th { background: var(--blue-soft); color: var(--blue-deep); font-weight: 700; text-align: left; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.article__note { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.7; color: var(--mute); }
.article__cta { margin: 56px 0 80px; padding: 40px 36px; border-radius: var(--radius); background: var(--blue-soft); text-align: center; }
.article__cta h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.article__cta p { max-width: 30em; margin: 0 auto 22px; }

@media (max-width: 1020px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .nav { gap: 20px; font-size: 15px; }
}
@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .header__inner { height: 64px; gap: 10px; }
  .header__cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; display: none; box-shadow: 0 20px 30px rgba(20, 60, 110, .08); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .brand__symbol { width: 38px; height: 38px; }
  .brand__name { font-size: 17.5px; }
  .brand__tag { font-size: 10px; }
  .hero__inner { padding: 72px 0 68px; }
  .section, .consult { padding: 68px 0; }
  .split, .consult__grid, .info, .story { grid-template-columns: 1fr; gap: 32px; }
  .info, .story { gap: 0; }
  .split--reverse .split__media { order: 0; }
  .info__copy, .story__copy { padding: 30px 24px; }
  .info__media img, .story__media img { min-height: 0; aspect-ratio: 16 / 9; }
  .cards--3 { grid-template-columns: 1fr; }
  .consult__copy { position: static; }
  .consult__form { padding: 18px 6px 10px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .floating-cta { display: block; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40; text-align: center; padding: 16px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 12px 30px rgba(15, 48, 92, .4); transition: opacity .2s, transform .2s; }
  .to-top { right: 16px; bottom: 84px; width: 46px; height: 46px; }
  .floating-cta.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
}
@media (max-width: 520px) {
  .cards--4, .steps { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .case b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
