/* Shalom Family Hospital — one stylesheet for the public site and admin. No build step. */
:root {
  --navy: #0b2e4f;
  --navy-2: #123f69;
  --navy-3: #1c5488;
  --teal: #0b8a7a;
  --teal-dark: #086b5f;
  --teal-soft: #e5f4f1;
  --red: #c4162f;
  --red-dark: #a0101f;
  --red-soft: #fdecee;
  --sun: #f5b324;
  --sun-soft: #fff5dd;
  --ink: #15253a;
  --muted: #5b6b80;
  --line: #e1e7ef;
  --bg: #f5f8fa;
  --card: #ffffff;
  --info: #2563eb;
  --warn: #b45309;
  --bad: #c0262d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(11, 46, 79, .14);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; font-size: 1.02rem; }
a { color: var(--teal-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--navy); }
h1 { font-size: 2.1rem; font-weight: 800; }
h2 { font-size: 1.55rem; font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 .85em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.page { padding-top: 28px; padding-bottom: 40px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mt { margin-top: 1.25rem; }
.center { text-align: center; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.nowrap { white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy); color: #cfe0f0; font-size: .86rem; }
.topbar .wrap { display: flex; gap: 6px 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 3px rgba(61, 220, 151, .25); }
.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); line-height: 1.05; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 11px; border-radius: 9px; }
.site-nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.site-nav a.on { color: var(--teal-dark); background: var(--teal-soft); }
.site-nav .btn { margin-left: 8px; color: #fff; background: var(--teal); }
.site-nav .btn:hover { background: var(--teal-dark); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }

/* ---------- Footer ---------- */
.site-foot { background: var(--navy); color: #b9cbe0; padding: 48px 0 90px; margin-top: 0; font-size: .94rem; }
.site-foot .brand { color: #fff; }
.site-foot .brand-sub { color: #7fd6c8; }
.foot-grid { display: grid; gap: 30px; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.site-foot h4 { color: #fff; margin: 4px 0 12px; font-size: .95rem; }
.site-foot a { color: #dbe7f3; text-decoration: none; display: block; padding: 3px 0; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-contact div { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.foot-contact .ico { margin-top: 4px; color: #7fd6c8; }
.foot-contact a { display: inline; padding: 0; }
.foot-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; gap: 10px 24px; justify-content: space-between; flex-wrap: wrap; font-size: .84rem; color: #8ea6c2; }

/* ---------- Cards, buttons, forms ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card + .card, .card + form, form + .card { margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 11px 20px; font: inherit; font-weight: 700; font-size: .97rem; cursor: pointer; text-decoration: none; background: var(--teal); color: #fff; box-shadow: 0 2px 6px rgba(11, 138, 122, .25); transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(11, 138, 122, .3); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-red { background: var(--red); box-shadow: 0 4px 14px rgba(196, 22, 47, .3); }
.btn-red:hover { background: var(--red-dark); box-shadow: 0 8px 20px rgba(196, 22, 47, .35); }
.btn-sun { background: var(--sun); color: var(--navy); box-shadow: 0 4px 14px rgba(245, 179, 36, .35); }
.btn-sun:hover { background: #e3a314; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: #f1f5f9; box-shadow: none; }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.btn-light:hover { background: #f1f6fb; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); box-shadow: none; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }
.btn-danger { background: var(--bad); box-shadow: none; }
.btn-danger:hover { background: #9b1c22; }
.btn-wa { background: #1fae55; box-shadow: 0 4px 12px rgba(37, 211, 102, .3); }
.btn-wa:hover { background: #178f45; }
.btn-sm { padding: 7px 13px; font-size: .86rem; border-radius: 9px; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .94rem; color: var(--navy); }
.field { margin-bottom: 18px; }
.hint { font-weight: 400; color: var(--muted); font-size: .84rem; display: block; margin-top: 4px; }
.optional { font-weight: 400; color: var(--muted); font-size: .85rem; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=url], input[type=search], input[type=date], select, textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid #d3dce7; border-radius: 11px; font: inherit; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11, 138, 122, .15); }
input[type=file] { font: inherit; width: 100%; padding: 10px; border: 1.5px dashed #c5d0de; border-radius: 10px; background: #fafcff; font-size: .9rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.check input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--teal); flex: none; }
.error { color: var(--bad); font-size: .86rem; margin-top: 4px; }
.grid-names { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-names .wide { grid-column: 1 / -1; }
.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 9px 16px; border: 1.5px solid #d3dce7; border-radius: 999px; font-weight: 600; cursor: pointer; background: #fff; }
.choice input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(11, 138, 122, .2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* ---------- Alerts and badges ---------- */
.alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; border: 1px solid; }
.alert-ok { background: #ecfdf3; border-color: #a6e9c3; color: #05603a; }
.alert-bad { background: #fef3f2; border-color: #fecdca; color: #912018; }
.alert-warn { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.badge-info { background: #e0ecff; color: var(--info); }
.badge-warn { background: #fef0c7; color: var(--warn); }
.badge-ok { background: #d1fadf; color: #05603a; }
.badge-bad { background: #fee4e2; color: var(--bad); }
.badge-muted { background: #eef2f6; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }

/* ---------- Sections (home and inner pages) ---------- */
.section { padding: 64px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 30px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(11, 138, 122, .22), transparent 60%), linear-gradient(160deg, #0b2e4f 0%, #0f416b 60%, #0b5a63 100%); color: #e3eef8; padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='.05' d='M38 0h24v38h38v24H62v38H38V62H0V38h38z'/%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 2.9rem; line-height: 1.08; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #7fe3d2; }
.hero .lede { font-size: 1.16rem; color: #cfe0f0; max-width: 560px; }
.hero .eyebrow { color: #7fe3d2; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-facts { display: flex; gap: 10px 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: .95rem; color: #d7e6f4; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .ico { color: #7fe3d2; }
.hero-card { background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 22px; padding: 26px; box-shadow: 0 30px 60px rgba(3, 20, 40, .35); }
.hero-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.hero-photo { border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(3, 20, 40, .35); aspect-ratio: 4 / 3; background: #0f416b; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.quick-list a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .15s, background .15s; }
.quick-list a:hover { border-color: var(--teal); background: var(--teal-soft); }
.quick-list .q-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); flex: none; }
.quick-list .q-ico.red { background: var(--red-soft); color: var(--red); }
.quick-list small { display: block; color: var(--muted); font-weight: 500; font-size: .84rem; }
.quick-list .arrow { margin-left: auto; color: var(--muted); }

.emergency { background: var(--red); color: #fff; }
.emergency .wrap { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.emergency .big-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); flex: none; }
.emergency p { margin: 0; flex: 1 1 360px; font-size: 1.04rem; }
.emergency strong { font-size: 1.12rem; }
.emergency .btn-light { color: var(--red); }

.svc-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.svc { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #bfe3dc; }
.svc-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); margin-bottom: 8px; }
.svc-ico .ico { width: 26px; height: 26px; }
.svc h3 { margin: 0; }
.svc p { color: var(--muted); margin: 0; font-size: .95rem; flex: 1; }
.svc .more { color: var(--teal-dark); font-weight: 700; font-size: .92rem; margin-top: 8px; display: inline-flex; gap: 6px; align-items: center; }

.why { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.why > div { padding: 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.why .num { font-size: 2rem; font-weight: 800; color: var(--teal-dark); line-height: 1; margin-bottom: 8px; }
.why .w-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--teal-dark); border: 1px solid var(--line); margin-bottom: 12px; }
.why h3 { margin-bottom: 6px; }
.why p { color: var(--muted); margin: 0; font-size: .95rem; }

.find { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: stretch; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: #dfe8ef; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.info-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .i-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); flex: none; }
.info-list strong { display: block; color: var(--navy); }
.info-list a { font-weight: 700; text-decoration: none; }

.people { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.person-photo { aspect-ratio: 1; background: linear-gradient(135deg, var(--teal-soft), #dbe9f6); display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; color: var(--teal-dark); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-body { padding: 16px 18px 18px; }
.person-body h3 { margin: 0 0 2px; }
.person-body .role { color: var(--teal-dark); font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.person-body p { color: var(--muted); font-size: .92rem; margin: 0; }

.reviews { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin: 0; }
.review .stars { color: var(--sun); letter-spacing: 2px; font-size: 1.05rem; }
.review blockquote { margin: 10px 0 14px; font-size: 1rem; }
.review figcaption { color: var(--muted); font-size: .9rem; font-weight: 600; }

.posts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0f416b, #0b8a7a); display: grid; place-items: center; color: rgba(255, 255, 255, .85); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cover .ico { width: 44px; height: 44px; }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card h3 { margin: 0; }
.post-card p { color: var(--muted); font-size: .94rem; margin: 0; flex: 1; }
.meta { color: var(--muted); font-size: .84rem; }

.faq-list { display: grid; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 700; color: var(--navy); position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--teal); font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding-bottom: 16px; margin: 0; color: #2a3a50; white-space: pre-line; }

.cta-band { background: linear-gradient(135deg, var(--teal), #0b6f8a); color: #e8f7f4; border-radius: 22px; padding: 38px; display: flex; gap: 20px 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }

/* ---------- Inner pages ---------- */
.page-hero { background: linear-gradient(160deg, #0b2e4f, #0f456f); color: #cfe0f0; padding: 40px 0 44px; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { max-width: 720px; margin: 0; font-size: 1.08rem; }
.crumbs { font-size: .86rem; margin-bottom: 14px; color: #9fb8d2; }
.crumbs a { color: #cfe0f0; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.aside { position: sticky; top: 90px; display: grid; gap: 16px; }
.aside .card h3 { margin-bottom: 8px; }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.2em 0; padding: 14px 18px; border-left: 4px solid var(--sun); background: var(--sun-soft); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: 12px; }
.prose table { margin: 1em 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prose > :first-child { margin-top: 0; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { color: var(--teal-dark); }
.side-links .ico { color: var(--teal); }
.note-red { border-left: 4px solid var(--red); background: var(--red-soft); padding: 14px 16px; border-radius: 0 12px 12px 0; }
.note-red strong { color: var(--red-dark); }
.contact-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-bottom: 28px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.contact-card .i-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); margin-bottom: 10px; }
.contact-card h3 { margin-bottom: 4px; }
.contact-card a { font-weight: 700; text-decoration: none; word-break: break-word; }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery figure { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery figcaption { padding: 10px 14px; font-size: .9rem; color: var(--muted); }
.thanks { text-align: center; max-width: 620px; margin: 0 auto; }
.thanks .big-check { width: 76px; height: 76px; border-radius: 50%; background: #d1fadf; color: #05603a; display: grid; place-items: center; margin: 0 auto 16px; }
.thanks .big-check .ico { width: 38px; height: 38px; }
.code { font-family: ui-monospace, Menlo, monospace; font-weight: 800; background: var(--teal-soft); color: var(--teal-dark); padding: 3px 10px; border-radius: 8px; }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(s); width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: .9rem; display: grid; place-items: center; }

/* Floating WhatsApp (desktop) + bottom action bar (phones) */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.wa-float svg { width: 30px; height: 30px; }
.mobile-bar { display: none; }

/* ---------- Auth ---------- */
.auth-box { max-width: 420px; margin: 30px auto; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--navy); color: #dbe4f0; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.admin-side .brand { color: #fff; padding: 0 8px; }
.admin-side .brand-sub { color: #7fd6c8; }
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.side-group { margin: 14px 10px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7f93b0; }
.side-nav a, .side-foot a, .side-foot button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: #dbe4f0; text-decoration: none; font: inherit; font-size: .92rem; font-weight: 600; background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
.side-nav a .ico, .side-foot .ico { width: 18px; height: 18px; flex: none; opacity: .85; }
.side-nav a:hover, .side-foot a:hover, .side-foot button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-nav a.on { background: rgba(127, 214, 200, .14); color: #7fe3d2; }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sun); color: var(--navy); font-size: .72rem; font-weight: 800; margin-left: auto; }
.nav-count-bad { background: var(--bad); color: #fff; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 2px; }
.side-foot form { margin: 0; }
.side-user { padding: 6px 10px 10px; font-size: .85rem; line-height: 1.3; color: #9fb2cc; word-break: break-all; }
.side-user strong { color: #fff; }
.admin-top { display: none; }
.admin-page { width: 100%; max-width: 1240px; padding-left: 32px; padding-right: 32px; }
.side-backdrop { display: none; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 1.7rem; }
.page-head p { margin: 4px 0 0; max-width: 760px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.searchbar { display: flex; gap: 8px; }
.searchbar input { min-width: 240px; }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.kpi { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
a.kpi:hover { box-shadow: var(--shadow-lg); }
.kpi-num { font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.kpi-label { color: var(--muted); font-size: .86rem; }
.kpi-hot { border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun), var(--shadow); }
.kpi-hot .kpi-num { color: var(--warn); }
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
.kpis-3 .kpi { padding: 12px; box-shadow: none; }
.kpis-3 .kpi-num { font-size: 1.3rem; }
.cell-actions { text-align: right; white-space: nowrap; }
.cell-actions > * + * { margin-left: 6px; }
.cell-actions form { display: inline; }
.save-bar { position: sticky; bottom: 0; z-index: 20; background: rgba(245, 248, 250, .94); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); font-size: .86rem; font-weight: 600; }
.tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.todo { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.todo a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px dashed #cdd7e3; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.todo a:hover { border-color: var(--teal); background: var(--teal-soft); }
.thumb { display: block; max-height: 160px; border: 1px solid var(--line); border-radius: 10px; }
.md-help { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.md-help code { background: #eef2f6; padding: 1px 5px; border-radius: 5px; }
textarea.md { min-height: 360px; font-family: ui-monospace, Menlo, monospace; font-size: .9rem; line-height: 1.55; }
.bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 200px; padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
.bars-max { position: absolute; top: 0; left: 0; font-size: .75rem; color: var(--muted); }
.bar-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; outline: none; }
.bar { width: 100%; background: var(--teal); border-radius: 4px 4px 0 0; min-height: 0; }
.bar-col:hover .bar, .bar-col:focus .bar { background: var(--teal-dark); }
.bar-x { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--muted); white-space: nowrap; }
.bar-col:hover::after, .bar-col:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: .78rem; padding: 6px 9px; border-radius: 8px; white-space: nowrap; z-index: 2; pointer-events: none; }
.bar-col:first-child:hover::after, .bar-col:first-child:focus::after { left: 0; transform: none; }
.bar-col:last-child:hover::after, .bar-col:last-child:focus::after { left: auto; right: 0; transform: none; }
.hbars { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.hbar-head { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; margin-bottom: 4px; }
.hbar-track { background: #eef2f6; border-radius: 4px; height: 10px; overflow: hidden; }
.hbar { height: 100%; background: var(--teal); border-radius: 4px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.card .table-wrap { box-shadow: none; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
tr:last-child td { border-bottom: 0; }
th { background: #f6f8fb; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
tr:hover td { background: #fafcfe; }
dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .9rem; }
dl.kv dd { margin: 0; word-break: break-word; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; box-shadow: 0 14px 30px rgba(11, 46, 79, .12); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; }
  .site-nav .btn { margin: 8px 0 0; }
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; }
  .site-head .wrap { position: relative; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .find, .layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.25rem; }
  .aside { position: static; }
  .admin-shell { display: block; }
  .admin-side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform .2s ease; }
  .side-open .admin-side { transform: none; box-shadow: 8px 0 30px rgba(0, 0, 0, .3); }
  .side-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(5, 15, 30, .5); }
  .admin-top { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 50; background: var(--navy); padding: 10px 16px; }
  .admin-top .brand { color: #fff; }
  .admin-top .menu-btn { display: inline-flex; margin-left: 0; background: transparent; color: #fff; border-color: #36557f; }
  .admin-page { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .section { padding: 44px 0; }
  .why, .foot-grid, .grid-names, .kpis-3 { grid-template-columns: 1fr; }
  .cta-band { padding: 26px; }
  .topbar .hide-sm { display: none; }
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 34px; height: 34px; }
  .card { padding: 18px; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 8px; }
  .searchbar input { min-width: 0; }
  .wa-float { display: none; }
  .mobile-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11, 46, 79, .1); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: .8rem; color: #fff; background: var(--teal); }
  .mobile-bar a.call { background: var(--red); }
  .mobile-bar a.wa { background: #1fae55; }
  .mobile-bar .ico { width: 20px; height: 20px; }
}
