/* 다이렉트237 — 공통 스타일
   색상은 원본 사이트에서 추출한 블루(#1d67cd)를 기준으로 정리했다. */

:root {
  --blue-50: #eef4fd;
  --blue-100: #d7e5fa;
  --blue-500: #1d67cd;
  --blue-600: #1756ad;
  --blue-700: #123f7d;
  --navy: #0f2340;
  --ink: #16202e;
  --gray-600: #5b6675;
  --gray-400: #8e99a8;
  --gray-200: #dfe4ea;
  --gray-100: #eef1f5;
  --gray-50: #f7f9fb;
  --white: #fff;
  --accent: #ff7a1a;

  --wrap: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 35, 64, .06), 0 8px 24px rgba(15, 35, 64, .07);
  --shadow-lg: 0 2px 6px rgba(15, 35, 64, .08), 0 18px 48px rgba(15, 35, 64, .12);

  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
          'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* ───────── 헤더 ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
/* 회사 심볼 마크. 워드마크는 옆의 .brand-text 가 담당하므로 이미지는 심볼만 쓴다
   (원본 로고 파일의 하단 DIRECT237 글자는 잘라냈다 — 중복 표기 방지) */
.brand-mark { width: 36px; height: 36px; object-fit: contain; flex: none; }
.brand-text { font-weight: 700; font-size: 18px; letter-spacing: -.4px; color: var(--navy); }
.brand-text b { color: var(--blue-500); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-block; padding: 8px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--gray-600); text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--gray-100); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--blue-500); background: var(--blue-50); }
.site-nav a.nav-badge::before {
  content: 'NEW'; display: inline-block; margin-right: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: .3px;
  color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 4px;
  vertical-align: 1px;
}
.site-nav a.nav-cta {
  background: var(--blue-500); color: #fff; padding: 9px 16px;
}
.site-nav a.nav-cta:hover { background: var(--blue-600); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; padding: 10px;
  background: none; border: 1px solid var(--gray-200); border-radius: 9px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle span + span { margin-top: 5px; }

/* 헤더 한 줄에 필요한 화면 폭 (2026-09-15 실측, 메뉴 7개 + 언어 선택):
     기본 밀도  ko 1018 · zh 973 · en 1054 · vi 1075 · ru 1091px
     촘촘하게   ko  914 · zh 871 · ja 895 · en  950 · vi  970 · ru  985px
   원래 햄버거 전환은 900px 였는데, 언어 선택(약 100px)이 들어오며 901~1090px 에서 메뉴가 겹쳤다.
   → 1041~1180px 는 모든 언어를 촘촘하게, 1040px 이하는 햄버거.
     윈도 글꼴이 맥보다 조금 넓게 그려지는 것을 감안해 가장 긴 러시아어(985px)보다 여유를 둔다. */
@media (min-width: 1041px) and (max-width: 1180px) {
  .header-inner { gap: 12px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 8px 9px; font-size: 14px; }
  .site-nav a.nav-cta { padding: 9px 13px; }
  .lang-switch summary { padding: 0 9px; }
}
/* 번역 메뉴는 한국어보다 길어 넓은 화면에서도 촘촘하게 둔다 (러시아어 기본 밀도는 wrap 1120px 에 여유가 29px 뿐) */
@media (min-width: 1181px) {
  html:not([lang="ko"]) .site-nav { gap: 2px; }
  html:not([lang="ko"]) .site-nav a { padding: 8px 9px; font-size: 14px; }
  html:not([lang="ko"]) .site-nav a.nav-cta { padding: 9px 13px; }
}

@media (max-width: 1040px) {
  .header-inner { gap: 10px; }
  .nav-toggle { display: block; order: 2; margin-left: 0; }
  .lang-switch { order: 1; margin-left: auto; }
  .lang-menu a { padding: 11px 12px; font-size: 16px; }
  .site-nav {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--gray-200);
    padding: 12px 16px 18px; margin: 0;
    box-shadow: var(--shadow); display: none;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px; font-size: 16px; }
  .site-nav a.nav-cta { text-align: center; margin-top: 6px; }
}

@media (max-width: 900px) {
  .disclaimer-inner { flex-direction: column; gap: 14px; }
  .kdic-mark { width: 112px; }
}

/* ───────── 언어 선택 ───────── */
.lang-switch { position: relative; flex: none; }
.lang-switch summary {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 11px;
  font-size: 14px; font-weight: 700; color: var(--gray-600); white-space: nowrap;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 9px;
  cursor: pointer; list-style: none; user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover,
.lang-switch[open] summary { color: var(--ink); background: var(--gray-100); }
.lang-switch summary:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.lang-globe { width: 17px; height: 17px; flex: none; }
.lang-caret { width: 12px; height: 12px; flex: none; transition: transform .15s ease; }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 7px;
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.lang-menu a:hover { background: var(--gray-100); }
.lang-menu a[aria-current="true"] { color: var(--blue-500); background: var(--blue-50); }
.lang-menu a[aria-current="true"]::after { content: '✓'; font-weight: 800; }

/* ───────── 언어별 글꼴 ───────── */
/* 기본 글꼴 스택은 한글 우선이라, 윈도에서 맑은 고딕이 라틴·키릴·베트남어까지 그려 어색해진다 */
html[lang="en"], html[lang="ru"], html[lang="vi"] {
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
          'Noto Sans', system-ui, sans-serif;
}
html[lang="zh-Hans"] {
  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
          'Noto Sans SC', 'Segoe UI', system-ui, sans-serif;
}
html[lang="ja"] {
  --font: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic',
          'Meiryo', 'Noto Sans JP', system-ui, sans-serif;
}
/* keep-all 은 한국어 어절을 지키려는 설정 — 띄어쓰기가 없는 중국어·일본어에 걸면 줄이 안 바뀌어 화면 밖으로 넘친다 */
html[lang="zh-Hans"] body,
html[lang="ja"] body { word-break: normal; }

/* ───────── 섹션 공통 ───────── */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
section.alt { background: var(--gray-50); }

h1, h2, h3 { line-height: 1.35; letter-spacing: -.5px; margin: 0 0 16px; color: var(--navy); }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
h3 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; }
p { margin: 0 0 14px; }

.lead { font-size: clamp(16px, 1.9vw, 19px); color: var(--gray-600); }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--blue-500);
}
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; max-width: 640px; }

/* ───────── 버튼 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-outline { background: #fff; color: var(--blue-500); border-color: var(--blue-100); }
.btn-outline:hover { border-color: var(--blue-500); background: var(--blue-50); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-group { justify-content: center; }

/* ───────── 히어로 ───────── */
.hero {
  position: relative; padding: 96px 0 88px;
  background:
    radial-gradient(1000px 460px at 78% -12%, var(--blue-100), transparent 62%),
    linear-gradient(180deg, var(--blue-50), #fff 72%);
  border-bottom: 1px solid var(--gray-200);
}
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 52ch; }
.hero .btn-group { margin-top: 28px; }
/* 번역본 안내 한 줄 (예: 보험사 사이트는 한국어만 지원) */
.hero .hero-note { margin: 18px 0 0; font-size: 14px; color: var(--gray-600); }

/* ───────── 카드 ───────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.tips { counter-reset: tip; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tips li {
  counter-increment: tip; position: relative;
  padding: 16px 18px 16px 56px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  font-weight: 600; color: var(--ink);
}
.tips li::before {
  content: counter(tip); position: absolute; left: 18px; top: 15px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-500); font-size: 13px; font-weight: 800;
}

/* ───────── 보험사 비교 그리드 ───────── */
.insurers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.insurer {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.insurer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px; border-bottom: 1px solid var(--gray-100); background: var(--gray-50);
  min-height: 78px;
}
.insurer-head h3 { margin: 0; font-size: 17px; }
/* 회사명 텍스트 대신 로고가 헤더를 채운다.
   원본 높이 80px 자산을 40px 로 표시 — 고밀도 화면에서 2배수라 선명하다. */
.insurer-logo {
  height: 40px; width: auto; max-width: 100%;
  object-fit: contain; object-position: left center; flex: 0 1 auto; min-width: 0;
}
/* 원본 사이트처럼 로고 자체가 대표 견적 링크다 */
.insurer-logo-link { display: inline-flex; min-width: 0; border-radius: 6px; }
.insurer-logo-link:hover { opacity: .78; }
.insurer-logo-link:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }

/* 로고가 회사명을 대신하므로 제목은 화면에서 숨기되 DOM 에는 남긴다 (스크린리더·SEO) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.insurer-tel {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--blue-500); text-decoration: none;
  background: var(--blue-50); border-radius: 999px; padding: 5px 11px; white-space: nowrap;
}
/* 대표번호가 둘 이상인 보험사용 */
.insurer-tels { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

/* 로고가 정사각 아이콘이라 회사명이 드러나지 않는 경우 로고 옆에 이름을 붙인다
   (캐롯이 이 경우였으나 2026-08-21 워드마크 로고로 교체돼 현재 사용처 없음 — 향후 대비용) */
.insurer-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.insurer-name {
  margin: 0; font-size: 17px; font-weight: 700;
  color: var(--navy); white-space: nowrap;
}
/* 링크는 버튼이 아닌 텍스트 링크로 표시한다 — 항목이 많아 버튼이면 시선이 분산된다 */
.insurer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 18px 20px; margin: 0; }
.insurer-links a {
  font-size: 15px; font-weight: 600; color: var(--blue-500);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--blue-100);
}
.insurer-links a:hover { color: var(--blue-700); text-decoration-color: currentColor; }
.insurer-links .muted { font-size: 15px; font-weight: 500; color: var(--gray-400); }

/* ───────── 폼 ───────── */
.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--navy); }
.field .req { color: #d92d20; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--gray-400); }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--gray-600); }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.form-msg { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-msg.ok { display: block; background: #e9f7ef; color: #106b35; }
.form-msg.err { display: block; background: #fdecea; color: #a4262c; }

/* ───────── 블로그 ───────── */
.post-list { display: grid; gap: 16px; }
.post-item {
  display: block; padding: 24px 26px; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.post-item:hover { border-color: var(--blue-500); box-shadow: var(--shadow-lg); }
.post-item h3 { margin-bottom: 6px; color: var(--navy); }
.post-meta { font-size: 13px; color: var(--gray-400); }

.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: clamp(20px, 2.6vw, 25px); margin-top: 40px; }
.article .qa { margin: 14px 0 0; padding: 18px 20px; border-radius: var(--radius-sm); }
.article .qa.q { background: var(--gray-50); border: 1px solid var(--gray-200); }
.article .qa.a { background: var(--blue-50); border: 1px solid var(--blue-100); }
.article .qa strong { display: block; margin-bottom: 6px; color: var(--blue-700); }

/* ───────── 고지 문구 ───────── */
.disclaimer { background: var(--gray-50); border-top: 1px solid var(--gray-200); padding: 34px 0; }
/* 예금보험공사 마크는 고지 문구 왼쪽에 고정 폭으로 세우고, 본문만 남은 폭을 쓴다. */
.disclaimer-inner { display: flex; align-items: flex-start; gap: 22px; }
.disclaimer-body { min-width: 0; }
.kdic-mark { flex: 0 0 auto; width: 132px; height: auto; margin-top: 2px; }
.disclaimer p { font-size: 12px; line-height: 1.75; color: var(--gray-400); margin: 0 0 10px; }
.disclaimer .codes { font-size: 11px; color: var(--gray-400); }
.disclaimer .disclaimer-note { font-weight: 700; color: var(--gray-600); }
.disclaimer .codes span { display: inline-block; margin: 0 10px 4px 0; }

/* ───────── 푸터 ───────── */
.site-footer { background: var(--navy); color: #b9c6d8; padding: 46px 0 38px; }
.foot-brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: -.4px; }
.foot-brand b { color: #6fa8f5; }
.foot-info p { margin: 0 0 4px; font-size: 14px; }
.site-footer a { color: #b9c6d8; }
.copy { margin: 20px 0 0; font-size: 13px; color: #7f90a8; }

/* ───────── 허위 신청 경고 (상담 신청 폼) ───────── */
.notice-warn {
  margin: 0;
  padding: 13px 15px;
  font-size: 13.5px; line-height: 1.6; font-weight: 600; color: #a4262c;
  background: #fdecea; border: 1px solid #f3c7c3; border-radius: var(--radius-sm);
}

/* 신청 직전 경고 팝업 — 기본 숨김, JS 가 hidden 속성을 떼면 표시된다. */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 35, 64, .58); }
.modal-card {
  position: relative;
  width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 26px 26px 22px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.modal-title {
  position: relative; margin: 0 0 15px; padding-left: 31px;
  font-size: 20px; line-height: 1.4; color: var(--navy);
}
.modal-title::before { content: '⚠️'; position: absolute; left: 0; top: 0; }
.modal-body { font-size: 14.5px; line-height: 1.65; color: var(--gray-600); }
.warn-list { margin: 0; padding-left: 18px; display: grid; gap: 9px; }
.warn-list b { color: #a4262c; }
.warn-foot { margin: 15px 0 0; font-size: 13px; color: var(--gray-400); }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; padding: 13px 18px; font-size: 15px; }
body.modal-open { overflow: hidden; }

@media (max-width: 560px) {
  .modal { padding: 14px; }
  .modal-card { padding: 22px 20px 18px; }
  .modal-actions { flex-direction: column-reverse; }
}

/* ───────── 접근성 ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
