/* ==========================================================================
   Darman Tus — سامانه طراحی وب‌سایت
   سرمه‌ای عمیق (اعتبار) · فیروزه‌ای پزشکی (تعامل) · سفید و خاکستری روشن (تنفس)
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2-variations"),
       url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #071528;
  --navy-900: #0B1F3A;
  --navy-800: #12294A;
  --navy-700: #1B3A66;
  --navy-600: #2A4E80;
  --teal-700: #0A6B6A;
  --teal-600: #0B7C7A;
  --teal-500: #12A19E;
  --teal-400: #2EC4BE;
  --teal-300: #7FDCD7;
  --teal-50:  #E8F7F6;
  --green-600: #2C8A5E;
  --green-50: #EAF6EF;
  --red-600: #B42318;
  --red-50: #FDECEA;
  --amber-50: #FFF7E6;
  --amber-700: #8A5A00;

  --white: #FFFFFF;
  --gray-25: #FAFBFC;
  --gray-50: #F4F7FA;
  --gray-100: #EBF0F5;
  --gray-200: #DCE3EB;
  --gray-300: #C5D0DC;
  --gray-500: #6B7B8E;
  --gray-600: #526376;
  --ink: #142538;
  --ink-soft: #3B4C60;

  --font: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 1px rgba(11, 31, 58, .04);
  --shadow: 0 10px 30px -12px rgba(11, 31, 58, .18);
  --shadow-lg: 0 30px 60px -24px rgba(11, 31, 58, .28);
  --header-h: 76px;
  --container: 1200px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) { :root { --gutter: 28px; } }

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.95;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.5; color: var(--navy-900); font-weight: 800; letter-spacing: -.005em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.9rem); line-height: 1.45; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.15rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--navy-700); }
ul, ol { padding: 0; margin: 0; list-style: none; }
address { font-style: normal; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal-300); color: var(--navy-900); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.skip-link {
  position: absolute; top: -100px; right: 16px; z-index: 200;
  background: var(--navy-900); color: var(--white); padding: 10px 18px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- دکمه‌ها ---------- */
.btn {
  --btn-bg: var(--navy-900); --btn-fg: var(--white); --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .6em 1.45em;
  font: inherit; font-weight: 700; font-size: .975rem; line-height: 1.4;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon-arrow, .link-arrow:hover .icon { transform: translateX(-3px); }
.btn-primary:hover { --btn-bg: var(--navy-700); }
.btn-accent { --btn-bg: var(--teal-600); }
.btn-accent:hover { --btn-bg: var(--teal-700); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--navy-900); --btn-bd: var(--gray-300); }
.btn-outline:hover { --btn-bg: var(--white); --btn-bd: var(--navy-900); }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, .4); }
.btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-bd: var(--white); }
.btn-sm { min-height: 42px; padding: .45em 1.15em; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: .7em 1.8em; font-size: 1.02rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; color: var(--teal-700); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--navy-900); }

/* ---------- برچسب‌ها و سرفصل‌ها ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-size: .88rem; font-weight: 700; color: var(--teal-700); letter-spacing: 0;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--teal-300); }

.section { padding-block: clamp(64px, 5vw + 40px, 112px); position: relative; }
.section-alt { background: var(--gray-50); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 3vw + 16px, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.lead { font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); color: var(--ink-soft); line-height: 2.05; }
.note {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .9rem; color: var(--gray-600); line-height: 1.85; margin: 0;
}
.note .icon { margin-top: .3em; color: var(--teal-600); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: var(--teal-50); color: var(--teal-700); line-height: 1.7;
}
.chip-muted { background: var(--gray-100); color: var(--gray-600); }

/* ---------- سربرگ ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
/* پس‌زمینه شیشه‌ای روی شبه‌عنصر تا منوی ثابت موبایل داخل سربرگ محصور نشود */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.site-header.is-scrolled { border-color: var(--gray-200); box-shadow: 0 6px 24px -18px rgba(11, 31, 58, .5); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
/* چیدمان سربرگ: منوی فارسی در سمت راست، لوگو در سمت چپ (ترتیب HTML دست‌نخورده می‌ماند) */
.brand { display: block; flex: none; order: 3; }
.brand-logo { width: 132px; height: auto; }
@media (min-width: 1100px) { .brand-logo { width: 150px; } }

.main-nav { order: 1; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--ink); font-weight: 600; font-size: .96rem; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--teal-700); background: var(--gray-50); }
.nav-link.is-active { color: var(--navy-900); }
.nav-link.is-active::after {
  content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px;
  background: var(--teal-500);
}
.sub-toggle {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-inline-start: -10px;
  background: none; border: 0; border-radius: 8px; color: var(--gray-600); cursor: pointer;
}
.sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 280px; padding: 8px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.sub-menu a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 500;
}
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--teal-50); color: var(--teal-700); }
@media (hover: hover) and (min-width: 1024px) {
  .has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: none; }
}
.has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-cta { display: none; }
.header-cta { flex: none; order: 2; margin-inline-start: auto; }

.nav-toggle {
  display: none; place-items: center; width: 46px; height: 46px; flex: none;
  background: var(--gray-50); color: var(--navy-900);
  border: 1px solid var(--gray-200); border-radius: 12px; cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(7, 21, 40, .45); }

@media (max-width: 1023.98px) {
  .nav-toggle { display: inline-grid; order: 1; }
  .brand { margin-inline-start: auto; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; z-index: 95; top: 0; bottom: 0; right: 0;
    width: min(360px, 88vw); margin: 0; padding: calc(var(--header-h) + 8px) 20px 28px;
    background: var(--white); box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; gap: 20px; overflow-y: auto;
    transform: translateX(105%); visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-open .nav-toggle { position: relative; z-index: 96; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-item { flex-wrap: wrap; }
  .nav-link { flex: 1; padding: 13px 14px; font-size: 1.02rem; }
  .nav-link.is-active { background: var(--teal-50); color: var(--teal-700); }
  .nav-link.is-active::after { display: none; }
  .sub-toggle { width: 46px; height: 46px; margin: 0; }
  .sub-menu {
    position: static; flex-basis: 100%; min-width: 0; padding: 0 12px 0 0; margin-top: 2px;
    border: 0; border-right: 2px solid var(--gray-200); border-radius: 0; box-shadow: none;
    display: none; opacity: 1; visibility: visible; transform: none;
  }
  .has-sub.is-open .sub-menu { display: block; }
  .nav-cta { display: inline-flex; width: 100%; }
}

/* ---------- قهرمان صفحه اصلی ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 15% 30%, rgba(18, 161, 158, .10), transparent 65%),
    linear-gradient(180deg, var(--gray-50), var(--white));
  padding-block: clamp(40px, 4vw + 20px, 88px) clamp(56px, 5vw + 24px, 104px);
}
.hero-grid-bg, .page-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11, 31, 58, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 31, 58, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-inner { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero h1 { margin-bottom: 22px; font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.65rem); }
.hero h1 .nobr { white-space: nowrap; }
.hero h1 .accent { display: block; color: var(--teal-600); }
.hero-text .lead { max-width: 640px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.hero-actions .link-arrow { padding-inline: 8px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--gray-200); }
.hero-facts li { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink-soft); font-weight: 500; }
.hero-facts .icon { color: var(--teal-600); }

.hero-visual { position: relative; }
.hero-frame {
  position: relative; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #F6F8FB, #EEF2F6);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1448 / 1086;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .96);
  border: 1px solid var(--gray-200); box-shadow: var(--shadow); font-size: .86rem; line-height: 1.6;
}
.hero-tag strong { display: block; color: var(--navy-900); font-size: .92rem; }
.hero-tag span { color: var(--gray-600); }
.hero-tag .tag-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--teal-50); color: var(--teal-700); }
.hero-tag--bottom { bottom: -18px; right: 24px; }
@media (max-width: 599.98px) { .hero-tag--bottom { position: static; margin: -26px 14px 0; } }

.hero-ecg { position: absolute; left: 0; right: 0; bottom: 18px; height: 70px; opacity: .9; }

/* ---------- خط ECG: ضربان قرمز متحرک از چپ به راست ---------- */
:root { --ecg-red: #E5383B; }
.ecg { width: 100%; height: 60px; overflow: visible; }
.ecg path { fill: none; stroke: var(--ecg-red); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.ecg .ecg-base { opacity: .3; }
/* حرکت ضربان با ماسک متحرک داخل ecg.php انجام می‌شود (سرعت افقی ثابت) */
.ecg .ecg-pulse {
  stroke-width: 2.4;
  filter: drop-shadow(0 0 4px rgba(229, 56, 59, .75));
}
@media (prefers-reduced-motion: reduce) {
  .ecg .ecg-pulse { display: none; }
  .ecg .ecg-base { opacity: .8; }
}

/* ---------- معرفی ---------- */
.intro-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1.2fr 1fr; gap: 72px; } }
.fact-card {
  padding: 28px; border-radius: var(--radius-lg); background: var(--gray-50); border: 1px solid var(--gray-200);
}
.fact-card dl { margin: 0; display: grid; gap: 0; }
.fact-card div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--gray-300); }
.fact-card div:last-child { border-bottom: 0; }
.fact-card dt { color: var(--gray-600); font-size: .9rem; }
.fact-card dd { margin: 0; font-weight: 700; color: var(--navy-900); }

/* ---------- کارت محصول ---------- */
.product-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; } }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--gray-300); }
.product-card .product-media { border-radius: 0; border: 0; border-bottom: 1px solid var(--gray-200); aspect-ratio: 4 / 3; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 30px; }
.product-body h3 { font-size: 1.35rem; margin-bottom: 2px; }
.product-body h3 a { color: inherit; text-decoration: none; }
.product-body h3 a::after { content: ""; position: absolute; inset: 0; }
.product-en { display: block; margin-bottom: 14px; color: var(--gray-500); font-size: .88rem; font-weight: 500; direction: ltr; text-align: right; }
.product-body p { color: var(--ink-soft); }
.product-body .link-arrow { margin-top: auto; position: relative; }

.product-media {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #F6F8FB, #ECF1F6); border: 1px solid var(--gray-200);
  aspect-ratio: 1448 / 1086;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media--illustration {
  background: radial-gradient(600px 300px at 70% 20%, rgba(46, 196, 190, .18), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-950));
  display: grid; place-items: center; color: var(--white);
}
.illus-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.illus-device {
  position: relative; width: 58%; aspect-ratio: 16 / 10; margin-bottom: 18%;
  border-radius: 22px; border: 1.5px solid rgba(127, 220, 215, .45);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  display: grid; grid-template-columns: 1fr auto; gap: 6%; padding: 6%;
}
.illus-screen { border-radius: 10px; background: rgba(7, 21, 40, .7); border: 1px solid rgba(127, 220, 215, .25); display: grid; align-items: center; padding: 0 6%; }
.illus-ecg { height: 44px; }

.illus-controls { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.illus-controls span { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(127, 220, 215, .6); }
.illus-controls span + span { border-color: rgba(255, 255, 255, .35); }
.illus-label { position: absolute; bottom: 7%; right: 7%; left: 7%; display: flex; flex-direction: column; gap: 2px; line-height: 1.6; }
.illus-label strong { font-size: 1.1rem; }
.illus-label span[dir] { color: var(--teal-300); font-size: .85rem; text-align: right; }
.illus-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; background: rgba(46, 196, 190, .15); color: var(--teal-300); }
.illus-badge .icon { width: 14px; height: 14px; }

/* ---------- دستاوردها ---------- */
/* خط ECG روی مرز بالای بخش می‌نشیند و نیمی از آن روی بخش قبلی است؛ پس برش فقط افقی است */
.stats-section { background: var(--navy-900); color: var(--white); overflow: hidden; overflow: clip visible; }
.stats-section h2 { color: var(--white); }
.stats-section .section-head p { color: rgba(255, 255, 255, .72); }
/* خط پایه ECG در y=48 از ۸۰ است؛ top منفی همان مقدار، خط پایه را دقیقاً روی مرز دو بخش می‌گذارد */
.stats-section .stats-ecg { position: absolute; top: -48px; left: 0; right: 0; z-index: 1; height: 80px; opacity: .85; pointer-events: none; }
.stats-grid { position: relative; display: grid; gap: 1px; background: rgba(255, 255, 255, .1); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(5, 1fr); } }
.stat { padding: 28px 24px 26px; background: var(--navy-900); display: flex; flex-direction: column; gap: 6px; }
.stat .icon { width: 28px; height: 28px; color: var(--teal-400); margin-bottom: 10px; }
.stat-value { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); font-weight: 800; color: var(--teal-300); line-height: 1.3; }
.stat-label { font-weight: 700; font-size: 1rem; line-height: 1.7; }
.stat-note { font-size: .82rem; color: rgba(255, 255, 255, .62); line-height: 1.7; }
.stats-foot { margin-top: 24px; font-size: .85rem; color: rgba(255, 255, 255, .62); max-width: 860px; }

/* ---------- کارت‌های مزیت ---------- */
.card-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .card-grid.cols-5 { grid-template-columns: repeat(6, 1fr); } .card-grid.cols-5 > :nth-child(-n+3) { grid-column: span 2; } .card-grid.cols-5 > :nth-child(n+4) { grid-column: span 3; } }
.feature-card {
  position: relative; padding: 28px 26px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--gray-200);
  transition: border-color .25s, box-shadow .25s;
}
.feature-card:hover { border-color: var(--teal-300); box-shadow: var(--shadow); }
.feature-card h3 { margin: 18px 0 8px; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.icon-tile {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--teal-50); color: var(--teal-700);
}
.icon-tile .icon { width: 26px; height: 26px; }
.feature-num { position: absolute; top: 24px; left: 26px; font-size: .85rem; font-weight: 800; color: var(--gray-300); }

/* ---------- کیفیت ---------- */
.quality-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .quality-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.pillar-list { display: grid; gap: 12px; }
.pillar-list li {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-weight: 700; color: var(--navy-900);
}
.pillar-list .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.pillar-list .icon-tile .icon { width: 22px; height: 22px; }
.pillar-index { margin-inline-start: auto; font-size: .8rem; color: var(--gray-500); font-weight: 700; }

/* ---------- مخاطبان ---------- */
.audience-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .audience-grid { grid-template-columns: repeat(5, 1fr); } }
.audience {
  padding: 26px 22px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--gray-200);
  display: flex; flex-direction: column; gap: 10px;
}
.audience .icon-tile { background: var(--navy-900); color: var(--teal-300); }
.audience h3 { margin: 8px 0 0; font-size: 1.02rem; }
.audience p { margin: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.85; }

/* ---------- فراخوان ---------- */
.cta-band {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(700px 360px at 10% 0%, rgba(46, 196, 190, .22), transparent 60%), linear-gradient(135deg, var(--navy-800), var(--navy-950));
  padding-block: clamp(56px, 5vw + 24px, 96px);
}
.cta-inner { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .cta-inner { grid-template-columns: 1.4fr auto; gap: 56px; } }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 680px; }

/* ---------- سربرگ صفحات داخلی ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(800px 380px at 12% 10%, rgba(46, 196, 190, .2), transparent 60%), linear-gradient(140deg, var(--navy-900), var(--navy-950));
  padding-block: clamp(36px, 3vw + 20px, 64px) clamp(64px, 5vw + 32px, 104px);
}
.page-hero-grid { background-image: linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px); }
.page-hero-inner { position: relative; }
.page-hero-inner > * { max-width: 860px; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero h1 .accent { color: var(--teal-300); }
.page-hero-lead { color: rgba(255, 255, 255, .8); font-size: clamp(1rem, .95rem + .3vw, 1.12rem); margin: 0; max-width: 760px; }
.page-hero-ecg { position: absolute; bottom: 14px; left: 0; right: 0; height: 60px; opacity: .85; }


.breadcrumbs { margin-bottom: 24px; font-size: .86rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .7); }
.breadcrumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .35); }
.breadcrumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal-300); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--teal-300); }

/* ---------- محتوای متنی ---------- */
.prose { max-width: 780px; }
.prose p { color: var(--ink-soft); font-size: 1.04rem; line-height: 2.1; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { list-style: none; display: grid; gap: 8px; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-inline-start: 22px; color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; right: 0; top: .85em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); }
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1.35fr 1fr; gap: 64px; } .split--even { grid-template-columns: 1fr 1fr; } }
.sticky-aside { position: sticky; top: calc(var(--header-h) + 24px); }

.quote-block {
  position: relative; margin: 0; padding: 28px 30px; border-radius: var(--radius-lg);
  background: var(--navy-900); color: var(--white);
}
.quote-block p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 1.05rem; line-height: 2.05; }
.quote-block .eyebrow { color: var(--teal-300); }

.mv-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.mv-card { padding: 34px 32px; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); background: var(--white); }
.mv-card h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 14px; }
.mv-card p { color: var(--ink-soft); margin: 0; line-height: 2.05; }

.values-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gray-200); }
.value h3 { margin: 0 0 4px; font-size: 1.05rem; }
.value p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* ---------- خط زمانی ---------- */
.timeline { position: relative; display: grid; gap: 0; max-width: 860px; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; right: 23px; width: 2px; background: linear-gradient(var(--teal-500), var(--gray-200)); }
.tl-item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 2px solid var(--teal-500); color: var(--teal-700); }
.tl-item--parent .tl-dot { border-color: var(--gray-300); color: var(--gray-600); }
.tl-dot .icon { width: 22px; height: 22px; }
.tl-card { padding: 20px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gray-200); }
.tl-date { display: inline-block; margin-bottom: 4px; font-weight: 800; color: var(--teal-700); font-size: .95rem; }
.tl-item--parent .tl-date { color: var(--gray-600); }
.tl-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.tl-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.tl-card .chip { margin-top: 12px; }

/* ---------- صفحه محصول ---------- */
.product-hero { padding-block: clamp(40px, 4vw + 16px, 80px); background: linear-gradient(180deg, var(--gray-50), var(--white)); position: relative; overflow: hidden; }
.product-hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .product-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.product-hero .breadcrumbs li, .product-hero .breadcrumbs a { color: var(--gray-600); }
.product-hero .breadcrumbs li + li::before { color: var(--gray-300); }
.product-hero .breadcrumbs [aria-current] { color: var(--teal-700); }
.product-hero .breadcrumbs a:hover { color: var(--teal-700); }
.product-hero h1 { margin-bottom: 6px; }
.product-hero .product-en { font-size: 1rem; margin-bottom: 20px; }
.product-hero .lead { margin-bottom: 28px; }

.subnav {
  position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .96);
  border-block: 1px solid var(--gray-200); backdrop-filter: blur(8px);
}
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.subnav a:hover, .subnav a.is-current { background: var(--teal-50); color: var(--teal-700); }

.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps.cols-4 { grid-template-columns: repeat(4, 1fr); } .steps.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--gray-200); }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-900); color: var(--white); font-weight: 800; font-size: .95rem; margin-bottom: 14px; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: .94rem; color: var(--ink-soft); }

.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.9; color: var(--ink); }
.check-list .icon { margin-top: .3em; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); }

.pending-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .pending-grid { grid-template-columns: repeat(3, 1fr); } }
.pending-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px dashed var(--gray-300); }
.pending-card h3 { margin: 6px 0 0; font-size: 1.05rem; }
.pending-card p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.pending-card .chip { align-self: flex-start; }

.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: right; border-bottom: 1px solid var(--gray-200); }
.spec-table th { width: 40%; color: var(--gray-600); font-weight: 600; background: var(--gray-50); }

.callout {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius);
  background: var(--amber-50); border: 1px solid #F3D9A4; color: #5B3D00;
}
.callout .icon { width: 26px; height: 26px; color: var(--amber-700); margin-top: 2px; }
.callout strong { display: block; color: #4A3200; margin-bottom: 2px; }
.callout p { margin: 0; line-height: 1.9; }
.callout--info { background: var(--teal-50); border-color: #BFE7E4; color: var(--navy-800); }
.callout--info .icon { color: var(--teal-700); }
.callout--info strong { color: var(--navy-900); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--gray-200); font-size: .9rem; font-weight: 600; color: var(--navy-800); }

.related { display: grid; gap: 20px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: var(--gray-50); border: 1px solid var(--gray-200); }
@media (min-width: 768px) { .related { grid-template-columns: 220px 1fr; } }
.related .product-media { aspect-ratio: 4 / 3; }

/* ---------- فرایند ---------- */
.process { display: grid; gap: 16px; counter-reset: p; }
@media (min-width: 768px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(6, 1fr); gap: 0; } }
.process-step { position: relative; padding: 24px 20px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
@media (min-width: 1100px) {
  .process-step { border-radius: 0; border-left-width: 0; }
  .process-step:first-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
  .process-step:last-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); border-left-width: 1px; }
  .process-step:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; left: -9px; z-index: 1; width: 16px; height: 16px;
    background: var(--white); border-top: 1px solid var(--gray-200); border-left: 1px solid var(--gray-200);
    transform: rotate(-45deg);
  }
}
.process-step .step-num { width: 32px; height: 32px; font-size: .85rem; background: var(--teal-600); }
.process-step .icon-tile { width: 44px; height: 44px; margin-bottom: 14px; }
.process-step h3 { font-size: 1rem; margin-bottom: 6px; }
.process-step p { margin: 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.85; }

/* ---------- تماس ---------- */
.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.5fr 1fr; gap: 48px; } }
.form-card { padding: clamp(22px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--gray-200); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.45rem; }
.form-grid { display: grid; gap: 18px 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: .93rem; color: var(--navy-900); }
.req { color: var(--red-600); margin-inline-start: 2px; }
.optional { color: var(--gray-500); font-weight: 500; font-size: .82rem; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--ink); line-height: 1.7;
  background: var(--gray-25); border: 1.5px solid var(--gray-200); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.textarea { min-height: 150px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526376' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center; background-size: 18px;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--gray-300); }
.input:focus, .select:focus, .textarea:focus { outline: none; background: var(--white); border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(18, 161, 158, .15); }
.input[dir="ltr"] { text-align: left; }
.input[dir="ltr"]::placeholder { text-align: right; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red-600); background: #FFFBFA; }
.field-error { display: flex; gap: 6px; align-items: center; color: var(--red-600); font-size: .85rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.field-hint { color: var(--gray-500); font-size: .82rem; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .94rem; line-height: 1.9; }
.checkbox input { flex: none; width: 20px; height: 20px; margin-top: .3em; accent-color: var(--teal-600); }
.hp-field { position: absolute !important; right: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.form-actions .note { flex: 1; min-width: 220px; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .btn .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; margin-bottom: 22px; line-height: 1.9; }
.alert .icon { width: 22px; height: 22px; margin-top: .25em; }
.alert-success { background: var(--green-50); color: #1D5C3F; border: 1px solid #BFE3CF; }
.alert-error { background: var(--red-50); color: #8A1C13; border: 1px solid #F5C6C1; }
.alert strong { display: block; }
.alert p { margin: 0; }

.info-card { padding: 28px; border-radius: var(--radius-lg); background: var(--navy-900); color: var(--white); }
.info-card h2 { color: var(--white); font-size: 1.25rem; }
.info-list { display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon-tile { width: 42px; height: 42px; border-radius: 12px; background: rgba(46, 196, 190, .14); color: var(--teal-300); flex: none; }
.info-list .icon-tile .icon { width: 20px; height: 20px; }
.info-list span { display: block; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.info-list strong, .info-list address, .info-list a { color: var(--white); font-weight: 600; line-height: 1.85; }
.info-list a { text-decoration: none; }
.info-list a:hover { color: var(--teal-300); }
.map-frame { margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- پرسش‌های متداول ---------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--teal-300); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700; color: var(--navy-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--teal-600); transition: transform .2s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--ink-soft); line-height: 2.05; }
.faq-item .faq-a p { margin: 0; }

/* ---------- پاورقی ---------- */
.site-footer { position: relative; background: var(--navy-950); color: rgba(255, 255, 255, .75); padding-top: 72px; font-size: .94rem; overflow: hidden; overflow: clip visible; }
/* خط پایه ECG در y=48 از ۸۰ است (۳۰px از ۵۰px)؛ top منفی همان مقدار، خط پایه را روی مرز فوتر و بخش بالایی می‌گذارد */
.footer-ecg { position: absolute; top: -30px; left: 0; right: 0; z-index: 1; height: 50px; opacity: .85; pointer-events: none; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 44px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr .8fr .9fr 1.4fr; gap: 48px; } }
.footer-logo { display: inline-block; padding: 14px 18px; border-radius: 14px; background: var(--white); margin-bottom: 18px; }
.footer-logo .brand-logo { width: 150px; }
.footer-brand p { max-width: 340px; line-height: 2; }
.footer-title { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer-col a:hover { color: var(--teal-300); text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.95; }
.footer-contact .icon { margin-top: .35em; color: var(--teal-400); width: 18px; height: 18px; }
.footer-badges { display: flex; gap: 10px; margin-top: 16px; }
.footer-badges img { width: 72px; height: 72px; border-radius: 10px; background: var(--white); padding: 4px; }
.social-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.social-list a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 24px 30px; display: grid; gap: 12px; }
.footer-motto { margin: 0; color: rgba(255, 255, 255, .88); font-weight: 600; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.footer-legal p { margin: 0; }
.footer-legal a { color: rgba(255, 255, 255, .7); }

/* ---------- صفحه ۴۰۴ و مدیریت ---------- */
.empty-state { text-align: center; max-width: 560px; margin-inline: auto; padding-block: 40px; }
.empty-state .icon-tile { margin: 0 auto 20px; width: 64px; height: 64px; }
.empty-state .btn-row { justify-content: center; }
.admin-wrap { max-width: 960px; }
.msg-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px 22px; background: var(--white); margin-bottom: 12px; }
.msg-card header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.msg-card h2 { font-size: 1.05rem; margin: 0; }
.msg-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--gray-600); margin-bottom: 10px; }
.msg-body { white-space: pre-wrap; margin: 0; color: var(--ink); background: var(--gray-50); padding: 12px 14px; border-radius: 10px; }

/* ---------- ظهور تدریجی ---------- */
.js .reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-ready.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal-ready { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- چاپ ---------- */
@media print {
  .site-header, .nav-backdrop, .cta-band, .site-footer .footer-ecg, .subnav, .ecg { display: none !important; }
  body { color: #000; }
  .page-hero { background: none; color: #000; padding: 0 0 16px; }
  .page-hero h1, .page-hero-lead { color: #000; }
}

/* ---------- کمکی‌ها ---------- */
.product-body .chip + h3 { margin-top: 14px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.admin-bar { justify-content: space-between; }
.msg-meta span { display: inline-flex; align-items: center; gap: 6px; }
.msg-meta .icon { width: 16px; height: 16px; color: var(--teal-600); }
.accent-teal { color: var(--teal-600); }
.product-hero h1 .accent-teal { display: block; font-size: .78em; }
.mv-card h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip .icon { width: 14px; height: 14px; }

/* ---------- تراز دوطرفه متن‌ها ---------- */
.lead, .prose p, .section-head p, .page-hero-lead, .hero-text .lead,
.product-body p, .feature-card p, .audience p, .value p, .mv-card p, .tl-card p,
.step p, .process-step p, .pending-card p, .callout p, .quote-block p, .cta-band p,
.related p, .faq-item .faq-a, .footer-brand p, .footer-motto, .stats-foot, .note {
  text-align: justify;
  text-align-last: start;
  text-justify: inter-word;
}
.section-head.center p { text-align: center; text-align-last: center; }

/* ---------- تورفتگی سطر نخست پاراگراف‌ها (حدود ۵ فاصله، طبق آیین نگارش) ---------- */
:root { --para-indent: 1.4em; }
.lead, .prose p:not(.eyebrow), .section-head p:not(.eyebrow), .page-hero-lead, .product-body p, .feature-card p, .audience p,
.value p, .mv-card p, .tl-card p, .step p, .process-step p, .pending-card p, .callout p,
.quote-block p:not(.eyebrow), .cta-band p, .related p:not(.eyebrow), .faq-item .faq-a p, .footer-brand p,
.footer-motto, .stats-foot, .post-subtitle {
  text-indent: var(--para-indent);
}
.section-head.center p, .empty-state p { text-indent: 0; }

.eyebrow { text-indent: 0 !important; }

/* ==========================================================================
   پس‌زمینه‌های تصویری متحرک صفحه اصلی
   ========================================================================== */
.has-bg { position: relative; isolation: isolate; overflow: hidden; background: transparent; }
.has-bg .hero-grid-bg { display: none; }
.section-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.section-bg-inner { position: absolute; inset: -12% 0; will-change: transform; }
.section-bg picture, .section-bg img { display: block; width: 100%; height: 100%; }
.section-bg img { object-fit: cover; object-position: center; transform-origin: 60% 45%; animation: bg-kenburns 30s ease-in-out infinite alternate; }
@keyframes bg-kenburns {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.15) translate3d(-2%, -1.5%, 0); }
}
/* لایه روشن برای خوانایی متن */
.section-bg::after { content: ""; position: absolute; inset: 0; }
.section-bg--light::after { background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .78) 50%, rgba(255, 255, 255, .88)); }
.section-bg--alt::after { background: linear-gradient(180deg, rgba(244, 247, 250, .88), rgba(244, 247, 250, .8) 50%, rgba(244, 247, 250, .9)); }
/* بخش آغازین: سمت متن (راست) روشن‌تر، سمت دستگاه (چپ) تصویر آشکارتر */
.section-bg--hero::after { background: linear-gradient(to left, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .88) 42%, rgba(244, 247, 250, .6) 75%, rgba(244, 247, 250, .45) 100%); }
@media (max-width: 1023.98px) {
  .section-bg--hero::after { background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .84)); }
}
.section-bg--products img { object-position: center 40%; }

/* ---------- حرکت ورودی متن و تصویر بخش آغازین ---------- */
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes slide-in-left { from { opacity: 0; transform: translate3d(-40px, 0, 0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes device-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }
.hero-text > * { animation: rise-in .9s var(--ease) both; }
.hero-text > :nth-child(1) { animation-delay: .1s; }
.hero-text > :nth-child(2) { animation-delay: .25s; }
.hero-text > :nth-child(3) { animation-delay: .4s; }
.hero-text > :nth-child(4) { animation-delay: .55s; }
.hero-text > :nth-child(5) { animation-delay: .7s; }
.hero-visual { animation: slide-in-left 1.1s var(--ease) .3s both; }
.hero-frame { animation: device-float 7s ease-in-out 1.6s infinite; }
.hero-tag { animation: rise-in .8s var(--ease) 1s both; }

/* ظهور پلکانی کارت‌ها هنگام پیمایش */
.js .card-grid > .reveal-ready:nth-child(2), .js .audience-grid > .reveal-ready:nth-child(2), .js .product-grid > .reveal-ready:nth-child(2) { transition-delay: .1s; }
.js .card-grid > .reveal-ready:nth-child(3), .js .audience-grid > .reveal-ready:nth-child(3) { transition-delay: .2s; }
.js .card-grid > .reveal-ready:nth-child(4), .js .audience-grid > .reveal-ready:nth-child(4) { transition-delay: .3s; }
.js .card-grid > .reveal-ready:nth-child(5), .js .audience-grid > .reveal-ready:nth-child(5) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .section-bg img, .hero-text > *, .hero-visual, .hero-frame, .hero-tag { animation: none !important; transform: none !important; opacity: 1 !important; }
  .section-bg-inner { transform: none !important; }
}

/* ---------- نسخه دوم: عکس‌ها آشکارتر، لایه روشن فقط پشت متن ---------- */
/* بخش‌هایی که سرتیتر بالا و کارت‌ها پایین هستند: بالا روشن، پایین عکس آشکار */
.section-bg--light::after { background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .86) 28%, rgba(255, 255, 255, .52) 70%, rgba(255, 255, 255, .38) 100%); }
.section-bg--alt::after { background: linear-gradient(180deg, rgba(244, 247, 250, .96) 0%, rgba(244, 247, 250, .86) 28%, rgba(244, 247, 250, .5) 70%, rgba(244, 247, 250, .36) 100%); }
/* متن در راست، کارت در چپ: سمت راست روشن، سمت چپ عکس آشکار */
.section-bg--side::after { background: linear-gradient(to left, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 45%, rgba(255, 255, 255, .45) 75%, rgba(255, 255, 255, .25) 100%); }
/* بخش آغازین: پشت متن روشن، پشت دستگاه عکس زنده */
.section-bg--hero::after { background: linear-gradient(to left, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 40%, rgba(255, 255, 255, .5) 58%, rgba(255, 255, 255, .14) 100%); }
.section-bg--hero img { object-position: 30% 40%; }
.section-bg--why img { object-position: center 30%; }
.section-bg--audience img { object-position: center 35%; }
@media (max-width: 1023.98px) {
  .section-bg--hero::after, .section-bg--side::after { background: linear-gradient(180deg, rgba(255, 255, 255, .93), rgba(255, 255, 255, .86) 60%, rgba(255, 255, 255, .7)); }
  .section-bg--light::after { background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .8) 40%, rgba(255, 255, 255, .62)); }
  .section-bg--alt::after { background: linear-gradient(180deg, rgba(244, 247, 250, .95), rgba(244, 247, 250, .8) 40%, rgba(244, 247, 250, .62)); }
}
/* کارت‌ها روی عکس: شیشه‌ای مات تا عکس از پشتشان حس شود */
.has-bg .feature-card, .has-bg .audience, .has-bg .product-card, .has-bg .fact-card, .has-bg .pillar-list li {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
  box-shadow: 0 18px 40px -24px rgba(11, 31, 58, .45);
}
.has-bg .fact-card { background: rgba(244, 247, 250, .9); }
/* یادداشت‌های کوچک روی عکس: پس‌زمینه مات برای خوانایی */
.has-bg .note {
  width: fit-content; max-width: 100%;
  padding: 8px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* محتوای بخش آغازین روی خط ECG قرار می‌گیرد */
.hero-inner { z-index: 1; }

/* ---------- بخش آغازین با عکس: صحنه عکس در سمت چپ آزاد، محصول در کارت فشرده ---------- */
.hero-product { display: none; }
@media (min-width: 1024px) {
  .hero.has-bg .hero-visual { display: none; }
  .hero.has-bg .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero.has-bg { min-height: min(820px, calc(100vh - var(--header-h))); display: flex; align-items: center; }
  .hero.has-bg .hero-inner { width: 100%; }
  .hero-product {
    display: flex; align-items: center; gap: 16px; margin-top: 26px; max-width: 520px;
    padding: 12px 18px 12px 12px; border-radius: 18px; text-decoration: none; color: var(--ink);
    background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 0 20px 44px -26px rgba(11, 31, 58, .5);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    animation: rise-in .9s var(--ease) .85s both;
  }
  .hero-product:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -24px rgba(11, 31, 58, .55); color: var(--ink); }
  .hero-product-img { flex: none; width: 150px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #F6F8FB, #ECF1F6); }
  .hero-product-img img { width: 100%; height: 100%; object-fit: cover; animation: device-float 7s ease-in-out 1.6s infinite; }
  .hero-product-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.7; }
  .hero-product-text strong { color: var(--navy-900); font-size: 1rem; }
  .hero-product-text > span:not(.link-arrow) { color: var(--gray-600); font-size: .88rem; }
  .hero-product-text .link-arrow { margin-top: 4px; font-size: .9rem; }
  /* لایه روشن فقط روی ستون متن؛ نیمه چپ عکس کاملاً دیده می‌شود */
  .hero.has-bg .section-bg--hero::after {
    background: linear-gradient(to left, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .92) 36%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, .08) 62%, rgba(255, 255, 255, 0) 100%);
  }
  /* بزرگ‌نمایی ملایم‌تر تا بیمار روی زمین از کادر خارج نشود */
  .hero.has-bg .section-bg-inner { inset: -5% 0; }
  .hero.has-bg .section-bg img { object-position: 20% 62%; transform-origin: 25% 70%; animation-name: bg-kenburns-soft; }
}
@keyframes bg-kenburns-soft {
  from { transform: scale(1.0); }
  to   { transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) { .hero-product, .hero-product-img img { animation: none !important; } }
@media (min-width: 1024px) {
  /* عکس فقط در ۶۴٪ چپ بخش؛ کل صحنه از سر امدادگران تا بیمار روی زمین بدون برش دیده می‌شود */
  .hero.has-bg { background: #fff; }
  .hero.has-bg .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .hero.has-bg .section-bg--hero { inset: 0 36% 0 0; }
  .hero.has-bg .section-bg--hero::after {
    background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, .8) 9%, rgba(255, 255, 255, .25) 22%, rgba(255, 255, 255, 0) 34%);
  }
  .hero.has-bg .section-bg-inner { inset: -3% 0; }
  .hero.has-bg .section-bg img { object-position: 26% 50%; transform-origin: 30% 55%; }
}
@media (min-width: 1024px) {
  /* ستون متن پهن‌تر و فاصله‌ها فشرده‌تر تا بخش در یک صفحه جا شود و عکس از بالا و پایین بریده نشود */
  .hero.has-bg { padding-block: 48px 64px; }
  .hero.has-bg .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .hero.has-bg h1 { font-size: clamp(1.7rem, .9rem + 1.6vw, 2.35rem); margin-bottom: 16px; }
  .hero.has-bg .lead { font-size: 1rem; line-height: 2; margin-bottom: 22px; }
  .hero.has-bg .hero-facts { margin-top: 22px; }
  .hero.has-bg .hero-product { margin-top: 20px; padding-block: 8px; }
  .hero.has-bg .hero-product-img { width: 116px; }
  .hero.has-bg .section-bg--hero { inset: 0 40% 0 0; }
  .hero.has-bg .section-bg--hero::after {
    background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, .85) 12%, rgba(255, 255, 255, .3) 24%, rgba(255, 255, 255, 0) 34%);
  }
}
@media (min-width: 1024px) {
  .hero.has-bg .section-bg--hero { inset: 0 42% 0 0; }
  .hero.has-bg .section-bg--hero::after {
    background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, .93) 15%, rgba(255, 255, 255, .4) 28%, rgba(255, 255, 255, 0) 38%);
  }
}
@media (min-width: 1024px) {
  /* لبه راست عکس با ماسک روی خود عکس محو می‌شود؛ لبه سخت نمی‌ماند و هنگام پالس ECG خط عمودی چشمک نمی‌زند */
  .hero.has-bg .section-bg--hero {
    -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, .1) 10%, rgba(0, 0, 0, .65) 24%, #000 36%);
    mask-image: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, .1) 10%, rgba(0, 0, 0, .65) 24%, #000 36%);
  }
  .hero.has-bg .section-bg--hero::after { background: none; }
}
@media (min-width: 1024px) {
  /* حرکت آشکارتر عکس بخش آغازین؛ مرکز بزرگ‌نمایی پایین‌تر از وسط تا بیمار روی زمین در کادر بماند */
  .hero.has-bg .section-bg img { transform-origin: 30% 62%; animation: bg-kenburns-hero 20s ease-in-out infinite alternate; }
}
@keyframes bg-kenburns-hero {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(1.6%, -1.2%, 0); }
}

/* ---------- هاله کم‌رنگ عکس در سمت راست بخش آغازین (پشت متن) ---------- */
.hero-haze { display: none; }
@media (min-width: 1024px) {
  .hero.has-bg .hero-haze {
    display: block; position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 38%, rgba(0, 0, 0, .6) 52%, #000 66%);
    mask-image: linear-gradient(to right, transparent 38%, rgba(0, 0, 0, .6) 52%, #000 66%);
  }
  .hero-haze picture, .hero-haze img { display: block; width: 100%; height: 100%; }
  .hero-haze img {
    object-fit: cover; object-position: 88% 45%; opacity: .3;
    filter: blur(2px) saturate(.85);
    transform-origin: 80% 50%; animation: bg-kenburns 34s ease-in-out infinite alternate;
  }
  /* درخشش نرم پشت متن برای خوانایی */
  .hero.has-bg .hero-haze::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 46% 60% at 74% 52%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
  }
}
@media (prefers-reduced-motion: reduce) { .hero-haze img { animation: none !important; } }
@media (min-width: 1024px) {
  /* هاله فقط در نیمه راست و از بخش راست عکس (خیابان شهر و آمبولانس)؛ امدادگرها تکرار نمی‌شوند */
  .hero.has-bg .hero-haze {
    inset: 0 0 0 48%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .55) 18%, #000 36%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .55) 18%, #000 36%);
  }
  .hero-haze img {
    object-position: 100% 42%; transform-origin: 100% 42%;
    animation: hero-haze-drift 26s ease-in-out infinite alternate;
  }
  .hero.has-bg .hero-haze::after { background: radial-gradient(ellipse 60% 62% at 52% 52%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 72%); }
}
@keyframes hero-haze-drift {
  from { transform: scale(1.95) translate3d(0, 0, 0); }
  to   { transform: scale(2.1) translate3d(-1.2%, .8%, 0); }
}
@media (min-width: 1024px) {
  .hero.has-bg .hero-haze::after { background: radial-gradient(ellipse 66% 58% at 50% 50%, rgba(255, 255, 255, .66), rgba(255, 255, 255, .2) 62%, rgba(255, 255, 255, 0) 80%); }
}

/* شبکه‌ها با تعداد آیتم سازگار می‌شوند (بدون جای خالی وقتی آیتمی حذف یا اضافه شود) */
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .audience-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

/* ---------- نقشه سه‌بعدی موقعیت (صفحه تماس) ---------- */
.location-section { padding-top: 0; }
.map3d {
  position: relative; height: clamp(420px, 62vh, 620px); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-200); box-shadow: 0 30px 60px -40px rgba(11, 31, 58, .45);
  background: radial-gradient(120% 90% at 30% 20%, #eef4f8, #dfe8ef 60%, #d3dee7);
  isolation: isolate;
}
/* کلاس maplibregl-map خودش position: relative دارد؛ این قاعده باید بر آن غالب شود تا نقشه کل کادر را پر کند */
.map3d .map3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map3d-loading, .map3d-fallback {
  position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 12px;
  text-align: center; color: var(--gray-600); font-size: .95rem; padding: 24px; z-index: 2;
}
.map3d.is-loading .map3d-loading { display: flex; justify-content: center; align-items: center; }
.map3d-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(18, 161, 158, .25); border-top-color: var(--teal-600); animation: map3d-spin 1s linear infinite; }
@keyframes map3d-spin { to { transform: rotate(360deg); } }
.map3d.is-fallback .map3d-fallback { display: grid; }
.map3d-fallback .icon { width: 40px; height: 40px; color: var(--teal-600); }
.map3d-fallback p { max-width: 420px; margin: 0; }
.map3d.is-fallback .map3d-tools { display: none; }

.map3d-tools { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.map3d-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .84rem; font-weight: 600; color: var(--navy-900);
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(11, 31, 58, .1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 18px -10px rgba(11, 31, 58, .4);
  transition: background .2s, color .2s, transform .2s;
}
.map3d-btn .icon { width: 18px; height: 18px; }
.map3d-btn:hover { transform: translateY(-1px); }
.map3d-btn[aria-pressed="true"] { background: var(--navy-900); color: #fff; }
.map3d-btn:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 2px; }

.map3d-card {
  position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  max-width: min(560px, calc(100% - 28px)); padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .94); border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 20px 44px -26px rgba(11, 31, 58, .55);
}
.map3d-card-text { display: flex; flex-direction: column; line-height: 1.7; min-width: 0; }
.map3d-card-text strong { color: var(--navy-900); font-size: .98rem; }
.map3d-card-text span { color: var(--gray-600); font-size: .86rem; }
.map3d-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.map3d-links-label { color: var(--gray-600); font-size: .84rem; font-weight: 600; }
.map3d-links .btn { min-height: 38px; }
.map3d-hint { margin: 12px 0 0; color: var(--gray-500, #6b7280); font-size: .82rem; text-align: center; text-indent: 0 !important; }

/* نشانگر محل */
.map3d-marker { position: relative; display: grid; justify-items: center; cursor: default; }
.map3d-marker-pin {
  position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: linear-gradient(135deg, #e5383b, #b5172a); color: #fff;
  box-shadow: 0 10px 22px -8px rgba(181, 23, 42, .7); border: 3px solid #fff;
}
.map3d-marker-pin svg { width: 24px; height: 24px; transform: rotate(45deg); }
.map3d-marker-pulse {
  position: absolute; bottom: -10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(229, 56, 59, .45);
  animation: map3d-pulse 2s ease-out infinite;
}
@keyframes map3d-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.map3d-marker-label {
  position: absolute; bottom: calc(100% + 8px); white-space: nowrap; padding: 4px 12px; border-radius: 999px;
  background: var(--navy-900); color: #fff; font-size: .82rem; font-weight: 700; box-shadow: 0 8px 18px -8px rgba(11, 31, 58, .6);
}
.map3d-marker-label:empty { display: none; }

/* کنترل‌های MapLibre با فونت سایت */
.map3d .maplibregl-ctrl-attrib, .map3d .maplibregl-cooperative-gesture-screen { font-family: inherit; }
.map3d .maplibregl-cooperative-gesture-screen { font-size: 1rem; }

@media (max-width: 640px) {
  /* در گوشی کارت نشانی زیر نقشه می‌آید تا نقشه و منابع آن پوشیده نشوند */
  .map3d { height: auto; overflow: visible; border: 0; box-shadow: none; background: none; }
  .map3d .map3d-canvas { position: relative; height: 400px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); }
  .map3d-loading, .map3d-fallback { bottom: auto; height: 400px; }
  .map3d-btn span { display: none; }
  .map3d-btn { width: 40px; justify-content: center; padding: 0; }
  .map3d-card { position: static; max-width: none; margin-top: 12px; }
  .map3d-links { width: 100%; }
  .map3d-links-label { flex-basis: 100%; }
  .map3d-links .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .map3d-marker-pulse, .map3d-spinner { animation: none; }
}

/* ==========================================================================
   بخش آغازین با «مسیر نجات»: از ایست قلبی تا بازگشت به زندگی
   ========================================================================== */
.hero--path .hero-product {
  display: flex; align-items: center; gap: 14px; margin-top: 26px; max-width: 520px;
  padding: 10px 16px 10px 10px; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .92); border: 1px solid var(--gray-200);
  box-shadow: 0 20px 44px -26px rgba(11, 31, 58, .5);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hero--path .hero-product:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -24px rgba(11, 31, 58, .55); color: var(--ink); }
.hero--path .hero-product-img { flex: none; width: 112px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #F6F8FB, #ECF1F6); }
.hero--path .hero-product-img img { width: 100%; height: 100%; object-fit: cover; }
.hero--path .hero-product-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.7; }
.hero--path .hero-product-text strong { color: var(--navy-900); font-size: .98rem; }
.hero--path .hero-product-text > span:not(.link-arrow) { color: var(--gray-600); font-size: .86rem; }
.hero--path .hero-product-text .link-arrow { margin-top: 2px; font-size: .88rem; }
@media (min-width: 600px) { .hero--path .hero-product-img { width: 150px; } }
.hero-visual--path { animation: none; }

.rescue-path { position: relative; }
.rp-caption {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0 0 20px; padding: 9px 18px;
  border-radius: 999px; background: var(--white); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
  font-size: .96rem; font-weight: 800; line-height: 1.6; color: var(--navy-900); text-indent: 0 !important;
}
.rp-caption .icon { flex: none; }
.rp-caption .icon { width: 22px; height: 22px; color: var(--red-600); }
.rp-line { display: none; }
.rp-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.rp-step { position: relative; padding-inline-start: 58px; padding-bottom: 22px; }
.rp-dot {
  position: absolute; top: -4px; right: 0; z-index: 1; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--teal-500); color: var(--navy-900);
  font-weight: 800; font-size: .98rem; line-height: 1;
  box-shadow: 0 0 0 6px rgba(18, 161, 158, .12), 0 8px 18px -8px rgba(11, 31, 58, .4);
}
.rp-dot .icon { width: 20px; height: 20px; }
.rp-step.is-arrest .rp-dot { background: var(--red-600); border-color: var(--red-600); color: var(--white); box-shadow: 0 0 0 6px rgba(180, 35, 24, .14), 0 8px 18px -8px rgba(180, 35, 24, .6); }
.rp-step.is-life .rp-dot { background: var(--green-600); border-color: var(--green-600); color: var(--white); box-shadow: 0 0 0 6px rgba(44, 138, 94, .16), 0 8px 18px -8px rgba(44, 138, 94, .6); animation: rp-beat 1.6s ease-in-out 3.8s infinite; }
.rp-body { display: block; }
.rp-title { display: block; color: var(--navy-900); font-size: 1rem; line-height: 1.6; margin-bottom: 2px; }
.rp-step.is-arrest .rp-title { color: var(--red-600); }
.rp-step.is-life .rp-title { color: var(--green-600); }
.rp-text { display: block; color: var(--gray-600); font-size: .88rem; line-height: 1.85; }
/* خط عمودی موبایل: از قرمز ایست قلبی تا سبز زندگی */
.rp-steps::before {
  content: ""; position: absolute; top: 16px; bottom: 30px; right: 19px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #B42318, #C2410C 28%, #12A19E 60%, #2C8A5E);
}

/* جعبه‌های دستگاه AED در مکان‌های پررفت‌وآمد؛ چیده‌شده مثل کارت‌های بادبزنی */
.rp-fan-wrap { container-type: inline-size; margin-bottom: 12px; }
/* موبایل: اول عنوان و متن گام، سپس کارت‌ها */
@media (max-width: 1023.98px) {
  .rp-step.has-metro .rp-body { display: flex; flex-direction: column; }
  .rp-step.has-metro .rp-fan-wrap { order: 3; margin: 14px 0 0; }
}
.rp-fan {
  --F: min(86cqw, 320px);
  position: relative; list-style: none; padding: 0;
  width: var(--F); height: calc(var(--F) * 1.02);
  margin: 0 0 0 calc((100cqw - var(--F)) / 2 - 4cqw);
  font-size: max(9.5px, calc(var(--F) * .041)); text-indent: 0;
}
.rp-card {
  --tx: calc(var(--k) * var(--F) * -.15);
  --ty: calc((var(--k) + 2) * var(--F) * .092);
  --r: calc(var(--k) * -6deg);
  position: absolute; top: 0; left: 50%; width: 40%; margin: 0;
  border-radius: .9em; overflow: hidden; text-indent: 0;
  border: 1px solid rgba(11, 31, 58, .14);
  box-shadow: 0 .2em .4em rgba(11, 31, 58, .08), 0 1.6em 2.6em -1.4em rgba(11, 31, 58, .6);
  transform-origin: 50% 100%;
  transform: translateX(-50%) translate(var(--tx), var(--ty)) rotate(var(--r)) translateY(var(--lift, 0));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  /* پس‌زمینهٔ پیش‌فرض: دیوار کاشی ایستگاه مترو */
  background-color: #F2F5F8;
  background-image:
    linear-gradient(rgba(197, 208, 220, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 208, 220, .55) 1px, transparent 1px),
    linear-gradient(180deg, transparent 86%, #D6DEE7 86%);
  background-size: 2.2em 1.1em, 2.2em 1.1em, 100% 100%;
}
.rp-card:hover { --lift: -9%; z-index: 6; box-shadow: 0 .2em .4em rgba(11, 31, 58, .1), 0 2.2em 3em -1.4em rgba(11, 31, 58, .7); }
.rp-card-sign {
  --sign: var(--navy-900); --accent: var(--teal-500);
  display: flex; align-items: center; gap: .45em; padding: .5em .7em;
  background: var(--sign); color: var(--white); border-bottom: .28em solid var(--accent);
  font-weight: 700; font-size: 1em; line-height: 1.5; white-space: nowrap;
}
.rp-card-badge {
  flex: none; display: grid; place-items: center; width: 1.75em; height: 1.75em; border-radius: 50%;
  background: var(--white); color: var(--sign); font: 800 .95em/1 system-ui, sans-serif;
}
.rp-card-badge .icon { width: 1.15em; height: 1.15em; stroke-width: 2; }
.rp-card-name { overflow: hidden; text-overflow: ellipsis; }

.rp-card--stadium { background-color: #E3F1E7; background-image: repeating-linear-gradient(90deg, rgba(44, 138, 94, .12) 0 1.6em, transparent 1.6em 3.2em), linear-gradient(180deg, transparent 86%, #C5DFCC 86%); background-size: auto, 100% 100%; }
.rp-card--stadium .rp-card-sign { --sign: #1F6B45; --accent: #F2C94C; }
.rp-card--pool { background-color: #E2F4F7; background-image: linear-gradient(rgba(14, 116, 144, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 116, 144, .16) 1px, transparent 1px), linear-gradient(180deg, transparent 86%, #BFE3EA 86%); background-size: 1.4em 1.4em, 1.4em 1.4em, 100% 100%; }
.rp-card--pool .rp-card-sign { --sign: #0E7490; --accent: #67D3E0; }
.rp-card--mall { background-color: #FBF2E8; background-image: repeating-linear-gradient(90deg, rgba(154, 52, 18, .08) 0 1px, transparent 1px 3em), linear-gradient(180deg, transparent 86%, #EBD8C4 86%); background-size: auto, 100% 100%; }
.rp-card--mall .rp-card-sign { --sign: #9A3412; --accent: #F59E0B; }
.rp-card--office { background-color: #EEF1F5; background-image: linear-gradient(180deg, rgba(51, 65, 85, .1) 1px, transparent 1px), linear-gradient(180deg, transparent 86%, #D3DAE3 86%); background-size: 100% 2.6em, 100% 100%; }
.rp-card--office .rp-card-sign { --sign: #334155; --accent: #94A3B8; }

.rp-cabinet {
  width: 76%; margin: 1em auto 1.2em; border-radius: .7em; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF, #EEF3F6); border: 2px solid var(--green-600);
  box-shadow: 0 1em 1.6em -1em rgba(11, 31, 58, .55);
}
.rp-cabinet-head {
  display: flex; align-items: center; justify-content: center; gap: .4em; padding: .25em .4em;
  background: var(--green-600); color: var(--white); direction: ltr;
  font: 800 .92em/1.4 system-ui, sans-serif; letter-spacing: .08em;
}
.rp-cabinet-logo { display: inline-flex; align-items: center; position: relative; }
.rp-cabinet-logo .icon { width: 1.2em; height: 1.2em; }
.rp-cabinet-logo .icon + .icon { position: absolute; inset: 0; width: 1.2em; height: 1.2em; transform: scale(.55); color: var(--green-600); }
.rp-cabinet-glass {
  position: relative; margin: .55em .55em .45em; aspect-ratio: 4 / 3; border-radius: .4em; overflow: hidden;
  background: linear-gradient(160deg, #F8FAFC, #E6EDF2); border: 1px solid #CFD8E0;
}
.rp-cabinet-glass img { width: 100%; height: 100%; object-fit: cover; }
.rp-cabinet-glass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .5) 47%, transparent 56%);
}
.rp-cabinet-foot { padding: 0 .4em .45em; text-align: center; font-size: .72em; font-weight: 700; color: var(--ink-soft); line-height: 1.5; text-indent: 0 !important; }

/* دسکتاپ: ایستگاه‌ها روی منحنی */
@media (min-width: 1024px) {
  .hero--path { padding-block: clamp(36px, 3vw, 56px) clamp(90px, 6vw, 120px); }
  .hero--path .hero-inner { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 36px; }
  .hero--path h1 { font-size: clamp(1.7rem, .9rem + 1.5vw, 2.3rem); }
  /* عنوان مسیر بالای نقطهٔ آغاز خط؛ خط و ایستگاه‌ها زیر آن */
  .rescue-path { height: 884px; }
  .rp-caption { position: absolute; top: 0; left: 52%; transform: translateX(-50%); margin: 0; z-index: 2; font-size: 1.06rem; white-space: nowrap; max-width: none; box-shadow: 0 10px 26px -14px rgba(11, 31, 58, .45); }
  .rp-line { display: block; position: absolute; inset: 64px 0 0; width: 100%; height: calc(100% - 64px); overflow: visible; }
  .rp-trail, .rp-stroke { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
  .rp-trail { stroke: rgba(11, 31, 58, .06); stroke-width: 20; }
  .rp-stroke { stroke-width: 4; }
  .rp-steps { position: absolute; inset: 64px 0 0; }
  .rp-steps::before { display: none; }
  .rp-step { position: absolute; left: 0; right: 0; top: var(--y); height: 0; padding: 0; }
  .rp-dot { top: 0; right: auto; left: var(--x); transform: translate(-50%, -50%); }
  .rp-body { position: absolute; top: -18px; }
  .rp-step--r .rp-body { left: calc(var(--x) + 30px); right: 0; }
  .rp-step--l .rp-body { left: 0; right: calc(100% - var(--x) + 30px); }
  .rp-step.has-metro .rp-body { top: auto; bottom: -96px; }
  .rp-text { font-size: .86rem; line-height: 1.8; }
  .rp-fan { --F: 100cqw; height: calc(var(--F) * 1.06); margin-left: -6cqw; }

  /* حرکت: کشیده شدن خط از بالا به پایین و ظاهر شدن پلکانی ایستگاه‌ها */
  .rp-line { clip-path: inset(0 0 100% 0); animation: rp-draw 3s var(--ease) .3s forwards; }
  .rp-step { animation: rp-in .7s var(--ease) both; animation-delay: calc(.45s + var(--i) * .42s); }
  .rp-step.is-life .rp-dot { animation-name: rp-beat-d; }
  /* کارت‌ها پس از رسیدن به گام چهارم، از یک دسته باز می‌شوند */
  .rp-card { animation: rp-deal .9s var(--ease) backwards; animation-delay: calc(1.9s + (var(--k) + 2) * .08s); }
}
/* دسکتاپ کوچک: بادبزن در پهنای ستون می‌ماند و نام کوتاه‌تر می‌شود */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .rp-fan { --F: 100cqw; margin-left: -3cqw; }
  .rp-card-pre { display: none; }
}
@keyframes rp-draw { to { clip-path: inset(0 0 0 0); } }
@keyframes rp-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rp-deal { from { transform: translateX(-50%) translate(0, calc(var(--F) * .15)) rotate(0deg); } }
@keyframes rp-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
@keyframes rp-beat-d { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 15% { transform: translate(-50%, -50%) scale(1.12); } 30% { transform: translate(-50%, -50%) scale(1); } 45% { transform: translate(-50%, -50%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .rp-line, .rp-step, .rp-step.is-life .rp-dot, .rp-card { animation: none !important; clip-path: none !important; opacity: 1 !important; }
}
