/* Clinic, lab and diagnostics demo. Palette: white, night blue, deep blue, soft green.
   Type: Newsreader (display) + Public Sans (text). */
:root {
  --dark: #0B2545;        /* night blue base */
  --primary: #1D4E89;     /* deep blue: buttons, links */
  --accent: #8FD3B6;      /* soft green: fills on blue, highlights */
  --green-ink: #1B6B4E;   /* green text on white (AA) */
  --green-soft: #E6F5EE;
  --light: #F3F7FB;       /* cool page tint */
  --paper: #FFFFFF;
  --line: #DCE5EE;
  --text: #12263F;
  --muted: #4A5D74;       /* secondary text on white (AA) */
  --on-dark: #F3F7FB;
  --on-dark-2: #B8C7D9;
  --danger: #B3261E;
  --f-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --f-text: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-xl: 32px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --sh-1: 0 1px 2px rgba(11,37,69,.06), 0 6px 18px -6px rgba(11,37,69,.10);
  --sh-2: 0 2px 6px rgba(11,37,69,.08), 0 24px 48px -18px rgba(11,37,69,.32);
  --ease: cubic-bezier(.2,.7,.2,1);
  --t-hero: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  --t-h2: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --t-h3: clamp(1.08rem, 1rem + .3vw, 1.2rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.6 var(--f-text); overflow-x: hidden; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--f-display); font-weight: 500; line-height: 1.04; margin: 0; letter-spacing: -.022em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 650; line-height: 1.3; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 99; background: var(--dark); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--dark); flex: none; }
.mark .ic { width: 18px; height: 18px; stroke-width: 2; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, color .18s; -webkit-tap-highlight-color: transparent; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -10px rgba(29,78,137,.8), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: #18427A; }
.btn-green { background: var(--accent); color: var(--dark); box-shadow: 0 10px 24px -10px rgba(143,211,182,.8), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-green:hover:not(:disabled) { background: #A2DDC3; }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(243,247,251,.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-light { background: var(--paper); color: var(--dark); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .95rem; border-radius: 12px; }
.btn-wide { width: 100%; }

/* Sticky header (appears after the hero) */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; transform: translateY(-110%); transition: transform .35s var(--ease); background: rgba(255,255,255,.82); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); box-shadow: 0 1px 0 rgba(11,37,69,.08), 0 12px 30px -20px rgba(11,37,69,.5); }
.bar.show { transform: none; }
.bar-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.bar-name { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; text-decoration: none; color: var(--dark); }
.bar-name > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-links { display: none; gap: 26px; }
.bar-links a, .hero-links a { text-decoration: none; font-weight: 500; }
.bar-links a:hover { color: var(--primary); }

/* Hero */
.hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.hero-photo { position: relative; height: 44svh; min-height: 290px; max-height: 460px; background: linear-gradient(135deg, #1D4E89, #0B2545); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 35%; }
.hero-photo .bg-video { object-position: 62% 30%; }
/* Background video sits over its photo and fades in once it is really playing */
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); pointer-events: none; }
.bg-video.on { opacity: 1; }
/* Section videos (video-kit.js, data-vk): shown only once really playing; a failed one is hidden so the photo shows */
.bg-video.vk-playing { opacity: 1; }
.bg-video.vk-failed { display: none; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,37,69,.55) 0%, rgba(11,37,69,0) 32%, rgba(11,37,69,.2) 62%, var(--dark) 100%); }
.hero-copy { padding: 0 16px 34px; }
.hero-text { position: relative; z-index: 1; margin-top: -86px; }
.hero-nav { position: absolute; z-index: 2; top: 0; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; }
.hero-mark { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; min-width: 0; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero-mark > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-links { display: none; gap: 28px; }
.hero-place { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(143,211,182,.14); color: var(--accent); font-weight: 600; font-size: .92rem; box-shadow: inset 0 0 0 1px rgba(143,211,182,.3); }
.hero-place .ic { width: 18px; height: 18px; }
.hero h1 { font-size: var(--t-hero); margin: 14px 0 12px; color: #fff; overflow-wrap: anywhere; text-wrap: balance; line-height: .98; letter-spacing: -.03em; }
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 18px; font-size: .93rem; color: var(--on-dark-2); }
.proof strong { color: #fff; font-size: 1rem; }
.stars-sm .stars { color: #F3C14B; gap: 1px; }
.stars-sm .stars svg { width: 16px; height: 16px; }
.hero-promise { max-width: 36ch; color: var(--on-dark-2); font-size: 1.08rem; line-height: 1.6; }
.hero-actions { display: grid; gap: 12px; margin-top: 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; color: var(--on-dark-2); font-size: .93rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .ic { color: var(--accent); width: 18px; height: 18px; }
.duty-pill { position: absolute; z-index: 2; top: 68px; left: 16px; display: flex; align-items: center; gap: 12px; max-width: min(320px, calc(100% - 32px)); padding: 12px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.94); color: var(--dark); text-decoration: none; box-shadow: var(--sh-2); backdrop-filter: blur(10px); transition: transform .2s var(--ease); }
.duty-pill:hover { transform: translateY(-2px); }
.dp-txt { display: grid; min-width: 0; line-height: 1.3; }
.dp-txt strong { font-size: .98rem; }
.dp-txt span { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duty-pill > .ic { color: var(--primary); }
.pulse { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #9AA9BA; flex: none; }
.live .pulse { background: #2FA36B; }
.live .pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #2FA36B; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* Emergency line */
.sos { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; background: #FFF4F2; color: #6E1D17; font-size: .93rem; text-align: left; border-bottom: 1px solid #F5D9D4; }
.sos .ic { color: var(--danger); stroke-width: 2; }
.sos a, .sos-inline a, .foot .sos-a { color: var(--danger); font-weight: 700; text-underline-offset: 3px; }
.foot .sos-a { color: var(--accent); }

/* Sections */
.sec { padding: clamp(64px, 6vw + 32px, 120px) 0; }
.head { max-width: 640px; margin-bottom: 36px; }
.head-sub { margin-top: 14px; color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; max-width: none; }
.fine { font-size: .88rem; color: var(--muted); line-height: 1.5; }
/* Photos: a soft shimmer while loading, then the photo sharpens in (blur-up) */
.ph { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: linear-gradient(110deg, #D6E3F0 30%, #EEF3F9 50%, #D6E3F0 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
.ph.ok { animation: none; background: #DCE6F1; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.js .ph img { opacity: 0; filter: blur(14px); transform: scale(1.03); transition: opacity .6s var(--ease), filter .7s var(--ease), transform .9s var(--ease); }
.js .ph.ok img { opacity: 1; filter: none; transform: none; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* 1. Services */
.sv-grid { display: grid; gap: 28px; }
.sv-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.sv { display: flex; gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.sv-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-soft); color: var(--green-ink); flex: none; }
.sv-ic .ic { width: 24px; height: 24px; }
.sv-body p:not(.sv-price) { color: var(--muted); margin-top: 4px; font-size: .97rem; }
.sv-price { margin-top: 8px; font-size: .92rem; color: var(--muted); }
.sv-price strong { color: var(--primary); font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.price-card { border-radius: var(--r-xl); background: var(--light); overflow: hidden; box-shadow: var(--sh-1); align-self: start; }
.pc-photo { border-radius: 0; aspect-ratio: 16 / 9; }
.pc-photo::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(11,37,69,.82), transparent); pointer-events: none; }
.pc-photo figcaption { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 14px; color: #fff; font-size: .9rem; line-height: 1.4; }
.pc-body { padding: 24px 22px 26px; }
.pc-body h3 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 500; letter-spacing: -.015em; }
.pc-list { margin: 16px 0 20px; }
.pc-list li { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-size: .97rem; }
.pc-name { min-width: 0; }
.pc-lead { flex: 1; min-width: 16px; border-bottom: 1.5px dotted #A9B8C9; transform: translateY(-4px); }
.pc-list strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.link-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--primary); text-decoration: none; }
.link-btn:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* 2. Doctors on duty: the display board */
.duty { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.duty::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 90% 0%, rgba(143,211,182,.16), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(29,78,137,.55), transparent 70%); pointer-events: none; }
.duty .wrap { position: relative; }
.duty-head { display: grid; gap: 24px; margin-bottom: 28px; }
.duty h2 { color: #fff; }
.duty .head-sub { color: var(--on-dark-2); }
.duty-photo { aspect-ratio: 3 / 2; max-height: 220px; border-radius: var(--r-lg); display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.day-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; margin: 0 -2px 10px; scroll-snap-type: x proximity; }
.day-chips::-webkit-scrollbar { display: none; }
.chip { position: relative; display: inline-grid; align-content: center; justify-items: start; min-height: 48px; padding: 8px 16px; border-radius: 14px; border: 0; background: var(--paper); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; text-align: left; line-height: 1.25; transition: background-color .18s, box-shadow .18s, color .18s, transform .15s var(--ease); scroll-snap-align: start; flex: none; }
.chip:active { transform: scale(.97); }
.chip strong { font-size: .97rem; }
.chip > span, .chip span span { font-size: .8rem; color: var(--muted); }
label.chip > span { display: grid; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-s { min-height: 44px; padding: 8px 14px; font-weight: 600; font-size: .93rem; }
.chip[aria-selected="true"], .chip[aria-pressed="true"], .chip:has(input:checked) { background: var(--primary); color: #fff; box-shadow: none; }
.chip[aria-selected="true"] span, .chip[aria-pressed="true"] span, .chip:has(input:checked) span span { color: #D4E2F2; }
.chip:has(input:checked) > span { color: #fff; }
.chip:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.chip:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.duty .chip { background: rgba(255,255,255,.06); color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(243,247,251,.16); }
.duty .chip span { color: var(--on-dark-2); }
.duty .chip[aria-selected="true"] { background: var(--accent); color: var(--dark); }
.duty .chip[aria-selected="true"] span { color: #1E4A3A; }
.board { display: grid; gap: 10px; margin-bottom: 18px; }
.board.fade { animation: fadeUp .35s var(--ease); }
.doc { transition: transform .25s var(--ease), background-color .25s; }
.doc:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); }
.doc { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 16px; border-radius: var(--r-md); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(243,247,251,.1); }
.doc.is-now { background: rgba(143,211,182,.1); box-shadow: inset 0 0 0 1.5px rgba(143,211,182,.45); }
.doc.is-done { opacity: .62; }
.doc-av { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(140deg, #2B66AD, #1D4E89); color: #fff; font-weight: 700; letter-spacing: .02em; }
.doc-av.f { background: linear-gradient(140deg, #A5DEC5, #6FBF9C); color: var(--dark); }
.doc-who h3 { color: #fff; font-size: 1.06rem; }
.doc-who p { color: var(--on-dark-2); font-size: .92rem; }
.doc-when { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .92rem; }
.doc-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.doc-state i { width: 9px; height: 9px; border-radius: 50%; background: #8FA3BA; }
.is-now .doc-state { color: var(--accent); }
.is-now .doc-state i { background: #3CC283; box-shadow: 0 0 0 4px rgba(60,194,131,.22); }
.doc-time { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.doc-fee { color: var(--on-dark-2); }
.doc-book { grid-column: 1 / -1; }
.board-empty { padding: 22px; border-radius: var(--r-md); background: rgba(255,255,255,.05); color: var(--on-dark-2); }
.board-empty a { color: var(--accent); font-weight: 600; }
.fine.on-dark { color: var(--on-dark-2); }

/* 3. Lab test finder */
.tests { background: var(--light); }
.tests-grid { display: grid; gap: 32px; }
.tests-photos { display: none; }
.finder { background: var(--paper); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--sh-2); min-width: 0; }
.search { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 16px; border-radius: 16px; background: var(--light); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .18s; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--primary); }
.search .ic { color: var(--primary); width: 22px; height: 22px; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 1.05rem; padding: 14px 0; outline: none; }
.cat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 14px -18px 0; padding: 2px 18px 6px; }
.cat-chips::-webkit-scrollbar { display: none; }
.t-count { margin: 12px 2px 4px; font-size: .85rem; color: var(--muted); min-height: 1.3em; }
.t-list { max-height: 560px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; overscroll-behavior: contain; }
.tt { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 14px 2px; border-bottom: 1px dashed var(--line); transition: background-color .2s; }
.tt:last-child { border-bottom: 0; }
.tt.on { background: linear-gradient(90deg, var(--green-soft), transparent); border-radius: 12px; padding-left: 10px; }
.tt-main { min-width: 0; }
.tt-main h3 { font-size: 1rem; }
.tt-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: .85rem; color: var(--muted); }
.tt-rep { display: inline-flex; align-items: center; gap: 5px; color: var(--green-ink); font-weight: 600; }
.tt-rep .ic { width: 15px; height: 15px; }
.tt-fast { color: #8A4B0F; }
.tt-side { display: grid; justify-items: end; gap: 6px; flex: none; }
.tt-price { font-variant-numeric: tabular-nums; font-size: 1.02rem; white-space: nowrap; }
.tt-add { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--light); color: var(--primary); font-weight: 600; font-size: .9rem; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .18s, color .18s, transform .15s var(--ease); }
.tt-add:hover { background: #E7EEF6; }
.tt-add:active { transform: scale(.95); }
.tt-add .ic { width: 17px; height: 17px; stroke-width: 2.2; }
.tt-add[aria-pressed="true"] { background: var(--green-ink); color: #fff; box-shadow: none; }
.t-empty { padding: 20px 4px; color: var(--muted); }
.t-empty a { color: var(--primary); font-weight: 600; }
.t-picked { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px -6px -6px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--dark); color: #fff; animation: fadeUp .3s var(--ease); }
.t-picked > span { display: grid; line-height: 1.3; }
.t-picked strong { font-size: .95rem; }
.t-picked span span { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.t-picked .btn { background: var(--accent); color: var(--dark); box-shadow: none; }

/* Booking */
.book-grid { display: grid; gap: 32px; }
.book-photo { margin-top: 26px; aspect-ratio: 3 / 2; display: none; }
.sos-inline { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: var(--r-md); background: #FFF4F2; color: #6E1D17; font-size: .93rem; }
.sos-inline .ic { color: var(--danger); margin-top: 2px; stroke-width: 2; }
.book-form { display: grid; gap: 20px; padding: 22px 18px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .lbl { display: block; padding: 0; margin-bottom: 10px; font-weight: 650; font-size: .95rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: var(--light); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; justify-items: center; gap: 4px; min-height: 64px; align-content: center; padding: 8px 4px; border-radius: 12px; text-align: center; font-size: .84rem; font-weight: 600; line-height: 1.2; color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s; }
.seg input:checked + span { background: var(--paper); color: var(--primary); box-shadow: var(--sh-1); }
.seg input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 1px; }
.fld { display: grid; gap: 8px; font-weight: 650; font-size: .95rem; min-width: 0; }
.fld input, .fld select, .fld textarea, .enquiry textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 400; font-size: 1rem; transition: border-color .18s, box-shadow .18s; }
.fld textarea { resize: vertical; min-height: 80px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(29,78,137,.14); }
.opt { font-weight: 400; color: var(--muted); }
.row2 { display: grid; gap: 16px; }
#b-days .chip { min-width: 92px; }
.picked-list { display: grid; gap: 6px; }
.picked-list li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--green-soft); font-weight: 500; }
.picked-list li span { flex: 1; min-width: 0; }
.picked-list strong { font-variant-numeric: tabular-nums; }
.picked-list .x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--green-ink); cursor: pointer; }
.picked-list .x:hover { background: rgba(27,107,78,.1); }
.summary:empty { display: none; }
.summary { padding: 16px; border-radius: var(--r-md); background: var(--light); }
.sum-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.sum-head strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; line-height: 1.1; }
.summary ul { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.fld [aria-invalid="true"] { border-color: var(--danger); background: #FFF8F7; }
.f-msg { font-weight: 600; font-size: .86rem; color: var(--danger); }
.f-msg:empty { display: none; }
.sent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--green-soft); color: var(--text); animation: fadeUp .35s var(--ease); }
.sent p { font-size: .92rem; }
.sent .sent-h { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.sent a { color: var(--primary); font-weight: 600; }
.sent-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-ink); color: #fff; flex: none; }
.sent-ic .ic { width: 18px; height: 18px; stroke-width: 2.4; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
.err { padding: 12px 14px; border-radius: 12px; background: #FDECEA; color: var(--danger); font-weight: 600; font-size: .95rem; }

/* Place */
.place { background: var(--paper); }
.place-grid { display: grid; gap: 32px; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic .m1 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.mosaic .m2, .mosaic .m3 { aspect-ratio: 1; }
.ticks { display: grid; gap: 14px; margin-top: 26px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; }
.ticks .ic { margin-top: 2px; padding: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); stroke-width: 2.4; }

/* Reviews */
.reviews-sec { background: var(--light); }
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.review:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.review { margin: 0; scroll-snap-align: start; padding: 26px 24px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--sh-1); display: grid; gap: 16px; align-content: start; }
.review blockquote { margin: 0; font-family: var(--f-display); font-size: 1.28rem; line-height: 1.42; color: var(--dark); }
.review figcaption { display: grid; gap: 2px; font-size: .84rem; color: var(--muted); }
.review figcaption strong { color: var(--text); font-size: .95rem; }
.stars { display: flex; gap: 3px; color: #2E8A62; }
.stars svg { width: 18px; height: 18px; }
.car-btns { display: flex; gap: 8px; }
.round { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--paper); color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: background-color .18s, transform .15s var(--ease); }
.round:hover { background: #E7EEF6; }
.round:active { transform: scale(.94); }

/* Visit */
.visit-grid { display: grid; gap: 32px; }
.addr { margin-top: 18px; font-size: 1.1rem; }
.hours { margin: 20px 0; border-top: 1px solid var(--line); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours li span:last-child { font-weight: 600; text-align: right; }
.contact-line { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 22px; }
.contact-line a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--primary); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.enquiry { display: grid; gap: 16px; padding: 24px 20px; border-radius: var(--r-xl); background: var(--light); }
.enquiry h3 { font-family: var(--f-display); font-size: 1.7rem; font-weight: 500; letter-spacing: -.015em; }
.enquiry .fld input, .enquiry textarea { background: var(--paper); }

/* Footer and dock */
.foot { background: var(--dark); color: var(--on-dark-2); padding: 48px 0 36px; font-size: .93rem; }
.foot-in { display: grid; gap: 8px; }
.foot-name { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 1.35rem; color: #fff; margin-bottom: 6px; }
.foot .small { font-size: .82rem; opacity: .85; }
.dock { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 rgba(11,37,69,.08), 0 -12px 30px -18px rgba(11,37,69,.45); }
.dock .btn { min-height: 50px; }

/* Reveal */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (min-width: 560px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
  .row2 { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: auto 1fr auto; }
  .doc-when { grid-column: 2 / 3; }
  .doc-book { grid-column: 3; grid-row: 1 / span 2; }
  .reviews { grid-auto-columns: 46%; }
  .finder, .book-form { padding: 26px; }
  .cat-chips { margin-inline: -26px; padding-inline: 26px; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .bar-links { display: flex; }
  .hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(92vh, 820px); }
  .hero-photo { order: 2; height: auto; max-height: none; min-height: 0; border-bottom-left-radius: 56px; overflow: hidden; }
  .hero-photo::after { background: linear-gradient(90deg, rgba(11,37,69,.35), rgba(11,37,69,0) 30%), linear-gradient(0deg, rgba(11,37,69,.35), transparent 40%); }
  .hero-copy { order: 1; margin: 0; padding: 28px 56px 64px max(32px, calc((100vw - 1200px) / 2)); display: flex; flex-direction: column; }
  .hero-nav { position: static; padding: 0; }
  .hero-nav { gap: 24px; }
  .hero-links { color: var(--on-dark-2); white-space: nowrap; }
  .hero-links a:hover { color: #fff; }
  .hero-text { margin: auto 0; padding-top: 48px; }
  .hero-copy { position: relative; }
  .hero-promise { font-size: 1.15rem; }
  .duty-pill { top: auto; left: auto; bottom: 40px; right: 40px; }
  .hero-photo img { object-position: 60% 40%; }
  .sos { font-size: .95rem; }
  .sv-grid { grid-template-columns: 1.35fr 1fr; gap: 56px; }
  .sv-list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .price-card { position: sticky; top: 90px; }
  .duty-head { grid-template-columns: 1fr 340px; align-items: end; }
  .duty-photo { display: block; }
  .day-chips { flex-wrap: wrap; overflow: visible; }
  .board { grid-template-columns: 1fr 1fr; }
  .tests-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
  .tests-side { position: sticky; top: 96px; }
  .tests-photos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin-top: 32px; align-items: end; }
  .tests-photos .tp1 { aspect-ratio: 4 / 5; }
  .tests-photos .tp2 { aspect-ratio: 1; }
  .book-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
  .book-photo { display: block; }
  .book-form { padding: 34px; }
  .place-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
  .reviews { grid-auto-columns: calc((100% - 32px) / 3); }
  .visit-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .enquiry { padding: 34px; }
  .foot-in { grid-template-columns: 1fr auto; column-gap: 32px; }
  .foot-name { grid-column: 1 / -1; }
}

@media (min-width: 1360px) { .hero-links { display: flex; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .ph img { opacity: 1; filter: none; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
