/**
 * CC Pathlab — theme styles.
 * Healthcare palette lives here as custom properties; the booking form (plugin)
 * reads the same --cc-* names with its own fallbacks.
 */

:root {
	--cc-brand: #0b4f8a;       /* medical navy-blue — primary */
	--cc-brand-dark: #073a67;
	--cc-brand-050: #eef5fb;   /* faint blue tint */
	--cc-teal: #0c8f86;        /* clinical teal — call to action */
	--cc-teal-dark: #0a746d;
	--cc-accent: #14b8a6;      /* bright teal — icons / accents (non-text) */
	--cc-mint: #e4f6f3;        /* teal tint — pills, badges */
	--cc-ok: #1a8f5c;          /* healthy green */
	--cc-warn: #c2830c;        /* amber — "low / watch" */
	--cc-ink: #10263d;
	--cc-muted: #566b80;
	--cc-line: #e1e9f2;
	--cc-soft: #f2f7fc;        /* alternating section background */
	--cc-card: #ffffff;
	--cc-navy: #0a2c49;        /* dark bands + footer */

	--cc-radius: 16px;
	--cc-radius-sm: 10px;
	--cc-shadow: 0 18px 40px rgba(10, 44, 73, 0.10);
	--cc-shadow-sm: 0 6px 18px rgba(10, 44, 73, 0.07);
	--cc-wrap: 1140px;
	--cc-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--cc-display: "Plus Jakarta Sans", var(--cc-font);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
	margin: 0;
	font-family: var(--cc-font);
	color: var(--cc-ink);
	background: var(--cc-card);
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	font-family: var(--cc-display);
	line-height: 1.18;
	color: var(--cc-ink);
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}

a { color: var(--cc-brand); }
a:hover { color: var(--cc-brand-dark); }

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--cc-wrap); margin: 0 auto; padding: 0 22px; }

.cc-ico {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	vertical-align: -0.22em;
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--cc-display);
	font-weight: 700;
	font-size: 0.97rem;
	line-height: 1;
	padding: 13px 22px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn .cc-ico { width: 1.1em; height: 1.1em; }

.btn--cta { background: var(--cc-teal); color: #fff; }
.btn--cta:hover { background: var(--cc-teal-dark); color: #fff; }

.btn--ghost { background: transparent; border-color: var(--cc-line); color: var(--cc-ink); }
.btn--ghost:hover { border-color: var(--cc-brand); color: var(--cc-brand); }

.btn--light { background: #fff; color: var(--cc-brand); }
.btn--light:hover { background: var(--cc-brand-050); color: var(--cc-brand); }

.btn--lg { padding: 16px 30px; font-size: 1.03rem; }
.btn--sm { padding: 9px 16px; font-size: 0.86rem; }
.btn--block { display: flex; width: 100%; margin-top: 8px; }

.link-more { font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--cc-brand); }
.link-more:hover { color: var(--cc-teal-dark); }
.link-more--light { color: #7fd6cf; }
.link-more--light:hover { color: #fff; }

/* ---------- Section scaffolding ---------- */

.section { padding: 62px 0; }
.section--soft { background: var(--cc-soft); }

/* Distinct per-section gradients — each its own light tint in the clinical blue/teal family. */
.section--g-a { background: linear-gradient(135deg, #e4eefb 0%, #d3e5f7 100%); }   /* blue */
.section--g-b { background: linear-gradient(135deg, #daf1ec 0%, #ecf9f6 100%); }   /* teal / mint */
.section--g-c { background: linear-gradient(135deg, #dfeaf8 0%, #eef3fc 100%); }   /* sky blue */
.section--g-d { background: linear-gradient(135deg, #e0eff4 0%, #eef7fa 100%); }   /* pale cyan */
.section--g-e { background: radial-gradient(130% 120% at 0% 0%, #e0f1e9 0%, #eef7f2 55%, #e6f0fb 100%); } /* mint -> blue */
.section--g-f { background: linear-gradient(135deg, #ddf0eb 0%, #f0f9f7 100%); }   /* light teal */

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 30px;
}
.section__head--stack { display: block; }
.section__head--center { text-align: center; display: block; margin-bottom: 36px; }
.section__kicker {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--cc-teal);
	margin: 0 0 8px;
}
.section__kicker--light { color: #7fd6cf; }
.section__title { font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 800; margin: 0; }

/* ---------- Top bar + header ---------- */

.topbar { background: var(--cc-navy); color: #cfe0ef; font-size: 0.85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 22px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__item--hours { opacity: 0.85; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: saturate(180%) blur(6px);
	border-bottom: 1px solid var(--cc-line);
}
.site-header.is-scrolled { box-shadow: var(--cc-shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 22px; }
.site-brand { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.site-brand img { display: block; }
.site-brand__logo { height: 40px; width: auto; }
.custom-logo-link { display: inline-block; }
.custom-logo { height: 40px; width: auto; }
.site-brand__tagline { font-size: 0.7rem; line-height: 1.2; white-space: nowrap; }
.site-brand__tagline-label { color: var(--cc-muted, #5B7285); font-weight: 500; }
.site-brand__tagline-name { color: var(--cc-teal, #0c8f86); font-weight: 700; letter-spacing: 0.01em; }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav__list { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.primary-nav__list a { text-decoration: none; color: var(--cc-ink); font-weight: 500; font-size: 0.97rem; }
.primary-nav__list a:hover { color: var(--cc-brand); }
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current_page_item > a { color: var(--cc-brand); font-weight: 600; }
.primary-nav__list li { position: relative; }
.primary-nav__list .sub-menu {
	display: none;
	position: absolute;
	background: #fff;
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius-sm);
	padding: 8px;
	min-width: 200px;
	box-shadow: var(--cc-shadow-sm);
	list-style: none;
}
.primary-nav__list li:hover > .sub-menu { display: block; }
.primary-nav__list .sub-menu a { display: block; padding: 8px 10px; }

.nav-toggle {
	display: none;
	width: 42px; height: 42px;
	border: 1px solid var(--cc-line);
	border-radius: 10px;
	background: #fff;
	position: relative;
	cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 18px; height: 2px;
	background: var(--cc-ink);
	transform: translateX(-50%);
}
.nav-toggle__bar { top: 50%; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	background: linear-gradient(180deg, var(--cc-brand-050) 0%, #ffffff 72%);
	border-bottom: 1px solid var(--cc-line);
	overflow: hidden;
}
.hero__bg {
	position: absolute;
	inset: 0;
	background-image:
		url('../img/hero-bg.svg'),
		radial-gradient(520px 320px at 88% -8%, rgba(20, 184, 166, 0.16), transparent 70%),
		radial-gradient(560px 380px at 100% 40%, rgba(11, 79, 138, 0.10), transparent 70%);
	background-repeat: no-repeat, no-repeat, no-repeat;
	background-position: right -10px top -10px, top right, right center;
	background-size: min(600px, 50%) auto, auto, auto;
	pointer-events: none;
}
@media (max-width: 1000px) {
	.hero__bg {
		background-size: 420px auto, auto, auto;
		background-position: right -70px bottom -30px, top right, right center;
		opacity: 0.65;
	}
}
@media (max-width: 640px) {
	.hero__bg {
		background-image:
			radial-gradient(520px 320px at 88% -8%, rgba(20, 184, 166, 0.16), transparent 70%),
			radial-gradient(560px 380px at 100% 40%, rgba(11, 79, 138, 0.10), transparent 70%);
		opacity: 1;
	}
}

/* Right-side lab photo — drop a file at assets/img/hero-photo.jpg to enable it.
   With no file present this layer is effectively invisible and the SVG texture shows. */
.hero__photo {
	position: absolute;
	inset: 0 0 0 auto;
	width: 54%;
	background-image:
		linear-gradient(100deg, rgba(238, 245, 251, 0.55) 0%, rgba(11, 79, 138, 0.10) 42%, rgba(11, 79, 138, 0.30) 100%),
		url('../img/hero-photo.jpg');
	background-size: 100% 100%, cover;
	background-position: center, 50% 60%;
	background-repeat: no-repeat, no-repeat;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 8%, #000 44%);
	mask-image: linear-gradient(90deg, transparent 0%, transparent 8%, #000 44%);
}
@media (max-width: 1000px) {
	.hero__photo {
		width: 100%;
		opacity: 0.16;
		background-position: center, 50% 38%;
		-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%);
		mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%);
	}
}
.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.12fr 0.9fr;
	gap: 52px;
	align-items: end;
	padding: 46px 22px 46px;
}
.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: #fff;
	border: 1px solid var(--cc-line);
	border-radius: 999px;
	padding: 6px 14px 6px 12px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--cc-brand);
	margin: 0 0 14px;
}
.hero__dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--cc-accent);
	box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
}
.hero__title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.hero__sub { font-size: 1.08rem; color: var(--cc-muted); max-width: 46ch; margin-bottom: 18px; }

.hero__search {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid var(--cc-line);
	border-radius: 999px;
	padding: 6px 6px 6px 16px;
	box-shadow: var(--cc-shadow-sm);
	max-width: 480px;
}
.hero__search-ico { color: var(--cc-muted); display: inline-flex; }
.hero__search-ico .cc-ico { width: 20px; height: 20px; vertical-align: middle; }
.hero__search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	font: inherit;
	padding: 10px 12px;
	background: transparent;
	color: inherit;
}
.hero__search button {
	flex: none;
	border: 0;
	background: var(--cc-teal);
	color: #fff;
	font: inherit;
	font-family: var(--cc-display);
	font-weight: 700;
	padding: 11px 20px;
	border-radius: 999px;
	cursor: pointer;
}
.hero__search button:hover { background: var(--cc-teal-dark); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 20px; }

.hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 30px;
	list-style: none;
	margin: 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--cc-line);
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--cc-display); font-size: 1.35rem; color: var(--cc-brand); }
.hero__stats span { font-size: 0.85rem; color: var(--cc-muted); }

/* Hero visual — "book in 3 steps" promo card (no fabricated patient data) */
.hero__visual { position: relative; }
.promo-card {
	background: #fff;
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	box-shadow: var(--cc-shadow);
	padding: 26px 24px;
	position: relative;
	z-index: 2;
	max-width: 400px;
	margin-left: auto;
}
.promo-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--cc-mint);
	color: var(--cc-teal-dark);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 0.76rem;
	font-weight: 700;
	margin-bottom: 16px;
}
.promo-card__badge .cc-ico { width: 15px; height: 15px; }
.promo-card__title { font-size: 1.2rem; margin: 0 0 16px; }
.promo-card__steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.promo-card__steps li { display: flex; gap: 12px; align-items: flex-start; }
.promo-card__n {
	flex: none;
	width: 28px; height: 28px;
	border-radius: 50%;
	background: var(--cc-brand-050);
	color: var(--cc-brand);
	font-family: var(--cc-display);
	font-weight: 800;
	font-size: 0.85rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.promo-card__step { display: flex; flex-direction: column; gap: 2px; }
.promo-card__step strong { font-size: 0.96rem; color: var(--cc-ink); }
.promo-card__step em { font-style: normal; font-size: 0.83rem; color: var(--cc-muted); }
.promo-card__note { margin: 10px 0 0; font-size: 0.78rem; color: var(--cc-muted); text-align: center; }

.hero__pill {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #fff;
	border: 1px solid var(--cc-line);
	box-shadow: var(--cc-shadow-sm);
	border-radius: 999px;
	padding: 8px 13px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--cc-ink);
	z-index: 3;
}
.hero__pill .cc-ico { width: 16px; height: 16px; color: var(--cc-teal); }
.hero__pill--a { top: -16px; left: -18px; }
.hero__pill--b { bottom: -16px; right: -14px; }

/* ---------- Assurance strip ---------- */

.assurance { background: var(--cc-navy); color: #dbe8f4; }
.assurance__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px 26px;
	padding: 18px 22px;
}
.assurance__item { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 600; }
.assurance__item .cc-ico { width: 22px; height: 22px; color: var(--cc-accent); }

/* ---------- Category grid ---------- */

.cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}
.cat-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	padding: 20px;
	text-decoration: none;
	color: var(--cc-ink);
	transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.cat-card:hover { box-shadow: var(--cc-shadow); transform: translateY(-2px); border-color: transparent; color: var(--cc-ink); }
.cat-card__ico {
	width: 44px; height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--cc-brand-050);
	color: var(--cc-brand);
	margin-bottom: 6px;
}
.cat-card__ico .cc-ico { width: 22px; height: 22px; }
.cat-card__name { font-family: var(--cc-display); font-weight: 700; }
.cat-card__count { font-size: 0.82rem; color: var(--cc-muted); }

/* ---------- Test grid + cards ---------- */

.test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.test-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: var(--cc-card);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	padding: 22px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.test-card:hover { box-shadow: var(--cc-shadow); transform: translateY(-2px); }
.test-card__title { font-size: 1.1rem; margin-bottom: 6px; }
.test-card__title a { text-decoration: none; color: var(--cc-ink); }
.test-card__title a:hover { color: var(--cc-brand); }
.test-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.test-card__foot { position: relative; z-index: 2; }
.test-card__desc { color: var(--cc-muted); font-size: 0.93rem; margin: 0 0 12px; }
.test-card__facts { list-style: none; margin: 0 0 14px; padding: 0; font-size: 0.85rem; color: var(--cc-muted); }
.test-card__facts li span { font-weight: 600; color: var(--cc-ink); margin-right: 6px; }
.test-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-top: 1px solid var(--cc-line);
	padding-top: 14px;
}
.test-card__price { font-family: var(--cc-display); font-weight: 800; font-size: 1.1rem; color: var(--cc-ink); }
.test-card__price--muted { color: var(--cc-muted); font-weight: 600; font-size: 0.92rem; }
.test-card__mrp, .booking-box__mrp { color: var(--cc-muted); text-decoration: line-through; font-weight: 600; font-size: 0.85em; margin-right: 4px; }
.test-card__off { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--cc-mint); color: var(--cc-teal-dark); font-size: 0.72rem; font-weight: 700; vertical-align: middle; }
.booking-box__save { margin: -6px 0 12px; font-size: 0.85rem; font-weight: 700; color: var(--cc-teal-dark); }

/* ---------- Offers ---------- */

.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.offer-card {
	background: var(--cc-card);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.offer-card:hover { box-shadow: var(--cc-shadow); transform: translateY(-2px); }
.offer-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--cc-brand), var(--cc-accent));
	position: relative;
}
.offer-card__media img { width: 100%; height: 100%; object-fit: cover; }
.offer-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: var(--cc-display);
	font-weight: 700;
	letter-spacing: 0.04em;
}
.offer-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.offer-card__title { font-size: 1.1rem; margin: 0; }
.offer-card__title a { text-decoration: none; color: var(--cc-ink); }
.offer-card__meta { color: var(--cc-muted); font-size: 0.88rem; margin: 0; }
.offer-card__price { margin: 4px 0; font-family: var(--cc-display); }
.offer-card__price strong { font-size: 1.3rem; color: var(--cc-ink); }
.offer-card__mrp { color: var(--cc-muted); text-decoration: line-through; margin-left: 8px; font-weight: 600; }
.offer-card__valid { color: var(--cc-muted); font-size: 0.83rem; margin: 0 0 8px; }
.offer-card .btn { margin-top: 8px; }

/* ---------- Steps ---------- */

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}
.steps__item {
	background: var(--cc-card);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	padding: 26px 24px;
	text-align: center;
}
.steps__n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--cc-brand);
	color: #fff;
	font-family: var(--cc-display);
	font-weight: 800;
	margin-bottom: 12px;
}
.steps__item h3 { font-size: 1.08rem; }
.steps__item p { color: var(--cc-muted); font-size: 0.94rem; margin: 0; }
.steps__note {
	max-width: 620px;
	margin: 28px auto 0;
	padding: 10px 16px;
	background: #fff8e8;
	border: 1px solid #f0d999;
	border-radius: 10px;
	color: #6b5514;
	font-size: 0.88rem;
	text-align: center;
}

/* ---------- Split text + panel (About "our approach") ---------- */

.why {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 44px;
	align-items: center;
}
.why__text h2 { margin-bottom: 14px; }
.why__text p { color: var(--cc-muted); margin: 0 0 14px; }
.why__text .btn { margin-top: 8px; }
.why__list { list-style: none; margin: 0 0 22px; padding: 0; }
.why__list li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 12px;
	font-size: 1.02rem;
}
.why__list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 1px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--cc-accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.why__panel {
	background: var(--cc-card);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	box-shadow: var(--cc-shadow-sm);
	padding: 8px 24px;
}
.why__stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 0;
	border-bottom: 1px solid var(--cc-line);
	color: var(--cc-muted);
	font-size: 0.92rem;
}
.why__stat:last-child { border-bottom: 0; }
.why__stat strong {
	display: block;
	font-family: var(--cc-display);
	font-size: 1.4rem;
	color: var(--cc-ink);
}

/* ---------- Trust band ---------- */

.trust { background: linear-gradient(155deg, #0a2c49 0%, #0c3c63 100%); color: #dceaf6; padding: 64px 0; }
.trust__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; }
.trust__text h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.trust__text p { color: #b6cbe0; margin-bottom: 22px; }
.trust__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.trust__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.trust__stat {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--cc-radius);
	padding: 20px;
}
.trust__stat strong { display: block; font-family: var(--cc-display); font-size: 1.7rem; color: #fff; }
.trust__stat span { font-size: 0.88rem; color: #a9c2d9; }

/* ---------- Testimonials ---------- */

.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.quote-card {
	background: #fff;
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	padding: 24px;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.quote-card__stars { color: #eab308; display: inline-flex; gap: 2px; }
.quote-card__stars .cc-ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.quote-card blockquote { margin: 0; font-size: 0.98rem; color: var(--cc-ink); }
.quote-card figcaption { display: flex; flex-direction: column; margin-top: auto; }
.quote-card__name { font-weight: 700; font-family: var(--cc-display); }
.quote-card__meta { font-size: 0.82rem; color: var(--cc-muted); }

/* ---------- CTA band ---------- */

.cta-band { background: linear-gradient(120deg, var(--cc-teal-dark) 0%, var(--cc-brand) 55%, var(--cc-brand-dark) 100%); color: #fff; }
.cta-band__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 44px 22px;
}
.cta-band h2 { color: #fff; margin: 0 0 4px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.86); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__actions .btn--cta { background: #fff; color: var(--cc-brand); }
.cta-band__actions .btn--cta:hover { background: var(--cc-brand-050); }

/* ---------- Home "visit us" strip ---------- */

.home-visit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}
.home-visit__text { flex: 1 1 380px; }
.home-visit__list { list-style: none; margin: 14px 0 0; padding: 0; }
.home-visit__list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--cc-ink); }
.home-visit__list .cc-ico { width: 20px; height: 20px; color: var(--cc-teal); margin-top: 2px; flex: none; }
.home-visit__list a { text-decoration: none; }
.home-visit__actions { display: flex; flex-direction: column; gap: 12px; flex: none; }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 44px; align-items: start; }
.contact__line { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; }
.contact__line .cc-ico { width: 20px; height: 20px; color: var(--cc-teal); margin-top: 2px; }
.contact__line a { text-decoration: none; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.contact__map { border: 1px solid var(--cc-line); border-radius: var(--cc-radius); overflow: hidden; min-height: 340px; }
.contact__map-ph {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 100%;
	min-height: 340px;
	background: var(--cc-soft);
	color: var(--cc-muted);
	text-align: center;
	padding: 30px;
}
.contact__map-ph .cc-ico { width: 30px; height: 30px; color: var(--cc-brand); }

/* ---------- Page shells ---------- */

.page-shell { padding: 46px 22px 66px; }
.page-shell--narrow { max-width: 820px; }
.page-head { margin-bottom: 28px; }
.page-head__title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.page-head__desc { color: var(--cc-muted); font-size: 1.05rem; max-width: 60ch; }
.page-thumb { margin: 0 0 24px; border-radius: var(--cc-radius); overflow: hidden; }

.entry-content { font-size: 1.02rem; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content img { border-radius: var(--cc-radius-sm); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }

.crumbs { font-size: 0.85rem; color: var(--cc-muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.crumbs a { text-decoration: none; }

/* ---------- Tests archive ---------- */

.tests-layout { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: start; }
.tests-filter { position: sticky; top: 92px; }
.tests-filter__search { display: flex; gap: 6px; margin-bottom: 20px; }
.tests-filter__search input {
	flex: 1; min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius-sm);
	font: inherit;
}
.tests-filter__search button {
	border: 0;
	background: var(--cc-brand);
	color: #fff;
	border-radius: var(--cc-radius-sm);
	padding: 0 14px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.tests-filter__title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cc-muted); }
.tests-filter__list { list-style: none; margin: 0; padding: 0; }
.tests-filter__list li { border-bottom: 1px solid var(--cc-line); }
.tests-filter__list a { display: flex; justify-content: space-between; padding: 10px 4px; text-decoration: none; color: var(--cc-ink); font-size: 0.94rem; }
.tests-filter__list a span { color: var(--cc-muted); font-size: 0.82rem; }
.tests-filter__list .is-active a { color: var(--cc-brand); font-weight: 700; }

/* ---------- Single test ---------- */

.test-single { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.test-single__cat a { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.74rem; font-weight: 700; text-decoration: none; color: var(--cc-teal); }
.test-single__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.test-single__lead { font-size: 1.08rem; color: var(--cc-muted); }
.test-single__prep {
	margin-top: 26px;
	background: var(--cc-soft);
	border: 1px solid var(--cc-line);
	border-left: 3px solid var(--cc-accent);
	border-radius: var(--cc-radius);
	padding: 18px 20px;
}
.test-single__prep h2 { font-size: 1.04rem; margin-bottom: 6px; }
.booking-box {
	position: sticky;
	top: 92px;
	background: var(--cc-card);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	box-shadow: var(--cc-shadow);
	padding: 24px;
}
.booking-box__price { font-family: var(--cc-display); font-weight: 800; font-size: 1.8rem; margin: 0 0 12px; color: var(--cc-ink); }
.booking-box__price--muted { font-size: 1.14rem; color: var(--cc-muted); }
.booking-box__facts { list-style: none; margin: 0 0 16px; padding: 0; font-size: 0.9rem; }
.booking-box__facts li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--cc-line); }
.booking-box__facts li span { color: var(--cc-muted); }
.booking-box__note { font-size: 0.82rem; color: var(--cc-muted); margin: 12px 0 0; }

.related { margin-top: 54px; }
.related h2 { margin-bottom: 20px; }

/* ---------- Single offer ---------- */

.offer-single { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.offer-single__poster {
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	overflow: hidden;
	background: linear-gradient(135deg, var(--cc-brand), var(--cc-accent));
	min-height: 320px;
}
.offer-single__poster img { width: 100%; display: block; }
.offer-single__placeholder { color: #fff; font-family: var(--cc-display); font-weight: 800; font-size: 1.4rem; padding: 40px; display: flex; min-height: 320px; align-items: center; }
.offer-single__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.offer-single__price strong { font-family: var(--cc-display); font-size: 2rem; color: var(--cc-ink); }
.offer-single__mrp { text-decoration: line-through; color: var(--cc-muted); margin-left: 10px; }
.offer-single__save { display: inline-block; margin-left: 10px; background: var(--cc-mint); color: var(--cc-ok); border-radius: 999px; padding: 3px 10px; font-size: 0.85rem; font-weight: 700; }
.offer-single__tests { padding-left: 1.2em; }
.offer-single__tests li { margin-bottom: 6px; }
.offer-single__terms { color: var(--cc-muted); font-size: 0.92rem; }
.offer-single__valid { color: var(--cc-muted); font-size: 0.9rem; }

/* ---------- Booking page ---------- */

.booking-shell { max-width: 1080px; }
.booking-shell .page-head { max-width: 640px; }
.page-head--tight { margin-bottom: 18px; }
.page-head--tight .page-head__title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 6px; }
.page-head--tight .page-head__desc { font-size: 0.95rem; }
@media (min-width: 1025px) { .booking-shell.page-shell { padding-top: 30px; } }

/* ---------- Blog / list ---------- */

.post-list { display: grid; gap: 22px; }
.post-card { display: grid; grid-template-columns: 220px 1fr; gap: 20px; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); overflow: hidden; background: var(--cc-card); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px; }
.post-card__title { font-size: 1.2rem; margin-bottom: 4px; }
.post-card__title a { text-decoration: none; color: var(--cc-ink); }
.post-card__meta { color: var(--cc-muted); font-size: 0.84rem; margin: 0 0 8px; }

.pagination, .comments-area .navigation { margin-top: 34px; }
.pagination .page-numbers { display: inline-block; padding: 8px 13px; border: 1px solid var(--cc-line); border-radius: 8px; margin-right: 6px; text-decoration: none; color: var(--cc-ink); }
.pagination .page-numbers.current { background: var(--cc-brand); color: #fff; border-color: var(--cc-brand); }

.search-form { display: flex; gap: 8px; }
.search-form__field { flex: 1; padding: 11px 13px; border: 1px solid var(--cc-line); border-radius: var(--cc-radius-sm); font: inherit; }
.search-form__submit { border: 0; background: var(--cc-brand); color: #fff; border-radius: var(--cc-radius-sm); padding: 0 18px; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Footer ---------- */

.site-footer { background: var(--cc-navy); color: #b9cadd; margin-top: 0; }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
	gap: 44px;
	padding: 58px 22px 40px;
}
.site-footer h4 {
	color: #fff;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 14px;
}
.site-footer__brand {
	display: inline-block;
	margin-bottom: 12px;
}
.site-footer__brand img { height: 40px; width: auto; display: block; }
.site-footer__power { font-size: 0.78rem; margin: -6px 0 14px; }
.site-footer__power-label { color: #8ea6bd; font-weight: 500; }
.site-footer__power-name { color: var(--cc-accent, #14b8a6); font-weight: 700; letter-spacing: 0.01em; }
.site-footer__tagline { color: #9fb6cc; font-size: 0.92rem; max-width: 34ch; margin: 0 0 16px; }
.site-footer__contact { list-style: none; margin: 0; padding: 0; }
.site-footer__contact li { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; font-size: 0.92rem; }
.site-footer__contact .cc-ico { width: 17px; height: 17px; color: var(--cc-accent); flex: none; }
.site-footer__contact a { color: #dbe8f4; text-decoration: none; }
.site-footer__contact a:hover { color: #fff; }
.site-footer__line { margin: 0 0 10px; font-size: 0.9rem; line-height: 1.5; }
.site-footer__line--muted { color: #90a7bd; }
.site-footer__menu { list-style: none; margin: 0; padding: 0; }
.site-footer__menu li { margin-bottom: 9px; }
.site-footer__menu a { color: #b9cadd; text-decoration: none; font-size: 0.92rem; }
.site-footer__menu a:hover { color: #fff; }
.site-footer__col--visit .btn { margin-top: 6px; }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer__bar-inner {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 18px 22px;
	font-size: 0.82rem;
	color: #8397ac;
}
.site-footer__bar-inner p { margin: 0; }
.site-footer__credit a { color: #8397ac; text-decoration: underline; text-underline-offset: 2px; }
.site-footer__credit a:hover { color: #fff; }

/* ---------- WhatsApp float ---------- */

.wa-float {
	position: fixed;
	right: 18px; bottom: 18px;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #1fab5b;
	color: #fff;
	text-decoration: none;
	padding: 12px 16px;
	border-radius: 999px;
	box-shadow: 0 10px 26px rgba(10, 44, 73, 0.25);
	font-family: var(--cc-display);
	font-weight: 700;
}
.wa-float:hover { color: #fff; background: #178f4b; }
.wa-float__label { font-size: 0.9rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 22px 56px; align-items: stretch; }
	.hero__visual { max-width: 440px; margin: 0 auto; width: 100%; }
	.promo-card { max-width: none; margin-left: 0; }
	.hero__pill--a { left: 4px; }
	.hero__pill--b { right: 4px; bottom: -16px; }
	.trust__inner, .why, .contact, .test-single, .offer-single { grid-template-columns: 1fr; }
	.trust { padding: 52px 0; }
	.booking-box { position: static; }
	.tests-layout { display: block; }
	.tests-results, .test-grid, .test-card { min-width: 0; max-width: 100%; }

	/* Tests archive: sidebar becomes a sticky search + category chip bar */
	.tests-filter {
		position: sticky;
		top: 63px;
		z-index: 5;
		background: var(--cc-card);
		margin: 0 0 18px;
		padding: 12px 0;
		border-bottom: 1px solid var(--cc-line);
	}
	.tests-filter__search { margin-bottom: 12px; }
	.tests-filter__search input { padding: 12px 14px; }
	.tests-filter__title { display: none; }
	.tests-filter__list {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 2px;
	}
	.tests-filter__list::-webkit-scrollbar { display: none; }
	.tests-filter__list li {
		flex: 0 0 auto;
		border-bottom: 0;
		scroll-snap-align: start;
	}
	.tests-filter__list a {
		display: inline-flex;
		gap: 6px;
		align-items: center;
		padding: 8px 14px;
		border: 1px solid var(--cc-line);
		border-radius: 999px;
		background: #fff;
		white-space: nowrap;
		font-weight: 600;
		font-size: 0.88rem;
	}
	.tests-filter__list a span {
		background: var(--cc-brand-050);
		color: var(--cc-brand);
		border-radius: 999px;
		padding: 0 6px;
		font-size: 0.72rem;
		font-weight: 700;
	}
	.tests-filter__list .is-active a {
		background: var(--cc-brand);
		border-color: var(--cc-brand);
		color: #fff;
	}
	.tests-filter__list .is-active a span { background: rgba(255, 255, 255, 0.22); color: #fff; }
	.assurance__grid { grid-template-columns: repeat(2, 1fr); gap: 12px 26px; }
	.cta-band__inner { flex-direction: column; align-items: flex-start; }
	.site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
	.site-footer__col--visit { grid-column: 1 / -1; }
	/* Show the "book" box before the long description on narrow screens. */
	.test-single { display: flex; flex-direction: column; }
	/* Phone: title and intro first, then the price card, then the rest of the details. */
	.test-single__main { display: contents; }
	.test-single__main > :not(header) { order: 2; }
	.test-single__aside { order: 1; }
}

@media (max-width: 860px) {
	.steps { grid-template-columns: 1fr; }
	.post-card { grid-template-columns: 1fr; }
	.post-card__media { max-height: 200px; }

	/* backdrop-filter on an ancestor traps position:fixed children — drop it so
	   the mobile drawer anchors to the viewport, not the header bar. */
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; z-index: 60; }
	.site-brand__tagline { font-size: 0.6rem; white-space: normal; max-width: 150px; }

	.nav-toggle { display: block; }
	.primary-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: auto;
		width: min(320px, 86vw);
		background: #fff;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 80px 22px 30px;
		transform: translateX(100%);
		transition: transform 0.22s ease;
		box-shadow: -20px 0 50px rgba(10, 44, 73, 0.18);
		overflow-y: auto;
		z-index: 60;
	}
	.primary-nav.is-open { transform: translateX(0) !important; }
	.primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav__list a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--cc-line); }
	.primary-nav__list .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 14px; }
	.primary-nav__cta { margin-top: 18px; }
	.nav-open { overflow: hidden; }
	.nav-scrim { position: fixed; inset: 0; background: rgba(10, 44, 73, 0.4); z-index: 55; }
}

@media (max-width: 680px) {
	.section { padding: 46px 0; }
	.section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
	.trust__stats { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 28px; padding: 46px 22px 34px; }
	.cta-band__actions { width: 100%; }
	.cta-band__actions .btn { flex: 1; }
	.offer-single__poster { min-height: 220px; }
	.home-visit__actions { width: 100%; }
	.home-visit__actions .btn { flex: 1; text-align: center; }

	/* Tests archive — compact cards */
	.tests-archive.page-shell { padding-top: 24px; }
	.test-grid { gap: 12px; }
	.test-card { padding: 16px 16px 14px; border-radius: 12px; }
	.test-card:hover { transform: none; }
	.test-card__title { font-size: 1.02rem; margin-bottom: 4px; }
	.test-card__desc {
		font-size: 0.88rem;
		margin-bottom: 10px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.test-card__facts { display: none; }
	.test-card__foot { padding-top: 12px; }
	.test-card__price { font-size: 1.02rem; }
	.test-card .btn--sm { padding: 10px 18px; }
}

@media (max-width: 560px) {
	.test-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.topbar__item--hours { display: none; }
	.wa-float__label { display: none; }
	.wa-float { right: 14px; bottom: 14px; }
	.hero__search { flex-wrap: wrap; border-radius: 16px; padding: 10px; }
	.hero__search input { width: 100%; }
	.hero__search button { width: 100%; }
	.hero__actions .btn { flex: 1; }
	.hero__stats { gap: 10px 22px; }
	.hero__stats li { flex: 1 0 40%; }
	.assurance__grid { grid-template-columns: 1fr; }
	.trust__stats { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.crumbs { font-size: 0.8rem; }
}

/* Wide content must never break the page width. */
.entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
.entry-content pre { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* ---------- Gallery ---------- */

.album-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.album-card {
	display: block;
	background: var(--cc-card);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--cc-ink);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.album-card:hover { box-shadow: var(--cc-shadow); transform: translateY(-2px); color: var(--cc-ink); }
.album-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--cc-brand), var(--cc-accent)); }
.album-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.album-card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; letter-spacing: 0.04em; }
.album-card__count {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 4px 11px;
	border-radius: 999px;
	background: rgba(10, 44, 73, 0.78);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
}
.album-card__body { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px 18px; }
.album-card__title { font-family: var(--cc-display); font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.album-card__date { color: var(--cc-muted); font-size: 0.85rem; }

.back-link { margin: 0 0 12px; font-weight: 600; font-size: 0.92rem; }
.back-link a { text-decoration: none; }
.album-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--cc-muted); font-size: 0.92rem; margin-bottom: 10px; }

.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.album-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--cc-radius-sm); background: var(--cc-soft); cursor: zoom-in; }
.album-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transition: transform 0.25s ease; }
.album-photo:hover img, .album-photo:focus-visible img { transform: scale(1.04); }
.album-photo:focus-visible { outline: 3px solid var(--cc-accent); outline-offset: 2px; }

/* Home strip */
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-strip__item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--cc-radius-sm); background: var(--cc-soft); }
.gallery-strip__item img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transition: transform 0.25s ease; }
.gallery-strip__item:hover img { transform: scale(1.05); }
.gallery-strip__cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 26px 12px 10px;
	background: linear-gradient(to top, rgba(10, 44, 73, 0.85), rgba(10, 44, 73, 0));
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.3;
}

/* Full-size viewer */
html.lb-open { overflow: hidden; }
.lb {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(6, 18, 30, 0.94);
	display: flex;
	align-items: center;
	justify-content: center;
}
.lb[hidden] { display: none; }
.lb__stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 64px; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); transition: opacity 0.2s ease; }
.lb__img.is-loading { opacity: 0.25; }
.lb__counter { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); color: #dbe6f1; font-size: 0.9rem; font-weight: 600; }
.lb__btn {
	position: absolute;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}
.lb__btn:hover, .lb__btn:focus-visible { background: rgba(255, 255, 255, 0.28); outline: none; }
.lb__btn:focus-visible { box-shadow: 0 0 0 3px var(--cc-accent); }
.lb__close { top: 14px; right: 14px; font-size: 34px; }
.lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
	.album-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.album-grid-cards { grid-template-columns: 1fr; gap: 16px; }
	.gallery-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.album-grid { gap: 8px; }
	.lb__stage { padding: 56px 8px 44px; }
	.lb__prev { left: 6px; }
	.lb__next { right: 6px; }
	.lb__btn { width: 40px; height: 40px; font-size: 26px; }
}

/* Tests search page */
.tsearch { position: sticky; top: 0; z-index: 5; background: var( --bg, #fff ); padding: 12px 0 8px; }
.tsearch__form { position: relative; display: flex; gap: 8px; }
.tsearch__input { flex: 1; min-width: 0; font-size: 1.1rem; padding: 14px 44px 14px 16px; border: 2px solid var( --line, #dce5ee ); border-radius: 12px; }
.tsearch__input:focus { outline: none; border-color: var( --brand, #123c63 ); }
.tsearch__go { padding: 0 22px; border: 0; border-radius: 12px; background: var( --cta, #11b5a4 ); color: #fff; font-weight: 600; cursor: pointer; }
.tsearch__clear { position: absolute; right: 108px; top: 50%; transform: translateY( -50% ); border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: #6b7c8c; }
.tsearch__az { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.tsearch__az button { min-width: 30px; padding: 4px 6px; border: 1px solid var( --line, #dce5ee ); border-radius: 8px; background: #fff; cursor: pointer; font-size: 0.85rem; }
.tsearch__az button.is-on { background: var( --brand, #123c63 ); color: #fff; border-color: var( --brand, #123c63 ); }
.tsearch__count { margin: 8px 0 0; color: #6b7c8c; font-size: 0.9rem; }
.tsearch__none { padding: 30px 0; text-align: center; }
.test-card[hidden] { display: none; }
.test-card__title mark { background: #fff2b3; color: inherit; padding: 0 1px; border-radius: 3px; }
.tsearch__form--home { max-width: 640px; margin: 0 auto; }
