/* ==========================================================
   مختبرات هيمولاب الطبية — HemoLabs
   One-page site styles (RTL, no JavaScript)
   ----------------------------------------------------------
   Brand colours are taken from the HemoLabs logo background
   (pink → crimson gradient). Change them in one place below.
   ========================================================== */

:root {
  /* Brand */
  --brand: #B7274A;        /* crimson */
  --brand-dark: #8F1736;   /* hover / deep */
  --brand-deep: #4A0A1D;   /* footer */
  --brand-mid: #D2385E;    /* raspberry */
  --brand-light: #F58EAC;  /* pink */
  --blush: #FFF2F5;
  --blush-2: #FCE4EB;
  --grad: linear-gradient(160deg, #F58EAC 0%, #D2385E 48%, #A3193B 100%);
  --wa: #25D366;

  /* Neutrals */
  --ink: #26161C;
  --text: #3A2C31;
  --muted: #6E5F65;
  --line: #F1E1E6;
  --white: #FFFFFF;

  /* Type */
  --font: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 1px 2px rgba(74, 10, 29, .04), 0 14px 34px -18px rgba(163, 25, 59, .28);
  --shadow-lg: 0 30px 70px -30px rgba(163, 25, 59, .45);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

:focus-visible {
  outline: 3px solid var(--brand-mid);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { padding: 15px 26px; font-size: 1.06rem; border-radius: 16px; }
.btn-sm { padding: 9px 16px; font-size: .95rem; border-radius: 12px; }
.btn-sm svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-mid), var(--brand));
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(183, 39, 74, .7);
}
.btn-outline { background: #fff; color: var(--brand); border-color: var(--blush-2); }
.btn-white { background: #fff; color: var(--brand); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }

@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(183, 39, 74, .75); }
  .btn-outline:hover { border-color: var(--brand); }
  .btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); }
  .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--brand-deep);
  color: #fff;
  font-size: .92rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding-block: 6px;
  text-align: center;
}
.topbar svg { width: 18px; height: 18px; flex: none; color: var(--brand-light); }
.topbar strong { font-weight: 600; }
.topbar-extra { color: rgba(255, 255, 255, .8); }
.topbar a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.brand { margin-inline-end: auto; flex: none; }
.brand img { width: auto; height: 50px; }

.site-nav { display: flex; gap: 2px; }
.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--blush); color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 92px) clamp(64px, 8vw, 112px);
  background:
    radial-gradient(60% 80% at 100% 0%, #FFE3EB 0%, rgba(255, 227, 235, 0) 60%),
    radial-gradient(50% 70% at 0% 100%, #FFF0F4 0%, rgba(255, 240, 244, 0) 60%),
    var(--white);
}

.hero-ecg {
  position: absolute;
  inset-inline: 0;
  bottom: 6%;
  width: 100%;
  height: 120px;
  fill: none;
  stroke: var(--brand-light);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: .35;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 16px;
  border: 1px solid var(--blush-2);
  border-radius: 999px;
  background: #fff;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
}
.chip svg {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: #1877F2;
  color: #fff;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem);
  line-height: 1.3;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 36em;
  margin-top: 20px;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 20px; height: 20px; color: var(--brand); }

/* Hero visual: brand card + floating badges */
.hero-visual {
  position: relative;
  padding: 34px 10px;
}

.brand-card {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  background: var(--grad);
  box-shadow: var(--shadow-lg);
}
.brand-card .ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .22);
}
.brand-card .r1 { width: 90%; aspect-ratio: 1; top: -45%; left: -35%; }
.brand-card .r2 { width: 60%; aspect-ratio: 1; bottom: -30%; right: -18%; background: rgba(255, 255, 255, .07); border: 0; }

.brand-card-logo { position: relative; width: 72%; margin-top: -6%; }
.brand-card-ecg {
  position: absolute;
  inset-inline: 0;
  bottom: 14%;
  width: 100%;
  height: 60px;
  fill: none;
  stroke: rgba(255, 255, 255, .7);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  line-height: 1.4;
}
.fb-text { font-size: .9rem; font-weight: 500; color: var(--muted); }
.fb-text strong { display: block; font-size: 1.1rem; font-weight: 700; color: var(--brand); }
.fb-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: var(--blush);
  color: var(--brand);
}
.fb-ico svg { width: 24px; height: 24px; }
.fb-big {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  direction: ltr;
}
.fb-home { top: 0; inset-inline-start: -4%; }
.fb-branch { bottom: 0; inset-inline-start: 4%; }
.fb-offer { bottom: 16%; inset-inline-end: -5%; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8.5vw, 116px); }
.section-tint { background: var(--blush); }

.section-head { max-width: 680px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--blush);
  font-size: .92rem;
  font-weight: 600;
  color: var(--brand);
}
.section-tint .eyebrow { background: #fff; }
.eyebrow svg { width: 18px; height: 18px; }
.eyebrow-light { background: rgba(255, 255, 255, .14); color: #fff; }

.section h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.75rem);
}

.section-lead {
  margin-top: 12px;
  font-size: clamp(1.03rem, 1rem + .25vw, 1.15rem);
  color: var(--muted);
}

/* ---------- Why ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
}
.feature {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
  .feature:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(74, 10, 29, .04), 0 22px 40px -20px rgba(163, 25, 59, .4); }
}
.feature-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
}
.feature-ico svg { width: 28px; height: 28px; }
.feature h3 { margin-top: 20px; font-size: 1.2rem; }
.feature p { margin-top: 8px; font-size: 1rem; line-height: 1.8; color: var(--muted); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.text-link svg { width: 18px; height: 18px; transition: transform .15s ease; }
.text-link:hover svg { transform: translateX(-4px); }

/* ---------- Tests ---------- */
.tests {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.test {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.test-code {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--blush);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--brand);
}
.test h3 { margin-top: 14px; font-size: 1.1rem; }
.test p { margin-top: 6px; font-size: .97rem; line-height: 1.75; color: var(--muted); }

.tests-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px dashed var(--brand-light);
  border-radius: 18px;
  background: #fff;
}
.tests-cta p { font-weight: 500; color: var(--ink); }

/* ---------- Home visit ---------- */
.home-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
}

.steps { margin-block: 32px 34px; }
.step {
  position: relative;
  display: flex;
  gap: 18px;
  padding-bottom: 26px;
}
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 4px;
  inset-inline-start: 21px;
  border-inline-start: 2px dashed var(--blush-2);
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--grad);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.step h3 { font-size: 1.15rem; }
.step p { margin-top: 2px; color: var(--muted); }

.home-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 4vw, 52px);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.home-panel::before {
  content: "";
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  top: -30%;
  inset-inline-end: -30%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .22);
}
.home-panel-ico {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .18);
}
.home-panel-ico svg { width: 38px; height: 38px; }
.home-panel-title {
  margin-top: 26px;
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.4;
}
.home-panel-free {
  align-self: flex-start;
  margin-top: 16px;
  padding: 4px 18px;
  border-radius: 999px;
  background: #fff;
  font-size: clamp(1.4rem, 1rem + 1.2vw, 1.9rem);
  font-weight: 700;
  color: var(--brand);
}
.home-panel-ecg {
  position: absolute;
  inset-inline: 0;
  bottom: 10%;
  width: 100%;
  height: 60px;
  fill: none;
  stroke: rgba(255, 255, 255, .6);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ---------- Offers ---------- */
.offers {
  position: relative;
  overflow: hidden;
  padding-block: clamp(60px, 8vw, 100px);
  background: var(--grad);
  color: #fff;
}
.offers-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.offers-big {
  justify-self: start;
  font-size: clamp(5rem, 3rem + 9vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .95);
  direction: ltr;
  text-shadow: 0 20px 50px rgba(74, 10, 29, .35);
}
.offers h2 {
  margin-top: 14px;
  color: #fff;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
}
.offers-copy > p:not(.eyebrow) {
  margin-top: 12px;
  max-width: 34em;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .88);
}
.offers-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Branches ---------- */
.branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.branch-group {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.branch-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
}
.branch-group h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--grad);
  transform: rotate(45deg);
}
.branch-group ul + h3 { margin-top: 22px; }
.branch-group ul { margin-top: 10px; }
.branch-group li + li { border-top: 1px solid var(--line); }
.branch-group a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s ease;
}
.branch-group a svg { width: 20px; height: 20px; flex: none; color: var(--brand); }
.branch-group a .ext { width: 16px; height: 16px; margin-inline-start: auto; color: var(--muted); transition: transform .15s ease, color .15s ease; }
.branch-group a:hover { color: var(--brand); }
.branch-group a:hover .ext { color: var(--brand); transform: translate(-2px, -2px); }

.more-branches {
  margin-top: 18px;
  padding: 14px 16px !important;
  border-radius: 16px;
  background: var(--blush);
  color: var(--ink) !important;
}
.more-branches b {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--grad);
  font-size: 1.1rem;
  color: #fff;
  direction: ltr;
}
.more-branches span { display: flex; flex-direction: column; line-height: 1.5; font-weight: 600; }
.more-branches small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.more-branches svg { margin-inline-start: auto; }

.branches-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
  text-align: center;
}
.branches-note svg { width: 20px; height: 20px; flex: none; color: var(--brand); }
.branches-note a { font-weight: 600; color: var(--brand); text-underline-offset: 4px; }

/* ---------- CTA ---------- */
.cta {
  padding-block: clamp(52px, 7vw, 84px);
  background: var(--brand-deep);
  background-image:
    radial-gradient(60% 120% at 0% 0%, rgba(210, 56, 94, .45) 0%, rgba(210, 56, 94, 0) 60%),
    radial-gradient(50% 120% at 100% 100%, rgba(245, 142, 172, .25) 0%, rgba(245, 142, 172, 0) 60%);
  color: #fff;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.cta h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.cta p { margin-top: 8px; font-size: 1.1rem; color: rgba(255, 255, 255, .82); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Contact ---------- */
.contacts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 26px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
  .contact:hover { transform: translateY(-3px); border-color: var(--brand-light); box-shadow: var(--shadow); }
}
.contact-ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: var(--blush);
  color: var(--brand);
}
.contact-ico svg { width: 26px; height: 26px; }
.ci-wa { background: var(--wa); color: #fff; }
.contact-label { font-size: .9rem; color: var(--muted); }
.contact-value {
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, .78);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  align-items: center;
  gap: 28px 40px;
  padding-block: 48px 36px;
}
.footer-brand img { width: 190px; }
.footer-brand p { max-width: 30em; margin-top: 14px; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { color: #fff; font-weight: 500; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background-color .15s ease;
}
.footer-social a:hover { background: var(--brand-mid); }
.footer-social svg { width: 22px; height: 22px; }
.footer-bottom {
  padding-block: 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .2s ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- Motion (only if the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero-ecg path,
  .brand-card-ecg path,
  .home-panel-ecg path {
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    animation: ecg-draw 4.5s ease-in-out infinite;
  }
  .brand-card-ecg path { animation-delay: .6s; }

  .float-badge { animation: float 6s ease-in-out infinite; }
  .fb-branch { animation-delay: -2s; }
  .fb-offer { animation-delay: -4s; }

  .wa-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--wa);
    animation: ping 2.4s ease-out infinite;
  }
}

@keyframes ecg-draw {
  0% { stroke-dashoffset: 1600; }
  55%, 100% { stroke-dashoffset: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ping {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .features, .tests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .site-nav { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 560px; margin-inline: auto; }

  .home-grid { grid-template-columns: 1fr; }
  .home-visual { order: -1; }
  .home-panel { aspect-ratio: auto; min-height: 280px; }

  .offers-inner { grid-template-columns: 1fr; }

  .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }

  .topbar-extra { display: none; }
  .brand img { height: 40px; }
  .header-inner .btn-sm span { display: none; }
  .header-inner .btn-sm { padding: 10px; }

  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { padding: 28px 0; }
  .fb-home { inset-inline-start: 0; }
  .fb-offer { inset-inline-end: 0; top: auto; bottom: 0; }
  .fb-branch { display: none; }

  .features, .tests { grid-template-columns: 1fr; }
  .tests-cta .btn { flex: 1 1 100%; }

  .branches { grid-template-columns: 1fr; }

  .cta-actions .btn, .offers-actions .btn, .home-copy > .btn { flex: 1 1 100%; width: 100%; }

  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts li:last-child { grid-column: 1 / -1; }

  .footer-bottom { padding-bottom: 92px; } /* room for the floating button */
  .wa-float { width: 54px; height: 54px; bottom: 16px; inset-inline-end: 16px; }
}

@media print {
  .topbar, .site-header, .wa-float, .hero-visual, .home-visual { display: none !important; }
}
