/* ============================================================
 *  동물병원 홈페이지 스타일
 *  병원 종류별 색상은 아래 [병원 종류 테마]에서 바꿀 수 있습니다.
 * ============================================================ */
:root {
  --accent: #14a08f;
  --accent-dark: #0d7f72;
  --accent-soft: #e6f6f3;
  --bg: #ffffff;
  --alt: #f5f8f8;
  --text: #1b2626;
  --soft: #627070;
  --line: #e2e9e8;
  --radius: 14px;
  --hd: 68px;
  --wrap: 1160px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 12px); -webkit-text-size-adjust: 100%; }
body { font-family: "Pretendard Variable", -apple-system, "Malgun Gothic", sans-serif; color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.65; word-break: keep-all; -webkit-font-smoothing: antialiased; padding-bottom: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--soft); }
.small { font-size: 13px; margin-top: 10px; }
.pre { white-space: pre-line; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 50px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: background .15s, transform .1s, border-color .15s; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--line { border: 1px solid var(--line); background: #fff; }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }
.btn--glass { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255,255,255,.28); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.link { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link svg { width: 16px; height: 16px; }
.chip { display: inline-block; padding: 3px 10px; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; vertical-align: middle; }

/* ---------- 머리 ---------- */
.notice-bar { background: var(--text); color: #fff; font-size: 14px; font-weight: 600; text-align: center; padding: 9px 0; }
.hd { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd__in { display: flex; align-items: center; gap: 24px; height: var(--hd); }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.logo__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo__text b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.logo__text small { font-size: 10px; letter-spacing: .12em; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gnb { display: flex; align-items: center; gap: 4px; }
.gnb a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: #3a4646; }
.gnb a:hover, .gnb a.is-active { color: var(--accent); }
.gnb a.is-active { background: var(--accent-soft); }
.gnb .gnb__cta { margin-left: 8px; background: var(--accent); color: #fff !important; padding: 9px 16px; }
.gnb .gnb__cta:hover { background: var(--accent-dark); }
.hd__tel { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--accent); font-size: 17px; white-space: nowrap; }
.hd__menu { display: none; width: 44px; height: 44px; place-items: center; margin-right: -10px; }
.hd__menu svg { width: 24px; height: 24px; }

/* ---------- 메인 비주얼 ---------- */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #223; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease, transform 7s ease; transform: scale(1.06); }
.hero__slide.is-on { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,20,20,.72) 0%, rgba(10,20,20,.35) 55%, rgba(10,20,20,.1) 100%); }
.hero__in { position: relative; z-index: 1; width: 100%; padding-top: 80px; padding-bottom: 96px; }
.hero__en { font-size: 13px; letter-spacing: .3em; opacity: .85; font-weight: 600; }
.hero__title { margin-top: 12px; font-size: clamp(32px, 5.4vw, 54px); line-height: 1.25; font-weight: 800; letter-spacing: -.03em; }
.hero__intro { margin-top: 16px; font-size: clamp(16px, 2vw, 19px); opacity: .92; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* 오늘 진료 정보 */
.today { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -48px; background: #fff; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(20,40,40,.12); padding: 0; }
.today__item { display: flex; align-items: center; gap: 12px; padding: 22px 22px; min-width: 0; }
.today__item + .today__item { border-left: 1px solid var(--line); }
.today__item svg { width: 26px; height: 26px; color: var(--accent); }
.today__item b { display: block; font-size: 16px; }
.today__item small { display: block; color: var(--soft); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today__item > div { min-width: 0; }
a.today__item:hover b { color: var(--accent); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; background: #aab; box-shadow: 0 0 0 4px rgba(170,170,187,.2); }
.dot--on { background: #18b56a; box-shadow: 0 0 0 4px rgba(24,181,106,.2); animation: pulse 2s infinite; }
.dot--lunch, .dot--before { background: #f2a516; box-shadow: 0 0 0 4px rgba(242,165,22,.2); }
.dot--off { background: #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,.18); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(24,181,106,.08); } }

/* ---------- 섹션 ---------- */
.sec { padding: 88px 0; }
.sec--alt { background: var(--alt); }
.sec__en { font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--accent); }
.sec__title { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 28px; }
.sec__more { margin-top: 28px; text-align: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two .sec__more { text-align: left; }
.ico { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; font-size: 26px; flex: none; }
.ico--lg { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero__slide { transition: none; } }

.features { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.features li { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.features b { display: block; margin-top: 16px; font-size: 18px; }
.features p { margin-top: 6px; color: var(--soft); font-size: 15px; }

.tx-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tx-grid a { display: flex; flex-direction: column; height: 100%; padding: 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tx-grid a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,40,40,.08); border-color: var(--accent); }
.tx-grid b { margin-top: 16px; font-size: 19px; }
.tx-grid p { margin-top: 6px; color: var(--soft); font-size: 15px; flex: 1; }
.tx-grid .more { margin-top: 16px; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; font-size: 14px; }
.tx-grid .more svg { width: 16px; height: 16px; }

/* 의료진 */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.docs--brief { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.doc { display: flex; gap: 22px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.doc__photo { width: 120px; height: 150px; border-radius: 12px; object-fit: cover; flex: none; }
.doc__photo--mono { display: grid; place-items: center; background: linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--accent) 22%, #fff)); color: var(--accent); }
.doc__photo--mono span { font-size: 48px; font-weight: 800; }
.doc__title { font-size: 13px; font-weight: 700; color: var(--accent); }
.doc__name { font-size: 24px; font-weight: 800; letter-spacing: .02em; }
.doc__spec { color: var(--soft); font-size: 15px; }
.doc__career { list-style: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 14px; color: #3a4646; }
.doc__career li::before { content: "·"; color: var(--accent); font-weight: 800; margin-right: 6px; }
.docs--brief .doc { align-items: center; }
.docs--brief .doc__photo { width: 84px; height: 84px; border-radius: 50%; }
.docs--brief .doc__photo--mono span { font-size: 34px; }

/* 사진 줄 */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip button, .gal button { aspect-ratio: 4/3; overflow: hidden; border-radius: 12px; background: var(--line); }
.strip img, .gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.strip button:hover img, .gal button:hover img { transform: scale(1.05); }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
#galleryMore { margin-top: 20px; }

/* 공지 */
.nlist { list-style: none; border-top: 2px solid var(--text); }
.nlist a { display: flex; align-items: center; gap: 10px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.nlist a:hover .t { color: var(--accent); }
.nlist .t { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nlist time { color: var(--soft); font-size: 14px; flex: none; }
.pin { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.post header { padding-bottom: 20px; border-bottom: 2px solid var(--text); }
.post header h2 { font-size: 24px; margin: 8px 0 4px; }
.post header time { color: var(--soft); font-size: 14px; }
.post__body { padding: 28px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.9; }

/* 진료시간 표 */
.hours { width: 100%; border-collapse: collapse; border-top: 2px solid var(--text); }
.hours th, .hours td { padding: 14px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 16px; }
.hours th { font-weight: 600; width: 40%; }
.hours td { font-weight: 700; font-variant-numeric: tabular-nums; }
.hours .is-off td { color: #e5484d; }
.hours .is-today { background: var(--accent-soft); }
.hours .is-lunch th, .hours .is-lunch td { color: var(--soft); font-weight: 500; }
.today-tag { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.hours-notes { list-style: none; margin-top: 14px; display: grid; gap: 4px; color: var(--soft); font-size: 14px; }
.hours-notes li::before { content: "※ "; }
.status-line { display: flex; align-items: center; gap: 8px; margin: -14px 0 16px; }
.big-tel { display: inline-flex; align-items: center; gap: 10px; font-size: 32px; font-weight: 800; color: var(--accent); letter-spacing: -.01em; }
.big-tel svg { width: 30px; height: 30px; }

/* 하위 페이지 머리 */
.ph { padding: 64px 0 52px; background: linear-gradient(135deg, var(--accent-soft), #fff 70%); border-bottom: 1px solid var(--line); }
.ph__en { font-size: 12px; letter-spacing: .24em; color: var(--accent); font-weight: 800; }
.ph h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.ph p:not(.ph__en) { margin-top: 8px; color: var(--soft); }

/* 병원 소개 */
.greet__body { display: flex; gap: 40px; align-items: flex-start; }
.greet__body .doc__photo { width: 220px; height: 270px; }
.greet__body .doc__photo--mono span { font-size: 80px; }
.greet__text { font-size: 17px; line-height: 2; }
.greet__sign { margin-top: 24px; font-weight: 800; }
.values { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.values li { padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.values span { font-size: 28px; font-weight: 800; color: var(--accent); opacity: .5; }
.values b { display: block; font-size: 20px; margin-top: 4px; }
.values p { color: var(--soft); margin-top: 4px; }
.equip { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.equip li { padding: 24px; background: #fff; border-radius: var(--radius); border-left: 4px solid var(--accent); }
.equip b { font-size: 17px; }
.equip p { color: var(--soft); font-size: 15px; margin-top: 4px; }

/* 진료 안내 */
.chips { position: sticky; top: var(--hd); z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.chips__in { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.chips__in::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; background: #fff; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.tx__head { display: flex; gap: 18px; align-items: center; margin-bottom: 28px; }
.tx__head .sec__title { margin: 0; }
.tx__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tx__box { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tx__box h3, .caution h3 { font-size: 17px; margin-bottom: 14px; }
.check { list-style: none; display: grid; gap: 8px; }
.check li { position: relative; padding-left: 28px; }
.check li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.steps b { font-size: 16px; }
.steps span { color: var(--soft); font-size: 14px; }
.caution { margin-top: 20px; padding: 20px 24px; border-radius: var(--radius); background: #fff8eb; border: 1px solid #f6e3bd; }
.caution ul { margin-left: 18px; color: #6b5a33; font-size: 15px; display: grid; gap: 4px; }
.faq { margin-top: 20px; display: grid; gap: 8px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--accent); font-weight: 800; margin-right: 4px; }
.faq summary::after { content: "+"; color: var(--accent); margin-left: auto; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px; color: var(--soft); }
.table-wrap { overflow-x: auto; }
.fees { width: 100%; border-collapse: collapse; border-top: 2px solid var(--text); min-width: 480px; }
.fees th, .fees td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.fees th { background: var(--alt); font-size: 14px; }
.fees .num { text-align: right; font-weight: 700; white-space: nowrap; }

/* 오시는 길 */
.location__addr { font-size: 17px; font-weight: 600; }
.location__tel { display: none; }
.map { height: 400px; margin-top: 18px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--line); }
.map iframe, .map img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.navi { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; background: #fff; }
.navi a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 52px; font-weight: 600; font-size: 15px; }
.navi a + a { border-left: 1px solid var(--line); }
.navi a:hover { background: var(--alt); }
.transport { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.transport div { padding: 20px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.transport dt { font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.transport dd { white-space: pre-line; font-size: 15px; }

/* 예약 · 상담 */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 48px; }
.way { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s; }
.way:hover { border-color: var(--accent); }
.way svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 8px; }
.way b { font-size: 17px; }
.way small { color: var(--soft); }
.cform { display: grid; gap: 18px; margin-top: 24px; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.cfield { border: 0; min-width: 0; }
.cfield > label, .cfield > legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.cfield em { color: #e5484d; font-style: normal; }
.cfield input:not([type=radio]), .cfield select, .cfield textarea { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }
.cfield textarea { height: auto; padding: 12px 14px; resize: vertical; }
.cfield input:focus, .cfield select:focus, .cfield textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg input { position: absolute; opacity: 0; }
.seg label { padding: 13px; text-align: center; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.seg input:checked + label { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.consent { padding: 16px 18px; background: var(--alt); border-radius: 12px; font-size: 14px; }
.consent label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--accent); }
.consent p { margin: 6px 0 0 26px; color: var(--soft); font-size: 13px; }
.consent a { color: var(--accent); text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.cmsg { min-height: 1em; color: #e5484d; font-weight: 600; font-size: 14px; }
.done { margin-top: 24px; padding: 40px; text-align: center; border-radius: var(--radius); border: 1px solid var(--line); }
.done__icon { font-size: 42px; }
.done h3 { font-size: 21px; margin: 6px 0; }
.done p { color: var(--soft); }

.policy h2 { font-size: 18px; margin: 28px 0 8px; }
.policy p, .policy li { color: #3a4646; line-height: 1.8; }
.policy ul { margin-left: 20px; }

/* ---------- 꼬리 ---------- */
.ft { background: #1b2424; color: #c2cccc; padding: 48px 0 56px; font-size: 14px; }
.ft__in { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.ft__name { font-size: 20px; font-weight: 800; color: #fff; }
.ft__status { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ft__info { display: grid; gap: 4px; }
.ft__info a { color: #fff; }
.ft__sns, .ft__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.ft__copy { margin-top: 10px; color: #7d8a8a; }

/* ---------- 빠른 메뉴 (모바일 하단) ---------- */
.quick { display: none; }

/* ---------- 라이트박스 · 모달 · 토스트 · 데모 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,12,12,.95); display: flex; align-items: center; justify-content: center; }
.lightbox__track { display: flex; width: 100%; height: 100%; transition: transform .35s ease; }
.lightbox__track figure { flex: 0 0 100%; display: grid; place-items: center; padding: 56px 12px; }
.lightbox__track img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox__close { position: absolute; top: 10px; right: 14px; z-index: 2; width: 44px; height: 44px; color: #fff; font-size: 34px; }
.lightbox__nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 64px; margin-top: -32px; color: #fff; font-size: 42px; opacity: .75; }
.lightbox__prev { left: 6px; } .lightbox__next { right: 6px; }
.lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; color: #fff; text-align: center; font-size: 14px; opacity: .8; }
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.modal__sheet { position: relative; width: min(480px, 92vw); max-height: 86vh; overflow: auto; padding: 32px 24px; background: #fff; border-radius: 16px; }
.modal__close { position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; font-size: 28px; color: var(--soft); }
.toast { position: fixed; left: 50%; bottom: 40px; z-index: 120; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 999px; background: rgba(20,30,30,.92); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; white-space: nowrap; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.demo-bar { position: fixed; left: 50%; bottom: 16px; z-index: 60; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(20,20,20,.84); backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.demo-bar button, .demo-bar a { padding: 7px 13px; border-radius: 999px; color: #fff; font-size: 13px; white-space: nowrap; }
.demo-bar button.is-active { background: #fff; color: #111; font-weight: 700; }
.demo-bar a { opacity: .8; border-left: 1px solid rgba(255,255,255,.2); border-radius: 0 999px 999px 0; }

/* ============================================================
 *  반응형
 * ============================================================ */
@media (max-width: 1080px) {
  .hd__tel span { display: none; }
  .gnb a { padding: 8px 9px; font-size: 14px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --hd: 60px; }
  body { padding-bottom: 64px; }
  .hd__menu { display: grid; }
  .hd__tel { display: none; }
  .gnb { position: fixed; top: var(--hd); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px; background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; overflow-y: auto; }
  .menu-open .gnb { transform: none; visibility: visible; transition: transform .25s ease; }
  .menu-open { overflow: hidden; }
  .gnb a { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .gnb a.is-active { background: none; }
  .gnb .gnb__cta { margin: 20px 0 0; text-align: center; border-radius: 12px; border: 0; }
  .hero { min-height: 72vh; }
  .hero::after { background: linear-gradient(180deg, rgba(10,20,20,.2) 0%, rgba(10,20,20,.75) 100%); }
  .hero__in { padding-bottom: 80px; }
  .today { grid-template-columns: 1fr 1fr; margin-left: 16px; margin-right: 16px; }
  .today__item { padding: 16px; }
  .today__item:nth-child(3) { border-left: 0; }
  .today__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec { padding: 64px 0; }
  .two, .tx__cols, .ft__in { grid-template-columns: 1fr; gap: 40px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: 1fr 1fr; gap: 8px; }
  .greet__body { flex-direction: column; gap: 24px; }
  .greet__body .doc__photo { width: 160px; height: 200px; }
  .cgrid { grid-template-columns: 1fr; }
  .map { height: 300px; }
  .quick { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 64px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.05); padding-bottom: env(safe-area-inset-bottom); }
  .quick a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 600; color: #3a4646; }
  .quick a svg { width: 22px; height: 22px; }
  .quick .quick__main { background: var(--accent); color: #fff; }
  .demo-bar { bottom: 76px; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .doc { flex-direction: column; }
  .doc__photo { width: 100%; height: 220px; }
  .docs--brief .doc { flex-direction: row; }
  .docs { grid-template-columns: 1fr; }
  .logo__text small { display: none; }
  .big-tel { font-size: 26px; }
}


/* 인물 사진: 얼굴이 위쪽에 오도록 */
.doc__photo { object-position: center 20%; }
.demo-note { margin-top: 16px; font-size: 12px; color: var(--soft); }

/* ============================================================
 *  사진이 들어간 진료 안내 · 메인 블록
 * ============================================================ */
/* 메인 섹션 배경 번갈아 (흰색 / 연한 색) */
body[data-page="home"] #main > section.sec:nth-of-type(odd) { background: #fff; }
body[data-page="home"] #main > section.sec:nth-of-type(even) { background: var(--alt); }

/* 메인: 병원 소개 요약 */
.intro__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.intro__photo { aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(20,40,40,.12); }
.intro__photo img { width: 100%; height: 100%; object-fit: cover; }
.intro__text .sec__title { margin-bottom: 16px; line-height: 1.45; font-size: clamp(21px, 2.3vw, 27px); }
.intro__desc { color: var(--soft); font-size: 16px; line-height: 1.8; }
.intro__values { list-style: none; margin: 22px 0 26px; display: grid; gap: 10px; }
.intro__values li { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); }
.intro__values b { color: var(--accent); flex: none; min-width: 4em; }
.intro__values span { font-size: 15px; }

/* 메인: 사진 있는 진료 과목 카드 */
.tx-grid a.has-photo { padding: 0; overflow: hidden; }
.tx-grid__img { position: relative; display: block; aspect-ratio: 16/10; background: var(--line); }
.tx-grid__clip { position: absolute; inset: 0; overflow: hidden; }
.tx-grid__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tx-grid a:hover .tx-grid__img img { transform: scale(1.05); }
.tx-grid__img .ico { position: absolute; z-index: 1; left: 16px; bottom: -22px; width: 48px; height: 48px; font-size: 24px; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.tx-grid__body { display: flex; flex-direction: column; flex: 1; }
.tx-grid a.has-photo .tx-grid__body { padding: 32px 22px 22px; }
.tx-grid a.has-photo b { margin-top: 0; }

/* 진료 안내: 사진 + 설명 */
.tx__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 24px; }
.tx__intro.is-rev .tx__photo { order: 2; }
.tx__photo { aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 40px rgba(20,40,40,.1); }
.tx__photo img { width: 100%; height: 100%; object-fit: cover; }
.tx__text .tx__head { margin-bottom: 22px; }
.tx__for { padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.tx__for h3 { font-size: 16px; margin-bottom: 12px; }
.tx__box--wide { margin-top: 4px; }
.steps--row { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.steps--row li { grid-template-columns: 1fr; row-gap: 6px; }
.steps--row li::before { grid-row: auto; }

@media (max-width: 860px) {
  .intro__in, .tx__intro { grid-template-columns: 1fr; gap: 24px; }
  .tx__intro.is-rev .tx__photo { order: 0; }
  .steps--row { grid-template-columns: 1fr; }
  .steps--row li { grid-template-columns: 32px 1fr; column-gap: 12px; }
  .steps--row li::before { grid-row: span 2; }
}

/* ============================================================
 *  [병원 종류 테마]
 * ============================================================ */
[data-type="general"] { --accent: #2f9e6e; --accent-dark: #237e57; --accent-soft: #e7f5ee; --alt: #f6f8f3; --text: #1f2a24; --soft: #64716a; --line: #e2e9e4; }
[data-type="general"] .ft { background: #1f2a24; }
[data-type="cat"] { --accent: #d0738a; --accent-dark: #b25a71; --accent-soft: #fbeef1; --alt: #fbf7f5; --text: #2f2629; --soft: #7b6c70; --line: #f0e4e6; }
[data-type="cat"] .ft { background: #2f2629; }
[data-type="cat"] .hero::after { background: linear-gradient(90deg, rgba(40,24,30,.7), rgba(40,24,30,.3) 60%, rgba(40,24,30,.05)); }
[data-type="er"] { --accent: #d64545; --accent-dark: #b43535; --accent-soft: #fdeceb; --alt: #f5f6f9; --text: #141a2b; --soft: #5f6679; --line: #e3e6ee; }
[data-type="er"] .ft { background: #141a2b; }
[data-type="er"] .hero::after { background: linear-gradient(90deg, rgba(10,14,30,.82), rgba(10,14,30,.45) 60%, rgba(10,14,30,.15)); }
[data-type="exotic"] { --accent: #7a8f2a; --accent-dark: #5f7020; --accent-soft: #f1f4e2; --alt: #f8f7f0; --text: #262a1c; --soft: #6b6f5c; --line: #e6e6d8; }
[data-type="exotic"] .ft { background: #262a1c; }

/* ============================================================
 *  동물병원 전용
 * ============================================================ */
:root { --radius: 18px; }
.btn { border-radius: 999px; }
.logo__mark { border-radius: 50%; }
.logo__mark svg { width: 21px; height: 21px; stroke-width: 1.6; }
.hero__btns .btn svg, .btn-row .btn svg, .vac-cta .btn svg { width: 18px; height: 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hint { display: block; margin-top: 6px; color: var(--soft); font-size: 13px; }

/* 24시간 */
.h24 { display: flex; flex-direction: column; gap: 4px; padding: 26px 24px; border-radius: var(--radius); background: var(--accent-soft); border-top: 2px solid var(--text); }
.h24 b { font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.h24 span { color: var(--soft); }

/* 응급 안내 */
.emer { background: #fff; }
.emer__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; padding: 36px; border-radius: 24px; border: 2px solid color-mix(in srgb, #e5484d 30%, transparent); background: linear-gradient(135deg, #fff5f4, #fff 60%); }
.emer__tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #e5484d; color: #fff; font-weight: 700; font-size: 13px; }
.emer__tag svg { width: 16px; height: 16px; }
.emer__head .sec__title { margin: 14px 0 10px; }
.emer__text { color: var(--soft); line-height: 1.75; }
.emer__place { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; }
.emer__place svg { color: #e5484d; width: 18px; height: 18px; }
.btn--sos { margin-top: 18px; background: #e5484d; color: #fff; height: 54px; font-size: 17px; }
.btn--sos:hover { background: #c93b40; }
.btn--sos svg { width: 20px; height: 20px; }
.emer__signs { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid #f3d6d6; }
.emer__signs h3 { font-size: 17px; margin-bottom: 12px; }
.emer__signs ul { list-style: none; display: grid; gap: 9px; }
.emer__signs li { position: relative; padding-left: 26px; font-size: 15px; }
.emer__signs li::before { content: "!"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fde5e5; color: #e5484d; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.emer--full { padding-top: 0; }
.is-24h .emer__in { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.quick .quick__sos { color: #e5484d; }
.sos-line { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 36px; padding: 14px 18px; border-radius: 14px; background: #fff3f2; color: #8a2d2f; font-size: 15px; }
.sos-line svg { color: #e5484d; margin-top: 2px; }
.sos-line a { color: #d13438; }

/* 진료 안내: 예약 링크 */
.tx__go { margin-top: 20px; }

/* 메인: 접종 계산 바로가기 */
.vac-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 36px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(20,40,30,.06); }
.vac-cta .sec__title { margin-bottom: 8px; }
.vac-cta .btn { flex: none; }

/* 예방접종 계산 */
.seg--lg { margin-bottom: 22px; }
.seg--lg label { padding: 16px; font-size: 17px; }
.seg--wrap { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.cgrid--3 { grid-template-columns: repeat(3, 1fr); }
.cform__sub { font-size: 15px; color: var(--accent); margin: 6px 0 -4px; letter-spacing: .02em; }
.vac-form { padding: 26px; border-radius: 20px; background: var(--alt); margin-bottom: 26px; }
.vac-empty { display: grid; justify-items: center; gap: 10px; padding: 44px 20px; border: 2px dashed var(--line); border-radius: 20px; color: var(--soft); text-align: center; }
.vac-empty svg { width: 36px; height: 36px; color: var(--accent); }
.vac-next { padding: 28px; border-radius: 22px; background: var(--accent); color: #fff; margin-bottom: 22px; box-shadow: 0 16px 36px color-mix(in srgb, var(--accent) 30%, transparent); }
.vac-next__tag { font-size: 14px; opacity: .85; font-weight: 600; }
.vac-next > b { display: block; margin-top: 4px; font-size: 26px; letter-spacing: -.02em; }
.vac-next__date { margin-top: 6px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vac-next__extra { margin-top: 4px; opacity: .9; font-size: 15px; }
.dday { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: 14px; }
.vac-next .btn--primary { background: #fff; color: var(--accent-dark); }
.vac-next .btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.vac-list { list-style: none; display: grid; gap: 8px; }
.vac-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.vac-list li.is-next { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.vac-list li.is-done { background: var(--alt); }
.vac-list li.is-done .vac-list__body b { text-decoration: line-through; color: var(--soft); }
.vac-list li.is-past:not(.is-done) .vac-list__date { color: #c07a12; }
.vac-list li.is-yearly { border-style: dashed; }
.vac-list__body b { display: block; font-size: 16px; }
.vac-list__body small, .vac-list__date small { display: block; color: var(--soft); font-size: 13px; font-weight: 500; }
.vac-list__date { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; white-space: nowrap; }
.vac-check { position: relative; width: 30px; height: 30px; cursor: pointer; }
.vac-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.vac-check span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--line); background: #fff; transition: background .15s, border-color .15s; }
.vac-check input:checked + span { background: var(--accent); border-color: var(--accent); }
.vac-check input:checked + span::after { content: ""; position: absolute; left: 9px; top: 4px; width: 7px; height: 13px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.vac-check input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
.vac-monthly { margin-top: 22px; padding: 14px 18px; border-radius: 14px; background: var(--accent-soft); font-weight: 600; }
.vac-note { margin-top: 12px; color: #6b5a33; font-size: 15px; }

@media (max-width: 860px) {
  .emer__in { grid-template-columns: 1fr; padding: 26px 22px; }
  .vac-cta__in { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .cgrid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .vac-list li { grid-template-columns: 30px 1fr; padding: 13px 14px; }
  .vac-list__date { grid-column: 2; text-align: left; }
  .vac-form { padding: 20px 16px; }
  .btn--sos { width: 100%; }
}

/* 판매 페이지 스크린샷 (?shot=1) */
.is-shot .reveal { opacity: 1; transform: none; transition: none; }
@media (max-width: 560px) {
  html.is-shot body { max-width: 390px; overflow: hidden; }
  html.is-shot .quick { right: auto; width: 390px; }
  html.is-shot .ph { display: none; }
  html.is-shot .sec { padding-top: 20px; }
  html.is-shot .vac-form { margin-bottom: 16px; }
}
