/* ============================================================
   RUGVEDIYA LABORATORIES — Design System
   Plain CSS. No framework, no build step.
   Brand: #E31F29 red · #5B7F65 sage · #000 black · #FEFEFE white
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --red: #E31F29;
  --red-cta: #C41822;      /* darker: AA-safe with white text */
  --red-dark: #9E1218;     /* red as text on white */
  --red-tint: #FDECEC;

  --sage: #5B7F65;
  --sage-dark: #40614C;    /* AA-safe sage as text on white */
  --sage-deep: #2F4739;
  --sage-tint: #EDF3EF;

  --black: #000000;
  --ink: #141414;          /* body copy (softer than pure black) */
  --muted: #6B7A6F;        /* sage-biased grey, not a dead grey */
  --border: #E4E8E4;
  --white: #FEFEFE;
  --bg: #F7F9F7;

  /* Semantic (independent of brand accents) */
  --warn: #8A5A00;
  --warn-tint: #FFF4E0;
  --info: #2F4739;
  --info-tint: #EDF3EF;

  /* Type */
  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Elevation — sage-tinted, never pure black */
  --sh-sm: 0 1px 2px rgba(47,71,57,.06), 0 1px 3px rgba(47,71,57,.08);
  --sh-md: 0 4px 12px rgba(47,71,57,.08), 0 2px 4px rgba(47,71,57,.05);
  --sh-lg: 0 14px 34px rgba(47,71,57,.15);

  /* Layout */
  --container: 1240px;
  --section-y: 96px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (max-width: 991px) { :root { --section-y: 72px; } }
@media (max-width: 575px) { :root { --section-y: 56px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-decoration: none; }
a:hover { color: var(--sage-deep); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--black);
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  text-wrap: balance;
  line-height: 1.2;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--sage-dark); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }
.flex { display: flex; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--sage-deep); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: .75rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sage-dark);
  display: block; margin-bottom: 10px;
}
.lead { font-size: 1.06rem; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.section-head { margin-bottom: 40px; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: var(--r-md); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), background .15s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red-cta); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--sage { background: var(--sage); color: #fff; }
.btn--sage:hover { background: var(--sage-dark); color: #fff; }
.btn--outline { border-color: var(--sage); color: var(--sage-dark); background: transparent; }
.btn--outline:hover { background: var(--sage-tint); color: var(--sage-deep); }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--wa { background: #1FA45B; color: #fff; }
.btn--wa:hover { background: #17834a; color: #fff; }
.btn--sm { padding: 9px 16px; font-size: .85rem; border-radius: 10px; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }
/* Square icon-only button (used for the WhatsApp action on cards) */
.btn--icon { padding: 0; width: 44px; height: 44px; flex: none; border-radius: var(--r-md); }
.btn--icon svg { width: 21px; height: 21px; }
.btn--icon.btn--sm { width: 38px; height: 38px; border-radius: 10px; }
.btn--icon.btn--sm svg { width: 18px; height: 18px; }

/* ---------- 6. Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.card__body { padding: 24px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.badge--noprep { background: var(--sage-tint); color: var(--sage-deep); }
.badge--prep   { background: var(--warn-tint); color: var(--warn); }
.badge--report { background: var(--red-tint); color: var(--red-dark); }
.badge--count  { background: var(--sage-tint); color: var(--sage-deep); }

.price {
  font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--black); font-size: 1.5rem;
}
.price .rupee { font-size: .7em; font-weight: 600; color: var(--muted); margin-right: 2px; }

.chip {
  display: inline-block; font-size: .8rem; font-weight: 500;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--white); color: var(--sage-dark); cursor: pointer;
}
.chip:hover, .chip.is-active { border-color: var(--sage); background: var(--sage-tint); }

.icon-chip {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex;
  align-items: center; justify-content: center; background: var(--sage-tint); color: var(--sage-deep);
  margin-bottom: 16px;
}
.icon-chip svg { width: 24px; height: 24px; }

/* ---------- 7. Top bar + Header ---------- */
.topbar { background: var(--black); color: #C9D3CB; font-size: .85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 9px; }
.topbar a { color: #C9D3CB; }
.topbar a:hover { color: #fff; }
.topbar__group { display: flex; align-items: center; gap: 20px; }
.topbar__hot { color: #FF8A80; font-weight: 600; }
.topbar__wa { color: #7FE3BC; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.topbar__wa svg { flex: none; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(254,254,254,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s var(--ease);
}
.header.is-stuck { box-shadow: var(--sh-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 92px; transition: height .2s var(--ease); }
.header__logo img { height: 90px; width: auto; transition: height .2s var(--ease); }
/* Condense slightly once scrolled, so the logo stays prominent but the bar stays compact */
.header.is-stuck .container { height: 76px; }
.header.is-stuck .header__logo img { height: 56px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .93rem; color: #3A463E;
  padding: 6px 0; position: relative;
}
.nav a:hover { color: var(--sage-dark); }
.nav a.is-active { color: var(--sage-deep); font-weight: 600; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--red); border-radius: 2px;
}
.header__actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--white); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--sage-deep);
}
.icon-btn:hover { background: var(--sage-tint); }
.nav-toggle { display: none; }

@media (max-width: 991px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header .container { height: 74px; }
  .header__logo img { height: 54px; }
  .header.is-stuck .container { height: 66px; }
  .header.is-stuck .header__logo img { height: 48px; }
  .topbar__group--links a:not(.topbar__wa) { display: none; }
}
/* The email address is long — drop it on phones so the top bar can't overflow
   (phone + WhatsApp remain, and the address is still in the footer & Contact page) */
@media (max-width: 767px) {
  .topbar__mail { display: none; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 330px);
  background: var(--white); box-shadow: var(--sh-lg); transform: translateX(100%);
  transition: transform .28s var(--ease); display: flex; flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
.drawer__links { list-style: none; padding: 12px 16px; margin: 0; flex: 1; }
.drawer__links a { display: block; padding: 13px 0; border-bottom: 1px solid var(--border); font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.drawer__foot { padding: 16px; border-top: 1px solid var(--border); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #EDF3EF url('/assets/img/hero-bg.jpg') center / cover no-repeat;
  padding-block: 90px 104px;
}
/* Scrim: keeps the photograph visible on the right while text stays fully legible on the left */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(247,249,247,.97) 0%,
    rgba(247,249,247,.94) 38%,
    rgba(247,249,247,.66) 64%,
    rgba(247,249,247,.34) 100%);
}
@media (max-width: 991px) {
  /* Text spans full width on small screens, so the scrim is stronger and even */
  .hero { padding-block: 60px 72px; }
  .hero::before { background: linear-gradient(180deg, rgba(247,249,247,.96) 0%, rgba(247,249,247,.92) 60%, rgba(247,249,247,.88) 100%); }
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--white);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px;
  font-size: .82rem; font-weight: 600; color: var(--sage-deep); box-shadow: var(--sh-sm); margin-bottom: 22px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero h1 .accent { color: var(--red); }
.hero__sub { font-size: 1.12rem; color: var(--muted); max-width: 46ch; margin: 18px 0 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 20px; font-size: .9rem; color: #3A463E; }
.hero__ticks span { display: inline-flex; align-items: center; gap: 7px; }
.hero__ticks svg { width: 16px; height: 16px; color: var(--sage); flex: none; }

.search-card {
  /* More opaque than plain glass because it now sits over a photograph */
  background: rgba(255,255,255,.93); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.85); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); padding: 28px;
}
.search-card h2 { font-size: 1.2rem; margin-bottom: 14px; }
.search-trigger {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--white); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 15px 18px; color: var(--muted); font-size: .98rem; font-family: var(--font-body);
  cursor: text; text-align: left; box-shadow: var(--sh-sm);
}
.search-trigger:hover { border-color: var(--sage); }
/* when the class is used on a real <input> (Tests / Packages pages) */
input.search-trigger { color: var(--ink); }
input.search-trigger::placeholder { color: var(--muted); }
input.search-trigger:focus { outline: 0; border-color: var(--sage); }
.search-trigger svg { width: 18px; height: 18px; flex: none; }
.search-trigger kbd {
  margin-left: auto; font-size: .7rem; background: var(--sage-tint); color: var(--sage-deep);
  border-radius: 6px; padding: 3px 7px; font-family: var(--font-body);
}
.pop-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero__media {
  margin-top: 22px; width: 100%; height: 160px; border-radius: var(--r-lg);
  object-fit: cover; display: block; box-shadow: var(--sh-sm);
}

@media (max-width: 991px) { .hero__inner { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- 9. Trust strip ---------- */
.trust { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-block: 28px; }
.trust__label {
  font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 16px;
}
.trust__logos { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trust__logos span {
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 18px;
  font-size: .88rem; font-weight: 600; color: #3A463E; background: var(--bg);
}

/* ---------- 10. Stats ---------- */
.stat { text-align: center; padding: 26px 12px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.2rem); color: var(--sage-deep); font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: .88rem; }

/* ---------- 11. Steps ---------- */
.step { text-align: center; padding: 0 12px; }
.step__num {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--white); border: 2px dashed var(--sage); color: var(--sage-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
}

/* ---------- 12. Dark sections ---------- */
.dark { background: var(--black); color: #D6DED8; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #9BC0A6; }
.quote {
  font-family: var(--font-head); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 500;
  line-height: 1.5; color: #fff; margin: 0 0 22px;
}
.rule-red { width: 48px; height: 3px; background: var(--red); border-radius: 2px; margin-top: 14px; }

/* ---------- 13. CTA banner ---------- */
.cta-banner {
  background: var(--black); border-radius: var(--r-xl); padding: 52px 32px;
  text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 40%, var(--sage) 60%, var(--sage) 100%);
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.82); margin-bottom: 26px; }
.cta-banner__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 14. Footer ---------- */
.footer { background: var(--black); color: #93A296; border-top: 3px solid var(--red); margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 56px; }
.footer h3 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: .9rem; }
.footer a { color: #93A296; }
.footer a:hover { color: #fff; }
/* Minimal white plaque — hugs the logo tightly (the artwork's own background is white) */
.footer__logo { background: #fff; border-radius: 6px; padding: 3px 5px; display: inline-flex; margin-bottom: 18px; line-height: 0; }
.footer__logo img { height: 90px; width: auto; display: block; }
@media (max-width: 575px) { .footer__logo img { height: 60px; } }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem;
}
@media (max-width: 991px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 15. Modal + Search overlay ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; overflow-y: auto; padding: 24px 12px; }
.modal.is-open { display: block; }
.modal__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); }
.modal__panel {
  position: relative; width: min(680px, 100%); margin: 24px auto;
  background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-lg);
}
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal__head h2 { margin: 0; font-size: 1.2rem; }
.modal__body { padding: 22px; }

.overlay { position: fixed; inset: 0; z-index: 300; display: none; }
.overlay.is-open { display: block; }
.overlay__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); }
.overlay__panel {
  position: relative; width: min(640px, 92vw); margin: min(12vh, 96px) auto 0;
  background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-lg); overflow: hidden;
}
.overlay__input { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.overlay__input input { flex: 1; border: 0; outline: 0; font-size: 1.05rem; font-family: var(--font-body); color: var(--ink); }
.overlay__results { max-height: min(58vh, 440px); overflow-y: auto; }
.result {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px 20px; border: 0; border-bottom: 1px solid var(--border); background: transparent; cursor: pointer;
}
.result:hover, .result.is-active { background: var(--sage-tint); }
.result__title { font-weight: 600; display: block; }
.result__meta { font-size: .8rem; color: var(--muted); }

/* ---------- 16. Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--sage); }
.field .error { color: var(--red-dark); font-size: .82rem; margin-top: 4px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-cta); }
.field.has-error .error { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 575px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--muted); }
.honeypot { position: absolute; left: -9999px; }

/* ---------- 17. Floating actions ---------- */
.fab { position: fixed; right: 20px; bottom: 24px; z-index: 150; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab__wa {
  width: 56px; height: 56px; border-radius: 50%; background: #1FA45B; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-lg);
}
.fab__wa:hover { color: #fff; filter: brightness(.95); }
.fab__wa svg { width: 28px; height: 28px; }

.bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: none; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(47,71,57,.08); }
.bottombar a, .bottombar button {
  flex: 1; border: 0; background: transparent; padding: 9px 4px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: .68rem; font-weight: 600; color: var(--sage-deep); font-family: var(--font-head);
}
.bottombar svg { width: 20px; height: 20px; }
.bottombar .is-book { background: var(--red-cta); color: #fff; }
@media (max-width: 767px) {
  .bottombar { display: flex; }
  .fab { display: none; }
  body { padding-bottom: 60px; }
}

/* ---------- 18. Interior page hero + breadcrumb ---------- */
/* Same photographic treatment as the homepage hero, in a shorter band.
   To use a different photo on a page, add a modifier e.g.
   .page-hero--about { background-image: url('/assets/img/lab-microscopes.jpg'); } */
.page-hero {
  position: relative;
  overflow: hidden;
  background: #EDF3EF url('/assets/img/hero-bg.jpg') center / cover no-repeat;
  border-bottom: 1px solid var(--border);
  padding-block: 52px 60px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(247,249,247,.97) 0%,
    rgba(247,249,247,.94) 42%,
    rgba(247,249,247,.70) 68%,
    rgba(247,249,247,.42) 100%);
}
.page-hero > .container { position: relative; z-index: 1; }
@media (max-width: 991px) {
  .page-hero { padding-block: 40px 46px; }
  .page-hero::before { background: linear-gradient(180deg, rgba(247,249,247,.96) 0%, rgba(247,249,247,.93) 60%, rgba(247,249,247,.90) 100%); }
}
.page-hero h1 { margin-bottom: 10px; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.crumb a { color: var(--sage-dark); }

/* ---------- 19. Rail layout (Tests page) ---------- */
.rail { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
@media (max-width: 991px) { .rail { grid-template-columns: 1fr; } }

.filters { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; position: sticky; top: 110px; }
.filters h2 { font-size: .95rem; margin: 0 0 12px; }
.filter-group { margin-bottom: 22px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.filter-list button {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 7px 10px; border-radius: 8px; font-family: var(--font-body); font-size: .88rem; color: var(--ink);
  display: flex; justify-content: space-between; gap: 8px;
}
.filter-list button:hover { background: var(--sage-tint); }
.filter-list button.is-active { background: var(--sage); color: #fff; font-weight: 600; }
.filter-list button.is-active span { color: rgba(255,255,255,.85); }
.filter-list span { color: var(--muted); font-size: .8rem; }
.check { display: flex; align-items: center; gap: 8px; font-size: .88rem; padding: 4px 0; cursor: pointer; }
.check input { width: auto; }

.alphabet { display: flex; flex-wrap: wrap; gap: 4px; }
.alphabet button {
  width: 28px; height: 28px; border: 1px solid var(--border); background: var(--white);
  border-radius: 6px; cursor: pointer; font-size: .75rem; font-weight: 600; color: var(--sage-dark);
}
.alphabet button:hover { border-color: var(--sage); }
.alphabet button.is-active { background: var(--sage); color: #fff; border-color: var(--sage); }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.results-bar select { padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--r-md); font-family: var(--font-body); background: var(--white); }
.filters-toggle { display: none; }
@media (max-width: 991px) {
  .filters { position: static; display: none; margin-bottom: 20px; }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
}
.empty-state { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 48px 24px; text-align: center; }

/* ---------- 20. Compare tray + table ---------- */
.compare-tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
  background: rgba(254,254,254,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(47,71,57,.10);
  display: none;
}
.compare-tray.is-visible { display: block; }
.compare-tray .container { display: flex; align-items: center; gap: 14px; padding-block: 12px; flex-wrap: wrap; }
@media (max-width: 767px) { .compare-tray { bottom: 60px; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--white); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
table.compare thead th { background: var(--sage-tint); font-family: var(--font-head); font-size: .9rem; vertical-align: top; }
table.compare td.tick { text-align: center; color: var(--sage); font-weight: 700; }
table.compare td.cross { text-align: center; color: var(--border); }
table.compare tbody tr:nth-child(even) { background: #FBFCFB; }

/* ---------- 21. Timeline (About) ---------- */
.timeline { position: relative; display: grid; gap: 24px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-left: 48px; }
.tl-item::before {
  content: ""; position: absolute; left: 8px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--white); border: 3px solid var(--sage);
}
.tl-item.is-key::before { border-color: var(--red); }
.tl-year { font-family: var(--font-head); font-weight: 700; color: var(--sage-deep); }

/* ---------- 22. Split layout (Contact / Home collection) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
@media (max-width: 991px) { .split { grid-template-columns: 1fr; } }
.map-embed { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--r-lg); display: block; }
.info-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .92rem; }
.info-row svg { width: 18px; height: 18px; color: var(--sage); flex: none; margin-top: 3px; }

/* ---------- 23. Prose (Privacy / Terms) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.15rem; margin-top: 32px; }
.prose p, .prose li { color: #333; }
.prose ul { padding-left: 20px; list-style: disc; margin-bottom: 1rem; }

/* ---------- 24. Accordion (FAQ) ---------- */
.acc { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--white); overflow: hidden; }
.acc__item + .acc__item { border-top: 1px solid var(--border); }
.acc__btn {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 16px 20px; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink);
}
.acc__btn:hover { background: var(--sage-tint); }
.acc__btn::after { content: "+"; font-size: 1.3rem; color: var(--sage); line-height: 1; }
.acc__btn[aria-expanded="true"]::after { content: "–"; }
.acc__panel { padding: 0 20px 18px; color: var(--muted); font-size: .92rem; display: none; }
.acc__panel.is-open { display: block; }

/* ---------- 25. Scroll reveal (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
