/* =========================================================
   care 테마 — 요양병원·요양원·노인복지시설용
   보호자(50–60대)와 어르신이 읽기 쉽도록 기본 글자를 크게, 대비를 높게 잡았습니다.
   색상은 theme.css(company.json colors)에서 --primary / --accent / --ink 로 들어옴
   ========================================================= */
:root {
  --text: #34463e;
  --muted: #64776e;
  --line: #dbe6e0;
  --tint: #f2f8f4;
  --cream: #fffaf0;
  --r: 18px;
  --hd-h: 84px;
  --wrap: 1240px;
  --gutter: 32px;
  --sec-y: 100px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html { font-size: 17px; }
html.is-big { font-size: 20px; }
@media (max-width: 1024px) { :root { --hd-h: 66px; --gutter: 20px; --sec-y: 72px; } }
@media (max-width: 640px)  { :root { --gutter: 16px; --sec-y: 56px; } html { font-size: 16px; } html.is-big { font-size: 19px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 60px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 1rem; line-height: 1.75; color: var(--text); background: #fff; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 12px 20px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 16px; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(880px + var(--gutter) * 2); }
.center { text-align: center; }
.note { margin-top: 14px; font-size: .85rem; color: var(--muted); }

.eyebrow { display: inline-block; margin-bottom: 10px; padding: 4px 14px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, #fff); font-size: .85rem; font-weight: 800; color: var(--primary); }
.h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: clamp(1.55rem, 2.6vw, 2.2rem); line-height: 1.35; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.h2 .ico { color: var(--primary); }
.h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.h3 .ico { color: var(--primary); }
.lead { margin-top: 16px; font-size: 1.05rem; color: var(--muted); }
.sec { padding: var(--sec-y) 0; }
.sec-tint { background: var(--tint); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.sec-head.center .h2 { justify-content: center; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--primary); }
.dot-list { display: grid; gap: 8px; }
.dot-list li { position: relative; padding-left: 18px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border-radius: 14px; border: 2px solid transparent; font-size: 1rem; font-weight: 800; white-space: nowrap; transition: background .2s, color .2s, transform .2s var(--ease); }
.btn-lg { min-height: 62px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--tint); }

/* ---------- 헤더 ---------- */
.topbar { background: var(--ink); color: #fff; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; }
.topbar p { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar p .ico { color: var(--accent); }
.big-btn { display: flex; align-items: center; gap: 6px; flex: none; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); font-weight: 700; }
.big-btn[aria-pressed="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.hd { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.hd.is-scrolled { box-shadow: 0 4px 18px rgba(34,54,46,.08); }
.hd-bar { display: flex; align-items: center; gap: 28px; height: var(--hd-h); }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { width: 44px; height: 44px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 1.4rem; font-weight: 900; color: var(--ink); letter-spacing: -.04em; }
.logo-text small { font-size: .55rem; font-weight: 700; letter-spacing: .12em; color: var(--primary); }
.gnb { flex: 1; }
.gnb ul { display: flex; justify-content: center; gap: clamp(14px, 2vw, 32px); }
.gnb a { position: relative; display: block; padding: 8px 0; font-size: 1.02rem; font-weight: 800; color: var(--ink); }
.gnb a:hover, .gnb a[aria-current] { color: var(--primary); }
.gnb a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; border-radius: 2px; background: var(--accent); }
.hd-tel { display: flex; flex-direction: column; line-height: 1.15; font-size: 1.35rem; font-weight: 900; color: var(--primary); }
.hd-tel small { font-size: .7rem; color: var(--muted); }
.menu-btn { display: none; flex-direction: column; align-items: center; gap: 0; font-size: .7rem; font-weight: 700; color: var(--ink); }
.menu-btn .ico { width: 30px; height: 30px; }
@media (max-width: 1180px) { .gnb a { font-size: .95rem; } .hd-tel { font-size: 1.15rem; } }
@media (max-width: 1024px) { .gnb, .hd-tel { display: none; } .menu-btn { display: flex; margin-left: auto; } }
@media (max-width: 640px) { .topbar p { font-size: .78rem; } .big-btn span { font-size: .78rem; } }
.sitemap { position: fixed; inset: 0; z-index: 200; background: rgba(34,54,46,.5); display: flex; justify-content: flex-end; }
.sitemap-box { position: relative; width: min(420px, 100%); height: 100%; overflow-y: auto; background: #fff; padding: 76px 24px 40px; animation: slideIn .3s var(--ease); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.sitemap-close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; display: grid; place-items: center; color: var(--ink); }
.sitemap-close .ico { width: 30px; height: 30px; }
.sitemap-list a { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.sitemap-list .ico { color: var(--muted); }
.sitemap-call { margin-top: 26px; padding: 20px; border-radius: var(--r); background: var(--tint); }
.sitemap-call small { display: block; color: var(--muted); }
.sitemap-call a { font-size: 1.8rem; font-weight: 900; color: var(--primary); }

/* ---------- 메인 ---------- */
.hero { position: relative; height: clamp(440px, 64vh, 620px); overflow: hidden; background: var(--ink); color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s, visibility 1.2s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,36,29,.75), rgba(20,36,29,.15) 70%); }
.hero-copy { position: absolute; left: 0; right: 0; top: 50%; z-index: 1; transform: translateY(-55%); }
.hero-title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 900; line-height: 1.3; letter-spacing: -.04em; text-shadow: 0 2px 16px rgba(0,0,0,.2); }
.hero-text { display: inline-block; margin-top: 18px; padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 1.05rem; font-weight: 700; backdrop-filter: blur(4px); }
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 90px; z-index: 2; display: flex; align-items: center; gap: 12px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; }
.hero-dot.is-active { background: #fff; width: 34px; border-radius: 7px; }
.hero-pause { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.25); }
.hero-pause .ico { width: 16px; height: 16px; fill: #fff; stroke: #fff; }
@media (max-width: 640px) { .hero { height: 420px; } .hero-ctrl { bottom: 70px; } .hero-slide img { object-position: 60% center; } }

.quick { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: -56px; }
.quick a { display: flex; flex-direction: column; gap: 4px; padding: 24px 22px; border-radius: var(--r); background: #fff; box-shadow: 0 12px 30px rgba(34,54,46,.12); transition: transform .2s var(--ease); }
.quick a:hover { transform: translateY(-4px); }
.quick .ico { width: 34px; height: 34px; color: var(--primary); }
.quick b { margin-top: 6px; font-size: 1.12rem; color: var(--ink); }
.quick small { font-size: .85rem; color: var(--muted); }
.quick-call { background: var(--primary) !important; }
.quick-call .ico, .quick-call b, .quick-call small { color: #fff !important; }
.quick-call b { font-size: 1.3rem; white-space: nowrap; }
@media (max-width: 480px) { .quick-call b { font-size: 1.05rem; } }
@media (max-width: 900px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -40px; } .quick a { padding: 18px 16px; } }

.promise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.promise li { padding: 30px 24px; border-radius: var(--r); background: var(--cream); border: 1px solid #f3e6c8; }
.promise .ico { width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: #fff; color: var(--accent); }
.promise b { display: block; margin: 14px 0 6px; font-size: 1.15rem; color: var(--ink); }
.promise p { font-size: .95rem; color: var(--muted); }
.sec-tint .promise li { background: #fff; border-color: var(--line); }
@media (max-width: 1024px) { .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .promise { grid-template-columns: minmax(0, 1fr); } }
.grades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.grades li { display: flex; flex-direction: column; align-items: center; padding: 22px 16px; border-radius: var(--r); border: 2px solid var(--primary); text-align: center; }
.grades small { font-size: .85rem; color: var(--muted); }
.grades b { font-size: 1.8rem; font-weight: 900; color: var(--primary); }
.grades span { font-size: .8rem; color: var(--muted); }
.grades.lg li { background: #fff; padding: 30px 16px; }
.grades.lg b { font-size: 2.4rem; }
@media (max-width: 700px) { .grades { grid-template-columns: minmax(0, 1fr); } }

.care-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.care-grid a { display: flex; flex-direction: column; height: 100%; border-radius: var(--r); overflow: hidden; background: #fff; transition: box-shadow .2s; }
.care-grid a:hover { box-shadow: 0 12px 30px rgba(34,54,46,.12); }
.care-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.care-grid span { padding: 20px; }
.care-grid b { display: flex; align-items: center; gap: 6px; font-size: 1.1rem; color: var(--ink); }
.care-grid b .ico { color: var(--primary); }
.care-grid small { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); }
@media (max-width: 1024px) { .care-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .care-grid { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.split-imgs { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; align-items: end; }
.split-imgs img { width: 100%; object-fit: cover; border-radius: var(--r); }
.split-imgs img:first-child { aspect-ratio: 3 / 4; }
.split-imgs img:last-child { aspect-ratio: 1; }
.round-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 30px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.day { margin-top: 26px; border-left: 3px solid var(--line); }
.day li { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; padding: 9px 0 9px 22px; }
.day li::before { content: ""; position: absolute; left: -8px; top: 17px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.day time { font-weight: 900; color: var(--primary); font-variant-numeric: tabular-nums; }
.day span { color: var(--ink); }

.prog { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.prog li { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; }
.prog img { width: 100%; height: 100%; object-fit: cover; }
.prog li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,36,29,.7), transparent 55%); }
.prog span { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 800; color: #fff; }
.prog em { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); font-style: normal; color: var(--ink); flex: none; }
@media (max-width: 1024px) { .prog { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .prog li { scroll-snap-align: start; } }
@media (max-width: 560px) { .prog { grid-auto-columns: 70%; } }
.prog-lg li { aspect-ratio: 3 / 4; }

.cta { padding: 70px 0; background: var(--primary); color: rgba(255,255,255,.9); }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-title { margin-bottom: 8px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900; color: #fff; }
.cta-in > div:first-child { max-width: 640px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .cta-btns .btn { flex: 1 1 100%; } }

/* ---------- 서브 ---------- */
.sub-head { padding: 56px 0 40px; background: var(--tint); }
.crumb { display: flex; gap: 6px; margin-bottom: 10px; font-size: .85rem; color: var(--muted); }
.crumb li + li::before { content: "›"; margin-right: 6px; }
.sub-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 900; letter-spacing: -.045em; color: var(--ink); }
.sub-lead { margin-top: 8px; font-size: 1.08rem; color: var(--muted); }
.sub-tabs { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--hd-h); z-index: 50; }
.sub-tabs ul { display: flex; overflow-x: auto; scrollbar-width: none; }
.sub-tabs li { flex: 1 0 auto; }
.sub-tabs a { display: block; padding: 16px 18px; text-align: center; font-weight: 800; color: var(--muted); white-space: nowrap; border-bottom: 4px solid transparent; }
.sub-tabs a[aria-current] { color: var(--primary); border-color: var(--primary); }

.sign { margin-top: 24px; color: var(--muted); }
.sign b { margin: 0 6px; font-size: 1.3rem; color: var(--ink); }
.facility { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.facility li { border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.facility img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.facility b { display: block; padding: 18px 20px 2px; font-size: 1.1rem; color: var(--ink); }
.facility span { display: block; padding: 0 20px 20px; font-size: .9rem; color: var(--muted); }
@media (max-width: 800px) { .facility { grid-template-columns: minmax(0, 1fr); } }
.map { position: relative; border-radius: var(--r); overflow: hidden; }
.map svg { display: block; width: 100%; height: auto; }
.pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.pin .ico { width: 42px; height: 42px; fill: var(--accent); stroke: #fff; }
.pin b { order: -1; margin-bottom: 4px; padding: 4px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: .85rem; white-space: nowrap; }
.info { margin-top: 20px; border-top: 2px solid var(--ink); }
.info div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info dt { font-weight: 800; color: var(--primary); }
.info dd { color: var(--ink); }
@media (max-width: 480px) { .info div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.care-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 50px; align-items: center; scroll-margin-top: calc(var(--hd-h) + 70px); }
.care-row + .care-row { margin-top: 70px; }
.care-row.is-rev > img { order: 2; }
.care-row > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 30px; }
.checks { display: grid; gap: 8px; margin-top: 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checks .ico { margin-top: 4px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--primary); color: #fff; stroke-width: 3; }
@media (max-width: 900px) { .care-row { grid-template-columns: minmax(0, 1fr); gap: 26px; } .care-row.is-rev > img { order: 0; } }
.table-scroll { overflow-x: auto; }
.tbl { background: #fff; font-size: .95rem; }
.tbl th, .tbl td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--ink); color: #fff; font-weight: 800; }
.tbl tbody th { font-weight: 800; color: var(--primary); white-space: nowrap; }
.compare td { width: 40%; }
@media (max-width: 640px) { .tbl th, .tbl td { padding: 12px 10px; font-size: .88rem; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--tint); font-weight: 700; color: var(--primary); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { position: relative; padding: 30px 24px; border-radius: var(--r); background: var(--tint); }
.steps span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.2rem; font-weight: 900; }
.steps b { display: block; margin: 14px 0 6px; font-size: 1.15rem; color: var(--ink); }
.steps p { font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.box { align-self: stretch; padding: 32px; border-radius: var(--r); background: #fff; }
.faq details { margin-bottom: 10px; border-radius: var(--r); background: #fff; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px; cursor: pointer; list-style: none; font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--primary); transition: transform .2s; }
.faq details[open] .ico { transform: rotate(180deg); }
.faq details p { padding: 0 22px 22px; }

/* 비용 계산 · 예약 */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.calc fieldset { margin-bottom: 30px; }
.calc legend { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.calc legend span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .95rem; }
.calc legend em { color: #d9480f; font-style: normal; }
.opts { display: grid; gap: 8px; }
.opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 64px; padding: 12px 18px; border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s; }
.opt b { color: var(--ink); }
.opt small { font-size: .85rem; color: var(--muted); }
.opt input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, #fff); box-shadow: inset 0 0 0 1px var(--primary); }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chk { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.chk input { width: 22px; height: 22px; accent-color: var(--primary); }
.chk a { color: var(--primary); text-decoration: underline; }
.calc-out { position: sticky; top: calc(var(--hd-h) + 80px); padding: 30px; border-radius: var(--r); background: var(--ink); color: rgba(255,255,255,.8); }
.calc-out.light { background: var(--tint); color: var(--text); }
.calc-out.light img { margin-top: 20px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.calc-label { font-weight: 700; }
.calc-total { margin: 4px 0 18px; font-size: 1.2rem; color: #fff; }
.calc-total strong { font-size: 2.6rem; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc-lines { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); font-size: .9rem; }
.calc-lines li { display: flex; justify-content: space-between; gap: 12px; }
.calc-lines b { color: #fff; white-space: nowrap; }
.calc-note { margin: 16px 0 20px; font-size: .82rem; color: rgba(255,255,255,.6); }
@media (max-width: 960px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } .calc-out { position: static; } }
@media (max-width: 640px) { .opts-3 { grid-template-columns: minmax(0, 1fr); } .calc-out { padding: 24px 18px; } .calc-total strong { font-size: 2.1rem; } }
.form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 12px; }
.fld { display: block; }
.fld > span { display: block; margin-bottom: 6px; font-weight: 700; color: var(--ink); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 56px; padding: 0 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: 1rem; }
.fld textarea { padding: 12px 16px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--primary); }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day, .slot { position: relative; cursor: pointer; }
.day input, .slot input { position: absolute; opacity: 0; pointer-events: none; }
.days .day span { display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border: 2px solid var(--line); border-radius: 12px; background: #fff; line-height: 1.3; }
.days .day small { font-size: .8rem; color: var(--muted); }
.days .day b { font-size: 1.1rem; color: var(--ink); }
.days .sun b { color: #d9480f; }
.days .sat b { color: #3366cc; }
.days .is-off { opacity: .4; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; margin-top: 12px; }
.slot span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: 1.1rem; font-weight: 800; color: var(--ink); line-height: 1.25; }
.slot small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.slot.is-off span { background: var(--tint); color: #a9b8b0; text-decoration: line-through; }
.days .day input:checked + span, .slot input:checked + span { background: var(--primary); border-color: var(--primary); }
.days .day input:checked + span *, .slot input:checked + span, .slot input:checked + span small { color: #fff; }
.day input:focus-visible + span, .slot input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.days.is-invalid .day span, .slots.is-invalid .slot span { border-color: #d9480f; }
.hint { margin-top: 10px; font-size: .9rem; font-weight: 600; color: var(--primary); }
.is-invalid { border-color: #d9480f !important; }
.chk:has(.is-invalid) { color: #d9480f; }
.form-msg { min-height: 1.5em; margin: 14px 0; font-weight: 800; color: #d9480f; }
.form-msg.is-ok { color: var(--primary); }
@media (max-width: 640px) { .form .row2 { grid-template-columns: minmax(0, 1fr); } .days { gap: 3px; } .days .day b { font-size: .95rem; } .days .day small { font-size: .7rem; } }

.policy h2 { margin: 30px 0 10px; font-size: 1.2rem; color: var(--ink); }
.policy-date { margin-top: 30px; color: var(--muted); }

/* ---------- 푸터 ---------- */
.ft { padding: 60px 0 36px; background: #1d2e27; color: rgba(255,255,255,.65); font-size: .9rem; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ft-name { font-size: 1.4rem; font-weight: 900; color: #fff; }
.ft-call dl { display: flex; flex-wrap: wrap; gap: 6px 30px; margin: 12px 0; }
.ft-call dt { font-size: .8rem; }
.ft-call dd a { font-size: 1.6rem; font-weight: 900; color: var(--accent); }
.ft-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; align-content: start; }
.ft-menu a:hover, .ft-menu b { color: #fff; }
.ft-info { padding-top: 22px; line-height: 2; }
.ft-info span + span::before { content: "|"; margin: 0 8px; opacity: .35; }
.copy { font-size: .8rem; }
@media (max-width: 800px) { .ft-top { grid-template-columns: minmax(0, 1fr); } }

.m-bar { display: none; }
@media (max-width: 1024px) {
  .m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .m-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0; font-size: .78rem; font-weight: 800; color: var(--ink); }
  .m-bar a:first-child { background: var(--primary); color: #fff; }
  .m-bar .ico { width: 24px; height: 24px; }
  body { padding-bottom: 66px; }
}
