:root {
  color-scheme: light;
  --ink: #13233a;
  --muted: #5e6b7c;
  --line: #dce3eb;
  --soft: #f4f7fa;
  --navy: #0b172a;
  --blue: #1665d8;
  --blue-dark: #0d4da9;
  --mint: #dff8ef;
  --mint-ink: #0f664f;
  --amber: #fff3d6;
  --amber-ink: #875500;
  --danger: #b42318;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 18px 50px rgb(16 35 63 / 10%);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); line-height: 1.65; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.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; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 12px; }
.skip-link:focus { left: 10px; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgb(220 227 235 / 90%); background: rgb(255 255 255 / 92%); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 46px; aspect-ratio: 1; overflow: hidden; border: 1px solid #e2e7ed; border-radius: 13px; background: #fff; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.desktop-nav { display: flex; gap: 26px; }
.desktop-nav a, .mobile-nav nav a { color: #344258; text-decoration: none; font-size: .93rem; font-weight: 700; }
.desktop-nav a:hover, .mobile-nav nav a:hover { color: var(--blue); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { display: grid; place-content: center; gap: 4px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; width: 18px; height: 2px; border-radius: 999px; background: var(--ink); }
.mobile-nav nav { position: absolute; top: calc(100% + 12px); right: 0; display: grid; width: min(280px, calc(100vw - 28px)); padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.mobile-nav nav a { padding: 11px 12px; border-radius: 10px; }

.hero { padding: 96px 0 78px; color: #fff; background: radial-gradient(circle at 78% 24%, #1d67c9 0, transparent 28%), linear-gradient(135deg, #091426, #102a4d 63%, #0e4779); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 58px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; color: #bcd7ff; background: rgb(255 255 255 / 9%); font-size: .82rem; font-weight: 800; letter-spacing: .03em; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.035em; }
h1 { margin: 22px 0; font-size: clamp(2.4rem, 6vw, 4.4rem); }
.hero p { max-width: 650px; color: #d7e4f6; font-size: clamp(1.03rem, 2vw, 1.22rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 20px; border: 1px solid transparent; border-radius: 13px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 800; }
.button:hover { background: var(--blue-dark); }
.button.secondary { border-color: rgb(255 255 255 / 28%); background: rgb(255 255 255 / 8%); }
.button.ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.hero-card { padding: 28px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 26px; background: rgb(255 255 255 / 9%); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.hero-card h2 { margin: 0 0 20px; font-size: 1.1rem; }
.cost-lines { display: grid; gap: 13px; }
.cost-line { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid rgb(255 255 255 / 12%); color: #dce8f8; }
.cost-line strong { color: #fff; white-space: nowrap; }
.cost-total { margin-top: 18px; padding: 18px; border-radius: 16px; color: #0e243d; background: #fff; }
.cost-total span, .cost-total strong { display: block; }
.cost-total strong { margin-top: 3px; font-size: 1.6rem; }

.section { padding: 82px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { margin: 10px 0 12px; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section-head p { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 28px rgb(16 35 63 / 5%); }
.card h3 { margin: 16px 0 8px; }
.card p { margin: 0; color: var(--muted); }
.number { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 12px; color: #fff; background: var(--navy); font-weight: 900; }
.notice { padding: 18px 20px; border-left: 4px solid var(--blue); border-radius: 10px; background: #edf5ff; }

.page-hero { padding: 64px 0 42px; background: linear-gradient(180deg, #eef5ff, #fff); }
.page-hero h1 { margin: 12px 0; color: var(--navy); font-size: clamp(2rem, 5vw, 3.4rem); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.content-narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.article { padding: 54px 0 90px; }
.article h2 { margin-top: 44px; font-size: 1.6rem; }
.article p, .article li { color: #3e4b5e; }
.article-table { width: 100%; border-collapse: collapse; margin: 25px 0; }
.article-table th, .article-table td { padding: 13px 12px; border: 1px solid var(--line); text-align: left; }
.article-table th { background: var(--soft); }
.article code { padding: 2px 6px; border-radius: 6px; color: var(--blue-dark); background: #edf5ff; font-family: inherit; font-weight: 800; }
.article-meta { color: var(--muted); font-size: .84rem; font-weight: 700; }
.summary-box { padding: 22px 24px; border: 1px solid #b6ebd9; border-radius: 16px; background: var(--mint); color: var(--mint-ink); }
.summary-box > strong { font-size: 1.05rem; }
.summary-box ul { margin-bottom: 0; padding-left: 20px; }
.summary-box li { color: var(--mint-ink); }
.formula-box { margin: 25px 0; padding: 22px; border-radius: 16px; color: #fff; background: var(--navy); }
.formula-box span, .formula-box strong { display: block; }
.formula-box span { color: #b9c9dc; font-size: .82rem; font-weight: 800; }
.formula-box strong { margin-top: 5px; font-size: 1.3rem; }
.formula-box p { margin-bottom: 0; color: #d6e0ed; }
.check-list { display: grid; gap: 10px; padding: 0; list-style: none; counter-reset: checks; }
.check-list li { display: grid; grid-template-columns: auto 150px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; counter-increment: checks; }
.check-list li::before { content: counter(checks); display: grid; place-items: center; width: 28px; aspect-ratio: 1; border-radius: 8px; color: #fff; background: var(--blue); font-size: .8rem; font-weight: 900; }
.check-list strong { color: var(--ink); }
.cta-panel { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-top: 42px; padding: 24px; border-radius: 18px; background: var(--soft); }
.cta-panel strong { font-size: 1.1rem; }
.cta-panel p { margin: 5px 0 0; }
.cta-panel .button { flex: none; }
.sources { margin-top: 46px; padding-top: 4px; border-top: 1px solid var(--line); }
.sources a { color: var(--blue-dark); text-underline-offset: 3px; }
.sources p { font-size: .88rem; }
.article-pagination { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-pagination a, .text-link { color: var(--blue-dark); font-weight: 800; text-underline-offset: 4px; }
.article-list { display: grid; gap: 16px; }
.article-card { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 28px rgb(16 35 63 / 5%); }
.article-card h2 { margin: 7px 0 8px; font-size: 1.35rem; }
.article-card h2 a { text-decoration: none; }
.article-card p { margin: 0; color: var(--muted); }
.article-list-empty { padding: 32px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.article-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.category-chip { display: inline-flex; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: #455268; background: #fff; text-decoration: none; font-size: .82rem; font-weight: 800; }
.category-chip:hover, .category-chip.active { border-color: var(--blue); color: var(--blue-dark); background: #edf5ff; }
.article-hero-image { margin: 0 0 32px; }
.article-hero-image img { display: block; width: 100%; height: auto; border-radius: 18px; }
.article-hero-image figcaption { margin-top: 8px; color: var(--muted); font-size: .82rem; }
.article figure.content-image { margin: 28px 0; }
.article figure.content-image img { display: block; max-width: 100%; height: auto; border-radius: 16px; }
.article figure.content-image figcaption { margin-top: 8px; color: var(--muted); font-size: .82rem; }
.site-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 680px; margin-top: 24px; }
.site-search-form input { min-height: 50px; }
.search-summary { margin: 0 0 22px; color: var(--muted); }
.search-mark { padding: 0 2px; background: #fff3a8; }

.calculator-wrap { padding: 34px 0 90px; background: var(--soft); }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.quote-panel { border: 1px solid var(--line); border-radius: 22px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.quote-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; color: #fff; background: var(--navy); }
.quote-head h2 { margin: 0; font-size: 1.3rem; }
.quote-head input { width: 150px; border: 1px solid rgb(255 255 255 / 24%); border-radius: 9px; padding: 8px 10px; color: #fff; background: rgb(255 255 255 / 10%); }
.form-section { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section h3 { margin: 0 0 5px; font-size: 1rem; }
.form-help { margin: 0 0 16px; color: var(--muted); font-size: .82rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; color: #354359; font-size: .82rem; font-weight: 800; }
.input-with-unit { position: relative; }
.input-with-unit input { padding-right: 48px; }
.unit { position: absolute; right: 12px; top: 50%; translate: 0 -50%; color: var(--muted); font-size: .82rem; pointer-events: none; }
input, select, textarea { width: 100%; min-height: 44px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 11px; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgb(22 101 216 / 16%); border-color: var(--blue); }
.field-status { margin-top: 5px; min-height: 34px; padding: 5px 8px; font-size: .76rem; }
.tool-actions { position: sticky; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 16px; border-top: 1px solid var(--line); background: rgb(255 255 255 / 94%); backdrop-filter: blur(12px); }
.results { margin-top: 26px; }
.results[hidden] { display: none; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.result-panel { padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.result-panel h2 { margin-top: 0; }
.primary-total { padding: 22px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #0d4da9, #1665d8); }
.primary-total span, .primary-total strong { display: block; }
.primary-total strong { margin-top: 5px; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.breakdown { display: grid; gap: 0; margin-top: 18px; }
.breakdown div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.breakdown dt { color: var(--muted); }
.breakdown dd { margin: 0; font-weight: 800; text-align: right; }
.conditional { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--amber); color: var(--amber-ink); }
.warnings { margin-top: 18px; padding: 0; list-style: none; }
.warnings li { margin-top: 8px; padding: 11px 13px; border-radius: 10px; background: #fff0ee; color: var(--danger); font-size: .88rem; }
.comparison-banner { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; padding: 20px 22px; border: 1px solid #b6ebd9; border-radius: 16px; background: var(--mint); color: var(--mint-ink); }
.comparison-banner strong { font-size: 1.2rem; }
.status-key { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.status-key li { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: .76rem; }

.site-footer { padding: 42px 0; color: #c5d1e2; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.site-footer p { max-width: 600px; color: #93a5bd; font-size: .86rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 13px; }
.footer-mark { display: grid; place-items: center; width: 50px; aspect-ratio: 1; overflow: hidden; border-radius: 13px; background: #fff; }
.footer-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.footer-brand strong, .footer-brand small { display: block; line-height: 1.2; }
.footer-brand strong { color: #fff; letter-spacing: .06em; }
.footer-brand small { margin-top: 4px; color: #93a5bd; font-size: .7rem; }
.site-footer .service-owner { margin-bottom: 0; color: #dce6f4; font-weight: 700; }
.company-link { display: inline-block; margin-top: 4px; color: #fff; font-size: .86rem; font-weight: 800; text-underline-offset: 4px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.footer-links a { text-decoration: none; font-size: .86rem; }
.footer-cookie-button { justify-self: start; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; font-size: .86rem; cursor: pointer; }
.footer-cookie-button:hover { text-decoration: underline; }

.consent-banner { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px; width: min(760px, calc(100% - 44px)); padding: 22px; border: 1px solid #29466b; border-radius: 18px; color: #fff; background: #0b172a; box-shadow: 0 20px 70px rgb(0 0 0 / 28%); }
.consent-banner[hidden] { display: none; }
.consent-copy strong { display: block; font-size: 1rem; }
.consent-copy p { margin: 7px 0 5px; color: #c9d7e9; font-size: .85rem; line-height: 1.55; }
.consent-copy a { color: #fff; font-size: .8rem; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 8px; }
.consent-button { min-height: 42px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.consent-button.primary { color: #fff; background: var(--blue); }
.consent-button.secondary { border-color: #58769e; color: #fff; background: transparent; }

@media (max-width: 860px) {
  .hero-grid, .tool-grid, .result-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .grid-3 { grid-template-columns: 1fr; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell, .content-narrow { width: min(100% - 26px, 1160px); }
  .header-inner { min-height: 66px; }
  .brand { gap: 9px; }
  .brand-mark { width: 41px; border-radius: 11px; }
  .brand small { display: none; }
  .hero { padding: 52px 0; }
  h1 { font-size: 2.3rem; }
  .section { padding: 60px 0; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .quote-head { align-items: flex-start; flex-direction: column; }
  .quote-head input { width: 100%; }
  .form-section { padding: 20px 17px; }
  .tool-actions .button { flex: 1 1 42%; padding-inline: 10px; }
  .comparison-banner { align-items: flex-start; flex-direction: column; }
  .article-table { display: block; overflow-x: auto; white-space: nowrap; }
  .check-list li { grid-template-columns: auto 1fr; }
  .check-list li span { grid-column: 2; }
  .cta-panel, .article-card, .article-pagination { align-items: flex-start; flex-direction: column; }
  .consent-banner { right: 13px; bottom: 13px; grid-template-columns: 1fr; width: calc(100% - 26px); padding: 18px; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .site-search-form { grid-template-columns: 1fr; }
}
