:root {
  --brand: #1a4b8c;
  --brand-dark: #0d2d57;
  --brand-soft: #e8f1fb;
  --accent: #e85d04;
  --ink: #1a1d24;
  --muted: #5b6472;
  --line: #e4e8ee;
  --bg: #f4f6f9;
  --card: #fff;
  --hero-from: #0d2d57;
  --hero-to: #1a4b8c;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 24, 40, .08);
}

[data-theme="mg"] {
  --brand: #0b3a82;
  --brand-dark: #071f4a;
  --brand-soft: #fff1e6;
  --accent: #ff6a00;
  --hero-from: #071f4a;
  --hero-to: #0b3a82;
}
[data-theme="db"] {
  --brand: #00823b;
  --brand-dark: #005c2a;
  --brand-soft: #e8f7ee;
  --accent: #00b050;
  --hero-from: #004b22;
  --hero-to: #00823b;
}
[data-theme="meritz"] {
  --brand: #ef3b24;
  --brand-dark: #b91c12;
  --brand-soft: #ffece8;
  --accent: #111;
  --hero-from: #1a1a1a;
  --hero-to: #ef3b24;
}
[data-theme="heungkuk"] {
  --brand: #351b6f;
  --brand-dark: #220f4a;
  --brand-soft: #fde8f4;
  --accent: #ec008c;
  --hero-from: #220f4a;
  --hero-to: #ec008c;
}
[data-theme="hyundai"] {
  --brand: #1f2a44;
  --brand-dark: #12182a;
  --brand-soft: #fff0e8;
  --accent: #f15a22;
  --hero-from: #12182a;
  --hero-to: #2c3a5c;
}
[data-theme="kb"] {
  --brand: #1a1208;
  --brand-dark: #000;
  --brand-soft: #fff7d6;
  --accent: #ffcc00;
  --hero-from: #1a1208;
  --hero-to: #3b2a10;
}
[data-theme="hanwha"] {
  --brand: #f37321;
  --brand-dark: #c45210;
  --brand-soft: #fff2e8;
  --accent: #111;
  --hero-from: #c45210;
  --hero-to: #f37321;
}
[data-theme="dongyang"] {
  --brand: #0a5ca8;
  --brand-dark: #063a6b;
  --brand-soft: #e7f2fb;
  --accent: #1ea0ff;
  --hero-from: #063a6b;
  --hero-to: #0a5ca8;
}
[data-theme="samsung"] {
  --brand: #003cdc;
  --brand-dark: #00248a;
  --brand-soft: #e6f7fc;
  --accent: #5bc2e7;
  --hero-from: #00248a;
  --hero-to: #003cdc;
}
[data-theme="shinhan"] {
  --brand: #5c2d91;
  --brand-dark: #3b1a63;
  --brand-soft: #f3eafb;
  --accent: #8b5cf6;
  --hero-from: #3b1a63;
  --hero-to: #5c2d91;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
body.notScroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px 48px; }

.header {
  position: sticky; top: 0; z-index: 40;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.header .logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: -.02em; font-size: 18px;
}
.header .logo img { height: 28px; width: auto; }
.header .logo small {
  display: inline-block; margin-left: 6px; padding: 2px 7px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark);
  font-size: 11px; font-weight: 700;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-tel {
  display: none; color: var(--brand-dark); font-weight: 800; font-size: 15px;
}
.menu {
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 18px 2px;
  background-position: center 13px, center 19px, center 25px;
}
.nav-dim { display: none; }
.nav {
  display: none; position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
  background: #fff; z-index: 80; padding: 24px 20px; box-shadow: -12px 0 30px rgba(0,0,0,.12);
}
body.nav-open .nav, body.nav-open .nav-dim { display: block; }
body.nav-open .nav-dim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 70; }
.nav a, .nav button {
  display: block; width: 100%; text-align: left; padding: 14px 0;
  border: 0; border-bottom: 1px solid var(--line); background: 0; font-size: 16px; font-weight: 700; cursor: pointer;
}
.nav a.is-on { color: var(--brand); }

.hero {
  position: relative; overflow: hidden; color: #fff;
  margin: 16px 0 20px; padding: 28px 22px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
}
.hero::after {
  content: ""; position: absolute; right: -40px; bottom: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
[data-theme="kb"] .hero { color: #111; }
[data-theme="kb"] .hero .hero-kicker,
[data-theme="kb"] .hero .hero-lead,
[data-theme="kb"] .hero .chip { color: #3b2a10; }
[data-theme="kb"] .hero h1 { color: #111; }
[data-theme="kb"] .hero { background: linear-gradient(135deg, #ffcc00, #ffe27a); }
.hero-kicker { margin: 0 0 8px; font-size: 13px; opacity: .86; font-weight: 700; }
.hero h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.28; letter-spacing: -.03em; }
.hero-lead { margin: 0 0 16px; font-size: 14px; opacity: .92; }
.hero-phone {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px;
}
.hero-phone b { font-size: 32px; letter-spacing: -.04em; }
.hero-phone span { font-size: 13px; opacity: .8; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 16px; border-radius: 12px; border: 0;
  font-weight: 800; cursor: pointer;
}
.btn-white { background: #fff; color: var(--brand-dark); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-line { background: #fff; color: var(--brand-dark); border: 1px solid var(--line); }
[data-theme="kb"] .btn-ghost { color: #111; border-color: rgba(0,0,0,.18); background: rgba(255,255,255,.35); }
[data-theme="kb"] .btn-brand, [data-theme="hanwha"] .btn-brand { color: #111; }
[data-theme="kb"] .btn-brand { background: #ffcc00; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.chip {
  padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.14);
  font-size: 12px; font-weight: 700;
}

.quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px;
}
.quick a, .quick button {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 6px 12px; text-align: center; cursor: pointer;
}
.quick i {
  display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 8px;
  border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-style: normal; font-weight: 800;
}
.quick span { display: block; font-size: 12px; font-weight: 700; letter-spacing: -.02em; }

.sec { margin: 28px 0; }
.sec h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.03em; }
.sec-desc { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.kicker { margin: 0 0 6px; color: var(--brand); font-size: 13px; font-weight: 800; }

.phone-grid { display: grid; gap: 10px; }
.phone-card {
  background: #fff; border-radius: 16px; padding: 16px 18px;
  border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.phone-card b { display: block; font-size: 20px; }
.phone-card small { color: var(--muted); }
.phone-card a { color: var(--brand); font-weight: 800; white-space: nowrap; }

.hours {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px;
}
.hours div {
  background: #fff; border-radius: 14px; padding: 14px; border: 1px solid var(--line);
}
.hours strong { display: block; margin-bottom: 4px; }
.hours span { color: var(--muted); font-size: 13px; }

.form-card {
  background: #fff; border-radius: 20px; padding: 22px 18px 18px;
  box-shadow: var(--shadow); border-top: 4px solid var(--brand);
}
.form-card h2 { margin-bottom: 4px; }
.field { margin: 12px 0; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; height: 48px; border: 1px solid #d7dee8; border-radius: 12px;
  padding: 0 14px; font-size: 16px; outline: none; background: #fafbfd;
}
.field input:focus { border-color: var(--brand); background: #fff; }
.sex { display: flex; gap: 8px; }
.sex label {
  flex: 1; height: 48px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #d7dee8; border-radius: 12px; font-weight: 700; cursor: pointer; background: #fafbfd;
}
.sex input { display: none; }
.sex input:checked + span,
.sex label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.submit-btn {
  width: 100%; height: 54px; margin-top: 8px; border: 0; border-radius: 14px;
  background: var(--brand); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer;
}
[data-theme="kb"] .submit-btn, [data-theme="hanwha"] .submit-btn { color: #111; }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; padding: 0 16px;
}
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

.guide-list { display: grid; gap: 10px; }
.guide-list article, .guide-card {
  display: block; background: #fff; border-radius: 14px; padding: 16px; border: 1px solid var(--line);
}
.guide-list h3, .guide-card h3 { margin: 0 0 6px; font-size: 16px; }
.guide-list p, .guide-card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.guide-card span { color: var(--brand); font-size: 13px; font-weight: 800; }
.article-grid, .article-stack { display: grid; gap: 14px; }
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px;
}
.article-card h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.02em; }
.article-card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.article-card p:last-child { margin-bottom: 0; }
.tip-grid { display: grid; gap: 10px; }
.tip-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.tip-card strong { display: block; margin-bottom: 6px; }
.tip-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hours b { display: block; margin: 4px 0; font-size: 15px; }

.footer {
  margin-top: 36px; padding: 22px 0 12px; color: #6b7280; font-size: 12px; line-height: 1.7;
  border-top: 1px solid var(--line);
}
.footer a { text-decoration: underline; }
.footer strong { color: #374151; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
}
.sticky-cta button {
  width: 100%; height: 48px; border: 0; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer;
}
[data-theme="kb"] .sticky-cta button, [data-theme="hanwha"] .sticky-cta button { color: #111; }

.complete-layer {
  display: none; position: fixed; inset: 0; z-index: 120;
  background: rgba(10, 16, 28, .55); align-items: center; justify-content: center; padding: 20px;
}
.complete-layer.is-open { display: flex; }
.complete-box {
  width: min(92vw, 400px); background: #fff; border-radius: 20px; padding: 28px 22px; text-align: center;
}
.complete-box h3 { margin: 0 0 8px; font-size: 22px; }
.complete-box p { margin: 0 0 18px; color: var(--muted); }
.complete-box button {
  width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800;
}

.sub-page .sub-wrap { background: #fff; min-height: 100vh; padding-bottom: 40px; }
.legal-body { font-size: 14px; color: #374151; }
.legal-body h2 { font-size: 16px; margin: 22px 0 8px; }

.page-hero { padding: 28px 0 8px; }
.page-hero h1 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.03em; }
.center-link { margin-top: 18px; text-align: center; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.legal-note { margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.svc-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.svc-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px;
}
.svc-card em {
  display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; font-style: normal; font-weight: 800;
}
.svc-card strong { display: block; font-size: 16px; }
.svc-card p { margin: 6px 0 10px; color: var(--muted); font-size: 13px; }
.svc-card span { color: var(--brand); font-size: 13px; font-weight: 700; }

.prod-grid { display: grid; gap: 12px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.prod-tag {
  display: inline-block; margin-bottom: 8px; color: var(--brand); font-size: 12px; font-weight: 800;
}
.prod-card h3 { margin: 0 0 6px; font-size: 18px; }
.prod-who { margin: 0 0 8px; color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.prod-card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.prod-card ul { margin: 0; padding-left: 18px; color: #374151; font-size: 14px; }
.prod-card li { margin-bottom: 4px; }
.prod-note { margin-top: 12px !important; font-size: 12px !important; }
.cover-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.cover-list span {
  padding: 4px 8px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 700;
}

.steps { display: grid; gap: 10px; }
.steps article {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.steps i {
  display: inline-flex; width: 24px; height: 24px; margin-bottom: 8px;
  align-items: center; justify-content: center; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 12px; font-style: normal; font-weight: 800;
}
[data-theme="kb"] .steps i, [data-theme="hanwha"] .steps i { color: #111; }
.steps strong { display: block; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.filter-tabs, .type-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-tabs button, .type-tabs button {
  height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}
.filter-tabs button.is-on, .type-tabs button.is-on {
  background: var(--brand); color: #fff; border-color: transparent;
}
[data-theme="kb"] .filter-tabs button.is-on,
[data-theme="hanwha"] .filter-tabs button.is-on,
[data-theme="kb"] .type-tabs button.is-on,
[data-theme="hanwha"] .type-tabs button.is-on { color: #111; }

.panel { display: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.panel.is-on { display: block; }
.panel h3 { margin: 0 0 8px; }
.panel > p { margin: 0 0 12px; color: var(--muted); }

.doc-box, .info-box {
  background: var(--bg); border-radius: 12px; padding: 14px; margin-top: 12px;
}
.doc-box strong, .info-box b { display: block; margin-bottom: 6px; }
.doc-box ul { margin: 0; padding-left: 18px; }
.info-box p { margin: 0 0 6px; font-size: 14px; }
.tip { margin: 12px 0 0; color: var(--brand-dark); font-size: 13px; font-weight: 700; }

.channel-grid { display: grid; gap: 10px; }
.channel-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.channel-card em { display: block; margin: 4px 0 8px; color: var(--brand); font-size: 13px; font-style: normal; font-weight: 700; }
.channel-card p { margin: 0; color: var(--muted); font-size: 14px; }

.check-grid { display: grid; gap: 10px; }
.check-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 40px;
  position: relative;
}
.check-card input { position: absolute; left: 14px; top: 18px; }
.check-card strong { display: block; }
.check-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.need-list { display: grid; gap: 10px; margin-bottom: 16px; }
.need-list label {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font-weight: 700;
}
.result-box {
  margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.change-list { display: grid; gap: 12px; }
.change-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.change-card h3 { margin: 0 0 8px; }
.change-card > p { margin: 0 0 10px; color: var(--muted); }
.ol-steps { margin: 0 0 14px; padding-left: 18px; }
.ol-steps li { margin-bottom: 8px; }

@media (min-width: 860px) {
  .header-inner { height: 72px; }
  .header-tel { display: block; }
  .menu { display: none; }
  .nav {
    display: flex; position: static; width: auto; box-shadow: none; padding: 0; gap: 18px; background: transparent;
  }
  .nav a, .nav button { border: 0; padding: 0; font-size: 15px; width: auto; }
  .hero { padding: 42px 40px; }
  .hero h1 { font-size: 36px; }
  .page-hero h1 { font-size: 34px; }
  .quick { grid-template-columns: repeat(8, 1fr); }
  .phone-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .change-list { grid-template-columns: 1fr 1fr; }
  .guide-list { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .tip-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.recent-news { padding: 40px 0 28px; }
.recent-news .container,
.recent-news .w1200,
.recent-news .inner { max-width: 1080px; }
.recent-news h1,
.recent-news h2 { margin: 0 0 10px; font-size: 36px; letter-spacing: -0.04em; font-weight: 800; }
.recent-news--page { padding-top: 8px; }
.recent-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #e6e6e6; }
.recent-list li { border-bottom: 1px solid #e6e6e6; }
.recent-list li:nth-child(even) { background: #fafafa; }
.recent-list a {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
}
.recent-list a:hover { color: #2b62b1; }
.recent-list time {
  flex: 0 0 128px;
  color: #8a8a8a;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.recent-list .ttl { flex: 1; min-width: 0; }
.recent-more { margin: 22px 0 0; text-align: center; }
.recent-more a { color: #2b62b1; font-size: 15px; text-decoration: none; }
.recent-more a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .recent-news h1,
  .recent-news h2 { font-size: 26px; }
  .recent-list a { display: block; padding: 14px 6px; }
  .recent-list time { display: block; margin-bottom: 4px; font-size: 13px; }
}

