/* Landing: اکو قلب — standalone page (no site bundle). RTL, mobile-first. */
:root {
    --c-primary: #0e7490;
    --c-primary-dark: #155e75;
    --c-primary-soft: #e0f2f6;
    --c-accent: #15803d;
    --c-accent-dark: #166534;
    --c-cyan: #22d3ee;
    --c-deep: #04222b;
    --c-deep-2: #0a4656;
    --c-ink: #0f2e33;
    --c-muted: #475569;
    --c-bg: #f4fbfc;
    --c-card: #ffffff;
    --c-line: #d3e7ec;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(14, 116, 144, .10);
    --font: IRANYekan, Tahoma, sans-serif;
    --font-bold: IRANYekan-bold, IRANYekan, Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body.echo { margin: 0; font: 400 16px/1.9 var(--font); color: var(--c-ink); background: var(--c-bg); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
:where(.echo) img, :where(.echo) svg { max-width: 100%; }
:where(.echo) img { height: auto; display: block; }
:where(.echo) a { color: inherit; }
:where(.echo) :is(h1, h2, h3) { font-family: var(--font-bold); font-weight: 700; line-height: 1.5; margin: 0; }
:where(.echo) p { margin: 0; }
:where(.echo) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.section { padding-block: 48px; }
.section--white { background: var(--c-card); }
.section__head { max-width: 700px; margin-bottom: 28px; }
.section__head h2 { font-size: clamp(1.4rem, 1.05rem + 1.6vw, 2.1rem); }
.section__head p { color: var(--c-muted); margin-top: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--c-primary-dark); background: var(--c-primary-soft); padding: 2px 12px; border-radius: 999px; margin-bottom: 10px; }
.ecg-line { height: 40px; opacity: .45; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='40' viewBox='0 0 240 40'%3E%3Cpath d='M0 20h70l6 6 6-6h20l6 4 8-18 8 30 6-16h20l6-6 6 6h78' fill='none' stroke='%230e7490' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-x center; }

/* Focus + skip link */
.echo :focus-visible { outline: 3px solid #22d3ee; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

/* Buttons (min 44px touch). Selectors use .echo prefix so they beat `.echo a`. */
.echo .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 2px solid transparent; font: 700 1rem/1 var(--font-bold); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.echo .btn .ic { font-size: 20px; }
.echo .btn--primary { background: var(--c-accent); color: #fff; box-shadow: 0 8px 20px rgba(21, 128, 61, .3); }
.echo .btn--primary:hover { background: var(--c-accent-dark); transform: translateY(-1px); }
.echo .btn--ghost { background: #fff; color: var(--c-primary-dark); border-color: var(--c-primary); }
.echo .btn--ghost:hover { background: var(--c-primary-soft); }
.echo .btn--glass { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); }
.echo .btn--glass:hover { background: rgba(255, 255, 255, .18); }
.echo .btn--block { width: 100%; }

/* Header + nav */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); }
.top__in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.top__logo img { height: 46px; width: auto; }
.nav { position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: 0 16px 24px rgba(4, 34, 43, .12); padding: 8px 16px 18px; display: none; }
.nav.open { display: block; }
.nav a { display: flex; align-items: center; min-height: 48px; text-decoration: none; border-bottom: 1px solid var(--c-line); font-family: var(--font-bold); }
.nav a[aria-current] { color: var(--c-accent); }
.nav__cta { display: grid; gap: 10px; margin-top: 14px; }
.nav .btn { border-bottom: 2px solid transparent; }
.top__act { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.top__tel { display: none; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-bold); color: var(--c-primary-dark); min-height: 44px; }
.top__tel .ic { font-size: 18px; }
.echo .top .btn { min-height: 44px; padding-inline: 14px; font-size: .92rem; display: none; }
.burger { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; cursor: pointer; color: var(--c-ink); }
.burger .ic { font-size: 24px; }
.burger .x { display: none; }
.burger[aria-expanded="true"] .x { display: block; }
.burger[aria-expanded="true"] .b { display: none; }

/* HERO — dark stage, 3D layers, live ECG */
.hero { position: relative; isolation: isolate; color: #fff; background: radial-gradient(900px 500px at 80% 0%, #0f6b80 0%, transparent 60%), linear-gradient(160deg, var(--c-deep) 0%, var(--c-deep-2) 100%); padding-block: 28px 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask: radial-gradient(70% 80% at 60% 40%, #000 30%, transparent 100%); mask: radial-gradient(70% 80% at 60% 40%, #000 30%, transparent 100%); }
.hero__ecg { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 90px; z-index: -1; opacity: .5; }
.hero__ecg path { fill: none; stroke: var(--c-cyan); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px var(--c-cyan)); }
.hero__grid { display: grid; gap: 22px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); font-size: .85rem; color: #d6f3f8; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); }
.hero h1 { font-size: clamp(1.75rem, 1.1rem + 3.4vw, 3.1rem); margin-top: 14px; line-height: 1.45; }
.hero h1 span { background: linear-gradient(90deg, #67e8f9, #86efac); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: 14px; color: #c4e4ea; font-size: 1.02rem; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__cta .btn { flex: 1 1 200px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 32px; }
.hero__stats li { padding: 10px 8px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); text-align: center; }
.hero__stats b { display: block; font: 700 1.3rem/1.3 var(--font-bold); color: #fff; }
.hero__stats span { font-size: .76rem; color: #b6dce4; line-height: 1.4; display: block; }

.stage { position: relative; height: 340px; margin: 8px 4px 0; }
.stage__in { position: absolute; inset: 0; transition: transform .25s ease-out; }
.layer { position: absolute; }
.scan { inset-inline: 0; top: -2%; width: 100%; opacity: .9; }
.scan .sweep { transform-origin: 200px 14px; }
.heartbox { width: 58%; inset-inline-start: 0; top: 8%; filter: drop-shadow(0 18px 30px rgba(34, 211, 238, .35)); }
.doc { width: 42%; inset-inline-end: 2%; bottom: 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 24px 40px rgba(0, 0, 0, .45); background: #0a4656; aspect-ratio: 4 / 5; }
.doc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.doc figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 22px 10px 8px; font-size: .75rem; line-height: 1.5; background: linear-gradient(transparent, rgba(4, 34, 43, .92)); }
.doc figcaption b { display: block; font-family: var(--font-bold); font-size: .85rem; }
.glass { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .3); border-radius: 14px; padding: 8px 12px; color: #fff; }
.g-ecg { inset-inline-start: 0; bottom: 3%; width: 52%; }
.g-ecg svg { width: 100%; height: 34px; display: block; }
.g-ecg path { fill: none; stroke: #4ade80; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.g-ecg small, .g-chip small { display: block; font-size: .72rem; color: #cdeaf0; line-height: 1.4; }
.g-chip { inset-inline-end: 3%; top: 0; text-align: center; }
.g-chip b { font: 700 1.25rem/1.2 var(--font-bold); }

/* Info bar under hero */
.bar-info { background: #fff; border-bottom: 1px solid var(--c-line); }
.bar-info ul { display: grid; grid-template-columns: 1fr 1fr; }
.bar-info li { display: flex; gap: 10px; align-items: center; padding: 14px 8px; font-size: .88rem; line-height: 1.5; }
.bar-info .ic { font-size: 24px; color: var(--c-primary); }
.bar-info b { display: block; font-family: var(--font-bold); }

.card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lead { padding: 20px; }
.lead h2 { font-size: 1.2rem; }
.lead p.sub { color: var(--c-muted); font-size: .92rem; margin: 4px 0 14px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: .9rem; margin-bottom: 4px; }
.field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #94a9b0; border-radius: 10px; font: inherit; background: #fff; color: var(--c-ink); }
.field input:focus { border-color: var(--c-primary); }
.lead__msg { min-height: 24px; margin-top: 10px; font-size: .92rem; }
.lead__msg.ok { color: var(--c-accent-dark); }
.lead__msg.err { color: #b91c1c; }
.lead__alt { margin-top: 6px; font-size: .9rem; color: var(--c-muted); text-align: center; }
.lead__alt a { color: var(--c-primary-dark); font-weight: 700; }
.leadband { display: grid; gap: 20px; align-items: center; }
.leadband h2 { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); }
.leadband p { color: var(--c-muted); margin-top: 8px; }

/* Grids + tiles */
.grid { display: grid; gap: 14px; }
.tile { padding: 20px; position: relative; overflow: hidden; }
.tile h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.tile p { color: var(--c-muted); font-size: .95rem; }
.ico { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #e0f2f6, #d1f5e0); color: var(--c-primary-dark); display: grid; place-items: center; font-size: 26px; }
.tile--link { text-decoration: none; display: block; transition: transform .2s, box-shadow .2s; }
.tile--link:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(14, 116, 144, .18); }
.tile--link .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-weight: 700; color: var(--c-primary-dark); font-size: .92rem; }
.note { margin-top: 24px; padding: 14px 18px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; font-size: .93rem; }

/* Anatomy */
.anat { display: grid; gap: 24px; align-items: center; }
.anat__art { position: relative; max-width: 380px; margin-inline: auto; width: 100%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #e0f7fb 0%, #f4fbfc 62%, transparent 63%); }
.anat__art > svg { position: absolute; inset: 8%; width: 84%; height: 84%; filter: drop-shadow(0 14px 22px rgba(14, 116, 144, .3)); }
.hot { position: absolute; width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; background: var(--c-accent); color: #fff; font: 700 .95rem/1 var(--font-bold); display: grid; place-items: center; cursor: pointer; transform: translate(-50%, -50%); box-shadow: 0 6px 14px rgba(0, 0, 0, .25); padding: 0; }
.hot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(21, 128, 61, .45); }
.hot.on { background: var(--c-primary-dark); transform: translate(-50%, -50%) scale(1.15); }
.anat__list { display: grid; gap: 10px; }
.anat__item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--c-line); background: #fff; cursor: pointer; text-align: start; font: inherit; width: 100%; color: inherit; }
.anat__item.on { border-color: var(--c-primary); background: var(--c-primary-soft); }
.anat__item .n { width: 30px; height: 30px; border-radius: 50%; background: var(--c-accent); color: #fff; display: grid; place-items: center; font-family: var(--font-bold); flex: none; }
.anat__item b { display: block; font-family: var(--font-bold); }
.anat__item span.t { color: var(--c-muted); font-size: .93rem; display: block; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 12px; position: relative; }
.step { position: relative; padding: 18px; padding-inline-start: 74px; min-height: 88px; }
.step::before { counter-increment: s; content: counter(s, persian); position: absolute; inset-inline-start: 16px; top: 16px; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), #0891b2); color: #fff; display: grid; place-items: center; font-family: var(--font-bold); box-shadow: 0 6px 14px rgba(14, 116, 144, .35); }
.step h3 { font-size: 1.02rem; }
.step p { color: var(--c-muted); font-size: .94rem; margin-top: 4px; }
.facts { display: grid; gap: 10px; margin-top: 20px; }
.fact { padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.fact .ic { font-size: 28px; color: var(--c-accent); }
.fact b { font-family: var(--font-bold); }
.fact span { color: var(--c-muted); font-size: .9rem; display: block; line-height: 1.6; }

/* Doctor */
.doctor { display: grid; gap: 26px; align-items: start; }
.doctor__media { position: relative; max-width: 380px; width: 100%; margin-inline: auto; perspective: 900px; }
.doctor__photo { border-radius: 22px; overflow: hidden; background: var(--c-primary-soft); aspect-ratio: 4 / 5; box-shadow: 0 24px 44px rgba(4, 34, 43, .25); transform: rotateY(-5deg); }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.doctor__badge { position: absolute; inset-inline-end: -8px; bottom: 18px; background: var(--c-accent); color: #fff; padding: 10px 14px; border-radius: 14px; font-family: var(--font-bold); font-size: .85rem; line-height: 1.5; box-shadow: 0 12px 22px rgba(21, 128, 61, .4); }
.doctor__badge b { display: block; font-size: 1.3rem; }
.promise { margin: 20px 0; padding: 16px 18px; border-radius: 12px; background: var(--c-primary-soft); border-inline-start: 4px solid var(--c-primary); font-family: var(--font-bold); }
.bignums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.bignums li { padding: 12px 6px; text-align: center; border-radius: 14px; background: linear-gradient(160deg, var(--c-deep), var(--c-deep-2)); color: #fff; }
.bignums b { display: block; font: 700 1.5rem/1.3 var(--font-bold); color: #86efac; }
.bignums span { font-size: .78rem; color: #cfe9ee; line-height: 1.4; display: block; }
.checks li { position: relative; padding-inline-start: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 18px; height: 18px; background: var(--c-accent); border-radius: 50%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.6 7.9l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.6 7.9l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Gallery */
.gallery { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.gallery figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--c-line); background: var(--c-primary-soft); aspect-ratio: 4 / 5; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 22px 12px 8px; font-size: .85rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }

/* Reviews: video carousel + quotes */
.car { position: relative; }
.car__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 4px; -webkit-overflow-scrolling: touch; }
.car__track::-webkit-scrollbar { display: none; }
.car__item { flex: 0 0 62%; scroll-snap-align: center; }
.video { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--c-line); background: #000; aspect-ratio: 9 / 16; box-shadow: var(--shadow); }
.video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.car__nav { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.car__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--c-line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--c-primary-dark); font-size: 22px; }
.car__btn:hover { background: var(--c-primary-soft); }
.quote { padding: 20px; margin: 0; }
.quote p { font-size: 1rem; }
.quote footer { margin-top: 12px; color: var(--c-muted); font-size: .9rem; }
.stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 6px; }

/* Long-form content from DB (Model.Data): clipped with fade + "more" */
.prose-wrap { position: relative; max-width: 860px; margin-inline: auto; }
.prose { overflow: hidden; transition: max-height .4s ease; }
.prose.is-clipped { max-height: 300px; }
.prose.is-clipped::after { content: ""; position: absolute; inset-inline: 0; bottom: 56px; height: 140px; pointer-events: none; background: linear-gradient(rgba(244, 251, 252, 0), var(--c-bg) 85%); }
.prose-more { display: flex; justify-content: center; margin-top: 12px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3, .prose h4 { margin: 1.4em 0 .5em; line-height: 1.6; }
.prose h2 { font-size: 1.35rem; }
.prose h3 { font-size: 1.15rem; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--c-primary-dark); text-decoration: underline; }
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; border-radius: 12px; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; }
.prose td, .prose th { border: 1px solid var(--c-line); padding: 6px 10px; }

/* Info */
.info { display: grid; gap: 12px; }
.info__row { display: flex; gap: 14px; padding: 18px; }
.info__row .ico { flex: none; }
.info__row h3 { font-size: 1rem; }
.info__row p { color: var(--c-muted); font-size: .95rem; }
.info__row a { color: var(--c-primary-dark); font-weight: 700; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background: var(--c-card); border: 1px solid var(--c-line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; padding-inline-end: 48px; position: relative; font-family: var(--font-bold); min-height: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 18px; top: 50%; translate: 0 -50%; font-size: 1.5rem; color: var(--c-primary); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 18px 16px; color: var(--c-muted); }
.faq .ans p + p { margin-top: 8px; }

/* Final CTA */
.final { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; background: linear-gradient(160deg, var(--c-deep), var(--c-deep-2)); padding-block: 56px; }
.final .ecg-line { position: absolute; inset-inline: 0; bottom: 14px; opacity: .3; z-index: -1; filter: hue-rotate(10deg) brightness(3); }
.final h2 { font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.1rem); }
.final p { color: #c4e4ea; margin: 10px auto 22px; max-width: 560px; }
.final .hero__cta { justify-content: center; margin: 0; }

.foot { padding: 24px 0 100px; color: var(--c-muted); font-size: .88rem; text-align: center; }
.foot a { color: var(--c-primary-dark); }

/* Mobile sticky action bar */
.bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -6px 18px rgba(0, 0, 0, .08); }
.echo .bar .btn { flex: 1; min-height: 48px; padding-inline: 10px; white-space: nowrap; font-size: .95rem; }
.echo .bar .btn--ghost { flex: 0 0 auto; padding-inline: 20px; }

[hidden] { display: none !important; }

@media (min-width: 560px) {
    .car__item { flex-basis: 38%; }
    .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
    .section { padding-block: 64px; }
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .facts { grid-template-columns: repeat(3, 1fr); }
    .info { grid-template-columns: repeat(2, 1fr); }
    .bar-info ul { grid-template-columns: repeat(4, 1fr); }
    .leadband { grid-template-columns: 1fr 1fr; gap: 40px; }
    .stage { height: 420px; margin: 8px 0 0; perspective: 1100px; }
    .stage__in { transform-style: preserve-3d; transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -8deg)); }
    .scan { transform: translateZ(-70px); }
    .heartbox { transform: translateZ(30px); inset-inline-start: 4%; width: 64%; top: 12%; }
    .doc { transform: translateZ(90px); width: 44%; inset-inline-end: 0; }
    .g-ecg { transform: translateZ(120px); width: 46%; bottom: 6%; }
    .g-chip { transform: translateZ(130px); inset-inline-end: 4%; top: 2%; }
    .hero__cta .btn { flex: 0 0 auto; }
}
@media (min-width: 1000px) {
    .section { padding-block: 84px; }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .step { padding: 74px 18px 20px; }
    .step::before { inset-inline-start: 18px; }
    .doctor { grid-template-columns: 400px 1fr; gap: 56px; }
    .anat { grid-template-columns: 1fr 1fr; gap: 56px; }
    .car__item { flex-basis: 23%; }
    .bar { display: none; }
    .foot { padding-bottom: 32px; }
    .hero { padding-block: 56px 96px; }
    .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
    .stage { height: 540px; }
    .hero__stats b { font-size: 1.6rem; }
    .burger { display: none; }
    .nav { position: static; display: flex !important; gap: 4px; padding: 0; border: 0; box-shadow: none; background: none; margin-inline-start: 16px; }
    .nav a { border: 0; padding: 0 12px; border-radius: 10px; font-size: .95rem; font-family: var(--font); }
    .nav a:hover { background: var(--c-primary-soft); }
    .nav a[aria-current] { background: var(--c-primary-soft); color: var(--c-primary-dark); font-family: var(--font-bold); }
    .nav__cta { display: none; }
    .echo .top .btn { display: inline-flex; }
    .top__tel { display: inline-flex; }
}

/* Motion (only when allowed) */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease-out, transform .45s ease-out; }
    .reveal.in { opacity: 1; transform: none; }
    .hero__ecg path { animation: draw 5s linear infinite; }
    .g-ecg path { animation: draw2 2.4s linear infinite; }
    .scan .sweep { animation: sweep 4s ease-in-out infinite alternate; }
    .heartbox svg { animation: beat 1.1s ease-in-out infinite; transform-origin: 50% 55%; }
    .glass { animation: bob 5s ease-in-out infinite; }
    .g-chip { animation-delay: -2s; }
    .pill i { animation: ping 1.8s infinite; }
    .hot::after { animation: ping2 1.8s infinite; }
}
@keyframes draw { 0% { stroke-dashoffset: 100; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes draw2 { 0% { stroke-dashoffset: 100; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes sweep { from { transform: rotate(-30deg); } to { transform: rotate(30deg); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.06); } 28% { transform: scale(1); } 42% { transform: scale(1.04); } 56% { transform: scale(1); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }
@keyframes ping2 { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .echo .btn, .stage__in { transition: none; }
    .hero__ecg path, .g-ecg path { stroke-dashoffset: 0; }
}
