:root {
  --ink: #102238;
  --ink-soft: #32455a;
  --paper: #f7f4ee;
  --white: #fff;
  --line: #dcd7cc;
  --blue: #1457d9;
  --orange: #b93a1f;
  --lime: #d8f35a;
  --shadow: 0 20px 60px rgba(16, 34, 56, .09);
  --sans: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  --serif: "Nanum Myeongjo", "Iropke Batang", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #0b75ff; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -5rem; padding: .7rem 1rem; color: #fff; background: var(--ink); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(16,34,56,.12); background: rgba(247,244,238,.94); backdrop-filter: blur(16px); }
.header-inner { width: min(1180px, calc(100% - 40px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50% 50% 50% 18%; font-weight: 900; font-size: 1.25rem; transform: rotate(-4deg); }
.brand > span:last-child { display: grid; line-height: 1.08; }
.brand b { font-size: 1.05rem; letter-spacing: -.04em; }
.brand small { margin-top: .2rem; color: #56667a; font-size: .63rem; font-weight: 800; letter-spacing: .14em; }
.desktop-nav { display: flex; align-items: center; gap: 1.45rem; margin-left: auto; }
.desktop-nav a { position: relative; padding: 1.5rem 0; color: var(--ink-soft); font-size: .92rem; font-weight: 700; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 1rem; height: 2px; background: var(--blue); transition: right .2s ease; }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { right: 0; }
.consult-link { padding: .62rem 1rem; color: #fff; background: var(--ink); border-radius: 999px; font-size: .85rem; font-weight: 800; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: transparent; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; margin: auto; }
.mobile-nav { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 1.25rem; }
.mobile-nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 750; }

main { overflow: hidden; }
.home-hero { width: min(1180px, calc(100% - 40px)); min-height: 670px; margin: 0 auto; padding: 92px 0 74px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); align-items: center; gap: 5rem; }
.kicker, .section-heading span, .contact-band > div > span, .article-side span, .page-intro .kicker, .category-hero .kicker { display: block; margin: 0 0 1.1rem; color: var(--blue); font-size: .72rem; line-height: 1.2; font-weight: 900; letter-spacing: .16em; }
.hero-copy h1 { margin: 0; font-family: var(--serif); font-size: clamp(3.6rem, 7.4vw, 6.5rem); line-height: .98; letter-spacing: -.07em; font-weight: 700; }
.hero-copy h1 em { position: relative; color: var(--blue); font-style: normal; }
.hero-copy h1 em::after { content: ""; position: absolute; z-index: -1; left: -.05em; right: -.05em; bottom: .02em; height: .18em; background: var(--lime); transform: rotate(-1deg); }
.hero-copy > p:not(.kicker) { max-width: 700px; margin: 2rem 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.hero-actions { margin-top: 2rem; display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.primary-button { min-height: 50px; display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.2rem; color: #fff; background: var(--blue); border-radius: .45rem; font-weight: 850; transition: background .2s ease, transform .2s ease; }
.primary-button:hover { background: #0c46b8; transform: translateY(-2px); }
.primary-button svg, .text-button svg, .read-more svg, .category-card b svg, .contact-card svg { width: 19px; height: 19px; }
.text-button { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 850; border-bottom: 1px solid currentColor; }
.hero-board { position: relative; padding: 2.2rem; color: #fff; background: var(--ink); border-radius: 1.2rem; box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-board::before { content: ""; position: absolute; z-index: -1; inset: 16px -18px -18px 16px; border: 2px solid var(--blue); border-radius: inherit; }
.board-label { display: inline-block; padding: .32rem .55rem; color: var(--ink); background: var(--lime); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.hero-board ol { margin: 2.3rem 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.hero-board li { min-height: 58px; display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 1.08rem; font-weight: 750; }
.hero-board li b { color: #8baaff; font-size: .72rem; letter-spacing: .12em; }
.hero-board p { margin: 0; color: #cbd3dc; font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; }

.notice-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem; padding: 1.1rem max(20px, calc((100% - 1180px)/2)); color: #fff; background: var(--orange); }
.notice-strip b { padding: .2rem .55rem; color: var(--orange); background: #fff; border-radius: .3rem; font-size: .78rem; }
.notice-strip p { margin: 0; font-weight: 650; }
.notice-strip a { border-bottom: 1px solid #fff; font-weight: 850; white-space: nowrap; }

.section-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 105px 0; }
.section-heading { margin-bottom: 3rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .52fr); align-items: end; gap: 3rem; }
.section-heading.compact { grid-template-columns: 1fr auto; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.1; letter-spacing: -.055em; }
.section-heading p { margin: 0; color: var(--ink-soft); }
.featured-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.article-card { min-width: 0; background: #fff; }
.article-card a { height: 100%; min-height: 335px; padding: 2rem; display: flex; flex-direction: column; border-top: 5px solid var(--cat); transition: background .2s ease; }
.article-card a:hover { background: #fbfcff; }
.article-card.featured { grid-row: span 2; }
.article-card.featured a { min-height: 671px; justify-content: flex-end; background: var(--ink); color: #fff; }
.article-card.featured :is(h2, h3) { font-size: 2.3rem; }
.article-card.featured p { color: #c6d0da; }
.article-card.featured .card-category { color: #a9c0ff; }
.card-category { color: var(--cat); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.article-card :is(h2, h3) { margin: 1.25rem 0 .8rem; font-family: var(--serif); font-size: 1.55rem; line-height: 1.35; letter-spacing: -.04em; }
.article-card p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.read-more { margin-top: auto; padding-top: 1.5rem; display: inline-flex; align-items: center; gap: .45rem; font-size: .83rem; font-weight: 850; }

.category-section { background: var(--ink); color: #fff; }
.category-section .section-shell { padding-top: 90px; padding-bottom: 90px; }
.category-section .section-heading span { color: #9eb8ff; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.category-card { min-height: 270px; padding: 1.45rem; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.2); border-top: 5px solid var(--cat); transition: background .2s ease, transform .2s ease; }
.category-card:hover { background: rgba(255,255,255,.06); transform: translateY(-3px); }
.category-card > span { color: #9eaab7; font-size: 1.9rem; font-weight: 300; }
.category-card h3 { margin: 1.2rem 0 .65rem; font-family: var(--serif); font-size: 1.4rem; }
.category-card p { margin: 0; color: #bdc7d1; font-size: .86rem; }
.category-card b { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.article-grid .article-card { border: 1px solid var(--line); }
.category-context { margin-bottom: 2rem; padding: 1.7rem 1.8rem; border: 1px solid var(--line); background: #fff; }
.category-context > span { color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.category-context h2 { margin: .55rem 0 .65rem; font-family: var(--serif); font-size: 1.55rem; }
.category-context p { margin: 0; color: var(--ink-soft); line-height: 1.85; }
.contact-band { padding: 90px max(20px, calc((100% - 1180px)/2)); display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; color: #fff; background: var(--blue); }
.contact-band > div > span { color: #e1e9ff; }
.contact-band h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.12; letter-spacing: -.05em; }
.contact-band p { color: #d7e0fa; }
.contact-band dl { margin: 0; align-self: center; }
.contact-band dl div { padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.contact-band dt { margin-bottom: .3rem; color: #e1e9ff; font-size: .75rem; font-weight: 800; }
.contact-band dd { margin: 0; font-size: 1.2rem; font-weight: 750; }

.page-intro, .category-hero { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0 80px; }
.page-intro h1, .category-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(3.2rem, 7vw, 6rem); line-height: 1.02; letter-spacing: -.065em; }
.page-intro > p:last-child, .category-hero > p { max-width: 700px; margin: 1.7rem 0 0; color: var(--ink-soft); font-size: 1.1rem; }
.category-hero { position: relative; padding-left: 2rem; border-left: 8px solid var(--cat); }
.category-hero .kicker { color: var(--cat); }
.category-hero > span { display: inline-block; margin-top: 2rem; color: var(--cat); font-weight: 900; font-size: .75rem; letter-spacing: .12em; }
.category-list { grid-template-columns: repeat(2, 1fr); }
.category-next { margin-top: 3rem; padding: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border: 1px solid var(--line); }
.category-next p { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }

.library { padding-top: 20px; }
.library-tools { margin-bottom: 2.5rem; }
.search-box { max-width: 720px; height: 58px; display: flex; align-items: center; gap: .8rem; padding: 0 1rem; background: #fff; border: 1px solid var(--line); border-radius: .5rem; }
.search-box svg { width: 23px; height: 23px; color: #66768a; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.filter-chips { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chips button { min-height: 42px; padding: .5rem .9rem; color: var(--ink); background: transparent; border: 1px solid #b7b5ae; border-radius: 999px; cursor: pointer; transition: .2s ease; }
.filter-chips button:hover, .filter-chips button.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.library-tools > p { color: #627184; font-size: .85rem; }
.empty-state { padding: 5rem 1rem; text-align: center; }
.empty-state h2 { font-family: var(--serif); font-size: 2rem; }

.article-page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 40px; }
.article-header { max-width: 900px; padding: 80px 0 50px; }
.article-header nav { margin-bottom: 2.5rem; display: flex; gap: .55rem; color: #56677b; font-size: .82rem; }
.article-category { display: inline-block; margin-bottom: 1.2rem; padding: .35rem .65rem; color: #fff; background: var(--cat); font-size: .7rem; font-weight: 900; letter-spacing: .08em; }
.article-header h1 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1.08; letter-spacing: -.065em; }
.article-header > p { max-width: 760px; margin: 1.5rem 0 0; color: var(--ink-soft); font-size: 1.15rem; }
.article-meta { margin-top: 1.5rem; display: flex; gap: 1rem; color: #56677b; font-size: .78rem; }
.key-answer { margin-bottom: 4rem; padding: 2rem; display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; background: #fff; border: 1px solid var(--line); border-left: 8px solid var(--cat); box-shadow: var(--shadow); }
.key-answer b { color: var(--cat); }
.key-answer p { margin: 0; font-size: 1.02rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(250px, 1fr); gap: 5rem; align-items: start; }
.article-content section { padding: 0 0 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); }
.article-content h2 { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.28; letter-spacing: -.04em; }
.article-content p { margin: 0; color: #263c51; font-size: 1.04rem; line-height: 1.95; }
.article-caution { padding: 2rem !important; background: #fff0eb; border: 1px solid #efb3a3 !important; }
.article-caution h2 { color: #a4361d; }
.article-side { position: sticky; top: 104px; display: grid; gap: 1rem; }
.article-side > div { padding: 1.4rem; background: #fff; border: 1px solid var(--line); }
.article-side > div:first-child { border-top: 5px solid var(--cat); }
.article-side h2 { margin: 0 0 .7rem; font-family: var(--serif); }
.article-side a[href^="tel"] { display: block; color: var(--blue); font-size: 1.15rem; font-weight: 900; }
.article-side p { color: #536377; font-size: .88rem; }
.related { padding-top: 50px; }

.contact-grid { padding-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact-card { position: relative; min-height: 280px; padding: 2rem; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.contact-card.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.contact-card.primary p { color: #e1e9ff; opacity: 1; }
.contact-card > span { font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.contact-card h2 { margin: 3rem 0 .8rem; font-family: var(--serif); font-size: 1.7rem; }
.contact-card p { margin: 0; color: inherit; opacity: .78; }
.contact-card > svg { position: absolute; right: 1.5rem; bottom: 1.5rem; }
.message-guide { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; }
.message-guide > div > span { color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.message-guide h2 { margin: .9rem 0 0; font-family: var(--serif); font-size: 3rem; line-height: 1.18; }
.message-guide ol { margin: 0; padding: 0; list-style: none; }
.message-guide li { display: grid; grid-template-columns: 52px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.message-guide li b { color: var(--blue); font-size: .75rem; }
.message-guide li p { margin: 0; padding: 1rem 0; font-weight: 700; }
.privacy-note { grid-column: 2; margin: 0; padding: 1rem; color: #96351f; background: #fff0eb; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.principles article { padding: 2rem; background: #fff; border: 1px solid var(--line); }
.principles span { color: var(--blue); font-size: 2rem; font-weight: 300; }
.principles h2 { margin: 3rem 0 1rem; font-family: var(--serif); }
.company-panel { display: grid; grid-template-columns: .75fr 1.25fr; gap: 5rem; }
.company-panel > div > span { color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.company-panel h2 { margin: .8rem 0; font-family: var(--serif); font-size: 3rem; }
.company-panel dl { margin: 0; }
.company-panel dl div { padding: 1rem 0; display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--line); }
.company-panel dt { color: #56677b; font-size: .85rem; }
.company-panel dd { margin: 0; font-weight: 700; }
.policy-page { width: min(800px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0; }
.policy-page header { padding-bottom: 3rem; border-bottom: 3px solid var(--ink); }
.policy-page h1 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -.06em; }
.policy-page header > p:last-child { color: var(--ink-soft); }
.policy-page section { padding: 2.4rem 0; border-bottom: 1px solid var(--line); }
.policy-page h2 { font-family: var(--serif); font-size: 1.7rem; }
.policy-page section p { color: #30465a; }

.not-found { min-height: 650px; padding: 8rem 20px; text-align: center; }
.not-found > span { color: var(--blue); font-size: 6rem; font-weight: 200; }
.not-found h1 { margin: 0; font-family: var(--serif); font-size: 3rem; }
.not-found p { margin-bottom: 2rem; color: var(--ink-soft); }

.site-footer { color: #fff; background: #0b1929; }
.footer-top { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0; display: grid; grid-template-columns: 1.3fr .6fr 1fr; gap: 4rem; }
.footer-top .brand { margin-bottom: 1.2rem; }
.footer-top .brand small { color: #9daab9; }
.footer-top p { max-width: 440px; color: #9eabba; }
.footer-top > div:not(:first-child) { display: flex; flex-direction: column; gap: .55rem; }
.footer-top > div > b { margin-bottom: .4rem; color: #fff; }
.footer-top > div > a, .footer-top > div > span { color: #aeb9c6; font-size: .88rem; }
.footer-note { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 1.3rem 0; display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid rgba(255,255,255,.12); color: #7f8d9c; font-size: .78rem; }
.footer-note p { margin: 0; }
.floating-phone { position: fixed; z-index: 80; right: 22px; bottom: 22px; min-height: 50px; padding: .7rem 1rem; display: flex; align-items: center; gap: .55rem; color: #fff; background: var(--blue); border: 2px solid #fff; border-radius: 999px; box-shadow: 0 12px 32px rgba(15,44,90,.28); font-weight: 900; }
.floating-phone svg { width: 20px; height: 20px; }

@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .consult-link { margin-left: auto; }
  .menu-toggle { display: block; margin-left: 0; }
  .home-hero { grid-template-columns: 1fr .75fr; gap: 2.5rem; }
  .hero-copy h1 { font-size: clamp(3.4rem, 7vw, 5rem); }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .article-card.featured { grid-row: auto; grid-column: span 2; }
  .article-card.featured a { min-height: 460px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { gap: 2.5rem; }
}

@media (max-width: 760px) {
  .header-inner { width: min(100% - 28px, 1180px); min-height: 66px; }
  .brand-mark { width: 38px; height: 38px; }
  .consult-link { display: none; }
  .mobile-nav { width: min(100% - 28px, 1180px); }
  .home-hero { width: min(100% - 32px, 1180px); padding: 62px 0; grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-copy h1 { font-size: clamp(3.2rem, 15vw, 4.5rem); }
  .hero-copy > p:not(.kicker) { font-size: 1rem; }
  .hero-board { width: calc(100% - 18px); }
  .notice-strip { grid-template-columns: auto 1fr; padding: 1rem 16px; }
  .notice-strip a { grid-column: 2; }
  .section-shell { width: min(100% - 32px, 1180px); padding: 75px 0; }
  .section-heading, .section-heading.compact { grid-template-columns: 1fr; gap: 1rem; }
  .section-heading { margin-bottom: 2rem; }
  .featured-grid { grid-template-columns: 1fr; }
  .article-card.featured { grid-column: auto; }
  .article-card.featured a { min-height: 420px; }
  .article-card.featured :is(h2, h3) { font-size: 1.9rem; }
  .article-card a { min-height: 290px; padding: 1.5rem; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 230px; }
  .article-grid, .category-list { grid-template-columns: 1fr; }
  .contact-band { padding: 70px 16px; grid-template-columns: 1fr; gap: 2rem; }
  .page-intro, .category-hero { width: min(100% - 32px, 1180px); padding: 70px 0 55px; }
  .category-hero { padding-left: 1rem; }
  .category-next { align-items: flex-start; flex-direction: column; }
  .article-page { width: min(100% - 32px, 1180px); }
  .article-header { padding: 55px 0 35px; }
  .article-header h1 { font-size: clamp(2.65rem, 12vw, 4rem); }
  .key-answer { grid-template-columns: 1fr; padding: 1.5rem; }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .contact-grid, .principles { grid-template-columns: 1fr; }
  .message-guide, .company-panel { grid-template-columns: 1fr; gap: 2rem; }
  .privacy-note { grid-column: 1; }
  .company-panel dl div { grid-template-columns: 110px 1fr; }
  .footer-top { width: min(100% - 32px, 1180px); grid-template-columns: 1fr; gap: 2rem; }
  .footer-note { width: min(100% - 32px, 1180px); flex-direction: column; }
  .floating-phone { right: 14px; bottom: 14px; width: 52px; height: 52px; padding: 0; justify-content: center; }
  .floating-phone span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
