:root {
  color-scheme: light;
  --ink: #20353a;
  --text: #40545a;
  --muted: #67777b;
  --primary: #0b6573;
  --primary-hover: #074f59;
  --primary-soft: #e8f5f3;
  --brand-cyan: #17c2d7;
  --accent: #b84f5a;
  --accent-strong: #943b47;
  --accent-soft: #fff0ee;
  --sand: #f8efe4;
  --lilac: #eeebfa;
  --sage: #e8f2eb;
  --surface: #fbf9f7;
  --surface-strong: #f0eeeb;
  --border: #e3dfda;
  --white: #fff;
  --danger: #b42318;
  --success: #087a55;
  --shadow-sm: 0 12px 34px rgba(40, 55, 58, .08);
  --shadow-md: 0 24px 70px rgba(40, 55, 58, .14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --layout-max: 1320px;
  --header-height: 80px;
  --section-space: clamp(80px, 6vw, 88px);
  --grid-gap: clamp(18px, 1.8vw, 22px);
  --content-gap: clamp(32px, 5vw, 72px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0, #fff 62%, #fdfbf9 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--primary-hover); }
button { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  transform: translateY(-150%);
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
}
.skip-link:focus { transform: none; }

.container {
  width: min(100% - 64px, var(--layout-max));
  margin-inline: auto;
}

.reading-width { max-width: 720px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; color: var(--ink); line-height: 1.18; letter-spacing: -.035em; }
h1 { margin-bottom: 24px; font-size: clamp(2.35rem, 5vw, 5.25rem); }
h2 { margin-bottom: 20px; font-size: clamp(1.9rem, 3.2vw, 3.25rem); }
h3 { margin-bottom: 12px; font-size: clamp(1.15rem, 1.7vw, 1.5rem); }
p { margin: 0 0 1em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(255, 253, 251, .92);
  border-bottom: 1px solid rgba(91, 78, 69, .1);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 32px rgba(16, 66, 70, .06);
}
.header-inner { display: flex; min-height: var(--header-height); align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; padding: 5px 8px; background: rgba(255,255,255,.7); border-radius: 14px; text-decoration: none; }
.brand img { width: 96px; height: auto; }
.desktop-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 5px;
  background: rgba(249, 246, 243, .9);
  border: 1px solid rgba(18, 106, 111, .12);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 12px 32px rgba(16, 66, 70, .08);
}
.desktop-nav .nav-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  color: #294c50;
  border-radius: 13px;
  font-size: .91rem;
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nav-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--primary);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(18, 106, 111, .12);
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(16, 66, 70, .08);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.nav-icon .icon { width: 18px; height: 18px; stroke-width: 1.9; }
.desktop-nav .nav-link[aria-current="page"] {
  color: var(--primary-hover);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(16, 66, 70, .1);
}
.desktop-nav .nav-link[aria-current="page"]::after {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 18px;
  height: 3px;
  content: "";
  background: var(--primary);
  border-radius: 999px;
  transform: translateX(-50%);
}
.desktop-nav .nav-cta {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), #087b84);
  box-shadow: 0 10px 22px rgba(18, 106, 111, .22);
}
.desktop-nav .nav-cta .nav-icon {
  color: var(--white);
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.24);
  box-shadow: none;
}
@media (hover: hover) {
  .desktop-nav .nav-link:not(.nav-cta):hover {
    color: var(--primary-hover);
    background: var(--white);
    box-shadow: 0 8px 22px rgba(16, 66, 70, .1);
    transform: translateY(-1px);
  }
  .desktop-nav .nav-link:not(.nav-cta):hover .nav-icon {
    background: var(--primary-soft);
    border-color: rgba(18, 106, 111, .2);
    transform: translateY(-1px);
  }
  .desktop-nav .nav-cta:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-hover), #056771);
    transform: translateY(-1px);
  }
}
.menu-toggle { display: none; margin-left: auto; }
.mobile-panel { display: none; }

.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-solid { fill: currentColor; stroke: none; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  color: var(--white);
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.button:hover { color: var(--white); background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-1px); }
.button-secondary { color: var(--ink); background: var(--white); border-color: var(--border); }
.button-secondary:hover { color: var(--primary); background: var(--primary-soft); border-color: var(--primary); }
.button-ghost { color: var(--primary); background: transparent; border-color: transparent; }
.button-ghost:hover { color: var(--primary-hover); background: var(--primary-soft); border-color: transparent; }
.button-block { width: 100%; }

.hero { padding: clamp(44px, 5vw, 80px) 0 64px; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 6% 16%, rgba(255, 224, 219, .72), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(232, 226, 250, .76), transparent 30%),
    linear-gradient(180deg, #fffdfb, #fff 78%);
}
.hero::after {
  position: absolute;
  right: -72px;
  bottom: 18px;
  z-index: -1;
  width: 190px;
  height: 190px;
  content: "";
  background: rgba(232, 242, 235, .8);
  border-radius: 44% 56% 62% 38% / 52% 42% 58% 48%;
  transform: rotate(16deg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); align-items: center; gap: var(--content-gap); }
.hero-copy { min-width: 0; }
.hero-copy h1 { max-width: 720px; text-wrap: balance; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; margin-bottom: 24px; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-highlights li { display: inline-flex; min-height: 34px; align-items: center; padding: 6px 12px; color: #5d4d4b; background: rgba(255,255,255,.72); border: 1px solid rgba(184,79,90,.16); border-radius: 999px; box-shadow: 0 8px 20px rgba(80,57,54,.06); font-size: .82rem; font-weight: 800; backdrop-filter: blur(10px); }
.hero-media { position: relative; min-width: 0; }
.hero-media::before {
  position: absolute;
  inset: -24px 28% 35% -28px;
  z-index: -1;
  content: "";
  background: linear-gradient(145deg, var(--accent-soft), var(--lilac));
  border-radius: 42% 58% 34% 66% / 54% 38% 62% 46%;
}
.hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 34px 34px 82px 34px; box-shadow: var(--shadow-md); }
.hero-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  max-width: 260px;
  padding: 16px 18px;
  color: var(--ink);
  background: rgba(255,255,255,.93);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px 18px 28px 18px;
  box-shadow: var(--shadow-sm);
  font-weight: 750;
}

.section { padding: var(--section-space) 0; }
.section-soft { background: linear-gradient(140deg, #fbf8f5 0%, #fff 48%, #f3f0fb 100%); }
.section-ink { color: #e5edef; background: linear-gradient(135deg, #20353a 0%, #173e43 58%, #4d3940 135%); }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading p { max-width: 600px; margin-bottom: 0; color: var(--muted); }
.section-ink .section-heading p { color: #c5d4d7; }

.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.choice-card {
  display: flex;
  min-width: 0;
  min-height: 204px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 26px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
}
.choice-card:nth-child(1) { background: linear-gradient(155deg, #fff, var(--accent-soft)); }
.choice-card:nth-child(2) { background: linear-gradient(155deg, #fff, var(--lilac)); }
.choice-card:nth-child(3) { background: linear-gradient(155deg, #fff, var(--sage)); }
.choice-card:hover { color: var(--ink); border-color: var(--primary); transform: translateY(-4px); }
.choice-icon { display: grid; width: 48px; height: 48px; place-items: center; color: var(--primary); background: rgba(255,255,255,.82); border: 1px solid rgba(11,101,115,.1); border-radius: 16px; box-shadow: 0 8px 20px rgba(47,61,63,.08); }
.choice-icon .icon { width: 26px; height: 26px; }
.choice-card p { margin-bottom: 22px; color: var(--muted); }
.card-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 800; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.product-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: 26px 26px 38px 26px; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 24px 54px rgba(40,55,58,.13); }
.product-card > a { display: flex; height: 100%; min-width: 0; flex-direction: column; color: inherit; text-decoration: none; }
.product-card picture { overflow: hidden; background: var(--surface-strong); }
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.product-card a:hover img { transform: scale(1.025); }
.card-body { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 20px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge { display: inline-flex; min-height: 28px; align-items: center; padding: 4px 10px; color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; font-size: .78rem; font-weight: 800; }
.product-card h3 { overflow-wrap: anywhere; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; color: var(--muted); font-size: .93rem; }

.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.proof-item { min-width: 0; }
.proof-number { margin-bottom: 16px; color: #ffaaa5; font-size: .85rem; font-weight: 850; letter-spacing: .12em; }

.cta-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 26px; padding: 38px; background: linear-gradient(125deg, var(--accent-soft), #fff8ee 52%, var(--lilac)); border: 1px solid rgba(184,79,90,.14); border-radius: 34px 34px 54px 34px; box-shadow: var(--shadow-sm); }
.cta-panel h2 { margin-bottom: 12px; }
.cta-panel p { max-width: 650px; margin-bottom: 0; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.page-hero { padding: 52px 0 44px; background: radial-gradient(circle at 88% 12%, rgba(238,235,250,.9), transparent 34%), linear-gradient(145deg, #fff7f3, var(--white)); border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 0 0 20px; padding: 0; color: var(--muted); font-size: .9rem; list-style: none; }
.breadcrumb a { color: inherit; }
.page-hero h1 { max-width: 900px; margin-bottom: 16px; font-size: clamp(2.25rem, 4.3vw, 4.35rem); }
.page-hero p { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }

.filter-bar { position: sticky; top: var(--header-height); z-index: 40; padding: 14px 0; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.filter-inner { display: flex; min-width: 0; align-items: center; gap: 10px; }
.filter-label { margin-right: 4px; color: var(--ink); font-weight: 800; }
.filter-chip { display: inline-flex; min-height: 42px; align-items: center; padding: 8px 15px; color: var(--ink); background: var(--white); border: 1px solid var(--border); border-radius: 999px; text-decoration: none; white-space: nowrap; }
.filter-chip[aria-current="true"] { color: var(--white); background: var(--primary); border-color: var(--primary); }
.result-count { margin-left: auto; color: var(--muted); white-space: nowrap; }

.empty-state { max-width: 760px; margin: 0 auto; padding: 52px 28px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.empty-state .choice-icon { margin: 0 auto 22px; }
.empty-state p { max-width: 560px; margin: 0 auto 24px; color: var(--muted); }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 44px; }
.detail-main { min-width: 0; }
.detail-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.detail-summary { margin: 26px 0; padding: 24px; background: var(--surface); border-radius: var(--radius-md); }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.fact { min-width: 0; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.fact dt { margin-bottom: 4px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.fact dd { margin: 0; color: var(--ink); font-weight: 750; overflow-wrap: anywhere; }
.content-section { padding: 30px 0; border-top: 1px solid var(--border); }
.content-section:first-of-type { border-top: 0; }
.content-section ul { padding-left: 22px; }
.content-section li + li { margin-top: 8px; }
.detail-aside { position: sticky; top: calc(var(--header-height) + 24px); padding: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.detail-aside h2 { margin-bottom: 10px; font-size: 1.45rem; }
.detail-aside p { color: var(--muted); font-size: .95rem; }
.aside-actions { display: grid; gap: 10px; }
.map-placeholder { display: grid; min-height: 320px; place-items: center; padding: 24px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.map-placeholder .choice-icon { margin: 0 auto 16px; }

.story-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.story-media { min-width: 0; }
.story-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.value-card { min-width: 0; padding: 24px; color: var(--ink); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); }
.value-card .choice-icon { margin-bottom: 22px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { min-width: 0; padding: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-md); }
.step::before { display: inline-grid; width: 34px; height: 34px; place-items: center; margin-bottom: 20px; color: var(--ink); background: var(--brand-cyan); border-radius: 50%; counter-increment: step; content: counter(step); font-weight: 900; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: start; gap: 44px; }
.form-card { padding: 30px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 800; }
.required { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #a9b9bd;
  border-radius: 10px;
}
.field textarea { min-height: 180px; resize: vertical; }
.field small { display: block; margin-top: 6px; color: var(--muted); }
.field-error { display: none; color: var(--danger) !important; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"] + .field-error { display: block; }
.form-status { display: none; margin: 20px 0 0; padding: 14px 16px; border-radius: 10px; }
.form-status[data-state="success"] { display: block; color: var(--success); background: #e9f8f1; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; min-width: 0; gap: 14px; padding: 20px; color: var(--ink); background: var(--surface); border-radius: var(--radius-sm); text-decoration: none; }
.contact-item .choice-icon { flex: 0 0 auto; width: 42px; height: 42px; }
.contact-item strong, .contact-item span { display: block; overflow-wrap: anywhere; }
.contact-item span { color: var(--muted); font-size: .9rem; }
.contact-aside { min-width: 0; }
.form-heading { align-items: end; }
.form-heading > p { max-width: none; font-size: .86rem; }
.submit-button { margin-top: 24px; }
.submit-button:disabled { cursor: wait; opacity: .62; }
.captcha-row { display: grid; grid-template-columns: minmax(130px, 1fr) auto 44px; align-items: center; gap: 10px; }
.captcha-row img { width: 120px; height: 36px; object-fit: cover; border: 1px solid var(--border); border-radius: 8px; }
.icon-button { display: inline-grid; width: 44px; height: 44px; place-items: center; color: var(--primary); background: var(--primary-soft); border: 0; border-radius: 12px; cursor: pointer; }
.icon-button:hover { background: #d3eeea; }
.form-status[data-state="pending"] { display: block; color: var(--ink); background: var(--surface); }
.form-status[data-state="error"] { display: block; color: var(--danger); background: #fff0f0; }
.prototype-note { margin-top: 24px; padding: 16px; color: #6f4f00; background: #fff7df; border: 1px solid #eed99c; border-radius: 10px; font-size: .92rem; }

.media-placeholder { display: grid; width: 100%; aspect-ratio: 4 / 3; place-items: center; color: var(--primary); background: linear-gradient(135deg, var(--primary-soft), #f5fbfa); border-radius: inherit; }
.media-placeholder .icon { width: 52px; height: 52px; }
.detail-picture, .detail-picture picture, .detail-picture img { display: block; width: 100%; }
.long-detail-image { display: block; width: 100%; height: auto; margin-inline: auto; }
.cms-detail-images { display: grid; gap: 20px; }
.cms-detail-images img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.hero-banner-link, .hero-banner-link picture { display: block; color: inherit; }
.modern-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 42px; }
.modern-pagination a, .modern-pagination span { display: inline-grid; min-width: 44px; min-height: 44px; place-items: center; padding: 8px; color: var(--ink); background: var(--white); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; }
.modern-pagination span[aria-current="page"] { color: var(--white); background: var(--primary); border-color: var(--primary); }
.modern-pagination .icon { width: 18px; height: 18px; }
.icon-reverse { transform: rotate(180deg); }

.resource-heading { align-items: end; }
.resource-heading > p { max-width: none; white-space: nowrap; }
.resource-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.resource-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 112px 86px 24px; align-items: center; gap: 18px; min-height: 76px; padding: 14px 10px; color: var(--ink); border-bottom: 1px solid var(--border); text-decoration: none; }
.resource-row:hover .resource-title { color: var(--primary); }
.resource-number, .resource-row time, .resource-views { color: var(--muted); font-size: .9rem; text-align: center; }
.resource-title { min-width: 0; overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.resource-row > .icon { width: 20px; height: 20px; color: var(--primary); }
.page-hero-compact { padding-bottom: 48px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: var(--muted); font-size: .92rem; }
.article-shell { max-width: 960px; }
.attachment-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; color: var(--ink); background: var(--surface); border-radius: var(--radius-sm); text-decoration: none; }
.attachment-card .choice-icon { width: 42px; height: 42px; }
.attachment-card strong, .attachment-card small { display: block; overflow-wrap: anywhere; }
.attachment-card small { margin-top: 3px; color: var(--muted); }
.attachment-card > .icon { width: 20px; height: 20px; color: var(--primary); }
.article-body { min-height: 220px; padding: 40px 4px; color: var(--text); line-height: 1.85; overflow-wrap: anywhere; }
.article-nav { border-block: 1px solid var(--border); }
.article-nav a { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; padding: 18px 8px; color: var(--ink); text-decoration: none; }
.article-nav a + a { border-top: 1px solid var(--border); }
.article-nav span { color: var(--muted); }
.article-nav strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-actions { display: flex; justify-content: center; margin-top: 32px; }

.site-footer { padding: 48px 0 84px; color: #c4d2d5; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 36px; }
.footer-brand { display: inline-block; margin-bottom: 18px; color: var(--white); font-size: 1.3rem; font-weight: 900; text-decoration: none; }
.footer-copy { max-width: 680px; font-size: .9rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 22px; }
.footer-nav a { color: #dce6e8; }
.copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: #9db0b4; font-size: .82rem; }

.mobile-action-bar { display: none; }

@media (max-width: 1180px) {
  .desktop-nav .nav-link { gap: 6px; padding: 6px 8px; font-size: .8rem; }
  .desktop-nav .nav-icon { width: 29px; height: 29px; flex-basis: 29px; border-radius: 9px; }
  .desktop-nav .nav-icon .icon { width: 16px; height: 16px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  :root { --header-height: 72px; --section-space: 68px; --content-gap: 36px; }
  .container { width: min(100% - 48px, var(--layout-max)); }
  .brand img { width: auto; max-width: 96px; max-height: calc(var(--header-height) - 14px); }
  .desktop-nav { display: none; }
  .menu-toggle {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    padding: 0;
    color: var(--primary-hover);
    background: linear-gradient(145deg, var(--white), var(--primary-soft));
    border: 1px solid rgba(18, 106, 111, .16);
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(16, 66, 70, .1);
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
  }
  .menu-toggle .icon { width: 24px; height: 24px; }
  .mobile-panel {
    position: fixed;
    inset: var(--header-height) 0 auto;
    z-index: 90;
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
    padding: 18px max(24px, calc((100vw - 920px) / 2)) 24px;
    background: rgba(248, 251, 251, .97);
    border-bottom: 1px solid rgba(18, 106, 111, .14);
    box-shadow: 0 24px 60px rgba(13,47,51,.17);
    backdrop-filter: blur(22px);
    overscroll-behavior: contain;
  }
  .mobile-panel[data-open="true"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mobile-panel .nav-link {
    display: grid;
    min-height: 64px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #294c50;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(18, 106, 111, .12);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 66, 70, .07);
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
  }
  .mobile-panel .nav-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    background: var(--primary-soft);
    border-radius: 13px;
    box-shadow: none;
  }
  .mobile-panel .nav-icon .icon { width: 21px; height: 21px; }
  .mobile-panel .nav-link[aria-current="page"] {
    color: var(--primary-hover);
    background: var(--white);
    border-color: rgba(18, 106, 111, .34);
    box-shadow: 0 12px 28px rgba(16, 66, 70, .12);
  }
  .mobile-panel .nav-cta {
    grid-column: 1 / -1;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), #087b84);
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(18, 106, 111, .2);
  }
  .mobile-panel .nav-cta .nav-icon {
    color: var(--white);
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.24);
  }
  .mobile-panel .nav-link:active,
  .menu-toggle:active { transform: scale(.98); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-media { max-width: 760px; }
  .choice-grid, .card-grid, .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .resource-row { grid-template-columns: 56px minmax(0, 1fr) 100px 24px; }
  .resource-views { display: none; }
}

@media (max-width: 767px) {
  :root { --header-height: 64px; --section-space: 56px; --content-gap: 32px; }
  .container { width: min(100% - 40px, var(--layout-max)); }
  .brand img { width: 74px; }
  .mobile-panel[data-open="true"] { grid-template-columns: minmax(0, 1fr); }
  .mobile-panel .nav-cta { grid-column: auto; }
  .hero { padding: 40px 0 48px; }
  .hero-grid { gap: 32px; }
  .hero-media::before { inset: -16px 32% 35% -12px; border-radius: 30px; }
  .hero-media img { border-radius: 24px; }
  .hero-note { right: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 12px 14px; font-size: .88rem; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading .button { margin-top: 16px; }
  .choice-grid, .card-grid, .value-grid, .steps { grid-template-columns: 1fr; }
  .choice-card { min-height: 176px; }
  .cta-panel { grid-template-columns: 1fr; padding: 26px 20px; border-radius: 24px; }
  .page-hero { padding: 36px 0 32px; }
  .filter-bar { top: var(--header-height); overflow-x: auto; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-inner { width: max-content; padding-right: 20px; }
  .filter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .result-count { margin-left: 6px; }
  .fact-grid { grid-template-columns: 1fr; }
  .detail-summary { padding: 20px; }
  .detail-aside { display: none; }
  .map-placeholder { min-height: 260px; }
  .form-card { padding: 22px 18px; border-radius: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .captcha-row { grid-template-columns: minmax(0, 1fr) auto 44px; }
  .resource-heading { display: flex; }
  .resource-row { grid-template-columns: minmax(0, 1fr) 24px; gap: 12px; min-height: 70px; padding-inline: 4px; }
  .resource-number, .resource-row time { display: none; }
  .article-body { min-height: 176px; padding-block: 32px; }
  .article-nav a { grid-template-columns: 62px minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  body.has-mobile-actions { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.contact-page.has-mobile-actions { padding-bottom: 0; }
  body.contact-page .mobile-action-bar { display: none; }
  .mobile-action-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 9px;
    padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 28px rgba(16,42,51,.1);
    backdrop-filter: blur(14px);
  }
  .mobile-action-bar .button { min-width: 0; min-height: 48px; padding-inline: 12px; font-size: .92rem; }
}

@media (max-width: 375px) {
  :root { --section-space: 52px; }
  .container { width: min(100% - 32px, var(--layout-max)); }
  .mobile-panel { padding-inline: 14px; }
  .mobile-panel .nav-link { min-height: 60px; padding-inline: 11px; }
  h1 { font-size: 2.15rem; }
  .hero-actions, .cta-actions { display: grid; }
  .hero-actions .button, .cta-actions .button { width: 100%; }
  .footer-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .mobile-action-bar, .detail-aside, .filter-bar { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding: 24px 0; }
}
