/* =========================================================
   봄결 동물보호센터 — 스타일
   ========================================================= */

@font-face {
  font-family: "Pretendard";
  src: url("../fonts/PretendardSubset.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- 디자인 토큰 ---------- */
:root {
  /* 색 */
  --bg: #FFFFFF;
  --bg-soft: #F4F6F5;     /* 섹션 구분용 아주 옅은 회녹색 */
  --bg-press: #E9EDEB;
  --ink: #191F1C;         /* 제목 */
  --text: #333D39;        /* 본문 */
  --sub: #5C6662;         /* 보조 (흰 배경 대비 5.9:1) */
  --line: #E3E8E5;
  --pine: #1F6B52;        /* 주색 */
  --pine-press: #18573F;
  --pine-tint: #E6F1EC;
  --brass: #E8B23A;       /* 이름표 */
  --danger: #C4321F;

  /* 글자 */
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --fs-cap: 0.875rem;     /* 14 */
  --fs-body: 1.0625rem;   /* 17 */
  --fs-h3: 1.25rem;       /* 20 */
  --fs-h2: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);   /* 30 → 44 */
  --fs-h1: clamp(2.5rem, 1.4rem + 4.8vw, 4.75rem);     /* 40 → 76 */

  /* 모양 */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 28px;
  --header-h: 60px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 0;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--pine); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: #CDE5D9; color: var(--ink); }
html { scrollbar-color: #B9C4BF transparent; accent-color: var(--pine); }
input, textarea { caret-color: var(--pine); }
h1, h2, h3, summary { text-wrap: balance; }
p, dd { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1140px, 100% - 48px); margin-inline: auto; }
.br-mob { display: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 20px;
  border: 0; border-radius: var(--r-sm);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.015em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), transform .12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; border-radius: var(--r-md); }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-press); }
.btn-secondary { background: var(--pine-tint); color: var(--pine-press); }
.btn-secondary:hover { background: #D7E9E0; }
.btn-tonal { background: var(--bg); color: var(--ink); }
.btn-tonal:hover { background: var(--bg-press); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.03em;
}
.logo svg { width: 28px; height: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  text-decoration: none; color: var(--sub); font-size: .9375rem; font-weight: 500; border-radius: 10px;
  transition: color .15s, background-color .15s;
}
.site-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.site-nav .nav-cta { margin-left: 8px; background: var(--ink); color: #fff; font-weight: 600; padding: 0 16px; }
.site-nav .nav-cta:hover { background: #2C3530; color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: transparent; cursor: pointer; position: relative; border-radius: 10px;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 13px; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 히어로 ---------- */
.hero { padding: clamp(64px, 10vw, 128px) 0 0; overflow: hidden; text-align: center; }
.hero h1 {
  font-size: var(--fs-h1); line-height: 1.12; letter-spacing: -0.045em; font-weight: 800;
}
.hero-lead { margin: 28px auto 0; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--sub); line-height: 1.6; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }

/* 이름표가 걸린 가로대 — 이 페이지의 시그니처 */
.hero-rail { position: relative; width: min(1000px, 100% - 48px); height: 330px; margin: 72px auto 0; }
.rail-bar {
  position: absolute; top: 18px; left: 0; right: 0; height: 6px; border-radius: 999px;
  background: linear-gradient(#3A4440, #232B27);
}
.rail-bar::before, .rail-bar::after {
  content: ""; position: absolute; top: -7px; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4A5550, #1E2522);
}
.rail-bar::before { left: -6px; }
.rail-bar::after { right: -6px; }
.hanging-tags { position: absolute; inset: 21px 4% 0; display: flex; justify-content: space-between; }
.hang {
  display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0;
  background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hang-tag { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.hang:hover .hang-tag { transform: translateY(-4px); }
.hang:active .hang-tag { transform: translateY(-1px) scale(.98); }
.hang:focus-visible { outline: none; }
.hang:focus-visible .hang-tag { outline: 3px solid var(--pine); outline-offset: 4px; }
.hang .ring { width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 3px solid #A8946A; }
.hang .string { width: 1.5px; height: 28px; background: #B7A57E; }
.hang:nth-child(even) .string { height: 70px; }
.hang:nth-child(3) .string { height: 44px; }
.hang-tag {
  display: block; width: 148px; padding: 20px 14px 18px; text-align: center; position: relative;
  background: linear-gradient(160deg, #F6CB62 0%, var(--brass) 55%, #D69E26 100%);
  border-radius: 30px 30px 20px 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 18px 30px -18px rgba(90, 60, 0, .45);
}
.hang-tag::before { /* 구멍 */
  content: ""; position: absolute; top: 9px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%; background: rgba(0,0,0,.18);
}
.hang:nth-child(even) .hang-tag { background: linear-gradient(160deg, #FFFFFF, #ECEFED); box-shadow: 0 1px 0 #fff inset, 0 18px 30px -18px rgba(0,0,0,.35); }
.hang:nth-child(3) .hang-tag { background: linear-gradient(160deg, #DDEDE5, #C3DDD0); }
.hang-tag .portrait { width: 84px; height: 84px; margin: 6px auto 10px; }
.hang-tag strong { display: block; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.04em; color: #2A2310; line-height: 1.2; }
.hang-tag span { display: block; font-size: .8125rem; color: rgba(42, 35, 16, .72); margin-top: 2px; }
.hang:nth-child(even) .hang-tag strong, .hang:nth-child(3) .hang-tag strong { color: var(--ink); }
.hang:nth-child(even) .hang-tag span, .hang:nth-child(3) .hang-tag span { color: var(--sub); }

@keyframes swing {
  0%   { transform: rotate(10deg); }
  30%  { transform: rotate(-6deg); }
  55%  { transform: rotate(3.2deg); }
  78%  { transform: rotate(-1.2deg); }
  100% { transform: rotate(0); }
}
.hang { animation: swing 2s var(--ease) both; }
.hang:nth-child(2) { animation-delay: .08s; }
.hang:nth-child(3) { animation-delay: .16s; }
.hang:nth-child(4) { animation-delay: .24s; }
.hang:nth-child(5) { animation-delay: .32s; }

/* 기다리는 동물 안내 */
.hero-waiting { margin: 8px auto 0; padding: 32px 0 clamp(72px, 10vw, 120px); text-align: center; }
.hero-waiting a {
  display: inline-block; padding: 10px 0; line-height: 1.6;
  color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: #B9C4BF;
  text-decoration-thickness: 1.5px; text-underline-offset: 6px; transition: text-decoration-color .2s;
}
.hero-waiting a:hover { text-decoration-color: var(--pine); }
#waiting-count { font-variant-numeric: tabular-nums; color: var(--pine); }

/* ---------- 섹션 공통 ---------- */
.section { padding: clamp(80px, 11vw, 144px) 0; }
.section-title { font-size: var(--fs-h2); line-height: 1.25; letter-spacing: -0.04em; }
.section-lead { margin: 14px 0 0; color: var(--sub); font-size: 1.125rem; max-width: 36em; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------- 센터 소개 ---------- */
.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.about-grid .section-title { margin-bottom: 28px; }
.about-grid > div p { max-width: 32em; color: var(--text); }
.about-year { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink); font-size: 1.125rem; }
.about-year strong { font-weight: 700; color: var(--pine); font-variant-numeric: tabular-nums; }
.values { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 40px; }
.values li { padding-top: 20px; border-top: 1px solid #CBD4CF; }
.values h3 { font-size: var(--fs-h3); letter-spacing: -0.03em; margin-bottom: 8px; }
.values p { color: var(--sub); margin: 0; font-size: 1rem; line-height: 1.65; }

/* ---------- 입양 대기 동물 ---------- */
.segmented {
  position: relative; display: inline-flex; padding: 4px; gap: 0;
  background: var(--bg-soft); border-radius: 14px;
}
.seg-indicator {
  position: absolute; top: 4px; left: 4px; height: calc(100% - 8px); width: 0;
  background: var(--bg); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.06);
  transition: transform .35s var(--ease), width .35s var(--ease);
}
.filter-btn {
  position: relative; z-index: 1; min-height: 40px; min-width: 76px; padding: 0 18px;
  border: 0; background: transparent; border-radius: 10px; cursor: pointer;
  font-weight: 600; font-size: .9375rem; color: var(--sub); transition: color .2s;
}
.filter-btn[aria-pressed="true"] { color: var(--ink); }
.filter-status { margin: 28px 0 20px; color: var(--sub); font-size: var(--fs-cap); min-height: 1.5em; }

.animal-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.animal-card {
  height: 100%; display: flex; flex-direction: column;
  background: var(--bg-soft); border-radius: var(--r-lg); padding: 12px 12px 16px;
}
.card-portrait {
  display: grid; place-items: center; aspect-ratio: 1 / .82;
  background: var(--tint, #EEE); border-radius: 20px; margin-bottom: 18px;
}
.card-portrait .portrait { width: 52%; height: auto; }
.animal-card h3 { font-size: 1.375rem; letter-spacing: -0.04em; padding: 0 8px; }
.animal-card .meta { color: var(--sub); font-size: .9375rem; margin: 2px 0 12px; padding: 0 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0 8px; list-style: none; }
.badges li { font-size: .8125rem; font-weight: 500; padding: 3px 10px; border-radius: 8px; background: var(--bg); color: var(--text); }
.animal-card .btn { margin-top: auto; width: 100%; }

/* 실사 사진을 넣었을 때 */
.portrait.photo { object-fit: cover; border-radius: 50%; background: var(--bg-soft); }
.card-portrait.has-photo { overflow: hidden; }
.card-portrait.has-photo .portrait.photo { width: 100%; height: 100%; border-radius: 0; }
.dialog-portrait.has-photo { padding: 0; }
.dialog-portrait.has-photo .portrait.photo { width: 100%; height: 100%; min-height: 300px; border-radius: 0; }

/* ---------- 입양 절차 ---------- */
.process .section-lead { margin-bottom: 0; }
.steps {
  list-style: none; margin: 64px 0 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 24px;
}
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step);
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink);
  font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; margin-bottom: 24px;
}
.steps li::after { /* 다음 단계로 이어지는 선 */
  content: ""; position: absolute; top: 17px; left: 44px; right: -16px; height: 1.5px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--pine); border-color: var(--pine); color: #fff; }
.steps h3 { display: flex; align-items: center; gap: 8px; font-size: 1.125rem; letter-spacing: -0.03em; margin-bottom: 8px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.steps .ic, .ic-title .ic { color: var(--pine); }
.ic-title { display: flex; align-items: center; gap: 8px; }
.steps p { color: var(--sub); font-size: .9375rem; line-height: 1.6; margin: 0; }

/* ---------- 함께하는 방법 ---------- */
.help { background: #10261E; color: #C9D6D0; }
.help .section-title { color: #fff; }
.help-grid { margin-top: 48px; border-bottom: 1px solid rgba(255,255,255,.14); }
.help-item {
  display: grid; grid-template-columns: 220px 1fr 260px; gap: 32px; align-items: center;
  padding: 36px 0; border-top: 1px solid rgba(255,255,255,.14);
}
.help-item h3 { display: flex; align-items: center; gap: 14px; color: #fff; font-size: 1.5rem; letter-spacing: -0.04em; }
.help-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: rgba(243, 210, 126, .12); color: #F3D27E; }
.help-ic .ic { width: 24px; height: 24px; }
.help-item p { margin: 0; line-height: 1.7; max-width: 34em; }
.help-meta { font-size: .9375rem; color: #F3D27E; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: 1fr 1.8fr; gap: clamp(40px, 6vw, 80px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font-weight: 600; font-size: 1.125rem; color: var(--ink); letter-spacing: -0.025em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; margin-top: -1px;
  background: var(--sub); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); opacity: 0; }
.faq-list summary:hover { color: var(--pine); }
.faq-list details p { color: var(--sub); padding: 0 48px 8px 0; max-width: 40em; margin-top: -6px; }
.faq-list details[open] p { animation: reveal .3s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- 신청 ---------- */
.apply { background: var(--bg-soft); }
.apply-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.apply-grid .section-title { margin-bottom: 18px; }
.visit p { color: var(--sub); max-width: 28em; }
.visit-info { margin: 40px 0 0; }
.visit-info div { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.visit-info div:last-child { border-bottom: 1px solid var(--line); }
.visit-info dt { font-weight: 600; color: var(--ink); font-size: .9375rem; }
.visit-info dd { margin: 0; color: var(--text); font-size: .9375rem; }

.apply-form {
  background: var(--bg); border-radius: 32px; padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 1px 2px rgba(16, 38, 30, .04), 0 24px 48px -24px rgba(16, 38, 30, .18);
}
.field { margin: 0 0 24px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; font-size: .9375rem; color: var(--ink); margin-bottom: 8px; padding: 0; }
.optional { font-weight: 400; color: var(--sub); }
.field input[type="text"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 14px 16px;
  border: 1.5px solid transparent; border-radius: var(--r-md);
  background: var(--bg-soft); color: var(--ink); font-size: 1.0625rem;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6662' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field ::placeholder { color: #8B9490; }
.field input:hover, .field select:hover, .field textarea:hover { background-color: var(--bg-press); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--pine); background-color: var(--bg);
  box-shadow: 0 0 0 4px rgba(31, 107, 82, .14);
}
.field [aria-invalid="true"] { border-color: var(--danger) !important; background-color: #FFF6F5; }

.chips { display: flex; gap: 8px; }
.chips label { flex: 1; position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  border-radius: var(--r-md); background: var(--bg-soft); font-weight: 600; font-size: .9375rem; color: var(--sub);
  border: 1.5px solid transparent; transition: all .2s var(--ease);
}
.chips label:hover span { background: var(--bg-press); }
.chips input:checked + span { background: var(--pine-tint); color: var(--pine-press); border-color: var(--pine); }
.chips input:focus-visible + span { outline: 3px solid var(--pine); outline-offset: 2px; }

.check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: .9375rem; color: var(--text); }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--pine); flex: none; }
.field-error { display: flex; gap: 6px; align-items: center; color: var(--danger); font-size: var(--fs-cap); font-weight: 500; margin: 8px 0 0; }
.field-error::before {
  content: "!"; display: grid; place-items: center; width: 16px; height: 16px; flex: none;
  border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800;
}
.field-error[hidden], .form-result:empty { display: none; }
.form-result { margin: 16px 0 0; font-weight: 500; }
.form-result.is-success {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--pine-press); background: var(--pine-tint); padding: 16px 18px; border-radius: var(--r-md);
  animation: reveal .35s var(--ease);
}
.form-result.is-success::before {
  content: ""; width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 50%;
  background: var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5 10 16.5 18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- 푸터 ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); color: var(--sub); padding: 48px 0 56px; font-size: var(--fs-cap); }
.footer-inner p { margin: 0 0 4px; }
.footer-name { font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 10px !important; }

/* ---------- 상세 모달 ---------- */
.animal-dialog {
  width: min(800px, 100% - 32px); max-height: calc(100% - 48px);
  padding: 0; border: 0; border-radius: 32px; background: var(--bg); color: var(--text);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.35);
}
.animal-dialog::backdrop { background: rgba(10, 20, 16, .48); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.animal-dialog[open] { animation: pop .38s var(--ease); }
.animal-dialog[open]::backdrop { animation: fade .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.dialog-body { display: grid; grid-template-columns: 300px 1fr; position: relative; }
.dialog-portrait { background: var(--tint, var(--bg-soft)); display: grid; place-items: center; padding: 32px; }
.dialog-portrait .portrait { width: 190px; height: 190px; }
.dialog-text { padding: 48px 40px 40px; }
.dialog-text h2 { font-size: 2.25rem; letter-spacing: -0.045em; line-height: 1.2; }
.dialog-breed { color: var(--sub); margin: 4px 0 24px; }
.dialog-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 24px; }
.dialog-facts div { background: var(--bg-soft); border-radius: var(--r-sm); padding: 12px 14px; }
.dialog-facts dt { font-size: .8125rem; color: var(--sub); }
.dialog-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
#dlg-story { line-height: 1.7; margin-bottom: 28px; }
.dialog-text .btn { width: 100%; min-height: 56px; border-radius: var(--r-md); }
.dialog-close {
  position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--bg-soft); color: var(--sub); cursor: pointer; display: grid; place-items: center;
  transition: background-color .15s, transform .12s;
}
.dialog-close svg { width: 16px; height: 16px; }
.dialog-close:hover { background: var(--bg-press); color: var(--ink); }
.dialog-close:active { transform: scale(.92); }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1024px) {
  .animal-grid { grid-template-columns: repeat(3, 1fr); }
  .help-item { grid-template-columns: 180px 1fr; }
  .help-meta { grid-column: 2; }
}

@media (max-width: 900px) {
  .about-grid, .apply-grid, .faq-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 18px; padding-bottom: 32px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps li::after { top: 36px; bottom: 0; left: 17px; right: auto; width: 1.5px; height: auto; }
  .steps li:last-child { padding-bottom: 0; }
  .hang:nth-child(5) { display: none; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 20px; gap: 0; }
  .site-nav a { min-height: 52px; padding: 0 12px; font-size: 1.0625rem; color: var(--ink); }
  .site-nav .nav-cta { margin: 10px 0 0; justify-content: center; min-height: 52px; border-radius: var(--r-md); }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 40px); }
  .br-desk { display: none; }
  .br-mob { display: inline; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; }
  .hero-rail { height: 260px; margin-top: 56px; width: calc(100% - 24px); }
  .hanging-tags { inset: 21px 2% 0; }
  .hang:nth-child(4) { display: none; }
  .hang-tag { width: 100px; padding: 16px 8px 12px; border-radius: 24px 24px 16px 16px; }
  .hang-tag .portrait { width: 56px; height: 56px; margin-bottom: 6px; }
  .hang-tag strong { font-size: 1.0625rem; }
  .hang-tag span { font-size: .6875rem; }
  .hang:nth-child(even) .string { height: 48px; }
  .animal-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .animal-card { border-radius: 22px; padding: 8px 8px 12px; }
  .card-portrait { border-radius: 16px; margin-bottom: 12px; }
  .animal-card h3 { font-size: 1.125rem; padding: 0 6px; }
  .animal-card .meta { font-size: .8125rem; padding: 0 6px; }
  .badges { padding: 0 6px; margin-bottom: 12px; }
  .badges li { font-size: .75rem; padding: 2px 8px; }
  .animal-card .btn { min-height: 44px; font-size: .9375rem; }
  .section-head { align-items: stretch; }
  .segmented { width: 100%; }
  .filter-btn { flex: 1; }
  .values { grid-template-columns: 1fr; }
  .help-item { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .help-meta { grid-column: auto; margin-top: 4px; }
  .chips span { min-height: 48px; font-size: .875rem; }

  /* 모바일에선 상세 창이 아래에서 올라오는 시트 */
  .animal-dialog {
    width: 100%; max-width: 100%; max-height: 92%; margin: auto 0 0;
    border-radius: 28px 28px 0 0;
  }
  .animal-dialog[open] { animation: sheet .42s var(--ease); }
  @keyframes sheet { from { transform: translateY(100%); } }
  .dialog-body { grid-template-columns: 1fr; }
  .dialog-portrait { padding: 28px; }
  .dialog-portrait::before {
    content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px;
    border-radius: 3px; background: rgba(0,0,0,.15);
  }
  .dialog-portrait .portrait { width: 132px; height: 132px; }
  .dialog-text { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .dialog-text h2 { font-size: 1.75rem; }
}

/* 히어로 영상 */
.hero-film { position: relative; width: min(880px, 100% - 48px); margin: 56px auto 0; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #E9E1D6; box-shadow: 0 30px 60px -30px rgba(40, 30, 20, .35); }
.hero-film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-toggle { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 24, 22, .55); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s; }
.film-toggle:hover { background: rgba(20, 24, 22, .75); }
.film-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.film-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.film-toggle .i-play { fill: currentColor; stroke-width: 1.5; }
.film-toggle .i-play, .film-toggle[aria-pressed="true"] .i-pause { display: none; }
.film-toggle[aria-pressed="true"] .i-play { display: block; }
@media (max-width: 640px) { .hero-film { width: calc(100% - 24px); margin-top: 40px; border-radius: 20px; } }

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