/* =============================================================================
   Project:   polska.clinic v1
   Location:  /assets/css/app.css
   Function:  Theme on top of Bootstrap 5.3, following the uploaded design
              (polska-clinic-strony): glass header, Playfair Display headings,
              Plus Jakarta Sans text, rose pill buttons, search pill, clinic
              cards, city tiles, bento, dark clinic-owner section, profile with
              sticky contact panel. Colours from the logo SVG (navy #06214D,
              coral #FD425F); text-size coral darkened to #D81E45 for WCAG AA.
   Version:   2.1.0
   Build:     2026.12.06.0110
   Changelog:
     2.1.0  2026-12-06  Gentle motion (reveal, float, micro-interactions), JSON export box
     2.0.0  2026-12-06  Unused rules removed (old form, legacy band, steps, tables)
     1.2.0  2026-12-06  Correction page table (current / proposed data)
     1.1.0  2026-12-05  New design system from the uploaded design + logo
     1.0.0  2026-12-05  Initial version
   ============================================================================= */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(../fonts/playfair-display-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(../fonts/playfair-display-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-display: swap; font-weight: 700;
  src: url(../fonts/playfair-display-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-display: swap; font-weight: 700;
  src: url(../fonts/playfair-display-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-display: swap; font-weight: 600;
  src: url(../fonts/playfair-display-latin-600-italic.woff2) format('woff2'); unicode-range: U+0000-00FF,U+2000-206F; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-display: swap; font-weight: 600;
  src: url(../fonts/playfair-display-latin-ext-600-italic.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF; }

/* ---------- Tokens ---------- */
:root {
  --navy: #06214D;           /* logo navy */
  --navy-soft: #1B3460;
  --navy-deep: #031634;      /* dark sections */
  --rose: #FD425F;           /* logo coral - marks, bars, large shapes */
  --rose-ink: #D81E45;       /* buttons, links, small text: 5.0:1 on white */
  --rose-hover: #B8193C;
  --rose-soft: #FFF1F4;
  --rose-border: #FFD6E2;
  --bg: #FAF9FB;
  --surface: #FFFFFF;
  --muted: #5B6478;          /* 5.9:1 on white */
  --border: #E8E6EE;
  --field: #CFCCD9;
  --sand: #FFF6E5; --sand-line: #F1D49B; --sand-ink: #7A4E00;   /* AI notice */
  --ok: #17694D; --ok-tint: #E7F4EE;
  --radius-lg: 24px; --radius-md: 16px; --radius-sm: 10px;
  --shadow-soft: 0 12px 40px -12px rgba(6, 33, 77, .10);
  --shadow-float: 0 24px 60px -15px rgba(6, 33, 77, .18);
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --appbar-h: 64px;
  --bs-body-font-family: var(--font-ui);
  --bs-body-color: var(--navy);
  --bs-body-bg: var(--bg);
  --bs-link-color: var(--rose-ink);
  --bs-link-color-rgb: 216, 30, 69;
  --bs-link-hover-color: var(--rose-hover);
  --bs-link-hover-color-rgb: 184, 25, 60;
  --bs-border-color: var(--border);
  --bs-primary: var(--rose-ink);
  --bs-primary-rgb: 216, 30, 69;
  --bs-secondary-color: var(--muted);
  --bs-focus-ring-color: rgba(216, 30, 69, .35);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-padding-top: 140px; }
body { font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, .font-serif { font-family: var(--font-display); color: var(--navy); letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem); font-weight: 700; line-height: 1.08; margin: 0 0 .6rem; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 700; line-height: 1.15; margin-bottom: .9rem; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.h-small { font-family: var(--font-ui); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: .75rem; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rose-ink) !important; outline-offset: 3px; border-radius: 6px; box-shadow: none !important; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: #fff; }
.lead-sm { font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin-bottom: 0; }
.narrow { max-width: 820px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.form-hint { font-size: .88rem; color: var(--muted); margin: .35rem 0 0; }
.optional { color: var(--muted); font-weight: 400; }
.count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9em; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
main { display: block; min-height: 60vh; outline: none; }
.kicker { color: var(--rose-ink); font-weight: 700; font-size: .85rem; margin: 0 0 .25rem; }

/* ---------- Buttons ---------- */
.btn { --bs-btn-font-weight: 700; --bs-btn-border-radius: 999px; --bs-btn-padding-x: 1.3rem; --bs-btn-padding-y: .6rem; --bs-btn-font-size: .95rem;
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.btn-sm { --bs-btn-padding-x: .95rem; --bs-btn-padding-y: .35rem; --bs-btn-font-size: .87rem; min-height: 38px; }
.btn-lg { --bs-btn-padding-x: 1.7rem; --bs-btn-padding-y: .8rem; --bs-btn-font-size: 1.02rem; min-height: 54px; }
.btn-primary { --bs-btn-color: #fff; --bs-btn-bg: var(--rose-ink); --bs-btn-border-color: var(--rose-ink);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--rose-hover); --bs-btn-hover-border-color: var(--rose-hover);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--rose-hover); --bs-btn-active-border-color: var(--rose-hover);
  --bs-btn-disabled-bg: var(--rose-ink); --bs-btn-disabled-border-color: var(--rose-ink); }
.btn-primary:hover { box-shadow: 0 10px 24px -6px rgba(216, 30, 69, .45); transform: translateY(-1px); }
.btn-outline-rose { --bs-btn-color: var(--rose-ink); --bs-btn-bg: #fff; --bs-btn-border-color: var(--rose-border);
  --bs-btn-hover-color: var(--rose-ink); --bs-btn-hover-bg: var(--rose-soft); --bs-btn-hover-border-color: var(--rose-ink);
  --bs-btn-active-color: var(--rose-ink); --bs-btn-active-bg: var(--rose-soft); --bs-btn-active-border-color: var(--rose-ink); border-width: 1.5px; }
.btn-ghost { --bs-btn-color: var(--navy); --bs-btn-bg: #fff; --bs-btn-border-color: var(--border);
  --bs-btn-hover-color: var(--navy); --bs-btn-hover-bg: #F4F3F8; --bs-btn-hover-border-color: var(--field);
  --bs-btn-active-color: var(--navy); --bs-btn-active-bg: #F4F3F8; --bs-btn-font-weight: 600; }
.btn-light { --bs-btn-font-weight: 700; }
.btn-outline-light { --bs-btn-font-weight: 600; }
.btn-icon { width: 44px; padding: 0; }

/* ---------- Header (glass) ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232, 230, 238, .8); padding: .8rem 0; padding-top: max(.8rem, env(safe-area-inset-top)); }
.brand img { display: block; height: 38px; width: auto; }
.main-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 .95rem; color: var(--navy-soft); text-decoration: none; font-weight: 600; font-size: .94rem; border-radius: 999px; transition: background-color .2s, color .2s; }
.main-nav a:hover { background: var(--rose-soft); color: var(--rose-ink); }
.main-nav a[aria-current="page"] { background: var(--rose-soft); color: var(--rose-ink); }
.crumbs { background: transparent; }
.crumbs .breadcrumb { margin: 0; padding: 1rem 0 0; font-size: .88rem; --bs-breadcrumb-divider-color: var(--muted); --bs-breadcrumb-item-active-color: var(--navy); }
.crumbs .breadcrumb-item.active { font-weight: 600; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--rose-ink); text-decoration: underline; }

/* ---------- App bar (phones) ---------- */
.app-bar { position: fixed; inset: auto 0 0 0; z-index: 1030; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); height: calc(var(--appbar-h) + env(safe-area-inset-bottom)); }
.app-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; }
.app-bar i { font-size: 1.25rem; line-height: 1; }
.app-bar a[aria-current="page"] { color: var(--rose-ink); }
@media (max-width: 991.98px) { body { padding-bottom: calc(var(--appbar-h) + env(safe-area-inset-bottom)); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 clamp(2.5rem, 2rem + 2vw, 3.5rem);
  background: radial-gradient(circle at 85% 15%, rgba(253, 66, 95, .10), transparent 42%),
              radial-gradient(circle at 12% 75%, rgba(6, 33, 77, .05), transparent 45%), #fff;
  border-bottom: 1px solid var(--border); }
.eyebrow-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .9rem; border-radius: 999px; background: var(--rose-soft); color: var(--rose-ink); font-size: .82rem; font-weight: 700; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 3.85rem); line-height: 1.07; font-weight: 700; margin-bottom: 1rem; }
.hero-lead { font-size: 1.18rem; color: var(--muted); max-width: 580px; margin-bottom: 1.5rem; }
.stat-pills { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.5rem; }
.stat-pill { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--border); padding: .45rem 1rem; border-radius: 999px; font-size: .92rem; box-shadow: 0 4px 14px rgba(6, 33, 77, .04); }
.stat-pill i { color: var(--rose-ink); }
.stat-pill strong { color: var(--rose-ink); font-size: 1.06rem; }

/* Search pill */
.search-pill { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow-float);
  display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.search-field { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: .7rem; padding: .3rem .8rem; border-right: 1px solid var(--border); }
.search-field:nth-of-type(2) { border-right: 0; }
.search-field > div { flex: 1; min-width: 0; }
.search-field > i { color: var(--rose-ink); font-size: 1.15rem; }
.search-label { display: block; font-size: .74rem; font-weight: 700; color: var(--muted); margin: 0; line-height: 1.2; }
.ask-select { appearance: none; -webkit-appearance: none; width: 100%; border: 0; outline: none; background: transparent; padding: .15rem 1.2rem .15rem 0; font: inherit; font-weight: 700; font-size: .98rem; color: var(--navy); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2306214D' d='M3.2 5.6 8 10.4l4.8-4.8 1.1 1.1L8 12.6 2.1 6.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: .8rem; text-overflow: ellipsis; }
.ask-select:focus-visible { outline-offset: 6px; }
.btn-search { min-height: 54px; padding-inline: 1.6rem; flex: none; }
@media (max-width: 767.98px) {
  .search-pill { flex-direction: column; align-items: stretch; border-radius: 24px; padding: 12px; }
  .search-field { border-right: 0; border-bottom: 1px solid var(--border); padding: .6rem .3rem; }
  .search-field:nth-of-type(2) { border-bottom: 0; }
}
.quick-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .88rem; color: var(--muted); }
.quick-tags > span { font-weight: 600; }
.quick-tag { display: inline-flex; align-items: center; min-height: 34px; padding: 0 .85rem; border-radius: 999px; border: 1px solid var(--border); background: #F7F6FA; color: var(--navy); text-decoration: none; font-weight: 600; }
.quick-tag:hover { border-color: var(--rose-ink); color: var(--rose-ink); background: #fff; }

/* Hero visual */
.hero-visual { position: relative; border-radius: 32px; overflow: hidden; min-height: 420px; box-shadow: var(--shadow-float);
  background: radial-gradient(circle at 30% 25%, #FFE3E9 0, transparent 55%), radial-gradient(circle at 80% 85%, #DCE3F1 0, transparent 55%), linear-gradient(150deg, #FFF4F6 0%, #F1F3F9 100%); }
.hero-mark { position: absolute; width: 50%; height: auto; left: 50%; top: 44%; transform: translate(-50%, -50%); filter: drop-shadow(0 24px 40px rgba(6, 33, 77, .14)); }
.glass-card { position: absolute; display: flex; align-items: center; gap: .75rem; background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px; padding: .8rem 1rem; box-shadow: 0 16px 36px rgba(6, 33, 77, .14); }
.glass-top { top: 20px; left: 20px; max-width: calc(100% - 40px); }
.glass-bottom { bottom: 20px; left: 20px; right: 20px; justify-content: space-between; }
.glass-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; flex: none; }
.glass-kicker { font-size: .74rem; font-weight: 700; color: var(--rose-ink); margin: 0; }
.glass-title { font-weight: 800; margin: 0; line-height: 1.3; }
.glass-sub { font-size: .8rem; color: var(--muted); margin: 0; }
@media (max-width: 991.98px) { .hero-visual { min-height: 320px; } }

/* ---------- Chip bar (treatments) ---------- */
.chip-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 1.4rem 0; }
.chip-bar-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.chip-bar-title { font-family: var(--font-ui); font-size: .9rem; font-weight: 700; color: var(--muted); letter-spacing: 0; margin: 0; }
.chip-bar-head a { font-size: .9rem; font-weight: 600; }
.chip-row { list-style: none; display: flex; gap: .5rem; overflow-x: auto; padding: 0 0 .25rem; margin: 0; scrollbar-width: thin; }
.concern-chip { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1.5px solid var(--border); color: var(--navy); padding: .55rem 1.1rem; border-radius: 999px;
  font-weight: 600; font-size: .9rem; white-space: nowrap; text-decoration: none; transition: border-color .2s, color .2s; }
.concern-chip:hover { border-color: var(--rose-ink); color: var(--rose-ink); }
.concern-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Blocks ---------- */
.block { padding: clamp(2.75rem, 2rem + 2.5vw, 4.5rem) 0; }
.block-white { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.block-tint { background: #F3F2F7; }
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.block-head h2 { margin: 0; }
.block-head > a:not(.btn) { font-weight: 600; }
.block-head-center { justify-content: center; text-align: center; margin-bottom: 2.5rem; }
.block-more { margin: 2rem 0 0; text-align: center; }
.view-switch { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.view-switch a { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: 0 1rem; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--navy); text-decoration: none; }
.view-switch a.is-on { background: var(--navy); color: #fff; }
.view-switch a:not(.is-on):hover { background: var(--rose-soft); color: var(--rose-ink); }
.page-head { padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem) 0 1.75rem; border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-head-tight { padding-bottom: 1.25rem; }
.list-wrap { padding-top: 2rem; padding-bottom: 4rem; }

/* Typographic index lists (all treatments, all cities) */
.index-list { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 1rem; }
@media (min-width: 576px) { .index-list { columns: 2; } }
@media (min-width: 992px) { .index-list { columns: 3; } .index-list-4 { columns: 4; } }
.index-list-1 { columns: 1 !important; }
.index-list li { break-inside: avoid; margin-bottom: .5rem; }
.index-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem; min-height: 48px; color: var(--navy); text-decoration: none; font-weight: 600;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s, background-color .2s; }
.index-list a:hover { border-color: var(--rose-ink); background: var(--rose-soft); }
.index-list a:hover span:first-child { color: var(--rose-ink); }
.az { display: grid; gap: 1.75rem 2rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.az-letter { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--rose); margin: 0 0 .5rem; line-height: 1; }



/* ---------- City tiles ---------- */
.city-grid { list-style: none; display: grid; gap: .8rem; padding: 0; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .city-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.city-card { display: flex; align-items: center; justify-content: space-between; gap: .5rem; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1rem 1.1rem;
  color: var(--navy); text-decoration: none; transition: border-color .2s, background-color .2s, transform .2s; }
.city-card:hover { border-color: var(--rose-ink); background: var(--rose-soft); transform: translateY(-2px); color: var(--navy); }
.city-card > span { min-width: 0; }
.city-name { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.city-count { display: block; font-size: .84rem; color: var(--muted); }
.city-card i { color: var(--rose-ink); }

/* ---------- Treatment cards ---------- */
.treatment-grid { list-style: none; display: grid; gap: 1rem; padding: 0; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 992px) { .treatment-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .treatment-grid { grid-template-columns: minmax(0, 1fr); } }
.treatment-card { display: flex; flex-direction: column; gap: .35rem; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.2rem 1.25rem;
  color: var(--navy); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.treatment-card:hover { border-color: var(--rose-ink); box-shadow: var(--shadow-soft); color: var(--navy); }
.treatment-name { font-weight: 700; font-size: 1.02rem; }
.treatment-meta { font-size: .86rem; color: var(--muted); }
.reach-bar { display: block; height: 7px; border-radius: 999px; background: #F1F0F5; overflow: hidden; margin-top: .5rem; }
.reach-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--rose), #FF8AA0); }

/* ---------- Bento ---------- */
.bento-card { height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.bento-card p { color: var(--muted); font-size: .95rem; }
.bento-card p:last-child { margin-bottom: 0; }
.bento-dark { display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); border: 0; color: #fff; }
.bento-dark .bento-text { color: rgba(255,255,255,.75); font-size: 1rem; }
.bento-badge { display: inline-block; align-self: flex-start; padding: .35rem .9rem; border-radius: 999px; background: rgba(253, 66, 95, .3); color: #FFE1E7; font-size: .82rem; font-weight: 700; margin-bottom: 1rem; }
.bento-title { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 1rem; }
.bento-figures { display: flex; gap: 2rem; padding-top: 1.25rem; margin-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); }
.bento-figures strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: #FF8AA0; line-height: 1.1; }
.bento-figures div + div strong { color: #fff; }
.bento-figures span { font-size: .84rem; color: rgba(255,255,255,.7); }
.bento-icon { display: block; font-size: 1.6rem; color: var(--rose-ink); margin-bottom: .6rem; }
.bento-h { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 800; letter-spacing: 0; margin-bottom: .4rem; }
.bento-soft { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--rose-soft); border-color: var(--rose-border); }

/* ---------- Clinic owners (dark) ---------- */
.b2b { background: radial-gradient(circle at 80% 20%, rgba(253, 66, 95, .24), transparent 45%), var(--navy-deep); color: #fff; border-radius: 32px; padding: clamp(1.75rem, 1rem + 3vw, 3rem); }
.b2b h2 { color: #fff; }
.b2b-lead { color: rgba(255,255,255,.75); font-size: 1.12rem; max-width: 58ch; margin-bottom: 1.5rem; }
.b2b-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.b2b-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 1.4rem 1.5rem; }
.b2b-panel-title { font-weight: 800; margin-bottom: .75rem; }
.b2b-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.b2b-panel li { display: flex; gap: .6rem; color: rgba(255,255,255,.82); font-size: .95rem; }
.b2b-panel i { color: #5FD3A2; }
.diet-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.diet-band h2 { margin-bottom: .3rem; }
.diet-band p { color: var(--muted); }

/* ---------- Pills, tags ---------- */
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 1rem; border: 1.5px solid var(--border); border-radius: 999px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .92rem; background: #fff; }
.pill:hover { border-color: var(--rose-ink); color: var(--rose-ink); }
.pill-on, .pill[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill-on:hover, .pill[aria-current="page"]:hover { color: #fff; }
.pill-on .count, .pill[aria-current="page"] .count { color: rgba(255,255,255,.75); }
.chips, .tags { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: .6rem 0 0; }
.chip, .tag { font-size: .78rem; font-weight: 600; padding: .22rem .65rem; border-radius: 999px; background: #F1F3F8; color: var(--navy-soft); }
.tag-on { background: var(--rose-ink); color: #fff; }
.tag-more { background: #F1F0F5; color: var(--muted); }
.chips-lg .chip { font-size: .9rem; padding: .35rem .85rem; }

/* ---------- Monogram ---------- */
.mono { flex: none; width: 56px; height: 56px; border-radius: var(--radius-md); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.mono-lg { width: 84px; height: 84px; font-size: 1.8rem; border-radius: var(--radius-lg); }
.mono-0, .tint-0 { background: #E8ECF5; color: var(--navy); }
.mono-1, .tint-1 { background: #FFE6EB; color: #A4143A; }
.mono-2, .tint-2 { background: #E4F1EC; color: #1F5B4A; }
.mono-3, .tint-3 { background: #EFE9F7; color: #573C7A; }
.mono-4, .tint-4 { background: #FCEFE2; color: #7A4A12; }

/* ---------- Filters ---------- */
.filters { display: grid; gap: .9rem; margin-top: 1.5rem; grid-template-columns: 1fr; align-items: end; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.1rem; box-shadow: var(--shadow-soft); }
@media (min-width: 768px) { .filters { grid-template-columns: 2fr 1fr 1fr auto; } .filters-inline { grid-template-columns: 1fr auto; } }
.form-label { font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.form-control, .form-select { min-height: 48px; border-radius: 12px; border-color: var(--field); font-size: 1rem; color: var(--navy); }
.form-control:focus, .form-select:focus { border-color: var(--navy); box-shadow: none; }

/* ---------- Clinic cards (lists) ---------- */
.result-count { color: var(--muted); margin-bottom: 1.25rem; font-weight: 600; }
.clinic-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .clinic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .clinic-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.clinic-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.clinic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--rose-border); }
.clinic-cover { position: relative; display: grid; place-items: center; height: 128px; text-decoration: none; overflow: hidden;
  background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.4px); background-size: 14px 14px; }
.clinic-cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.55), transparent 50%); }
.clinic-cover-mono { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: 2.7rem; line-height: 1; opacity: .85; transition: transform .4s; }
.cover-city { position: absolute; z-index: 1; right: 12px; bottom: 10px; padding: .15rem .6rem; border-radius: 999px; background: rgba(255,255,255,.8); color: var(--navy); font-family: var(--font-ui); font-size: .72rem; font-weight: 700; }
.clinic-card:hover .clinic-cover-mono { transform: scale(1.06); }
.cover-badge { position: absolute; z-index: 1; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px;
  font-family: var(--font-ui); font-size: .74rem; font-weight: 700; color: #fff; background: rgba(6, 33, 77, .84); backdrop-filter: blur(8px); }
.cover-badge.is-checked { background: rgba(23, 105, 77, .92); }
.cover-badge.is-auto { background: rgba(23, 105, 77, .92); }
.clinic-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.2rem; }
.clinic-card-name { font-size: 1.22rem; margin: 0 0 .3rem; }
.clinic-card-name a { color: var(--navy); text-decoration: none; }
.clinic-card-name a:hover { color: var(--rose-ink); text-decoration: underline; }
.clinic-card-place, .clinic-row-place { display: flex; gap: .4rem; color: var(--muted); font-size: .9rem; margin: 0; }
.clinic-card-place i { color: var(--rose-ink); margin-top: .15rem; }
.clinic-card-rating { font-size: .88rem; margin: .35rem 0 0; color: var(--muted); }
.clinic-card-rating i { color: #E7A100; }
.clinic-card-rating strong { color: var(--navy); }
.clinic-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: 1.1rem; }
.clinic-card .tags { margin-bottom: .2rem; }
.data-state { margin: .7rem 0 0; font-size: .8rem; }
.data-state.is-ai { color: var(--sand-ink); }
.data-state.is-checked { color: var(--ok); font-weight: 700; }
.data-state.is-auto { color: var(--ok); font-weight: 700; }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.5rem; }
.list-tools-right { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.toggle-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--navy); font-weight: 700; font-size: .9rem; text-decoration: none; }
.toggle-chip:hover { border-color: var(--ok); color: var(--ok); }
.toggle-chip.is-on { background: var(--ok); border-color: var(--ok); color: #fff; }
.per-page { display: inline-flex; align-items: center; gap: .25rem; font-size: .88rem; color: var(--muted); }
.per-page span:first-child { margin-right: .25rem; font-weight: 600; }
.per-page a, .per-page span[aria-current] { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 .5rem; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--navy); border: 1px solid var(--border); background: #fff; }
.per-page a:hover { border-color: var(--rose-ink); color: var(--rose-ink); }
.per-page span[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Pager ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 2.5rem; }
.pager ol { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; }
.pager a, .pager span[aria-current] { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; border-radius: 999px; text-decoration: none; color: var(--navy); border: 1px solid var(--border); background: #fff; font-weight: 600; }
.pager a:hover { border-color: var(--rose-ink); color: var(--rose-ink); }
.pager span[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .pager-step { width: auto; padding: 0 1rem; }
.pager-gap { align-self: center; color: var(--muted); }

/* ---------- Empty / status ---------- */
.empty { padding: 2.5rem; background: #fff; border: 1px dashed var(--field); border-radius: var(--radius-lg); max-width: 640px; }
.form-status { display: flex; gap: .6rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--radius-md); margin-bottom: 1.25rem; }
.form-status-ok { background: var(--ok-tint); color: #0F4C37; }
.form-status-err { background: var(--rose-soft); color: var(--rose-hover); }
.hint-box { margin-top: 2rem; padding: 1.4rem 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); }

/* ---------- Profile ---------- */
.profile-head { padding: 1.25rem 0 1.75rem; }
.profile-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.profile-head h1 { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem); margin: .2rem 0 .5rem; }
.profile-head-inner { display: flex; gap: 1.25rem; align-items: center; }
.profile-sub { color: var(--muted); margin: .35rem 0 0; font-size: 1.05rem; }
.badge-row { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 .5rem; }
.badge-dark, .badge-soft { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge-dark { background: var(--navy); color: #fff; }
.badge-dark i { color: #FF8AA0; }
.badge-ok { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--ok); color: #fff; }
.badge-soft { background: var(--sand); color: var(--sand-ink); border: 1px solid var(--sand-line); }
.profile-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding: 0; margin: 0; color: var(--muted); font-size: .94rem; }
.profile-meta i { color: var(--rose-ink); }
.profile-meta i.is-star { color: #E7A100; }
.profile-meta strong { color: var(--navy); }
.profile-meta .is-today { color: var(--ok); font-weight: 700; }
.profile-meta .is-today i { color: var(--ok); }
.profile-head-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.subnav { position: sticky; top: 64px; z-index: 1020; background: rgba(250, 249, 251, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.subnav .container-xl { display: flex; gap: 1.75rem; overflow-x: auto; scrollbar-width: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; min-height: 52px; color: var(--muted); font-weight: 700; font-size: .92rem; text-decoration: none; border-bottom: 2.5px solid transparent; }
.subnav a:hover, .subnav a.is-on { color: var(--rose-ink); border-bottom-color: var(--rose-ink); }
.profile-grid { display: grid; gap: 1.5rem; padding-top: 2rem; padding-bottom: 3.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 992px) { .profile-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.profile-main { display: grid; gap: 1.5rem; min-width: 0; }
.card-lux { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 1vw, 2rem); box-shadow: var(--shadow-soft); scroll-margin-top: 130px; }
.card-lux h2 { font-size: 1.65rem; margin-bottom: .3rem; }
.card-lux-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
.card-lux-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.prose-card p { color: #2B3A57; margin: .6rem 0 0; max-width: 70ch; }
.svc-filter { position: relative; min-width: 230px; }
.svc-filter i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.svc-filter .form-control { padding-left: 2.4rem; border-radius: 999px; }
.svc-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.svc-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem 1rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s, background-color .2s; }
.svc-rows li:hover { border-color: var(--rose-border); background: #FFFAFB; }
.svc-rows a { font-weight: 700; color: var(--navy); text-decoration: none; }
.svc-rows a:hover { color: var(--rose-ink); text-decoration: underline; }
.svc-note { grid-column: 1; font-size: .84rem; color: var(--muted); }
.svc-rows .svc-price { grid-column: 2; grid-row: 1; }
.svc-price { color: var(--rose-ink); font-weight: 800; white-space: nowrap; font-size: .92rem; }
.svc-empty { color: var(--muted); margin: .75rem 0 0; }
.place-card { display: flex; flex-direction: column; gap: 1rem; height: 100%; padding: 1.4rem; border-radius: var(--radius-md); border: 1px solid var(--border);
  background: radial-gradient(circle at 20% 20%, #FFF1F4, #F3F4F9); }
.place-city { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .4rem; padding: .25rem .75rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700; }
.place-city i { color: #FF8AA0; }
.place-address { font-weight: 700; font-size: 1.1rem; margin: 0; }
.place-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; }
.place-actions .map-slot:has(.map-canvas) { flex-basis: 100%; }
.hours-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .92rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .75rem; border-radius: 10px; }
.hours-list li:nth-child(odd) { background: #F7F6FA; }
.hours-list li.is-today { background: var(--ok-tint); color: #0F4C37; font-weight: 700; }
.map-slot { margin-top: .25rem; }
.map-canvas { height: 300px; border-radius: var(--radius-md); border: 1px solid var(--border); }
.map-all { height: min(70vh, 640px); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: .3rem 0; display: flex; gap: .6rem; }

/* Contact panel (sticky on desktop) */
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-float); }
@media (min-width: 992px) { .contact-card { position: sticky; top: 140px; } }
.contact-kicker { color: var(--rose-ink); font-size: .8rem; font-weight: 800; margin: 0; }
.contact-title { font-size: 1.35rem; margin: .1rem 0 1rem; }
.contact-card .btn { justify-content: flex-start; word-break: break-all; text-align: left; }
.contact-card .btn-lg { justify-content: center; }
.contact-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.contact-list li { display: flex; gap: .65rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--border); word-break: break-word; }
.contact-note { font-size: .84rem; color: var(--muted); margin: 1rem 0 0; }
.mobile-bar { position: fixed; z-index: 1025; left: 0; right: 0; bottom: calc(var(--appbar-h) + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 1rem; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px rgba(6, 33, 77, .08); }
.mobile-bar-name { font-weight: 800; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 991.98px) { .profile { padding-bottom: 64px; } }

/* AI data notice - the honesty signal on every clinic */
.notice { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.25rem 1.4rem; border-radius: var(--radius-lg); border: 1px solid; }
.notice-ai { background: var(--sand); border-color: var(--sand-line); }
.notice-checked { background: var(--ok-tint); border-color: #A9D7C3; }
.notice-icon { font-size: 1.5rem; line-height: 1; }
.notice-ai .notice-icon { color: var(--sand-ink); }
.notice-checked .notice-icon { color: var(--ok); }
.notice-title { font-family: var(--font-ui); font-size: 1.02rem; font-weight: 800; letter-spacing: 0; margin: 0 0 .3rem; }
.notice p { margin: 0 0 .75rem; color: #3B3320; }
.notice-checked p { margin: 0; color: #0F4C37; }
.btn-notice { --bs-btn-color: var(--navy); --bs-btn-bg: #fff; --bs-btn-border-color: var(--sand-line); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: var(--sand-ink); --bs-btn-hover-color: var(--navy); }

/* ---------- Forms ---------- */
.correction { scroll-margin-top: 130px; }
.correction h2 { font-size: 1.65rem; }
.form-grid { display: grid; gap: 1.1rem 1.25rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
fieldset legend { font-size: .9rem; font-weight: 700; margin-bottom: .5rem; font-family: var(--font-ui); }
.form-check { min-height: 28px; }
.form-check-input { width: 1.2em; height: 1.2em; margin-top: .2em; border-color: #9AA3B5; }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.consent .form-check-label { font-size: .9rem; color: var(--muted); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: .6rem; padding: 0 1.2rem; }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 700; font-size: 1.02rem; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: .7rem; font-size: 1.4rem; color: var(--rose-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1rem; margin: 0; color: var(--muted); max-width: 68ch; }

/* People */
.person-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.person { display: flex; gap: 1rem; padding: 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color .2s, box-shadow .2s; }
.person:hover { border-color: var(--rose-border); box-shadow: var(--shadow-soft); }
.person-name { font-size: 1.15rem; margin: 0; }
.person-name a { color: var(--navy); text-decoration: none; }
.person-name a:hover { color: var(--rose-ink); text-decoration: underline; }

/* Contact page */
.contact-dl { display: grid; gap: 1.5rem; margin: 0; }
.contact-dl dt { font-weight: 700; color: var(--muted); font-size: .9rem; }
.contact-dl dd { font-family: var(--font-display); font-size: 1.4rem; margin: .2rem 0 0; }

/* ---------- Correction page (/klinika/{slug}/korekta) ---------- */
.fix-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.fix-cta h2 { margin-bottom: .3rem; }
.fix-cta p { color: var(--muted); }
.fix-form { max-width: 1100px; }
.fix-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.fix-table thead th { font-size: .82rem; font-weight: 800; color: var(--muted); text-align: left; padding: 0 1rem .6rem; border-bottom: 2px solid var(--border); }
.fix-table thead th:last-child { color: var(--rose-ink); }
.fix-table tbody th, .fix-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.fix-table tbody th { width: 17%; font-weight: 800; font-size: .92rem; padding-top: 1.05rem; }
.fix-current { width: 38%; color: #2B3A57; word-break: break-word; padding-top: 1.05rem !important; background: #FAF9FB; }
.fix-empty { color: var(--muted); font-style: italic; }
.fix-new { width: 45%; }
.fix-new .form-control { background: #fff; }
.fix-closed { margin: 1.5rem 0 0; }
.fix-note { margin-top: 1.5rem; }
.fix-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.fix-done { max-width: 720px; }
@media (max-width: 767.98px) {
  .fix-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fix-table, .fix-table tbody, .fix-table tr, .fix-table th, .fix-table td { display: block; width: 100% !important; }
  .fix-table tr { padding: 1rem 0; border-bottom: 1px solid var(--border); }
  .fix-table tbody th, .fix-table td { border: 0; padding: .25rem 0 !important; }
  .fix-current { background: transparent; }
  .fix-table td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: .2rem; }
  .fix-new::before { color: var(--rose-ink) !important; }
}

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.legal ol, .legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .5rem; }
.operator { font-style: normal; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem 1.25rem; line-height: 1.7; }
.legal-links { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 3.5rem 0 1.5rem; font-size: .93rem; color: var(--muted); }
.site-footer p { max-width: 52ch; }
.brand-footer img { height: 40px; width: auto; }
.footer-note { font-size: .86rem; }
.footer-h { font-family: var(--font-ui); font-size: .92rem; font-weight: 800; letter-spacing: 0; color: var(--navy); margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0 0 .5rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--rose-ink); text-decoration: underline; }
.footer-links i { color: var(--rose-ink); }
.footer-base { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .85rem; }

/* ---------- Leaflet tweaks ---------- */
.leaflet-container { font-family: var(--font-ui); }
.leaflet-popup-content a { font-weight: 700; }
.map-cluster span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(6, 33, 77, .25); }

/* ---------- Admin ---------- */
body.admin { background: #F3F2F7; }
.admin-bar { background: var(--navy); color: #fff; padding: .6rem 0; }
.admin-bar a { color: #fff; }
.admin-bar .brand-admin { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.admin-main { padding-top: 2rem; padding-bottom: 3rem; }
.admin-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; }
.status-badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; }
.status-new { background: var(--rose-soft); color: var(--rose-hover); }
.status-in_progress { background: var(--sand); color: var(--sand-ink); }
.status-done { background: var(--ok-tint); color: var(--ok); }
.status-rejected { background: #ECEEF3; color: var(--muted); }
.admin-table td, .admin-table th { vertical-align: top; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: .4rem 1rem; margin: 0; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- Clinic JSON export (?json_token=) ---------- */
.json-export { border-color: var(--navy); }
.json-box { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.5; background: #0B1A33; color: #E6ECF7; border-color: #0B1A33; border-radius: 14px; min-height: 260px; }
.json-box:focus { background: #0B1A33; color: #fff; border-color: var(--rose); }
.btn.is-done { --bs-btn-bg: var(--ok); --bs-btn-border-color: var(--ok); --bs-btn-hover-bg: var(--ok); --bs-btn-hover-border-color: var(--ok); --bs-btn-color: #fff; --bs-btn-hover-color: #fff; }

/* Verifier tools */
.json-status { margin: 0; padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 800; }
.json-status.is-checked { background: var(--ok-tint); color: var(--ok); }
.json-status.is-ai { background: var(--sand); color: var(--sand-ink); }
.json-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.json-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1rem; }
.verify-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 .75rem; padding: 1.1rem 1.25rem;
  border: 1px solid #A9D7C3; background: var(--ok-tint); border-radius: var(--radius-md); }
.verify-title { font-weight: 800; margin: 0 0 .35rem; color: #0F4C37; }

.verifier-pill { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: 0 .9rem; border-radius: 999px; background: var(--ok-tint); color: var(--ok); font-weight: 700; font-size: .85rem; text-decoration: none; border: 1px solid #A9D7C3; }
.verifier-pill:hover { background: var(--ok); color: #fff; }
.notice-auto { background: var(--ok-tint); border-color: #A9D7C3; }
.notice-auto .notice-icon { color: var(--ok); }
.notice-auto p { color: #0F4C37; }
.notice-extra { display: flex; gap: .45rem; align-items: baseline; padding: .6rem .8rem; border-radius: 10px; background: #fff; border: 1px solid var(--sand-line); }
.badge-warn { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #FDECEC; color: #9B1C1C; border: 1px solid #F5C2C2; }
.queue-link { font-weight: 700; text-decoration: none; }
.auto-stats { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.25rem; }
.auto-stats li, .auto-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 700; background: #F1F0F5; color: var(--navy); }
.auto-verified_auto { background: var(--ok-tint) !important; color: var(--ok) !important; }
.auto-site_not_found { background: #FDECEC !important; color: #9B1C1C !important; }
.auto-unconfirmed { background: var(--sand) !important; color: var(--sand-ink) !important; }
.auto-blocked { background: #EEF3FF !important; color: #2F4FA8 !important; }
.auto-log td, .auto-log th { padding: .7rem 1rem; vertical-align: top; }
.queue-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; font-size: .88rem; color: var(--muted); }
.queue-bar strong { color: var(--navy); }
.queue-track { flex: 1 1 160px; height: 7px; border-radius: 999px; background: #F1F0F5; overflow: hidden; }
.queue-track > span { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #4CC38A); border-radius: 999px; }
.queue-last { font-weight: 700; color: var(--navy); }
.queue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.25rem 0 .5rem; padding-top: 1.25rem; border-top: 1px dashed var(--border); }
.btn-found { --bs-btn-color: #fff; --bs-btn-bg: var(--ok); --bs-btn-border-color: var(--ok); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #10523B; --bs-btn-hover-border-color: #10523B; --bs-btn-active-bg: #10523B; --bs-btn-active-color: #fff; }
.btn-notfound { --bs-btn-color: var(--rose-hover); --bs-btn-bg: #fff; --bs-btn-border-color: var(--rose-border); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--rose-ink); --bs-btn-hover-border-color: var(--rose-ink); --bs-btn-active-bg: var(--rose-hover); --bs-btn-active-color: #fff; border-width: 1.5px; }
.form-status-warn { background: var(--sand); color: var(--sand-ink); }

/* ---------- Motion: gentle, short, never essential ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* hero entrance */
  .hero-visual { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-visual .glass-card { animation: rise .8s .25s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-mark { animation: float 7s ease-in-out 1s infinite; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

  /* cards below the fold fade in once (class set by app.js) */
  .reveal { opacity: 0; transform: translateY(14px); }
  .reveal.is-in { opacity: 1; transform: none; transition: opacity .55s cubic-bezier(.16, 1, .3, 1), transform .55s cubic-bezier(.16, 1, .3, 1);
    transition-delay: calc(var(--reveal-i, 0) * 70ms); }

  /* small responses to the pointer */
  .btn:active { transform: scale(.98); }
  .city-card i, .block-head > a i { transition: transform .2s; }
  .city-card:hover i { transform: translateX(3px); }
  .concern-chip, .quick-tag, .pill { transition: border-color .2s, color .2s, background-color .2s, transform .2s; }
  .concern-chip:hover, .quick-tag:hover { transform: translateY(-1px); }
  .reach-bar > span { transform-origin: left; animation: grow .9s .15s cubic-bezier(.16, 1, .3, 1) both; }
  .reveal:not(.is-in) .reach-bar > span { animation-play-state: paused; }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .subnav a { transition: color .2s, border-color .25s; }
  .form-control, .form-select { transition: border-color .2s, box-shadow .2s; }
  .form-status { animation: rise .45s cubic-bezier(.16, 1, .3, 1) both; }
  .svc-rows li { transition: border-color .2s, background-color .2s, transform .2s; }
  .svc-rows li:hover { transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
