/* =========================================================
   Lifespring Nursing Home — style.css
   Mobile-first, vanilla CSS. Brand: logo blue + green, teal accents.
   ========================================================= */
/* Fonts: Plus Jakarta Sans (headings) + Inter (body) loaded from Google Fonts with display=swap */

:root {
  --blue: #1534a0; --blue-600: #1e46c8; --blue-d: #0b1f5c; --blue-dd: #061238; --blue-l: #eef3ff;
  --teal: #0d9488; --teal-l: #e7f7f5; --green: #34b233; --green-d: #23902a;
  --wa: #25d366; --wa-d: #128c4b;
  --ink: #0e1a33; --body: #44516b; --muted: #6b7890; --line: #e2e8f2; --bg: #f5f8fd; --white: #fff;
  --gold: #b7791f; --gold-l: #fff6e5; --red: #d93a3a;
  --grad: linear-gradient(135deg, #1534a0 0%, #1460b8 50%, #0d9488 100%);
  --grad-dark: linear-gradient(135deg, #061238 0%, #0b1f5c 55%, #0a4a6b 100%);
  --r-sm: 10px; --r: 18px; --r-lg: 28px;
  --sh-sm: 0 1px 2px rgba(14, 26, 51, .06), 0 2px 8px rgba(14, 26, 51, .05);
  --sh: 0 10px 30px -10px rgba(21, 52, 160, .18), 0 4px 12px rgba(14, 26, 51, .05);
  --sh-lg: 0 30px 60px -20px rgba(11, 31, 92, .35);
  --ff-h: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-b: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--ff-b); font-size: 1rem; line-height: 1.7; color: var(--body); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--ff-h); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 750; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3, .h3 { font-size: clamp(1.15rem, 2vw, 1.3rem); }
.h4, h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
ul, ol { padding-left: 1.2em; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #4f8cff; outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 880px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.center { text-align: center; }
.mt { margin-top: 20px; } .mt-lg { margin-top: 40px; }
.muted { color: var(--muted); font-size: .92rem; }
.placeholder { display: inline-block; background: var(--gold-l); color: #8a5a10; border: 1px dashed #e0b45c; padding: 0 .45em; border-radius: 6px; font-size: .9em; line-height: 1.6; }
.text-grad { background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 60%, var(--green) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rounded-img img { border-radius: var(--r-lg); box-shadow: var(--sh-lg); width: 100%; aspect-ratio: 4/4.4; object-fit: cover; }

/* ---------- Buttons ---------- */
.btn { --b: var(--blue); display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .75em 1.35em; border-radius: 999px; border: 2px solid transparent; font-family: var(--ff-h); font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(21, 52, 160, .6); }
.btn--primary:hover { color: #fff; box-shadow: 0 16px 30px -12px rgba(21, 52, 160, .7); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(18, 140, 75, .6); }
.btn--wa:hover { background: #1fbe5a; color: #fff; }
.btn--outline { border-color: #c9d5ee; color: var(--blue); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-l); }
.btn--white { background: #fff; color: var(--blue); box-shadow: var(--sh); }
.btn--white:hover { color: var(--blue-d); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn--sm { min-height: 42px; padding: .55em 1.05em; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: .9em 1.7em; font-size: 1.04rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.btn { max-width: 100%; }
@media (max-width: 430px) { .btn { white-space: normal; text-align: center; } }
.btn--icon { width: 42px; padding: 0; }
.btn--icon .ico { width: 20px; height: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-family: var(--ff-h); text-decoration: none; color: var(--blue); }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--blue-dd); color: #c9d4f2; font-size: .84rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.topbar__item { display: none; align-items: center; gap: 6px; }
.topbar__links { display: flex; gap: 18px; margin-left: auto; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.topbar a:hover { color: #8ee6b0; }
.topbar .ico { width: 15px; height: 15px; }
@media (min-width: 640px) { .topbar__item { display: inline-flex; } }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(11, 31, 92, .3); border-color: var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; box-shadow: var(--sh-sm); }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--ff-h); }
.brand__name { color: var(--green); font-weight: 800; font-size: 1.28rem; letter-spacing: .03em; }
.brand__sub { color: var(--blue); font-weight: 750; font-size: .7rem; letter-spacing: .19em; margin-top: 4px; }
.brand--light .brand__sub { color: #9fb5ff; }
.brand--light .brand__name { color: #5fd35e; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions__book { display: none; }
@media (min-width: 640px) { .nav-actions__book { display: inline-flex; } }
.nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.nav-toggle .ico { width: 24px; height: 24px; }

/* Mobile drawer (default) */
/* Closed drawer uses display:none so it never creates horizontal overflow on mobile */
.nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: #fff; z-index: 200; display: none; flex-direction: column; overflow-y: auto; box-shadow: var(--sh-lg); }
.nav.is-open { display: flex; animation: drawerIn .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
.nav__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.nav__title { font-family: var(--ff-h); font-weight: 800; color: var(--ink); }
.nav-close { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); }
.nav__list { list-style: none; margin: 0; padding: 8px 12px; }
.nav__row { display: flex; align-items: center; }
.nav__link { flex: 1; display: block; padding: 13px 12px; font-family: var(--ff-h); font-weight: 650; color: var(--ink); text-decoration: none; border-radius: 10px; }
.nav__link:hover, .nav__link.is-active { color: var(--blue); background: var(--blue-l); }
.dd-toggle { width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; display: grid; place-items: center; }
.dd-toggle .ico { transition: transform .2s; }
.has-dd.is-open .dd-toggle .ico { transform: rotate(180deg); }
.dropdown { list-style: none; margin: 0 0 6px; padding: 0 0 0 12px; display: none; }
.has-dd.is-open .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.dropdown a:hover { background: var(--bg); }
.dropdown strong { display: block; font-family: var(--ff-h); font-size: .93rem; font-weight: 650; }
.dropdown small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.nav__cta { padding: 16px 20px 24px; display: grid; gap: 10px; margin-top: auto; border-top: 1px solid var(--line); }
/* Backdrop sits just below the header (z 100) so the drawer inside the header stays clickable */
.nav-backdrop { position: fixed; inset: 0; background: rgba(6, 18, 56, .5); z-index: 99; opacity: 0; transition: opacity .25s; }
/* backdrop-filter would make the header the containing block of the fixed drawer — disable while open */
body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
.nav-backdrop.is-show { opacity: 1; }
body.nav-open, body.modal-open { overflow: hidden; }

/* Desktop nav */
@media (min-width: 1140px) {
  .nav, .nav.is-open { position: static; display: flex; transform: none; width: auto; background: none; box-shadow: none; overflow: visible; flex-direction: row; animation: none; }
  .nav__head, .nav__cta, .nav-toggle { display: none; }
  .nav__list { display: flex; align-items: center; gap: 2px; padding: 0; }
  .nav__item { position: relative; }
  .nav__link { padding: 10px 12px; font-size: .95rem; white-space: nowrap; background: none !important; position: relative; }
  .nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .25s; }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
  .dd-toggle { width: 22px; height: 22px; margin-left: -8px; }
  .dd-toggle .ico { width: 16px; height: 16px; }
  .dropdown { display: block; position: absolute; top: calc(100% + 8px); left: -10px; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
  .has-dd:hover .dropdown, .has-dd:focus-within .dropdown, .has-dd.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
  .nav-backdrop { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 72px; background: linear-gradient(180deg, #f2f6ff 0%, #ffffff 100%); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob--1 { width: 420px; height: 420px; background: #c9d8ff; top: -120px; right: -80px; }
.blob--2 { width: 360px; height: 360px; background: #bdf0e6; bottom: -140px; left: -120px; }
.hero__grid { position: relative; display: grid; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm); font-size: .86rem; font-weight: 600; color: var(--blue); margin-bottom: 20px; }
.pill .ico { color: var(--teal); }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.15rem); max-width: 560px; margin-bottom: 28px; }
.hero__trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; color: var(--ink); font-size: .93rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .ico { color: #fff; background: var(--teal); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.hero__visual { position: relative; max-width: 520px; width: 100%; margin: 0 auto; padding: 0 0 40px 40px; }
.hero__img img { width: 100%; object-fit: cover; }
.hero__img--main { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 4/4.6; margin-left: auto; width: 88%; }
.hero__img--main img { height: 100%; }
.hero__img--sub { position: absolute; left: 0; bottom: 0; width: 52%; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--sh-lg); }
.hero__img--sub img { height: 100%; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-radius: 16px; padding: 10px 14px; box-shadow: var(--sh); font-size: .78rem; line-height: 1.3; animation: floaty 6s ease-in-out infinite; }
.float-card strong { display: block; color: var(--ink); font-family: var(--ff-h); font-size: .86rem; }
.float-card small { color: var(--muted); }
.float-card__ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-l); color: var(--blue); flex: none; }
.float-card__ico--wa { background: #dcfce7; color: var(--wa-d); }
.float-card--a { top: 18px; left: 0; }
.float-card--b { right: -6px; bottom: 30%; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (min-width: 960px) {
  .hero { padding: 72px 0 110px; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
  .hero__visual { margin-right: 0; }
}

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -44px; }
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh); padding: 14px; border: 1px solid var(--line); }
.stat { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border-radius: var(--r); }
.stat__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.stat strong { display: block; font-family: var(--ff-h); color: var(--ink); font-size: 1.1rem; line-height: 1.2; }
/* Target only the supporting label; a broad .stat span rule also recolored and displaced the icon. */
.stat > div { min-width: 0; }
.stat > div > span { font-size: .84rem; color: var(--muted); line-height: 1.3; display: block; }
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; } }
@media (min-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .stat { gap: 10px; padding: 10px; }
  .stat__ico { width: 44px; height: 44px; }
  .stat strong { font-size: 1rem; letter-spacing: -.035em; white-space: nowrap; }
  .stat > div > span { font-size: .78rem; }
  .stat + .stat { border-left: 1px solid var(--line); border-radius: 0; }
}
@media (max-width: 400px) { .stats__grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--tint { background: var(--bg); }
.section--flush { padding-top: 0; }
.section--dark { background: var(--grad-dark); color: #c8d3ee; position: relative; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(13, 148, 136, .35), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(52, 178, 51, .18), transparent 70%); pointer-events: none; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .container { position: relative; }
.section--overlap { padding-top: 0; margin-top: -48px; position: relative; z-index: 2; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lead { font-size: 1.06rem; color: var(--muted); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-h); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head--center .eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: #7ee0d3; }

.split { display: grid; gap: 40px; align-items: center; }
.split--top { align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split--reverse > :first-child { order: 2; } }
.img-stack { position: relative; padding: 0 12% 18% 0; }
.img-stack__a img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4/4.4; object-fit: cover; box-shadow: var(--sh-lg); }
.img-stack__b { position: absolute; right: 0; bottom: 0; width: 50%; }
.img-stack__b img { border-radius: 20px; border: 6px solid #fff; aspect-ratio: 3/4; object-fit: cover; box-shadow: var(--sh-lg); }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.check-list .ico { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }
.check-list--sm li { font-size: .93rem; font-weight: 400; color: var(--body); }
.num-list { padding-left: 1.3em; display: grid; gap: 10px; }
.num-list li::marker { color: var(--teal); font-weight: 800; font-family: var(--ff-h); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2, .grid--3, .grid--4, .grid--why, .grid--spec { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--4, .grid--spec, .grid--why, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3, .grid--why, .grid--spec { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid--spec-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; } }
.grid--docs { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.grid--docs > * { flex: 1 1 260px; max-width: 360px; }
@media (min-width: 1200px) { .grid--docs > * { flex-basis: 220px; max-width: 228px; } .grid--docs-3 > *, .grid--docs-narrow > * { flex-basis: 300px; max-width: 340px; } }
.grid--profile { grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .grid--profile { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 56px; } .grid--profile > aside { position: sticky; top: 100px; } }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); }
.spec-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.spec-card:hover { transform: translateY(-6px); box-shadow: var(--sh); border-color: #cfdbf5; }
.spec-card__icon { width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(135deg, var(--blue-l), var(--teal-l)); color: var(--blue); display: inline-grid; place-items: center; margin-bottom: 18px; flex: none; }
.spec-card__icon .ico { width: 28px; height: 28px; }
.spec-card__icon--sm { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.spec-card__icon--sm .ico { width: 22px; height: 22px; }
.spec-card__name a { color: var(--ink); text-decoration: none; }
.spec-card__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.spec-card__name a:hover { color: var(--blue); }
.spec-card__docs { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--teal); font-weight: 600; }
.spec-card__docs .ico { margin-top: 3px; }
.spec-card .link-arrow { margin-top: auto; }
.spec-card--cta { background: var(--grad); color: #e6eeff; border: 0; justify-content: center; }
.spec-card--cta h3 { color: #fff; }
.spec-card--cta .btn { position: relative; z-index: 1; align-self: flex-start; }

.doc-card { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-sm); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.doc-card:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.doc-card__media { position: relative; display: block; aspect-ratio: 1/1; overflow: hidden; }
.doc-card__media .avatar { height: 100%; }
.doc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.doc-card__badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--gold); font-size: .72rem; font-weight: 800; font-family: var(--ff-h); padding: 5px 10px; border-radius: 999px; box-shadow: var(--sh-sm); letter-spacing: .02em; }
.doc-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.doc-card__spec { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; line-height: 1.4; }
.doc-card__name { font-size: 1.12rem; margin-bottom: 4px; }
.doc-card__name a { color: var(--ink); text-decoration: none; }
.doc-card__name a:hover { color: var(--blue); }
.doc-card__title { font-size: .9rem; color: var(--muted); margin-bottom: 16px; line-height: 1.45; }
.doc-card__actions { margin-top: auto; display: flex; gap: 8px; }
.doc-card__actions .btn--outline { flex: 1; }

.avatar { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1/1; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 45%), var(--grad); color: #fff; overflow: hidden; }
.avatar::before { content: ""; position: absolute; width: 140%; height: 140%; background: repeating-radial-gradient(circle at 80% 110%, rgba(255, 255, 255, .07) 0 2px, transparent 2px 22px); }
.avatar__initials { position: relative; font-family: var(--ff-h); font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.4rem); letter-spacing: .02em; width: 46%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .35); }
.avatar__note { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 600; background: rgba(6, 18, 56, .45); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.avatar__note .ico { width: 13px; height: 13px; }
.avatar--lg { aspect-ratio: 1/1.05; }
.avatar--lg .avatar__initials { font-size: 4rem; }
.avatar--sm { width: 56px; height: 56px; border-radius: 50%; aspect-ratio: 1; flex: none; }
.avatar--sm .avatar__initials { font-size: 1rem; width: 100%; border: 0; background: none; }

.why-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); padding: 28px; transition: background .25s, transform .25s; }
.why-card:hover { background: rgba(255, 255, 255, .1); transform: translateY(-4px); }
.why-card__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--green)); color: #fff; margin-bottom: 16px; }
.why-card__ico .ico { width: 24px; height: 24px; }
.why-card p { margin: 0; font-size: .95rem; }

.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.section--tint .feature { box-shadow: var(--sh-sm); }
.feature__ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-l); color: var(--teal); margin-bottom: 14px; }
.feature p:last-child { margin-bottom: 0; }

.mv-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 36px; background: var(--grad); color: #e3ebff; }
.mv-card h2 { color: #fff; font-size: 1.6rem; }
.mv-card--alt { background: linear-gradient(135deg, #0d9488, #23902a); }
.mv-card__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); margin-bottom: 18px; }
.mv-card__ico .ico { width: 26px; height: 26px; color: #fff; }
.mv-card p { margin: 0; font-size: 1.04rem; }

.scope-card { list-style: none; margin: 0; padding: 26px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh); display: grid; gap: 12px; }
.scope-card li { display: flex; gap: 10px; color: var(--ink); font-weight: 500; }
.scope-card .ico { color: var(--teal); margin-top: 4px; }

/* ---------- Facility grid ---------- */
.facility-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.facility-grid__item { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 3/3.6; }
.facility-grid__item--lg { grid-column: span 2; aspect-ratio: 4/3; }
.facility-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.facility-grid__item:hover img { transform: scale(1.06); }
.facility-grid__item span { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); color: var(--ink); font-family: var(--ff-h); font-weight: 700; font-size: .84rem; padding: 6px 12px; border-radius: 999px; }
.facility-grid__item picture { height: 100%; }
@media (min-width: 900px) { .facility-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 240px); } .facility-grid__item { aspect-ratio: auto; } .facility-grid__item--lg { grid-row: span 2; aspect-ratio: auto; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; box-shadow: var(--sh-sm); }
.step__num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--ff-h); font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; box-shadow: 0 0 0 6px var(--blue-l); }
.step p { margin: 0; font-size: .95rem; }
.grid--profile .steps { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--profile .steps { grid-template-columns: repeat(3, 1fr); } .grid--profile .step { padding: 22px 18px; } }

.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--blue-l); border: 1px solid #d5e0fb; color: #2b3d6e; border-radius: 12px; padding: 12px 16px; font-size: .92rem; line-height: 1.55; }
.notice .ico { color: var(--blue); margin-top: 3px; }
.notice--center { max-width: 760px; margin-left: auto; margin-right: auto; margin-top: 28px; justify-content: center; }

/* ---------- Forms ---------- */
.form { padding: 26px; }
.form__title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.form__title .ico { color: var(--wa-d); width: 26px; height: 26px; }
.form__hint { font-size: .9rem; color: var(--muted); }
.form__header { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.form__header h2 { font-size: 1.4rem; margin: 0 0 2px; }
.form__header p { margin: 0; font-size: .9rem; color: var(--muted); }
.form__header-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.form__header-ico .ico { width: 26px; height: 26px; }
.form__grid { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--ff-h); font-weight: 650; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 500; font-size: .85em; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #f9fbff; border: 1.5px solid #d6dfef; border-radius: 12px; padding: 12px 14px; min-height: 50px; transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236b7890' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(30, 70, 200, .12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); background: #fff8f8; }
.field__error { color: var(--red); font-size: .84rem; margin: 6px 0 0; min-height: 0; }
.field__error:empty { display: none; }
.field__count { text-align: right; font-size: .78rem; color: var(--muted); margin: 4px 0 0; }
.field--check { margin-top: 4px; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-family: var(--ff-b) !important; font-weight: 400 !important; font-size: .92rem !important; color: var(--body) !important; cursor: pointer; line-height: 1.55; }
.check input { width: 22px; height: 22px; min-height: 0; padding: 0; flex: none; margin-top: 1px; border-radius: 6px; -webkit-appearance: checkbox; appearance: auto; accent-color: var(--blue); }
.form__note { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--muted); margin: 14px 0 0; }
.form__note .ico { margin-top: 3px; color: var(--teal); }
.form--book { padding: 26px 20px; box-shadow: var(--sh-lg); }
@media (min-width: 640px) { .form--book { padding: 36px; } .form { padding: 32px; } }
.book-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .book-grid { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 32px; } .book-aside { position: sticky; top: 100px; } }
.book-aside { display: grid; gap: 18px; }
.side-card { padding: 24px; }
.side-card h2, .side-card .h3 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.side-card .btn + .btn { margin-top: 10px; }
.side-card--accent { border-top: 4px solid var(--teal); }
.side-card--accent .spec-card__icon { margin-bottom: 12px; }
.mini-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.mini-steps li { display: flex; align-items: center; gap: 12px; font-size: .94rem; color: var(--ink); }
.mini-steps span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-l); color: var(--blue); font-weight: 800; font-family: var(--ff-h); font-size: .85rem; flex: none; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-l); color: var(--blue); flex: none; }
.contact-list__ico.ico-wa { background: #dcfce7; color: var(--wa-d); }
.contact-list strong { display: block; font-family: var(--ff-h); color: var(--ink); font-size: .92rem; }
.contact-list span { font-size: .94rem; line-height: 1.55; }
.contact-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--sh); text-decoration: none; color: var(--body); transition: transform .25s, box-shadow .25s; }
a.contact-card:hover { transform: translateY(-5px); color: var(--body); }
.contact-card__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 16px; }
.contact-card--wa .contact-card__ico { background: var(--wa); }
.contact-card__ico .ico { width: 24px; height: 24px; }
.contact-card p { margin-bottom: 10px; font-size: .94rem; overflow-wrap: anywhere; }
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh); background: var(--bg); }
.map-wrap iframe { width: 100%; height: clamp(300px, 45vw, 440px); border: 0; }
.map-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 16px; font-size: .82rem; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.map-note .ico { margin-top: 3px; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(56px, 8vw, 96px); }
.section + .cta-band, .section--tint + .cta-band { padding-top: 0; }
.cta-band__inner { position: relative; overflow: hidden; background: var(--grad); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); color: #dfe8ff; display: grid; gap: 24px; align-items: center; box-shadow: var(--sh-lg); }
.cta-band__inner::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: -120px; top: -160px; }
.cta-band__inner > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { margin: 0; max-width: 620px; }
@media (min-width: 1000px) { .cta-band__inner { grid-template-columns: 1.2fr auto; } }
.section--tint + .cta-band { background: var(--bg); }

/* ---------- Page hero & breadcrumbs ---------- */
.page-hero, .profile-hero, .notfound { position: relative; overflow: hidden; }
.page-hero { background: var(--grad-dark); color: #c9d5f2; padding: 36px 0 84px; }
.page-hero__bg { position: absolute; inset: 0; background: radial-gradient(700px 320px at 85% -10%, rgba(13, 148, 136, .45), transparent 70%), radial-gradient(500px 260px at 0% 110%, rgba(52, 178, 51, .22), transparent 70%); pointer-events: none; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.page-hero__inner { position: relative; max-width: 900px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); margin-top: 14px; }
.page-hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 680px; margin-bottom: 26px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; opacity: .85; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.breadcrumb .ico { width: 15px; height: 15px; }
.page-hero .breadcrumb { color: #c9d5f2; }
.page-hero .breadcrumb [aria-current] { color: #fff; font-weight: 600; }

/* ---------- Doctor profile ---------- */
.profile-hero { background: linear-gradient(180deg, #eef3ff 0%, #fff 100%); padding: 28px 0 56px; color: var(--body); }
.profile-hero .page-hero__bg { opacity: .35; }
.profile-hero .page-hero__bg::after { display: none; }
.profile-hero .container { position: relative; }
.profile-hero .breadcrumb { color: var(--muted); }
.profile-hero .breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.profile { display: grid; gap: 32px; margin-top: 24px; align-items: start; }
@media (min-width: 900px) { .profile { grid-template-columns: 340px 1fr; gap: 48px; } }
.profile__card { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--line); max-width: 420px; width: 100%; margin: 0 auto; }
.profile__card-body { padding: 20px; display: grid; gap: 10px; }
.profile__main h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 6px; }
.profile__title { font-size: 1.15rem; font-weight: 600; color: var(--blue); margin-bottom: 16px; font-family: var(--ff-h); }
.profile__intro { font-size: 1.05rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink); }
.tag .ico { width: 15px; height: 15px; color: var(--teal); }
.tag--gold { background: var(--gold-l); border-color: #f1d49c; color: var(--gold); }
.tag--gold .ico { color: var(--gold); }
.info-grid { display: grid; gap: 12px; margin: 24px 0 0; }
@media (min-width: 640px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-row { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.info-row__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-l); color: var(--blue); flex: none; }
.info-row dt { font-family: var(--ff-h); font-weight: 700; color: var(--ink); font-size: .88rem; }
.info-row dd { margin: 2px 0 0; font-size: .92rem; line-height: 1.5; }
.info-row small { display: block; color: var(--muted); margin-top: 4px; }
.verified { display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; font-weight: 700; color: var(--green-d); background: #e8f8e8; padding: 1px 8px; border-radius: 999px; margin-left: 4px; }
.verified .ico { width: 12px; height: 12px; }
.link-cards { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.link-cards a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--body); transition: border-color .2s, box-shadow .2s; }
.link-cards a:hover { border-color: #bccdf2; box-shadow: var(--sh-sm); }
.link-cards strong { display: block; color: var(--ink); font-family: var(--ff-h); }
.link-cards small { color: var(--muted); }
.link-cards span:nth-child(2) { flex: 1; }
.link-cards > li > a > .ico { color: var(--muted); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: #fff; box-shadow: var(--sh-sm); max-width: 860px; margin: 0 auto; }
.table { width: 100%; border-collapse: collapse; min-width: 420px; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.table th { background: var(--blue-l); color: var(--ink); font-family: var(--ff-h); }
.table tr:last-child td { border-bottom: 0; }
.table a { font-weight: 600; text-decoration: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .2s, border-color .2s; }
.faq__item[open] { box-shadow: var(--sh); border-color: #cddaf5; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-family: var(--ff-h); font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-l); flex: none; transition: transform .25s, background .25s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--blue); transform: translate(-50%, -50%); border-radius: 2px; }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.faq__item[open] .faq__icon { background: var(--blue); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__body { padding: 0 20px 18px; }
.faq__body p { margin: 0; }

/* ---------- Prose & legal ---------- */
.prose h2 { margin-top: 1.6em; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.prose h2:first-child, .prose > p:first-child + h2 { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose .lead { font-size: 1.12rem; color: var(--ink); }
.prose ul li { margin-bottom: 6px; }
.check-grid { list-style: none; padding: 0; display: grid; gap: 10px; margin: 0 0 22px; }
@media (min-width: 640px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.check-grid li { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: 12px; padding: 12px 14px; color: var(--ink); font-weight: 500; font-size: .95rem; }
.check-grid .ico { color: var(--teal); margin-top: 3px; }
.legal { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .legal { grid-template-columns: 280px 1fr; gap: 56px; } .legal__toc { position: sticky; top: 100px; } }
.legal__toc { padding: 22px; }
.legal__toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .92rem; }
.legal__toc a { text-decoration: none; color: var(--body); }
.legal__toc a:hover { color: var(--blue); }
.legal .prose { max-width: 780px; }

/* ---------- Photo row & gallery ---------- */
.photo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 900px) { .photo-row { grid-template-columns: repeat(4, 1fr); } }
.photo-row figure { margin: 0; }
.photo-row img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r); }
.photo-row figcaption { font-size: .88rem; font-weight: 600; color: var(--ink); margin-top: 8px; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.filter { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 9px 18px; border-radius: 999px; font-family: var(--ff-h); font-weight: 650; font-size: .9rem; transition: all .2s; min-height: 42px; }
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item { margin: 0; }
.gallery__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--bg); cursor: zoom-in; }
.gallery__btn img { width: 100%; aspect-ratio: 3/3.6; object-fit: cover; transition: transform .6s ease; }
.gallery__btn:hover img { transform: scale(1.05); }
.gallery__zoom { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--blue); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.gallery__btn:hover .gallery__zoom, .gallery__btn:focus-visible .gallery__zoom { opacity: 1; }
.gallery__item figcaption { font-family: var(--ff-h); font-weight: 650; color: var(--ink); margin-top: 10px; font-size: .95rem; }
.avatar-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.avatar-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.avatar-chip .avatar--sm { width: 40px; height: 40px; }
.avatar-chip .avatar--sm::before { display: none; }

/* ---------- Modal & lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 400; background: rgba(6, 18, 56, .6); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.modal.is-show { opacity: 1; }
.modal__box { position: relative; background: #fff; border-radius: var(--r-lg); padding: 32px 24px 24px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; text-align: center; box-shadow: var(--sh-lg); transform: translateY(12px); transition: transform .25s; }
.modal.is-show .modal__box { transform: none; }
.modal__ico { width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: var(--wa-d); display: grid; place-items: center; margin: 0 auto 14px; }
.modal__ico .ico { width: 32px; height: 32px; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--ink); }
.modal h2 { font-size: 1.4rem; }
.modal__preview { text-align: left; white-space: pre-wrap; word-break: break-word; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 14px; font-family: var(--ff-b); font-size: .86rem; color: #14532d; max-height: 240px; overflow: auto; margin: 0 0 18px; }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(4, 10, 30, .94); display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox figure { margin: 0; max-width: min(960px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 12px; object-fit: contain; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-family: var(--ff-h); font-weight: 600; }
.lightbox__close, .lightbox__nav { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; right: 12px; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; right: auto; transform: translateY(-50%) rotate(180deg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dd); color: #a9b6d6; font-size: .93rem; padding-top: 64px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1.5fr; gap: 32px; } }
.footer-brand p { margin: 18px 0; max-width: 360px; }
.footer-brand img { border-radius: 10px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a { color: #a9b6d6; text-decoration: none; transition: color .2s, padding .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-links--dark a { color: var(--body); }
.footer-links--dark a:hover { color: var(--blue); }
.footer-contact p { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact .ico { margin-top: 4px; color: #6ee7b7; }
.footer-contact a { color: #dbe4ff; }
.site-footer .placeholder { background: rgba(255, 210, 120, .12); color: #ffd58a; border-color: rgba(255, 210, 120, .4); }
.footer-emergency { margin-top: 40px; }
.footer-emergency p { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 18px; border-radius: 14px; background: rgba(217, 58, 58, .12); border: 1px solid rgba(217, 58, 58, .3); color: #ffd6d6; font-size: .88rem; }
.footer-emergency a { color: #fff; font-weight: 700; }
.footer-emergency .ico { margin-top: 3px; color: #ff8a8a; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 32px; padding: 20px 0 24px; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0; }
.footer-bottom a { color: #a9b6d6; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Floating & fixed UI ---------- */
.wa-float { position: fixed; right: 16px; bottom: 84px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; height: 58px; min-width: 58px; padding: 0 16px; border-radius: 999px; background: var(--wa); color: #fff; box-shadow: 0 12px 28px -8px rgba(18, 140, 75, .65); text-decoration: none; font-family: var(--ff-h); font-weight: 700; transition: transform .2s; justify-content: center; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: pulse 2.4s infinite; }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float .ico { width: 28px; height: 28px; }
.wa-float__label { display: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.to-top { position: fixed; left: 16px; bottom: 84px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--blue); box-shadow: var(--sh); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; }
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(11, 31, 92, .25); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; text-decoration: none; color: var(--ink); font-family: var(--ff-h); font-size: .76rem; font-weight: 700; }
.mobile-bar a .ico { width: 22px; height: 22px; color: var(--blue); }
.mobile-bar a:nth-child(2) .ico { color: var(--wa-d); }
.mobile-bar__book { background: var(--grad); color: #fff !important; }
.mobile-bar__book .ico { color: #fff !important; }
body { padding-bottom: 62px; }
@media (min-width: 768px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
  .wa-float, .to-top { bottom: 24px; }
  .wa-float { right: 24px; padding: 0 20px 0 16px; }
  .wa-float__label { display: inline; }
  .to-top { left: auto; right: 24px; bottom: 96px; }
}
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 500; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: .92rem; box-shadow: var(--sh-lg); opacity: 0; transition: all .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 404 ---------- */
.notfound { background: var(--grad-dark); color: #c9d5f2; padding: 80px 0 100px; text-align: center; min-height: 70vh; display: flex; align-items: center; }
.notfound__inner { position: relative; max-width: 680px; }
.notfound__code { font-family: var(--ff-h); font-weight: 800; font-size: clamp(6rem, 22vw, 11rem); line-height: 1; margin: 0; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.notfound__links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 0; margin: 32px 0 0; }
.notfound__links a { color: #9fdcff; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Small screens fine-tuning (360–430px) ---------- */
@media (max-width: 430px) {
  .container { padding: 0 16px; }
  .btn--lg { width: 100%; }
  .hero .btn-row .btn, .page-hero .btn-row .btn, .cta-band .btn-row .btn { flex: 1 1 100%; }
  .brand__name { font-size: 1.1rem; }
  .brand__sub { font-size: .62rem; letter-spacing: .16em; }
  .brand img { width: 40px; height: 40px; }
  .hero__visual { padding: 0 0 32px 20px; }
  .float-card { padding: 8px 10px; }
  .float-card--a { left: -4px; top: 10px; }
  .float-card--b { right: -4px; }
  .float-card small { display: none; }
  .spec-card, .why-card, .feature { padding: 22px; }
  .form { padding: 20px 16px; }
}
@media print { .topbar, .site-header, .wa-float, .mobile-bar, .to-top, .cta-band, .site-footer { display: none !important; } body { padding: 0; } }
