/* ClinicKhoj — homepage styles. Mobile-first; tokens come from the logo package. */
:root {
  --navy: #081F4C;
  --blue: #0662E9;
  --blue-dark: #064DB9;
  --sky: #079EFF;
  --cyan: #00E7EA;
  --tint: #F2FBFF;
  --tint-2: #E4F3FF;
  --line: #DCE8F5;
  --text: #33456B;
  --muted: #5B6B8C;
  --white: #fff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(8, 31, 76, .06), 0 4px 14px rgba(8, 31, 76, .06);
  --shadow-md: 0 10px 30px rgba(8, 31, 76, .12);
  --font-display: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.55 var(--font-body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; letter-spacing: -.01em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.container { width: min(100% - 32px, 1180px); margin-inline: auto; }
.noscript { padding: 16px; text-align: center; background: #FFF6DD; color: var(--navy); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 10px; font: 600 15px/1 var(--font-body); white-space: nowrap; transition: transform .15s, box-shadow .15s, background-color .15s, border-color .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn--xs { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn--primary { background: linear-gradient(180deg, #0A72F5, var(--blue)); color: #fff; box-shadow: 0 6px 16px rgba(6, 98, 233, .28); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--outline { background: #fff; color: var(--blue); border-color: #B9D4FA; }
.btn--outline:hover { border-color: var(--blue); background: var(--tint); }
.btn--light { background: #fff; color: var(--navy); }
.btn--cyan { background: var(--cyan); color: var(--navy); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--blue); font-weight: 600; font-size: 14px; white-space: nowrap; }
.link-btn:hover { text-decoration: underline; }

/* Preview notice */
.preview-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--navy); color: #DCE8FF; font-size: 13px; }
.preview-bar strong { color: #fff; }
.preview-bar__close { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 2px 18px rgba(8, 31, 76, .1); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand img { width: 168px; height: auto; }
.nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close, .nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }
.primary-nav { display: none; position: absolute; inset: var(--header-h) 0 auto 0; padding: 12px 16px 20px; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-md); }
.primary-nav.is-open { display: block; }
.primary-nav__list { display: grid; gap: 2px; margin-bottom: 12px; }
.primary-nav__list a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--navy); font-weight: 500; font-size: 14.5px; }
.primary-nav__list a:hover { background: var(--tint); text-decoration: none; }
.primary-nav__list a[aria-current="page"] { background: var(--tint-2); color: var(--blue-dark); }
.primary-nav .btn { width: 100%; }

/* Hero */
.hero { position: relative; padding: 28px 0 0; overflow: clip; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(60% 70% at 85% 10%, rgba(7, 158, 255, .2), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(0, 231, 234, .2), transparent 70%),
    linear-gradient(180deg, var(--tint), #fff 92%); }
.hero__grid { display: grid; gap: 24px; }
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--blue-dark); font-weight: 600; font-size: 12.5px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(2.1rem, 6.5vw, 3.3rem); font-weight: 700; letter-spacing: -.02em; }
.hero__accent { background: linear-gradient(90deg, var(--blue), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1::after { content: ""; display: block; width: 150px; height: 8px; margin-top: 10px; border-radius: 50%; border-bottom: 4px solid var(--sky); transform: rotate(-1.5deg); }
.hero__lead { max-width: 46ch; margin-top: 16px; font-size: 16px; color: var(--text); }
.hero__art { display: none; }

.search { display: grid; gap: 4px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.search__field { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; cursor: pointer; }
.search__field:focus-within { background: var(--tint); }
.search__field > .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--blue); }
.search__label { font: 600 13.5px/1.2 var(--font-display); color: var(--navy); }
.search__field select, .search__field input { width: 100%; min-height: 26px; padding: 0; border: 0; background: transparent; font-size: 14px; color: var(--text); outline: none; text-overflow: ellipsis; }
.search__field select { appearance: none; padding-right: 22px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081F4C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 16px; }
.search__field input::placeholder { color: var(--muted); }
.search__submit { min-height: 52px; border-radius: 14px; }

/* Trust strip */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, #fff, var(--tint)); box-shadow: var(--shadow-sm); }
.trust li { display: flex; align-items: center; gap: 12px; }
.trust .icon { width: 30px; height: 30px; color: var(--blue); stroke-width: 1.5; }
.trust strong { display: block; font: 700 17px/1.2 var(--font-display); color: var(--navy); }
.trust span { font-size: 12.5px; color: var(--muted); }

/* Sections */
.section { padding-top: 44px; }
.has-reveal .section { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.has-reveal .section.is-visible, .has-reveal .section.results { opacity: 1; transform: none; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__head h2 { font-size: clamp(1.45rem, 3.5vw, 1.75rem); font-weight: 700; }
.section__head p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.grid { display: grid; gap: 16px; }
.grid + .grid { margin-top: 16px; }

/* Specialities */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.spec { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 112px; padding: 14px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); color: var(--blue); transition: transform .18s, box-shadow .18s, border-color .18s; }
.spec:hover { transform: translateY(-3px); border-color: #A9CCFB; box-shadow: var(--shadow-md); }
.spec .icon { width: 38px; height: 38px; stroke-width: 1.4; }
.spec__name { font: 600 14.5px/1.2 var(--font-display); color: var(--navy); text-align: center; }
.spec__note { font-size: 11.5px; color: var(--muted); }

/* Cards */
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.meta { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.meta .icon { width: 15px; height: 15px; color: var(--blue); }
.meta--accent { color: var(--blue-dark); font-weight: 600; }

.avatar { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 12px; font: 700 20px/1 var(--font-display); color: #fff; }
.avatar--a { background: linear-gradient(135deg, #079EFF, #064DB9); }
.avatar--b { background: linear-gradient(135deg, #00C9D6, #0662E9); }
.avatar--c { background: linear-gradient(135deg, #3B82F6, #081F4C); }
.avatar--d { background: linear-gradient(135deg, #00ADDC, #014EAB); }
.avatar--clinic { background: var(--tint-2); color: var(--blue); }
.avatar--clinic .icon { width: 26px; height: 26px; }
.avatar--lg { width: 76px; height: 76px; font-size: 24px; border-radius: 16px; }

.doctor { padding: 14px; gap: 14px; }
.doctor__top { display: flex; gap: 14px; }
.doctor h3 { font-size: 16.5px; font-weight: 600; }
.doctor__spec { margin-top: 2px; font-size: 13.5px; color: var(--text); }

.cover { position: relative; display: grid; place-items: center; height: 132px; overflow: hidden; }
.cover::before, .cover::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.cover::before { width: 180px; height: 180px; left: -50px; bottom: -90px; }
.cover::after { width: 120px; height: 120px; right: -30px; top: -50px; }
.cover--a { background: linear-gradient(135deg, #CBE6FF, #EAF7FF 60%, #D2F6F4); }
.cover--b { background: linear-gradient(135deg, #D6F4F2, #EFFAFF 55%, #CFE2FF); }
.cover--c { background: linear-gradient(135deg, #DCE7FF, #F2FBFF 55%, #C9EEF9); }
.cover--d { background: linear-gradient(135deg, #CFEBFF, #F2FBFF 55%, #DDE6FF); }
.plate { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; max-width: 86%; padding: 10px 16px; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px rgba(8, 31, 76, .14); font: 700 17px/1.1 var(--font-display); color: var(--navy); }
.clinic__body { display: flex; flex-direction: column; flex: 1; padding: 14px; }
.clinic h3 { font-size: 16.5px; font-weight: 600; }
.clinic__specs { margin: 8px 0 14px; font-size: 13px; color: var(--text); }
.clinic__specs strong { font-weight: 500; color: var(--muted); }

/* Empty state */
.empty { padding: 32px 20px; border: 1px dashed #B9D4FA; border-radius: var(--radius); background: var(--tint); text-align: center; }
.empty .icon { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--blue); }
.empty h3 { font-size: 17px; }
.empty p { max-width: 52ch; margin: 6px auto 0; color: var(--muted); font-size: 14px; }

/* Near you */
.near { display: grid; gap: 16px; }
.map { position: relative; min-height: 240px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__city { position: absolute; left: 36%; top: 40%; font: 600 16px/1 var(--font-display); color: var(--navy); }
.map__note { position: absolute; left: 10px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .85); font-size: 11px; color: var(--muted); }
.pin { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 0; background: none; color: var(--blue); transition: transform .15s; }
.pin .icon { width: 28px; height: 28px; fill: var(--blue); stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 3px 4px rgba(8, 31, 76, .3)); }
.pin:hover, .pin.is-active { transform: scale(1.25) translateY(-3px); }
.near__list { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.near__list h3 { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.near__list h3 .icon { color: var(--blue); }
.near__list li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; margin-inline: -8px; border-radius: 10px; transition: background-color .15s; }
.near__list li + li { border-top: 1px solid var(--line); }
.near__list li.is-active { background: var(--tint); }
.near__list li .avatar { width: 46px; height: 46px; font-size: 15px; border-radius: 10px; }
.near__list li div { flex: 1; min-width: 0; }
.near__list li strong { display: block; font: 600 14.5px/1.25 var(--font-display); color: var(--navy); }
.near__list li span:not(.avatar) { display: block; font-size: 12.5px; color: var(--muted); }
.near__empty { padding: 16px 0; color: var(--muted); font-size: 14px; }

/* Steps */
.steps { display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.steps__icon { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 50%; background: var(--tint-2); color: var(--blue); }
.steps__icon .icon { width: 24px; height: 24px; }
.steps h3 { font-size: 16px; font-weight: 600; }
.steps p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* For clinics */
.clinics-cta { display: grid; gap: 24px; padding: 28px 20px; border-radius: var(--radius-lg); background: radial-gradient(70% 90% at 100% 100%, rgba(7, 158, 255, .25), transparent 70%), linear-gradient(135deg, var(--tint), var(--tint-2)); overflow: hidden; }
.clinics-cta h2 { font-size: clamp(1.45rem, 3.5vw, 1.85rem); font-weight: 700; }
.clinics-cta__copy > p { max-width: 54ch; margin-top: 8px; }
.feature-list { display: grid; gap: 16px; margin: 22px 0 24px; }
.feature-list li { display: flex; gap: 12px; }
.feature-list .icon { width: 28px; height: 28px; color: var(--blue); stroke-width: 1.6; }
.feature-list strong { display: block; font: 600 15.5px/1.3 var(--font-display); color: var(--navy); }
.feature-list span { font-size: 13.5px; color: var(--text); }
.clinics-cta__art { display: none; }
.listing-preview { width: 270px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-md); overflow: hidden; transform: rotate(3deg); }
.listing-preview__cover { display: grid; place-items: center; height: 110px; background: linear-gradient(135deg, #CBE6FF, #D2F6F4); }
.listing-preview__body { display: grid; gap: 9px; padding: 16px; }
.listing-preview__body b, .listing-preview__body i { display: block; height: 10px; border-radius: 6px; background: var(--tint-2); }
.listing-preview__body b { width: 60%; height: 13px; background: #C7DBF6; }
.listing-preview__body i.short { width: 75%; }
.listing-preview__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.listing-preview__btns span { padding: 8px; border-radius: 8px; background: var(--blue); color: #fff; font: 600 12.5px/1 var(--font-body); text-align: center; }
.listing-preview__btns span + span { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px #B9D4FA; }

/* Why */
.why { display: grid; gap: 14px; }
.why li { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.why__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 12px; background: var(--tint-2); color: var(--blue); }
.why h3 { font-size: 17px; font-weight: 600; }
.why p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* CTA band */
.band { display: grid; gap: 18px; margin-top: 44px; padding: 26px 20px; border-radius: var(--radius-lg); background: linear-gradient(100deg, var(--blue-dark), var(--blue) 55%, var(--sky)); color: #E3F0FF; text-align: center; }
.band__mark { width: 56px; height: 56px; margin-inline: auto; }
.band h2 { font-size: clamp(1.35rem, 3.5vw, 1.65rem); color: #fff; }
.band p { margin-top: 6px; font-size: 14.5px; }
.band__actions { display: grid; gap: 10px; }

/* Footer */
.site-footer { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--tint)); font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.site-footer__about, .site-footer__grid > div:last-child { grid-column: 1 / -1; }
.site-footer__about p { max-width: 36ch; margin-top: 12px; color: var(--muted); }
.site-footer h2 { margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.site-footer li a, .footer-link { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: none; color: var(--text); font-size: 14px; text-align: left; }
.site-footer li a:hover, .footer-link:hover { color: var(--blue); text-decoration: underline; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; }
.contact-list .icon { margin-top: 5px; color: var(--navy); }
.site-footer__hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.site-footer__disclaimer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.site-footer__bar { display: grid; gap: 6px; margin-top: 16px; padding: 16px 0 24px; border-top: 1px solid var(--line); font-size: 13.5px; }
.site-footer__bar strong { color: var(--navy); }
.site-footer__bar a strong { color: var(--blue); }

/* Profile dialog */
.profile { width: min(100% - 24px, 520px); max-height: min(92vh, 720px); padding: 24px 20px; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(8, 31, 76, .35); color: var(--text); overflow: auto; }
.profile::backdrop { background: rgba(8, 31, 76, .55); backdrop-filter: blur(3px); }
.profile[open] { animation: pop .22s ease; }
.profile__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tint); color: var(--navy); }
.profile__head { display: flex; gap: 16px; align-items: center; padding-right: 44px; }
.profile__head h2 { font-size: 21px; }
.profile__sub { margin-top: 4px; font-size: 14px; }
.profile__details { display: grid; gap: 2px; margin: 20px 0; padding: 6px 14px; border-radius: 14px; background: var(--tint); }
.profile__row { display: grid; grid-template-columns: 22px 84px 1fr; gap: 10px; align-items: start; padding: 10px 0; font-size: 14px; }
.profile__row + .profile__row { border-top: 1px solid var(--line); }
.profile__row .icon { margin-top: 1px; color: var(--blue); }
.profile__row dt { color: var(--muted); }
.profile__row dd { color: var(--navy); font-weight: 500; overflow-wrap: anywhere; }
.profile__actions { display: grid; gap: 10px; }
.profile__note { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---- Tablet ---- */
@media (min-width: 640px) {
  .spec-grid { grid-template-columns: repeat(4, 1fr); }
  .grid--doctors, .grid--clinics, .steps, .feature-list { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: repeat(4, 1fr); padding: 20px 24px; }
  .why { grid-template-columns: repeat(3, 1fr); }
  .band__actions { grid-auto-flow: column; justify-content: center; }
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .profile { padding: 28px; }
  .profile__actions { display: flex; flex-wrap: wrap; }
  .profile__actions .btn { flex: 1 1 150px; }
  .site-footer__bar { grid-auto-flow: column; justify-content: space-between; }
}

/* ---- Desktop ---- */
@media (min-width: 1000px) {
  :root { --header-h: 76px; }
  .brand img { width: 214px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; position: static; align-items: center; gap: 18px; padding: 0; border: 0; box-shadow: none; background: none; }
  .primary-nav__list { display: flex; gap: 2px; margin: 0; }
  .primary-nav__list a { min-height: 40px; }
  .primary-nav .btn { width: auto; }

  .hero { padding-top: 44px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; column-gap: 40px; row-gap: 0; align-items: center; }
  .hero__copy { padding-bottom: 72px; }
  .hero__art { display: block; padding-bottom: 40px; }
  .hero__panel { position: relative; height: 350px; border-radius: 28px; background: linear-gradient(140deg, var(--sky), var(--blue) 55%, var(--blue-dark)); box-shadow: var(--shadow-md); }
  .hero__panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(50% 60% at 90% 10%, rgba(0, 231, 234, .5), transparent 70%); }
  .hero__mark { position: absolute; right: 44px; top: 44px; width: 250px; height: 250px; opacity: .2; }
  .float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px rgba(8, 31, 76, .25); animation: float 6s ease-in-out infinite; }
  .float-card strong { display: block; font: 600 15px/1.25 var(--font-display); color: var(--navy); }
  .float-card span:not(.avatar) { display: block; font-size: 12.5px; color: var(--muted); }
  .float-card > .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--tint-2); color: var(--blue); }
  .float-card--profile { left: -22px; top: 56px; padding: 16px 20px 16px 16px; }
  .float-card--profile .avatar { width: 56px; height: 56px; }
  .float-card__chips { display: flex; gap: 6px; margin-top: 8px; }
  .float-card__chips i { padding: 4px 10px; border-radius: 999px; background: var(--blue); color: #fff; font: 600 11.5px/1.3 var(--font-body); }
  .float-card__chips i + i { background: var(--tint-2); color: var(--blue-dark); }
  .float-card--pin { right: -14px; top: 168px; animation-delay: -2s; }
  .float-card--time { left: 70px; bottom: 34px; animation-delay: -4s; }

  .search { grid-column: 1 / -1; grid-template-columns: 1fr 1fr 1.5fr auto; align-items: center; gap: 0; padding: 10px 10px 10px 14px; position: relative; z-index: 2; }
  .search__field + .search__field { border-left: 1px solid var(--line); border-radius: 0 12px 12px 0; }
  .search__field { padding: 10px 18px; }
  .search__submit { min-height: 56px; padding: 0 30px; margin-left: 8px; }

  .section { padding-top: 56px; }
  .spec-grid { grid-template-columns: repeat(8, 1fr); }
  .grid--doctors { grid-template-columns: repeat(4, 1fr); }
  .grid--clinics { grid-template-columns: repeat(3, 1fr); }
  .near { grid-template-columns: 1.3fr 1fr; }
  .map { min-height: 100%; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 34px; }
  .steps li { position: relative; }
  .steps li + li::before { content: ""; position: absolute; left: -23px; top: 50%; width: 9px; height: 9px; border: solid var(--sky); border-width: 2.5px 2.5px 0 0; transform: translateY(-50%) rotate(45deg); }
  .clinics-cta { grid-template-columns: 1.5fr 1fr; align-items: center; padding: 40px 44px; }
  .clinics-cta__art { display: grid; place-items: center; }
  .band { grid-template-columns: auto 1fr auto; align-items: center; margin-top: 56px; padding: 26px 36px; text-align: left; }
  .band__mark { margin: 0; }
  .site-footer { margin-top: 56px; }
  .site-footer__grid { grid-template-columns: 1.5fr .8fr 1fr .8fr 1.4fr; }
  .site-footer__about, .site-footer__grid > div:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Laravel build additions: inner pages, profiles, gallery, forms, legal
   ===================================================================== */
h3 a { color: inherit; }
h3 a:hover { color: var(--blue); text-decoration: none; }
.btn--whatsapp { background: #128C4B; color: #fff; }
.btn--whatsapp:hover { background: #0E7740; }
.avatar--photo { object-fit: cover; background: var(--tint-2); }
.avatar--xl { width: 88px; height: 88px; border-radius: 18px; font-size: 28px; }
.reg { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.reg .icon { width: 15px; height: 15px; stroke-width: 2; }
.reg--register { color: #0A6B45; }
.reg--document { color: #4A5670; }
.section--tight { padding-top: 28px; }
.grid--two { grid-template-columns: 1fr; }
.preview-bar p { text-align: center; }
.float-card--profile > .icon { width: 44px; height: 44px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.chip-link { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 500; font-size: 14px; }
.chip-link:hover { border-color: var(--blue); text-decoration: none; }
.chip-link.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font: 600 12px/1.2 var(--font-body); }
.chip .icon { width: 14px; height: 14px; stroke-width: 2; }
.chip--register { margin-top: 8px; background: #E5F6EE; color: #0A6B45; }
.chip--document { margin-top: 8px; background: #EEF0F4; color: #3D4A63; }
.chip--static { width: fit-content; }
a.chip:hover { text-decoration: none; }
.cover { text-decoration: none; }
.cover .chip { position: absolute; left: 10px; top: 10px; z-index: 2; }
.cover--photo::before, .cover--photo::after { display: none; }
.cover--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .cover--photo img { transform: scale(1.04); }
.cover--hero { height: 220px; border-radius: var(--radius-lg); }
.near__list li .avatar--photo { width: 46px; height: 46px; }
.near--list-only { grid-template-columns: 1fr; }
.near .chips + * { margin-top: 0; }
#near-you .chips { margin: 0 0 16px; }

/* Page head and breadcrumbs */
.page-head { padding: 26px 0 28px; background: radial-gradient(50% 120% at 100% 0%, rgba(7, 158, 255, .16), transparent 70%), linear-gradient(180deg, var(--tint), #fff); }
.page-head h1 { margin-top: 10px; font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; }
.page-head p { max-width: 68ch; margin-top: 8px; color: var(--text); }
.page-body { padding-top: 8px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #A9B6CF; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--navy); font-weight: 500; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.pagination__item { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid #B9D4FA; border-radius: 10px; background: #fff; color: var(--blue); font-weight: 600; font-size: 14px; }
.pagination__item.is-disabled { border-color: var(--line); color: #9AA7C2; }
.pagination__status { font-size: 14px; color: var(--muted); }

/* Leaflet map */
.map[data-map] { height: 300px; min-height: 0; z-index: 0; background: #EAF4F1; }
.leaflet-container { font: inherit; }
.ck-pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; background: var(--blue); border: 2.5px solid #fff; box-shadow: 0 4px 10px rgba(8, 31, 76, .35); transform: rotate(-45deg); }
.ck-pin::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.map-popup strong { display: block; font: 600 14.5px/1.3 var(--font-display); color: var(--navy); }
.map-popup span { display: block; margin: 2px 0 6px; font-size: 12.5px; color: var(--muted); }

/* Profile pages */
.profile-page { padding-top: 18px; }
.profile-page__grid { display: grid; gap: 22px; margin-top: 14px; padding-bottom: 84px; }
.profile-page__main { min-width: 0; }
.profile-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 18px; margin-top: 20px; }
.profile-head > div { flex: 1; min-width: 220px; }
.profile-head h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; }
.profile-head__sub { margin-top: 4px; font-size: 15.5px; color: var(--text); }
.profile-block { margin-top: 28px; }
.profile-block h2 { margin-bottom: 12px; font-size: 19px; font-weight: 600; }
.profile-block .chips { margin-top: 0; }
.prose-text { max-width: 70ch; white-space: pre-line; }
.facts { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 16px; font-size: 14.5px; }
.facts > div + div { border-top: 1px solid var(--line); }
.facts > div:nth-child(odd) { background: var(--tint); }
.facts dt { color: var(--muted); }
.facts dd { color: var(--navy); font-weight: 500; overflow-wrap: anywhere; }
.facts__note { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: #0A6B45; }
.facts__note--document { color: #4A5670; }

.contact-card { height: fit-content; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
.contact-card h2 { font-size: 18px; font-weight: 600; }
.contact-card__details { margin: 12px 0 16px; }
.contact-card__details > div { padding: 10px 0; font-size: 14.5px; }
.contact-card__details > div + div { border-top: 1px solid var(--line); }
.contact-card__details dt { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.contact-card__details dt .icon { width: 15px; height: 15px; color: var(--blue); }
.contact-card__details dd { margin-top: 2px; color: var(--navy); font-weight: 500; overflow-wrap: anywhere; }
.contact-card__actions { display: grid; gap: 10px; }
.contact-card__note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.action-bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(8, 31, 76, .1); }

/* Gallery */
.gallery__stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 16 / 10; }
.gallery__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__open img { width: 100%; height: 100%; object-fit: cover; }
.gallery__slide figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(8, 31, 76, .72); color: #fff; font-size: 12.5px; font-weight: 500; pointer-events: none; }
.gallery__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: 0 4px 14px rgba(8, 31, 76, .25); }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__nav:disabled { opacity: .35; cursor: default; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(8, 31, 76, .72); color: #fff; font-size: 12.5px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
.gallery__thumbs button { flex: none; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--tint-2); opacity: .7; transition: opacity .15s, border-color .15s; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--blue); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(4, 12, 32, .96); color: #fff; }
.lightbox::backdrop { background: rgba(4, 12, 32, .96); }
.lightbox__inner { display: grid; grid-template-rows: 1fr auto; height: 100%; }
.lightbox__img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 56px 8px 8px; }
.lightbox__caption { padding: 10px 16px 18px; text-align: center; font-size: 14px; color: #D5E0F5; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; }
.lightbox button .icon { width: 24px; height: 24px; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 10px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 10px; top: 50%; margin-top: -24px; }

/* Forms, notes, contact grid */
.split { display: grid; gap: 28px; align-items: start; }
.feature-list--stack { grid-template-columns: 1fr !important; margin-top: 8px; }
.note { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--sky); border-radius: var(--radius); background: var(--tint); }
.note h2 { font-size: 16.5px; font-weight: 600; }
.note p { margin-top: 6px; font-size: 14.5px; }
.note--warn { border-left-color: #D9480F; background: #FFF4EC; }
.note h2 + .note-list { margin-top: 10px; }
.note-list + h2 { margin-top: 18px; }
.note-list { display: grid; gap: 7px; font-size: 14.5px; }
.note-list li { display: flex; align-items: flex-start; gap: 8px; }
.note-list .icon { width: 16px; height: 16px; margin-top: 3px; stroke-width: 2.4; color: #0A6B45; }
.note-list--no .icon { color: #B42318; }
.note--plain { border-left-color: var(--line); background: #fff; }
.form-card { display: grid; gap: 14px; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); scroll-margin-top: calc(var(--header-h) + 16px); }
.form-card h2 { font-size: 20px; font-weight: 600; }
.form-card__hint { font-size: 13px; color: var(--muted); }
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: var(--navy); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid #C5D3E8; border-radius: 10px; background: #fff; font-size: 15px; color: var(--navy); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(7, 158, 255, .35); border-color: var(--blue); }
.field.has-error input, .field.has-error textarea { border-color: #C92A2A; }
.field__error { margin-top: 5px; font-size: 13px; color: #B02020; }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.field--check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--blue); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; }
.alert--success { background: #E5F6EE; color: #0A6B45; }
.alert--error { background: #FDECEC; color: #B02020; }
.contact-grid { display: grid; gap: 14px; margin-top: 8px; }
.contact-grid li { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.contact-grid .icon { width: 28px; height: 28px; margin-bottom: 10px; color: var(--blue); }
.contact-grid h2 { font-size: 15px; font-weight: 600; color: var(--muted); }
.contact-grid p { margin-top: 2px; font: 600 17px/1.35 var(--font-display); color: var(--navy); overflow-wrap: anywhere; }
.contact-grid span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.spec-grid--wide { margin-top: 8px; }

/* Long-form text (about, legal) */
.prose { max-width: 800px; font-size: 16px; line-height: 1.7; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 34px; font-size: 21px; font-weight: 600; }
.prose h3 { margin-top: 22px; font-size: 17px; font-weight: 600; }
.prose ul { padding-left: 22px; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
.prose .note h2 { margin-top: 0; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--tint-2); font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; }
.prose thead { background: var(--tint); color: var(--navy); }
.prose tbody tr + tr { border-top: 1px solid var(--line); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer__legal a { min-height: 28px; font-size: 13.5px; }
.empty h2 { font-size: 18px; }
.empty .btn { margin-top: 14px; }

@media (min-width: 640px) {
  .grid--two { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-card__actions { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 28px; }
}
@media (min-width: 1000px) {
  .profile-page__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding-bottom: 0; }
  .contact-card { position: sticky; top: calc(var(--header-h) + 16px); }
  .contact-card__actions { grid-template-columns: 1fr; }
  .action-bar { display: none; }
  .split { grid-template-columns: 1fr 440px; gap: 48px; }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
  .spec-grid--wide { grid-template-columns: repeat(6, 1fr); }
  .site-footer__bar { align-items: center; }
  .near .map[data-map] { height: 100%; min-height: 340px; }
  .map--profile[data-map] { height: 340px; }
}
.empty h1 { font-size: 22px; }

/* Fixes after first preview */
.page-body > .search { margin-top: 10px; }
.gallery__slide--contain .gallery__open img { object-fit: contain; }
@media (min-width: 1000px) {
  .hero .search { margin-top: -72px; }
}

/* Hero with photograph */
.hero--photo { padding-top: 0; overflow: visible; background: linear-gradient(180deg, var(--tint), #fff); }
.hero--photo .hero__photo { display: block; width: 100%; height: 230px; object-fit: cover; object-position: 50% 12%; }
.hero--photo .hero__shade { position: absolute; inset: 150px 0 auto 0; height: 82px; background: linear-gradient(180deg, rgba(242, 251, 255, 0), var(--tint)); pointer-events: none; }
.hero--photo .hero__grid { position: relative; padding-top: 6px; }
.hero--photo .eyebrow { box-shadow: var(--shadow-sm); }
@media (min-width: 640px) {
  .hero--photo .hero__photo { height: 320px; }
  .hero--photo .hero__shade { top: 238px; }
}
@media (min-width: 1000px) {
  .hero--photo { position: relative; padding: 0; background: var(--tint); }
  .hero--photo .hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-position: right 8%; }
  .hero--photo .hero__shade { inset: 0; height: auto; background:
      linear-gradient(90deg, rgba(242, 251, 255, .97) 0%, rgba(242, 251, 255, .94) 30%, rgba(242, 251, 255, .6) 46%, rgba(242, 251, 255, 0) 62%),
      linear-gradient(180deg, rgba(255, 255, 255, 0) 78%, rgba(255, 255, 255, .85) 100%); }
  .hero--photo .hero__grid { grid-template-columns: 1fr; min-height: clamp(520px, 34vw, 680px); padding-top: 56px; align-content: space-between; }
  .hero--photo .hero__copy { max-width: 560px; padding-bottom: 36px; }
  .hero--photo .hero__lead { max-width: 44ch; color: var(--navy); }
  .hero--photo .search { margin-top: 0; margin-bottom: -40px; }
  .hero--photo + .container .trust { margin-top: 68px; }
}
