/* 현풍동물병원 — 밝은 바탕, 큰 글씨, 넓은 여백. 병원 주황을 포인트로 사용
   Layout: 가운데 정렬 섹션 + 둥근 타일 그리드, 하위 페이지는 고정 보조 메뉴 */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --brand: #ee8b3a;          /* 로고 주황 (넓은 면) */
  --accent: #c2550c;         /* 글자 · 링크용 진한 주황 */
  --accent-soft: #fdf1e7;
  --dark: #161617;
  --on-dark: #f5f5f7;
  --on-dark-muted: #a1a1a6;
  --ok: #1e8e4f;
  --warn: #b26a00;
  --off: #c4372b;
  --f-sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --nav-h: 48px;
  --radius: 28px;
  --max: 1024px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-sans); font-size: 17px; line-height: 1.6; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.wrap-narrow { max-width: 760px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }

/* ---------- 글로벌 메뉴 ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: rgba(255,255,255,.92); }
.gnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.gnav .wrap { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.logo .mk { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); display: grid; place-items: center; }
.logo .mk img { width: 18px; }
.logo b { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.gnav-links { display: flex; gap: clamp(14px, 2.6vw, 30px); list-style: none; margin: 0; padding: 0; }
.gnav-links a { font-size: 13px; text-decoration: none; color: rgba(0,0,0,.8); white-space: nowrap; }
.gnav-links a:hover, .gnav-links a[aria-current="page"] { color: var(--accent); }
.gnav-links a[aria-current="page"] { font-weight: 600; }
.gnav-tel { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-btn { display: none; width: 40px; height: 40px; margin-right: -10px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; width: 16px; height: 1.5px; background: var(--ink); transition: transform .25s ease, top .25s ease; }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 23px; }
.menu-open .menu-btn span:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 19.5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .gnav-links, .gnav-tel { display: none; }
  .menu-btn { display: block; }
  .menu-open .gnav { background: #fff; }
  .menu-open .gnav-links {
    display: flex; flex-direction: column; gap: 0; position: fixed; left: 0; right: 0;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); bottom: 0; background: #fff; overflow-y: auto;
    padding: 12px max(32px, env(safe-area-inset-right, 0px)) 40px max(32px, env(safe-area-inset-left, 0px));
  }
  .menu-open .gnav-links a { display: block; font-size: 26px; font-weight: 600; padding: 9px 0; color: var(--ink); }
  .menu-open .gnav-links a[aria-current="page"] { color: var(--accent); }
  .menu-open .gnav-links .m-tel { display: block; margin-top: 18px; font-size: 17px; color: var(--accent); }
  .menu-open { overflow: hidden; }
}
.gnav-links .m-tel { display: none; }

/* ---------- 하위 페이지 보조 메뉴 ---------- */
.lnav { position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 30; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.lnav .wrap { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lnav .t { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.lnav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.lnav ul::-webkit-scrollbar { display: none; }
.lnav ul a { font-size: 13px; color: rgba(0,0,0,.75); text-decoration: none; white-space: nowrap; }
.lnav ul a:hover { color: var(--accent); }
@media (max-width: 700px) {
  .lnav .wrap { flex-direction: column; align-items: stretch; gap: 2px; padding-block: 8px; }
  .lnav .t { font-size: 17px; }
}

/* ---------- 버튼 · 링크 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 22px; border-radius: 980px; font: inherit; font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s ease; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #a94806; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-sm { min-height: 32px; padding: 5px 15px; font-size: 14px; }
.more { color: var(--accent); text-decoration: none; font-size: 17px; white-space: nowrap; }
.more::after { content: " ›"; font-size: 1.15em; line-height: 0; }
.more:hover { text-decoration: underline; }
.links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; }
.dark .more, .on-brand .more { color: #ffb27a; }
.on-brand .more { color: #fff; }

/* ---------- 섹션 공통 ---------- */
.sec { padding-block: clamp(64px, 10vw, 112px); }
.sec-alt { background: var(--bg-alt); }
.sec-dark { background: var(--dark); color: var(--on-dark); }
.center { text-align: center; }
.eyebrow { display: block; font-size: clamp(17px, 2vw, 21px); font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.sec-dark .eyebrow { color: #ffb27a; }
.headline { font-size: clamp(36px, 6.4vw, 64px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.title { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.15; font-weight: 700; letter-spacing: -0.022em; }
.sub { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.5; color: var(--muted); font-weight: 400; margin: 18px auto 0; max-width: 34em; }
.sec-dark .sub { color: var(--on-dark-muted); }
.center .links { margin-top: 26px; }
.lead { font-size: 19px; color: var(--muted); max-width: 40em; }

/* ---------- 홈 히어로 ---------- */
.hero { padding-block: clamp(56px, 9vw, 96px) 0; text-align: center; }
.hero .since { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(17px, 2vw, 21px); font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.hero .since b { background: var(--accent-soft); padding: 2px 12px; border-radius: 980px; font-weight: 700; }
.hero h1 { font-size: clamp(42px, 8vw, 84px); line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .sub { max-width: 30em; }
.hero .links { margin-top: 28px; }
.hero-visual { margin: clamp(44px, 7vw, 72px) auto 0; max-width: var(--max); padding-inline: max(22px, env(safe-area-inset-left, 0px)) max(22px, env(safe-area-inset-right, 0px)); }
.hero-tile { position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(160deg, #f6a25a 0%, var(--brand) 45%, #e0711f 100%); color: #fff; padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; text-align: left; }
.hero-tile .mark { width: clamp(120px, 20vw, 220px); opacity: .95; }
.hero-tile .figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hero-tile .fig b { display: block; font-size: clamp(34px, 5.6vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-tile .fig b small { font-size: .42em; font-weight: 600; margin-left: 3px; letter-spacing: 0; }
.hero-tile .fig span { display: block; margin-top: 10px; font-size: clamp(14px, 1.6vw, 17px); font-weight: 500; opacity: .92; }
.hero-tile p { margin: 28px 0 0; font-size: clamp(17px, 2vw, 21px); font-weight: 600; line-height: 1.5; max-width: 30em; }
@media (max-width: 700px) {
  .hero-tile { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-tile .mark { order: -1; margin: 0 auto; width: 110px; }
  .hero-tile .figs { gap: 10px; }
  .hero-tile p { margin-inline: auto; }
}

/* ---------- 진료 현황 바 ---------- */
.status { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 26px; padding: 18px 22px; margin-top: 18px; border-radius: 18px; background: var(--bg-alt); font-size: 15px; font-variant-numeric: tabular-nums; }
.status .k { color: var(--muted); margin-right: 6px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.open { color: var(--ok); } .pill.warn { color: var(--warn); } .pill.closed { color: var(--off); }
.status .hint { color: var(--muted); }
.status a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ---------- 타일 그리드 ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; background: var(--bg-alt); border-radius: var(--radius); padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 44px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 340px; text-decoration: none; color: inherit; transition: transform .3s ease; }
a.tile:hover { transform: scale(1.012); }
.tile.dark { background: var(--dark); color: var(--on-dark); }
.tile.on-brand { background: var(--brand); color: #fff; }
.tile .ic { width: 56px; height: 56px; margin-bottom: 8px; color: var(--accent); }
.tile.dark .ic { color: #ffb27a; } .tile.on-brand .ic { color: #fff; }
.tile h3 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.tile p { margin: 4px 0 0; font-size: clamp(17px, 1.9vw, 19px); color: var(--muted); max-width: 22em; }
.tile.dark p { color: var(--on-dark-muted); } .tile.on-brand p { color: rgba(255,255,255,.92); }
.tile .more { margin-top: auto; padding-top: 14px; }
.tile.wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .tiles { grid-template-columns: minmax(0, 1fr); } .tile { min-height: 0; } }

/* ---------- 카드 그리드 (3열) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--bg); border-radius: 22px; padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sec:not(.sec-alt) .card { background: var(--bg-alt); }
.card .ic { width: 40px; height: 40px; color: var(--accent); margin-bottom: 10px; }
.card .en { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .more { font-size: 15px; margin-top: auto; padding-top: 12px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 숫자 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; text-align: center; }
.stats b { display: block; font-size: clamp(44px, 7vw, 80px); font-weight: 700; line-height: 1; letter-spacing: -0.035em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stats b small { font-size: .38em; font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.stats span { display: block; margin-top: 12px; font-size: 17px; color: var(--muted); }
@media (max-width: 600px) { .stats { gap: 10px; } .stats span { font-size: 14px; } }

/* ---------- 원장 ---------- */
.doctor { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.doctor .photo { width: 100%; max-width: 260px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--bg-alt); }
.doctor .role { font-size: 17px; font-weight: 600; color: var(--accent); }
.doctor h3 { font-size: clamp(32px, 4.4vw, 44px); font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: 17px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 700px) { .doctor { grid-template-columns: minmax(0, 1fr); text-align: center; } .doctor .photo { margin: 0 auto; max-width: 200px; } .doctor .ticks { text-align: left; max-width: 26em; margin: 0 auto; } }

/* 펼치기 */
.fold { margin-top: 48px; border-top: 1px solid var(--line); }
.fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 21px; font-weight: 600; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; font-size: 28px; font-weight: 300; color: var(--accent); line-height: 1; transition: transform .25s ease; }
.fold[open] > summary::after { transform: rotate(45deg); }
.timeline { list-style: none; margin: 0 0 8px; padding: 0; }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.timeline .yr { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; font-size: 15px; } }

/* ---------- 차별화 10가지 ---------- */
.ten { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: t; text-align: left; }
.ten li { counter-increment: t; background: #2a2a2c; border-radius: 22px; padding: 26px 28px; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: start; }
.ten li::before { content: counter(t, decimal-leading-zero); font-size: 28px; font-weight: 700; color: #ffb27a; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ten b { display: block; font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.ten span { color: var(--on-dark-muted); font-size: 16px; }
@media (max-width: 700px) { .ten { grid-template-columns: minmax(0, 1fr); } }
.chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 48px; }
.chips span { border: 1px solid #ffb27a; color: #ffb27a; border-radius: 980px; padding: 6px 18px; font-size: 15px; font-weight: 500; }
.quote { font-size: clamp(21px, 2.8vw, 28px); font-weight: 600; line-height: 1.5; max-width: 26em; margin: 22px auto 0; letter-spacing: -0.02em; }

/* ---------- 표 ---------- */
.table-x { overflow-x: auto; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.sec:not(.sec-alt) .table-x { background: var(--bg); }
table { border-collapse: collapse; width: 100%; font-size: 16px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg-alt); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }
tr.today td { color: var(--accent); background: var(--accent-soft); }
.table-wide table { min-width: 560px; }
.note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* ---------- 보호자 가이드 ---------- */
.guide-sec { scroll-margin-top: calc(var(--nav-h) + 64px); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cols2 > div { min-width: 0; }
.cols2 h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.cols2 h3 small { font-size: 15px; font-weight: 500; color: var(--accent); margin-left: 6px; }
@media (max-width: 700px) { .cols2 { grid-template-columns: minmax(0, 1fr); } }
.callout { margin: 28px 0 0; padding: 22px 26px; border-radius: 18px; background: var(--accent-soft); font-size: 17px; }
.callout b { color: var(--accent); }
.h-sm { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 56px 0 16px; }
.terms { margin: 0; border-top: 1px solid var(--line); }
.terms > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 600; }
.terms dt small { display: block; font-size: 14px; font-weight: 500; color: var(--accent); }
.terms dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .terms > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--accent); line-height: 1; transition: transform .25s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--muted); max-width: 44em; }
.faq .a p { margin: 0 0 10px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--bg-alt); border-radius: 20px; padding: 22px 20px 24px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.steps b { font-size: 17px; }
.steps span { font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.listbox { background: var(--bg-alt); border-radius: 20px; padding: 24px 26px; }
.listbox h3 { margin-bottom: 12px; }

/* ---------- 협력 병원 ---------- */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.partner { background: var(--bg); border-radius: 22px; padding: 26px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.partner .plate { height: 84px; border-radius: 14px; display: grid; place-items: center; padding: 14px 20px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s ease; }
.partner .plate:hover { border-color: var(--accent); }
.partner .plate img { max-height: 52px; width: auto; }
.partner h3 { font-size: 20px; font-weight: 700; line-height: 1.35; }
.partner .addr { color: var(--muted); font-size: 15px; margin: 0; }
.partner .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 980px; }
.badge.e { background: #fdeceb; color: var(--off); }
.badge.n { background: var(--accent-soft); color: var(--accent); }
.partner .tel { font-weight: 600; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.partner .tel:hover { color: var(--accent); }
@media (max-width: 700px) { .partners { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 오시는 길 ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.visit > div { min-width: 0; }
.panel { background: var(--bg); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
.sec:not(.sec-alt) .panel { background: var(--bg-alt); }
.panel h3 { font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.addr-big { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; }
.facts { margin: 22px 0 0; display: grid; gap: 12px; }
.facts > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; font-size: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts a { color: var(--accent); text-decoration: none; font-weight: 600; }
.panel .links { justify-content: flex-start; margin-top: 26px; }
@media (max-width: 800px) { .visit { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 준비 중 ---------- */
.soon { max-width: 640px; margin: 0 auto; background: var(--bg-alt); border-radius: var(--radius); padding: 56px 28px; text-align: center; }
.soon .ic { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--accent); }
.soon h2 { font-size: 28px; font-weight: 700; }
.soon p { color: var(--muted); margin: 10px 0 24px; }

/* ---------- 다음 페이지 안내 ---------- */
.next { border-top: 1px solid var(--line); padding-block: 40px; }
.next .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.next .lbl { font-size: 14px; color: var(--muted); display: block; }
.next a.go { font-size: 24px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.next a.go:hover { color: var(--accent); }
.next a.go::after { content: " ›"; color: var(--accent); }

/* ---------- 푸터 ---------- */
.foot { background: var(--bg-alt); color: var(--muted); font-size: 12px; line-height: 1.6; padding-block: 28px 36px; }
.foot .top { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.foot .top p { margin: 0; }
.foot .map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.foot .map h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--ink); }
.foot .map ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot .map a { text-decoration: none; color: var(--muted); }
.foot .map a:hover { color: var(--ink); text-decoration: underline; }
.foot .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 16px; }
.foot .bottom b { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .foot .map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ic-inline { width: 22px; height: 22px; vertical-align: -4px; margin-right: 6px; }
.hero-tile .mark { height: auto; }
.hero-tile .figs { grid-template-columns: repeat(3, max-content); column-gap: clamp(28px, 5vw, 64px); }
.hero-tile .fig b { white-space: nowrap; }
@media (max-width: 700px) {
  .hero-tile .figs { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
  .hero-tile .fig b { font-size: 48px; }
  .hero-tile .fig span { margin-top: 6px; }
}
/* 가로형 병원 로고 */
:root { --nav-h: 56px; }
.logo img { height: 38px; width: auto; }
.foot-logo { display: inline-block; margin-top: 22px; }
.foot-logo img { height: 34px; width: auto; }
@media (max-width: 860px) { .logo img { height: 34px; } }
.logo img { height: 42px; }
@media (max-width: 860px) { .logo img { height: 36px; } }
/* 보유 장비 */
.eq-cat { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 56px 0 18px; }
.eq-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.eq { flex: 1 1 220px; max-width: 100%; margin: 0; background: var(--bg); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.eq-img { aspect-ratio: 4 / 3; max-width: 100%; background: #fff; display: grid; place-items: center; padding: 22px; }
.eq-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.eq figcaption { padding: 4px 22px 24px; display: grid; gap: 4px; }
.eq-k { font-size: 13px; font-weight: 600; color: var(--accent); }
.eq b { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.eq figcaption > span:last-child { font-size: 15px; color: var(--muted); }
@media (min-width: 900px) { .eq { flex-basis: 22%; } }
.eq-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.eq { flex: none; }
.eq-img.duo { grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; }
@media (max-width: 900px) { .eq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .eq-grid { gap: 10px; }
  .eq-img { padding: 14px; }
  .eq figcaption { padding: 2px 14px 18px; }
  .eq b { font-size: 16px; }
  .eq figcaption > span:last-child { font-size: 14px; }
}
.eq-img, .eq-img.duo { display: block; position: relative; padding: 0; }
.eq-img img { position: absolute; top: 18px; left: 18px; width: calc(100% - 36px); height: calc(100% - 36px); max-width: none; max-height: none; object-fit: contain; }
.eq-img.duo img { width: calc(50% - 22px); }
.eq-img.duo img + img { left: calc(50% + 4px); }
@media (max-width: 480px) { .eq-img img { top: 12px; left: 12px; width: calc(100% - 24px); height: calc(100% - 24px); } .eq-img.duo img { width: calc(50% - 16px); } }
.eq-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eq-grid.two .eq-img { aspect-ratio: 16 / 9; }
@media (max-width: 480px) { .eq-grid.two .eq-img { aspect-ratio: 4 / 3; } }
/* 장비 그리드: 묶음별 열 수, 넓은 카드 */
.eq-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eq-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eq-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eq.wide { grid-column: span 2; }
.eq.wide .eq-img { aspect-ratio: 8 / 3; }
@media (max-width: 900px) {
  .eq-grid.c3, .eq-grid.c4, .eq-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eq.mwide { grid-column: span 2; }
  .eq.mwide .eq-img, .eq.wide .eq-img { aspect-ratio: 16 / 9; }
}
/* IDEXX 중심 장비 */
.eq-feature { margin: 0 0 18px; max-width: 46em; }
.eq-feature h4 { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--accent); }
.eq-feature p { margin: 0; color: var(--muted); font-size: 16px; }
.eq-feat-grid { margin-bottom: 8px; }
.eq.feat .eq-img { aspect-ratio: 1 / 1; }
.eq.feat .eq-img img { top: 28px; left: 28px; width: calc(100% - 56px); height: calc(100% - 56px); }
.eq.feat figcaption { padding: 6px 26px 30px; gap: 6px; }
.eq.feat b { font-size: 22px; }
.eq.feat figcaption > span:last-child { font-size: 16px; line-height: 1.6; }
.eq-badge { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #fff; background: var(--ink); padding: 3px 10px; border-radius: 980px; margin-bottom: 4px; }
.eq-sub { margin: 30px 0 14px; font-size: 15px; font-weight: 600; color: var(--muted); }
@media (max-width: 900px) {
  .eq-feat-grid.c3 { grid-template-columns: minmax(0, 1fr); }
  .eq.feat { display: grid; grid-template-columns: 42% minmax(0, 1fr); align-items: center; }
  .eq.feat .eq-img img { top: 16px; left: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
  .eq.feat figcaption { padding: 18px 20px 18px 4px; }
  .eq.feat b { font-size: 19px; }
  .eq.feat figcaption > span:last-child { font-size: 14px; }
}
/* 가장자리가 잘린 근접 사진은 카드 가득 채워 보여줌 */
.eq-img.cover img { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.m-br { display: none; }
@media (max-width: 600px) { .m-br { display: inline; } }
.partner .plate.cover { padding: 6px 20px; }
.partner .plate.cover img { max-height: 70px; border-radius: 6px; }
.partner .hours { margin: -6px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .d-br { display: none; } }
/* 진료시간 (오시는 길) */
.visit { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 801px) { .visit { grid-template-columns: minmax(0, 1fr); } }
.hours-list { display: grid; gap: 10px; }
.hrow { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 300px); gap: 12px 28px; align-items: center; background: var(--bg); border: 2px solid transparent; border-radius: 20px; padding: 24px 28px; }
.sec:not(.sec-alt) .hrow { background: var(--bg-alt); }
.panel .hrow { background: var(--bg-alt); }
.hrow .day { display: grid; gap: 2px; align-content: center; }
.hrow .day b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.hrow .day span { font-size: 15px; color: var(--muted); }
.hrow .time { font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hrow .time i { font-style: normal; color: var(--muted); font-weight: 400; margin: 0 .1em; }
.hrow.off .time { color: var(--off); }
.hrow .meta { margin: 0; display: grid; gap: 6px; }
.hrow .meta > div { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.hrow .meta > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hrow .meta dt { color: var(--muted); white-space: nowrap; }
.hrow .meta dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.hrow .meta a { color: var(--accent); text-decoration: none; }
.today-chip { display: none; justify-self: start; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); padding: 2px 10px; border-radius: 980px; }
.hrow.today { border-color: var(--accent); background: var(--bg); }
.hrow.today .today-chip { display: inline-block; }
.hrow.today .time { color: var(--accent); }
.hrow.off.today .time { color: var(--off); }
.hours-note { margin-top: 18px; padding: 18px 22px; border-radius: 16px; background: var(--accent-soft); font-size: 16px; }
.hours-note p { margin: 0; }
.hours-note p + p { margin-top: 4px; color: var(--muted); }
.hours-note a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 800px) {
  .hrow { grid-template-columns: minmax(0, 1fr) auto; padding: 20px; gap: 14px 16px; }
  .hrow .meta { grid-column: 1 / -1; }
  .hrow .time { font-size: 30px; text-align: right; }
  .hrow .day b { font-size: 19px; }
}
@media (max-width: 380px) { .hrow .time { font-size: 26px; } }
.hrow { grid-template-columns: 200px auto minmax(240px, 300px); column-gap: 40px; justify-content: space-between; }
.hrow .time { font-size: clamp(30px, 3.8vw, 40px); }
@media (max-width: 800px) {
  .hrow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hrow .day { grid-template-columns: auto 1fr auto; align-items: baseline; gap: 8px; }
  .hrow .day .today-chip { margin-top: 0; justify-self: end; }
  .hrow .time { text-align: left; font-size: 34px; }
  .hrow .meta { grid-column: auto; }
}
@media (min-width: 801px) {
  .hrow { grid-template-columns: 200px minmax(0, 1fr) 300px; justify-content: stretch; }
  .hrow .time { justify-self: start; }
}
/* 토요일 파랑, 일요일 · 공휴일 빨강 */
:root { --sat: #1d5fc2; }
.hrow.sat .day b, .hrow.sat .time, .hrow.sat.today .time { color: var(--sat); }
.hrow.sat .time i { color: var(--sat); opacity: .6; }
.hrow.off .day b { color: var(--off); }
.hrow .meta dd.stack { display: grid; gap: 2px; }
/* 약도 */
.loc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.loc-map { position: relative; display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.loc-map img { width: 100%; height: auto; display: block; }
.loc-map span { position: absolute; right: 12px; bottom: 12px; background: rgba(255,255,255,.94); color: var(--accent); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 980px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.loc-map:hover { border-color: var(--accent); }
.loc-info { min-width: 0; }
@media (max-width: 800px) { .loc { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.loc { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.loc-mapwrap { min-width: 0; }
.loc-map img { image-rendering: auto; }
.map-src { margin: 8px 2px 0; font-size: 12px; color: var(--muted); }
@media (max-width: 800px) { .loc { grid-template-columns: minmax(0, 1fr); } }
/* 진료 일정 안내 · 네이버 플레이스 */
.notice { margin-top: 18px; padding: 16px 22px; border-radius: 18px; background: #fdeceb; color: var(--ink); text-align: left; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.notice strong { color: var(--off); font-size: 15px; }
.notice ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.notice li b { font-weight: 600; margin-right: 6px; font-variant-numeric: tabular-nums; }
.notice li span { color: var(--muted); }
.status .np { font-weight: 500; font-size: 14px; }
.np-row { margin-top: 12px !important; }
.np-row .btn { background: var(--bg); }
@media (max-width: 600px) { .status .np { flex-basis: 100%; text-align: center; } }

[hidden] { display: none !important; }
/* 소개글 줄바꿈 정리 */
.lead { max-width: 48em; line-height: 1.75; }
.sub { max-width: 40em; line-height: 1.65; }
.callout { line-height: 1.75; }
.sub, .quote { text-wrap: balance; }
.lead, .callout { text-wrap: pretty; }
/* 카카오톡 · 인스타그램 */
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-kakao { background: #fee500; color: #191919; }
.btn-kakao:hover { background: #f5dc00; }
.foot-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.foot-social a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 980px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; }
.foot-social a:hover { border-color: var(--accent); color: var(--accent); }
.foot-social svg { width: 16px; height: 16px; }
/* 모바일 메뉴가 화면 전체로 펼쳐지도록 (헤더의 흐림 효과가 펼침을 막지 않게) */
.menu-open .gnav { backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .gnav-links .m-tel { margin-top: 0; padding: 6px 0; }
.menu-open .gnav-links li:nth-child(7) .m-tel { margin-top: 18px; }
.btn-insta { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-insta:hover { border-color: #c13584; color: #c13584; }
.hero .links { column-gap: 12px; }
@media (max-width: 400px) { .hero .links .btn { font-size: 16px; padding: 10px 18px; } }
/* 인스타그램 그라데이션 */
.btn-insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; border-color: transparent; }
.btn-insta:hover { color: #fff; border-color: transparent; filter: brightness(1.08); }
.soon .btn-primary[href*="instagram"], .foot-social a[href*="instagram"] { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; border-color: transparent; }
.foot-social a[href*="instagram"]:hover { color: #fff; filter: brightness(1.08); }
.foot-social a[href*="kakao"] { background: #fee500; color: #191919; border-color: transparent; }
.foot-social a[href*="kakao"]:hover { color: #191919; filter: brightness(.97); }
/* 상단 카카오톡 · 인스타그램 아이콘 */
.gnav-social { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.gnav-social a { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; transition: transform .15s ease, filter .15s ease; }
.gnav-social a:hover { transform: scale(1.08); }
.gnav-social svg { width: 17px; height: 17px; }
.gs-kakao { background: #fee500; color: #191919; }
.gs-insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; }
.gnav-links { margin-left: auto; }
@media (min-width: 861px) { .gnav-social { margin-left: 8px; } }
@media (max-width: 860px) { .gnav-social { margin-right: 4px; } .menu-btn { margin-left: 0; } }
/* 네이버 블로그 */
.btn-blog { background: #03c75a; color: #fff; }
.btn-blog:hover { background: #02b351; }
.btn-blog svg { color: #fff; }
.gnav-links .ext { font-size: .85em; opacity: .6; }
.soon .links { gap: 10px; }
/* 본문 가독성: 문장 단위 줄바꿈 + 자연스러운 줄나눔 */
p, dd, li, figcaption span, .faq .a { text-wrap: pretty; }
.terms dd, .faq .a, .eq figcaption > span:last-child, .card p, .tile p, .ten span, .steps span, .partner .addr, .note { line-height: 1.7; }
.faq .a p + p { margin-top: 6px; }

/* 의미 단위 묶음 + 칸 안 문단 균형 */
.nw { display: inline-block; }
.tile p, .card p, .eq figcaption > span:last-child, .eq-feature p, .ten span, .steps span, .partner .hours, .partner .addr, .note, .hours-note p, .soon { text-wrap: balance; }
.steps li span, .eq-sub, .partner .note { text-wrap: balance; }
.terms dd, .faq .a p, .faq .a, .lead, .callout, .ticks li { text-wrap: pretty; }

/* 숫자 룰렛 */
.roll b span { margin: 0; font-size: inherit; color: inherit; }
.roll b .roll-num { display: inline-flex; align-items: flex-start; }
.roll b .roll-num > span:not(.reel) { display: inline-block; }
.roll b .reel { display: inline-block; height: 1em; overflow: hidden; }
.roll b .strip { display: flex; flex-direction: column; transition: transform 1.8s cubic-bezier(.16, .84, .24, 1); will-change: transform; }
.roll b .strip > span { display: block; height: 1em; line-height: 1; text-align: center; }
.roll b .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr 1.45fr; }
  .stats b { font-size: clamp(30px, 9vw, 44px); white-space: nowrap; }
}
