/* صفحهٔ اصلی سه‌بعدی پزشکآن
   یک صحنهٔ ثابت three.js پشت صفحه است (home3d.js) و بخش‌ها روی آن اسکرول می‌شوند.
   همه‌چیز RTL، موبایل‌اول و با ویژگی‌های منطقی CSS نوشته شده است. */

/* ── تم تیرهٔ سایت در صفحهٔ اصلی (خنثی + فیروزه‌ای، هماهنگ با اپ) ── */
html[data-lock-theme="dark"] {
  --bg-canvas: #07141a;
  --bg-surface-primary: rgba(255, 255, 255, 0.05);
  --bg-surface-secondary: #0c1b22;
  --bg-surface-elevated: #11242c;
  --brand-primary: #4fcbd1;
  --brand-primary-light: #8fe3e7;
  --brand-cyan-neon: #4fcbd1;
  --brand-gradient-primary: linear-gradient(135deg, #2aa3aa 0%, #4fcbd1 100%);
  --brand-gradient-glow: rgba(79, 203, 209, 0.22);
  --signal-cyan: #4fcbd1;
  --signal-cyan-neon: #4fcbd1;
  --signal-cyan-bg: rgba(79, 203, 209, 0.12);
  --signal-cyan-border: rgba(79, 203, 209, 0.28);
  --text-primary: #f1f4f5;
  --text-secondary: rgba(241, 244, 245, 0.66);
  --text-muted: rgba(241, 244, 245, 0.42);
  --glass-lvl-1-bg: rgba(255, 255, 255, 0.045);
  --glass-lvl-2-bg: rgba(255, 255, 255, 0.055);
  --glass-lvl-3-bg: rgba(255, 255, 255, 0.075);
  --glass-lvl-4-bg: rgba(79, 203, 209, 0.1);
  --glass-lvl-1-border: rgba(255, 255, 255, 0.1);
  --glass-lvl-2-border: rgba(255, 255, 255, 0.12);
  --glass-lvl-3-border: rgba(255, 255, 255, 0.16);
  --glass-lvl-4-border: rgba(79, 203, 209, 0.28);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-highlight: rgba(79, 203, 209, 0.4);
  --glass-blur: blur(18px) saturate(1.2);
  --glass-specular: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  --shadow-neon-blue: 0 0 0 transparent;
  --shadow-neon-cyan: 0 0 24px rgba(79, 203, 209, 0.16);
  --radial-glow-1: transparent;
  --radial-glow-2: transparent;
}
html[data-lock-theme="dark"],
html[data-lock-theme="dark"] body {
  background-color: #07141a !important;
  background-image: none !important;
}
html[data-lock-theme="dark"] body::before,
html[data-lock-theme="dark"] body::after { background: none !important; }

.h3-home {
  --h3-bg: #07141a;
  --h3-ink: #f1f4f5;
  --h3-dim: rgba(241, 244, 245, 0.68);
  --h3-faint: rgba(241, 244, 245, 0.44);
  --h3-line: rgba(255, 255, 255, 0.1);
  --h3-accent: #4fcbd1;
  --h3-accent-ink: #062a2d;
  --h3-risk: #ff5a66;
  --h3-gutter: 16px;
  color: var(--h3-ink);
  overflow-x: clip;
}
.h3-home main,
.h3-home main > section { background: transparent !important; background-image: none !important; }
.h3-home main { position: relative; z-index: 1; }

/* ── صحنهٔ سه‌بعدی ثابت ── */
.h3-backdrop,
.h3-scene,
.h3-markers { position: fixed; inset: 0; pointer-events: none; }
.h3-backdrop {
  z-index: 0;
  background:
    radial-gradient(48% 56% at 50% 44%, rgba(79, 203, 209, 0.085), transparent 72%),
    radial-gradient(70% 50% at 50% 100%, rgba(79, 203, 209, 0.04), transparent 70%);
}
.h3-scene { z-index: 0; height: 100vh; height: 100lvh; opacity: 0; transition: opacity 1.4s ease; }
.h3-scene.is-ready { opacity: var(--h3-op, 1); }
.h3-scene.is-live { transition: none; }
.h3-scene canvas { display: block; width: 100% !important; height: 100% !important; }
.h3-markers { z-index: 1; height: 100vh; height: 100lvh; overflow: hidden; }

/* نشانگر روی بدن: نقطه، خط نازک و برچسب کوتاه */
.h3-marker { --len: 40px; --mk: var(--h3-accent); position: absolute; top: 0; left: 0; width: 0; height: 0; opacity: 0; visibility: hidden; will-change: transform, opacity; text-decoration: none; }
.h3-marker--hot { --mk: var(--h3-risk); }
.h3-marker i { position: absolute; top: -6px; left: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--mk); box-shadow: 0 0 0 5px color-mix(in srgb, var(--mk) 22%, transparent); }
.h3-marker i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--mk); animation: h3-ping 2.4s ease-out infinite; }
.h3-marker::before { content: ""; position: absolute; top: -0.5px; height: 1px; width: var(--len); background: color-mix(in srgb, var(--mk) 70%, transparent); }
.h3-marker span {
  position: absolute; top: 0; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 14px; border-radius: 14px; white-space: nowrap;
  /* همان شیشهٔ مات هدر موبایل و کارت‌های ناحیه (.h3-rcard) */
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.035) 42%, rgba(255, 255, 255, 0.02) 100%), rgba(10, 13, 15, 0.84);   /* زیرلایهٔ تیره: متن روی بدن روشن خوانا بماند */
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 20px 50px -30px rgba(0, 0, 0, 0.95);
  direction: rtl; text-align: start;
  pointer-events: auto; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.h3-marker i { pointer-events: auto; cursor: pointer; }
.h3-marker i::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; }   /* محدودهٔ لمس بزرگ‌تر */
.h3-marker:hover span,
.h3-marker:focus-visible span { border-color: var(--mk); background: linear-gradient(165deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.04) 100%), rgba(10, 13, 15, 0.92); }
.h3-marker:focus-visible { outline: none; }
.h3-marker:focus-visible i { box-shadow: 0 0 0 5px color-mix(in srgb, var(--mk) 45%, transparent); }
.h3-marker b { font-size: 13.5px; font-weight: 600; color: var(--h3-ink); }
@media (max-width: 820px) {
  .h3-marker span { padding: 5px 10px; border-radius: 12px; width: max-content; white-space: nowrap; text-align: center; line-height: 1.5; }   /* تک‌خطی تا فضا نگیرد */
  .h3-marker b { font-size: 12.5px; white-space: nowrap; }
}
.h3-marker small { font-size: 11.5px; color: var(--mk); }
.h3-marker[data-dir="1"]::before { left: 10px; }
.h3-marker[data-dir="1"] span { left: calc(var(--len) + 16px); }
.h3-marker[data-dir="-1"]::before { right: 10px; }
.h3-marker[data-dir="-1"] span { right: calc(var(--len) + 16px); }

/* ── بخش‌ها ── */
.h3-sec {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 88px 0 calc(24px + env(safe-area-inset-bottom, 0px));
}
/* موبایل: نیمهٔ پایین هر بخش تیره می‌شود تا متن روی بدن خوانا بماند */
.h3-sec:not(.h3-sec--mid)::before { content: ""; position: absolute; inset: 42% 0 0; z-index: -1; background: linear-gradient(to top, #07141a 0%, rgba(7, 20, 26, 0.94) 46%, rgba(7, 20, 26, 0) 100%); pointer-events: none; }
.h3-wrap { width: calc(100% - 2 * var(--h3-gutter)); max-width: 1200px; margin-inline: auto; display: flex; justify-content: center; }

.h3-card,
.h3-panel {
  width: 100%;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--h3-line);
  background: linear-gradient(160deg, rgba(22, 26, 28, 0.82), rgba(12, 14, 16, 0.74));
  -webkit-backdrop-filter: blur(22px) saturate(1.25); backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* هیرو */
.h3-copy { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.h3-title { margin: 0; font-size: clamp(30px, 8.6vw, 44px); font-weight: 300; line-height: 1.35; letter-spacing: -0.01em; color: var(--h3-ink); text-wrap: balance; }
.h3-title b { font-weight: 700; color: var(--h3-accent); }
.h3-sub { margin: 0; max-width: 30em; font-size: 15px; line-height: 2; color: var(--h3-dim); }
.h3-actions { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.h3-btn {
  flex: 1 1 140px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 16px;
  border: 1px solid var(--h3-line);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--h3-ink); font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.h3-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); }
.h3-btn--main { background: var(--h3-accent); border-color: transparent; color: var(--h3-accent-ink); font-weight: 700; box-shadow: 0 12px 34px -14px rgba(79, 203, 209, 0.75); }
.h3-btn--main:hover { background: #6fdbe0; border-color: transparent; }

/* کارت قابلیت */
.h3-step { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--h3-accent); font-variant-numeric: tabular-nums; }
.h3-h2 { margin: 0; font-size: clamp(24px, 6.4vw, 30px); font-weight: 600; line-height: 1.45; color: var(--h3-ink); text-wrap: balance; }
.h3-p { margin: 8px 0 0; font-size: 15px; line-height: 1.95; color: var(--h3-dim); }
.h3-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--h3-line); }
.h3-metric { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.h3-metric strong { font-size: 34px; font-weight: 300; line-height: 1.2; color: var(--h3-ink); font-variant-numeric: tabular-nums; }
.h3-metric span { font-size: 13px; color: var(--h3-faint); }
.h3-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; color: var(--h3-accent); font-size: 14.5px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.h3-more svg { width: 16px; height: 16px; flex: none; transition: transform 0.2s; }
.h3-more:hover svg { transform: translateX(-4px); }

/* محاسبه‌گر */
.h3-sec--mid { align-items: center; }
.h3-panel { max-width: 760px; }
.h3-panel--center { text-align: center; }
.h3-panel--center .h3-actions { justify-content: center; margin-top: 22px; }
.h3-panel--center .h3-p { margin-inline: auto; max-width: 28em; }
.h3-roi-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: 14.5px; color: var(--h3-dim); }
.h3-roi-row output { font-size: 15px; color: var(--h3-ink); white-space: nowrap; }
.h3-roi-row output b { font-size: 26px; font-weight: 300; font-variant-numeric: tabular-nums; margin-inline-end: 4px; }
.h3-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 4px 0 0; background: transparent; cursor: pointer; direction: rtl; }
.h3-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); }
.h3-range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); }
.h3-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; border: 0; background: var(--h3-accent); box-shadow: 0 0 0 6px rgba(79, 203, 209, 0.18); }
.h3-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--h3-accent); box-shadow: 0 0 0 6px rgba(79, 203, 209, 0.18); }
.h3-roi-grid { margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.h3-roi-grid div { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; border-radius: 16px; border: 1px solid var(--h3-line); background: rgba(255, 255, 255, 0.04); min-width: 0; }
.h3-roi-grid dd { margin: 0; font-size: clamp(19px, 5.4vw, 30px); font-weight: 300; line-height: 1.3; color: var(--h3-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.h3-roi-grid dt { order: 2; font-size: 12px; line-height: 1.7; color: var(--h3-faint); }

/* مجله */
.h3-wide { width: 100%; }
.h3-mag-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.h3-mag-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--h3-gutter)); padding-inline: var(--h3-gutter); scroll-padding-inline: var(--h3-gutter); }
.h3-mag-grid::-webkit-scrollbar { display: none; }
.h3-post {
  flex: 0 0 min(78vw, 320px); scroll-snap-align: start;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--h3-line);
  background: rgba(14, 17, 19, 0.78);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  color: var(--h3-ink); text-decoration: none;
  transition: transform 0.25s, border-color 0.25s;
}
.h3-post:hover { transform: translateY(-4px); border-color: rgba(79, 203, 209, 0.4); }
.h3-post img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #14181a; }
.h3-post div { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.h3-post span { font-size: 12.5px; color: var(--h3-accent); }
.h3-post h3 { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.85; color: var(--h3-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ورود نرم محتوا (فقط وقتی اسکریپت فعال است) */
.h3-js .h3-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.h3-js .h3-reveal.is-in { opacity: 1; transform: none; }

/* راهنمای ایستگاه‌ها (فقط دسکتاپ) */
.h3-rail { display: none; }

.h3-btn:focus-visible, .h3-more:focus-visible, .h3-post:focus-visible, .h3-rail button:focus-visible, .h3-range:focus-visible { outline: 2px solid var(--h3-accent); outline-offset: 3px; }

/* ── هدر و فوتر شیشه‌ای تیره ── */
.h3-home .site-header-sticky { background: transparent !important; border-color: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.h3-home .site-header-sticky.is-scrolled,
.h3-home .site-header-sticky.is-pinned { background: rgba(7, 20, 26, 0.72) !important; border-color: rgba(255, 255, 255, 0.08) !important; -webkit-backdrop-filter: blur(18px) saturate(1.2) !important; backdrop-filter: blur(18px) saturate(1.2) !important; }
.h3-home .site-header-sticky .brand-title-fa { color: #f1f4f5 !important; }
.h3-home .site-header-sticky .brand-subtitle-fa { color: rgba(241, 244, 245, 0.55) !important; }
.h3-home .site-header-sticky .brand-wordmark-en { color: #4fcbd1 !important; background: rgba(79, 203, 209, 0.12) !important; }
.h3-home .site-header-sticky .main-nav > li > .nav-link,
.h3-home .site-header-sticky .nav-dropdown-trigger { color: rgba(241, 244, 245, 0.72) !important; }
.h3-home .site-header-sticky .main-nav > li > .nav-link:hover,
.h3-home .site-header-sticky .nav-dropdown-trigger:hover { color: #fff !important; }
/* هاور و بازبودن مثل بقیهٔ لینک‌های هدر: فقط روشن‌شدن متن، بی کادر و پس‌زمینه (قانون سراسری کادر سبز می‌داد) */
.h3-home .site-header-sticky .nav-dropdown-doctors:hover .nav-dropdown-trigger,
.h3-home .site-header-sticky .nav-dropdown-doctors.is-open .nav-dropdown-trigger,
.h3-home .site-header-sticky .nav-dropdown-doctors .nav-dropdown-trigger:hover,
.h3-home .site-header-sticky .nav-dropdown-doctors .nav-dropdown-trigger:focus-visible {
  background: transparent !important; border-color: transparent !important; box-shadow: none !important; color: #fff !important;
}
.h3-home .site-header-sticky .nav-dropdown-doctors .nav-dropdown-trigger:focus-visible { outline: 2px solid rgba(79, 203, 209, 0.6); outline-offset: 2px; }

/* منوی «برای پزشکان»: شیشهٔ مات هم‌خانوادهٔ هدر و کارت‌ها، آیکن فیروزه‌ای، عنوان و توضیح کوتاه هر گزینه.
   هدر خودش بک‌دراپ دارد و بلور داخلش پشت منو را نمی‌بیند، پس زیرلایه تقریباً مات است. */
/* همان زبان کارت‌های ناحیه (.h3-rcard): شیشهٔ یک‌تکه، درخشش فیروزه‌ای گوشهٔ بالا، ردیف‌های بدون کادر با خط جداکننده، آیکن در جعبهٔ فیروزه‌ای، عنوان با هاور فیروزه‌ای */
.h3-home .site-header-sticky .nav-dropdown-menu {
  min-width: 352px; padding: 8px 18px; gap: 0; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(80% 90px at 85% 0%, rgba(79, 203, 209, 0.16), transparent 70%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.035) 42%, rgba(255, 255, 255, 0.02) 100%),
    rgba(9, 15, 18, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 40px 90px -50px rgba(0, 0, 0, 0.95) !important;
}
.h3-home .site-header-sticky .nav-dropdown-link { padding: 12px 0; gap: 12px; border-radius: 0; color: var(--h3-ink, #f1f4f5); }
.h3-home .site-header-sticky .nav-dropdown-link + .nav-dropdown-link { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.h3-home .site-header-sticky .nav-dropdown-doctors .nav-dropdown-link:hover { background: none; transform: none; }
.h3-home .site-header-sticky .nav-dropdown-link:hover .nav-dropdown-icon { transform: none; }
.h3-home .site-header-sticky .nav-dropdown-link:hover strong { color: #4fcbd1; }
.h3-home .site-header-sticky .nav-dropdown-doctors .nav-dropdown-icon {
  width: 40px; height: 40px; border-radius: 13px; color: #4fcbd1 !important;
  border: 1px solid rgba(79, 203, 209, 0.32);
  background: linear-gradient(180deg, rgba(79, 203, 209, 0.2), rgba(79, 203, 209, 0.06)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.h3-home .site-header-sticky .nav-dropdown-doctors .nav-dropdown-icon svg { width: 20px; height: 20px; }
.h3-home .site-header-sticky .nav-dropdown-text { gap: 3px; }
.h3-home .site-header-sticky .nav-dropdown-text strong { color: #f1f4f5; font-size: 14.5px; transition: color 0.2s; }
.h3-home .site-header-sticky .nav-dropdown-text span { display: block !important; font-size: 12px; line-height: 1.7; font-weight: 400; color: rgba(241, 244, 245, 0.62); white-space: nowrap; }
.h3-home .site-header-sticky .nav-dropdown-text strong { white-space: nowrap; }
.h3-home .site-header-sticky .pez-shell-pill-demo,
.h3-home .site-header-sticky .pez-shell-pill-mag,
.h3-home .btn-secondary { background: rgba(255, 255, 255, 0.07) !important; border: 1px solid rgba(255, 255, 255, 0.12) !important; color: #f1f4f5 !important; box-shadow: none !important; }
.h3-home .auth-combined-btn,
.h3-home .header-auth-capsule .auth-capsule-btn { background: var(--h3-accent) !important; background-image: none !important; color: var(--h3-accent-ink) !important; border-color: transparent !important; box-shadow: 0 10px 30px -14px rgba(79, 203, 209, 0.7) !important; }
.h3-home .auth-combined-btn * { color: var(--h3-accent-ink) !important; }
.h3-home .site-footer { position: relative; z-index: 1; background: rgba(7, 20, 26, 0.86) !important; background-image: none !important; border-top: 1px solid var(--h3-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.h3-credit { color: var(--h3-faint); }
.h3-credit a { color: inherit; }

@keyframes h3-ping { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }

/* ── تبلت و دسکتاپ: بدن یک سمت، محتوا سمت دیگر ── */
@media (min-width: 821px) {
  .h3-home { --h3-gutter: 24px; }
  .h3-sec { align-items: center; padding: 120px 0 96px; }
  .h3-sec:not(.h3-sec--mid)::before { content: none; }
  .h3-sec[data-side="start"] .h3-wrap { justify-content: flex-start; }
  .h3-sec[data-side="end"] .h3-wrap { justify-content: flex-end; }
  .h3-card { width: min(440px, 46%); padding: 34px; border-radius: 28px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)); }
  .h3-panel { padding: 40px; border-radius: 30px; }
  .h3-copy { width: min(660px, 54%); gap: 22px; }
  .h3-title { font-size: clamp(36px, 4.1vw, 60px); line-height: 1.32; }
  .h3-sub { font-size: clamp(15px, 1.15vw, 17px); }
  .h3-actions { width: auto; }
  .h3-btn { flex: 0 0 auto; padding: 0 28px; }
  .h3-h2 { font-size: clamp(26px, 2.5vw, 36px); }
  .h3-p { font-size: 16px; }
  .h3-metric strong { font-size: 42px; }
  .h3-foot { margin-top: 24px; padding-top: 20px; }
  .h3-roi-grid { gap: 12px; margin-top: 20px; }
  .h3-roi-grid div { padding: 20px; border-radius: 20px; }
  .h3-roi-grid dt { font-size: 13px; }
  .h3-mag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .h3-post { flex: none; }
  .h3-mag-head { margin-bottom: 24px; }
  .h3-marker { --len: 130px; }
}
@media (min-width: 1100px) {
  .h3-rail { position: fixed; z-index: 2; left: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; }
  .h3-rail button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .h3-rail button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); transition: transform 0.25s, background 0.25s; }
  .h3-rail button:hover::before { background: rgba(255, 255, 255, 0.6); }
  .h3-rail button[aria-current="true"]::before { background: var(--h3-accent); transform: scale(1.7); }
}
@media (max-width: 360px) {
  .h3-roi-grid { grid-template-columns: minmax(0, 1fr); }
  .h3-roi-grid div { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .h3-roi-grid dt { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .h3-js .h3-reveal { opacity: 1; transform: none; transition: none; }
  .h3-marker i::after { animation: none; }
  .h3-btn, .h3-post, .h3-more svg { transition: none; }
}

/* ── هیرو: جستجوی پزشک برای بیمار + دعوت پزشک/کلینیک ── */
.h3-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h3-search { position: relative; width: 100%; max-width: 560px; display: flex; align-items: center; z-index: 5; }
.h3-search input {
  width: 100%; min-width: 0; height: 58px; padding: 0 20px; padding-inline-end: 64px;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 17, 19, 0.72); color: var(--h3-ink);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  font: inherit; font-size: 15.5px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.9);
}
.h3-search input::placeholder { color: var(--h3-faint); }
.h3-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.h3-search input:focus { border-color: color-mix(in srgb, var(--h3-accent) 70%, transparent); box-shadow: 0 0 0 4px rgba(79, 203, 209, 0.14), 0 20px 50px -30px rgba(0, 0, 0, 0.9); }
.h3-search button {
  position: absolute; inset-inline-end: 7px; top: 7px; width: 44px; height: 44px; border-radius: 13px;
  border: 0; background: var(--h3-accent); color: var(--h3-accent-ink); cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s;
}
.h3-search button:hover { background: #6fdbe0; }
.h3-search button svg { width: 20px; height: 20px; }
.h3-search button:focus-visible { outline: 2px solid var(--h3-ink); outline-offset: 2px; }
.h3-suggest {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; margin: 0; padding: 6px; list-style: none;
  max-height: min(52vh, 360px); overflow-y: auto; overscroll-behavior: contain;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 19, 21, 0.96);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95);
}
.h3-suggest li { margin: 0; }
.h3-suggest a {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 12px;
  color: var(--h3-ink); text-decoration: none; font-size: 14px;
}
.h3-suggest a[aria-selected="true"], .h3-suggest a:hover { background: rgba(79, 203, 209, 0.12); }
.h3-suggest .h3-sg-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: rgba(79, 203, 209, 0.12); color: var(--h3-accent); }
.h3-suggest .h3-sg-ico img { width: 100%; height: 100%; object-fit: cover; }
.h3-suggest .h3-sg-ico svg { width: 17px; height: 17px; }
.h3-suggest .h3-sg-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.h3-suggest .h3-sg-txt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h3-suggest .h3-sg-txt small { font-size: 12px; color: var(--h3-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h3-suggest .h3-sg-head { padding: 8px 12px 4px; font-size: 11.5px; color: var(--h3-faint); }
.h3-suggest .h3-sg-all { color: var(--h3-accent); font-weight: 600; }
.h3-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.h3-chips a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--h3-line); background: rgba(255, 255, 255, 0.05); color: var(--h3-dim);
  font-size: 13px; text-decoration: none; white-space: nowrap; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.h3-chips a:hover { color: var(--h3-ink); border-color: rgba(79, 203, 209, 0.4); background: rgba(79, 203, 209, 0.08); }
.h3-chips a:focus-visible, .h3-suggest a:focus-visible { outline: 2px solid var(--h3-accent); outline-offset: 2px; }
.h3-clinic { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; padding-top: 16px; border-top: 1px solid var(--h3-line); }
.h3-clinic > span { flex: 1 0 100%; font-size: 13px; color: var(--h3-faint); }
.h3-clinic .h3-btn { flex: 1 1 110px; min-height: 46px; padding: 0 12px; font-size: 14px; }
@media (min-width: 821px) {
  .h3-search input { height: 62px; font-size: 16px; }
  .h3-search button { width: 48px; height: 48px; }
  .h3-clinic { width: auto; max-width: 560px; }
  .h3-clinic > span { flex: 0 0 auto; margin-inline-end: 4px; }
  .h3-clinic .h3-btn { flex: 0 0 auto; padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .h3-search input, .h3-chips a { transition: none; }
}


/* ═══════════ کارت‌های ناحیهٔ بدن ═══════════ */
.h3-rcard { display: flex; flex-direction: column; }
.h3-rblock { margin-top: 16px; }
.h3-rblock[hidden] { display: none; }
.h3-rlabel { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--h3-faint); }
.h3-rlist { display: flex; flex-direction: column; gap: 8px; }
.h3-doc, .h3-art {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px;
  border-radius: 16px; border: 1px solid var(--h3-line); background: rgba(255, 255, 255, 0.045);
  color: var(--h3-ink); text-decoration: none; transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.h3-doc:hover, .h3-art:hover { background: rgba(255, 255, 255, 0.085); border-color: rgba(79, 203, 209, 0.4); transform: translateY(-1px); }
.h3-doc:focus-visible, .h3-art:focus-visible { outline: 2px solid var(--h3-accent); outline-offset: 2px; }
.h3-doc-av { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(79, 203, 209, 0.14); color: var(--h3-accent); font-size: 15px; font-weight: 700; }
.h3-doc-av img, .h3-art-im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h3-doc-tx, .h3-art-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.h3-doc-tx b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h3-doc-tx small, .h3-art-tx small { font-size: 12px; color: var(--h3-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h3-doc-slot { flex: none; padding: 5px 10px; border-radius: 999px; background: rgba(79, 203, 209, 0.12); color: var(--h3-accent); font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.h3-art-im { flex: none; width: 56px; height: 40px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.h3-art-tx b { font-size: 13.5px; font-weight: 600; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.h3-rmore { align-self: flex-start; margin-top: 12px; }
.h3-rempty { font-size: 14px; }
@media (max-width: 820px) {
  .h3-rcard { padding: 18px; }
  .h3-rcard .h3-step { margin-bottom: 4px; }
  .h3-rblock { margin-top: 12px; }
  .h3-rlist { gap: 6px; }
  .h3-doc, .h3-art { min-height: 48px; padding: 6px 8px; border-radius: 14px; gap: 10px; }
  .h3-doc-av { width: 34px; height: 34px; }
  .h3-art-im { width: 46px; height: 34px; }
  .h3-rmore { margin-top: 6px; }
}
@media (min-width: 821px) {
  .h3-rcard { width: min(460px, 46%); padding: 30px; }
  .h3-rblock { margin-top: 20px; }
}

/* ═══════════ هیرو: جستجو و دکمه‌های شیشه‌ای (هم‌خانوادهٔ کپسول‌های هدر پنل منشی) ═══════════ */
.h3-search {
  height: 60px; padding: 0 8px 0 8px; gap: 4px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 18px 44px -24px rgba(0, 0, 0, 0.9);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.h3-search:focus-within { border-color: color-mix(in srgb, var(--h3-accent) 65%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 4px rgba(79, 203, 209, 0.14), 0 18px 44px -24px rgba(0, 0, 0, 0.9); }
.h3-search-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; color: var(--h3-dim); }
.h3-search-ico svg { width: 20px; height: 20px; }
.h3-search input,
.h3-search input:focus {
  flex: 1; width: auto; height: 100%; padding: 0; padding-inline-end: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.h3-search button.h3-search-go {
  position: static; flex: none; width: auto; height: 44px; padding: 0 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(79, 203, 209, 0.5);
  background: linear-gradient(180deg, rgba(79, 203, 209, 0.3), rgba(79, 203, 209, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #d9fbfd; font: inherit; font-size: 14.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.h3-search button.h3-search-go:hover { background: linear-gradient(180deg, rgba(79, 203, 209, 0.42), rgba(79, 203, 209, 0.22)); transform: translateY(-1px); }
.h3-suggest { top: calc(100% + 10px); border-radius: 22px; }
.h3-chips a {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.h3-btn {
  border-radius: 999px; border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 30px -20px rgba(0, 0, 0, 0.9);
}
.h3-btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)); }
.h3-btn--main {
  border-color: rgba(79, 203, 209, 0.5); color: #d9fbfd;
  background: linear-gradient(180deg, rgba(79, 203, 209, 0.3), rgba(79, 203, 209, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 30px -18px rgba(79, 203, 209, 0.6);
}
.h3-btn--main:hover { background: linear-gradient(180deg, rgba(79, 203, 209, 0.42), rgba(79, 203, 209, 0.22)); border-color: rgba(79, 203, 209, 0.7); }
@media (min-width: 821px) {
  .h3-search { height: 64px; padding: 0 9px; }
  .h3-search input, .h3-search input:focus { height: 100%; }
  .h3-search button.h3-search-go { width: auto; height: 46px; padding: 0 26px; }
}

/* ═══════════ مجله: کارت‌های هم‌اندازه ═══════════ */
.h3-post { border-radius: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 70px -44px rgba(0, 0, 0, 0.9); }
.h3-post-im { position: relative; display: block; margin: 8px 8px 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: #14181a; }
.h3-post-im img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.h3-post-im::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(8, 10, 11, 0.7), transparent); pointer-events: none; }
.h3-post:hover .h3-post-im img { transform: scale(1.05); }
.h3-post .h3-post-cat {
  position: absolute; z-index: 1; bottom: 10px; inset-inline-start: 10px; padding: 4px 11px; border-radius: 999px;
  background: rgba(10, 12, 13, 0.6); border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--h3-ink); font-size: 12px; font-weight: 600;
}
.h3-post > div { flex: 1; gap: 8px; padding: 14px 18px 16px; }
.h3-post h3 { min-height: 3.7em; }
.h3-post p { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--h3-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h3-post .h3-post-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--h3-line); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--h3-faint); }
.h3-post .h3-post-foot span { font-size: inherit; color: inherit; }
.h3-post .h3-post-foot .h3-post-go { color: var(--h3-accent); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .h3-post-im img, .h3-doc, .h3-art, .h3-search, .h3-search button.h3-search-go { transition: none; }
}

/* مارک‌ها زیر محتوا می‌مانند (کارت روی آن‌ها می‌افتد)؛ بخش‌ها فقط روی خود محتوا کلیک می‌گیرند تا مارک‌های کنار بدن کلیک‌پذیر بمانند */
.h3-home main, .h3-home main > .h3-sec, .h3-home main > .h3-sec > .h3-wrap { pointer-events: none; }
.h3-home main > .h3-sec > .h3-wrap > * { pointer-events: auto; }

/* زبانه‌های کارت ناحیه (فقط موبایل) */
.h3-rtabs { display: none; }
@media (max-width: 820px) {
  .h3-rtabs { display: flex; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 999px; border: 1px solid var(--h3-line); background: rgba(255, 255, 255, 0.045); }
  .h3-rtabs button { flex: 1; min-height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--h3-dim); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
  .h3-rtabs button[aria-selected="true"] { background: rgba(79, 203, 209, 0.16); color: var(--h3-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
  .h3-rtabs button:focus-visible { outline: 2px solid var(--h3-accent); outline-offset: 2px; }
  .h3-rcard[data-tab] .h3-rlabel { display: none; }
  .h3-rcard[data-tab] .h3-rblock { margin-top: 10px; }
  .h3-rcard[data-tab="doctors"] [data-part="articles"],
  .h3-rcard[data-tab="articles"] [data-part="doctors"] { display: none; }
}


/* ═══════════ کارت ناحیه — نسخهٔ بدون کادر داخلی: شیشهٔ یک‌تکه، ردیف‌های متن و تصویر با خط جداکننده ═══════════ */
.h3-rcard {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.035) 42%, rgba(255, 255, 255, 0.02) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(1.45); backdrop-filter: blur(28px) saturate(1.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 40px 90px -50px rgba(0, 0, 0, 0.95);
}
.h3-rcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; pointer-events: none; background: radial-gradient(80% 100% at 85% 0%, rgba(79, 203, 209, 0.16), transparent 70%); }
.h3-rcard > * { position: relative; }
.h3-rhead { display: flex; align-items: center; gap: 14px; }
.h3-rico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--h3-accent); border: 1px solid rgba(79, 203, 209, 0.32); background: linear-gradient(180deg, rgba(79, 203, 209, 0.2), rgba(79, 203, 209, 0.06)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.h3-rico svg { width: 26px; height: 26px; }
.h3-rhead .h3-step { margin: 0 0 2px; font-size: 12px; font-weight: 500; color: var(--h3-faint); }
.h3-rhead .h3-h2 { font-size: clamp(20px, 5.4vw, 24px); line-height: 1.5; }
.h3-rblock { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--h3-line); }
.h3-rlabel { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--h3-dim); }
.h3-rlabel svg { width: 16px; height: 16px; color: var(--h3-accent); flex: none; }
.h3-rlist { gap: 0; }
.h3-doc, .h3-art,
.h3-doc:hover, .h3-art:hover { min-height: 0; padding: 10px 0; gap: 12px; border: 0; border-radius: 0; background: none; transform: none; }
.h3-rlist > a + a { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.h3-doc-av { width: 46px; height: 46px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.h3-doc-tx b, .h3-art-tx b { transition: color 0.2s; }
.h3-doc:hover .h3-doc-tx b, .h3-art:hover .h3-art-tx b { color: var(--h3-accent); }
.h3-doc-tx { gap: 1px; }
.h3-doc-tx b { font-size: 14.5px; }
.h3-doc-slot { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; padding: 0; border-radius: 0; background: none; color: var(--h3-accent); font-size: 12px; font-weight: 500; }
.h3-doc-tx small svg, .h3-art-tx small svg, .h3-post-foot small svg { width: 13px; height: 13px; flex: none; }
.h3-art-tx small, .h3-post-foot small { display: inline-flex; align-items: center; gap: 5px; }
.h3-row-go { flex: none; width: 18px; height: 18px; color: var(--h3-faint); transition: transform 0.2s, color 0.2s; }
.h3-row-go svg { width: 18px; height: 18px; display: block; }
.h3-doc:hover .h3-row-go { color: var(--h3-accent); transform: translateX(-3px); }
.h3-art-im { width: 68px; height: 50px; border-radius: 12px; }
.h3-art-tx b { -webkit-line-clamp: 2; font-size: 13.5px; line-height: 1.75; }
.h3-rmore { margin-top: 10px; padding-top: 6px; }
.h3-post-go { display: inline-flex; align-items: center; gap: 4px; }
.h3-post-go svg { width: 14px; height: 14px; }
.h3-post .h3-post-foot small { font-size: inherit; color: inherit; }
@media (max-width: 820px) {
  .h3-rico { width: 44px; height: 44px; border-radius: 14px; }
  .h3-rico svg { width: 22px; height: 22px; }
  .h3-rblock { margin-top: 12px; padding-top: 10px; }
  .h3-rcard[data-tab] .h3-rblock { margin-top: 8px; padding-top: 0; border-top: 0; }
  .h3-doc, .h3-art, .h3-doc:hover, .h3-art:hover { padding: 8px 0; }
  .h3-doc-av { width: 40px; height: 40px; }
  .h3-art-im { width: 58px; height: 42px; }
  .h3-art-tx b { -webkit-line-clamp: 1; }
}
@media (min-width: 821px) {
  .h3-rcard { width: min(470px, 46%); padding: 30px 30px 24px; }
  .h3-rhead .h3-h2 { font-size: clamp(22px, 1.9vw, 27px); }
}

/* ═══════════ فوتر صفحهٔ اصلی ═══════════ */
.h3-footer { position: relative; z-index: 1; margin-top: 40px; border-top: 1px solid var(--h3-line); background: linear-gradient(180deg, rgba(14, 17, 19, 0.82), rgba(8, 9, 10, 0.96)); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--h3-dim); }
.h3-fwrap { width: calc(100% - 2 * var(--h3-gutter)); max-width: 1200px; margin-inline: auto; padding: 40px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.h3-ftop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
.h3-fbrand { grid-column: 1 / -1; }
.h3-flogo { display: inline-flex; align-items: center; gap: 12px; color: var(--h3-ink); text-decoration: none; }
.h3-flogo img { width: 44px; height: 44px; display: block; }
.h3-flogo span { display: flex; flex-direction: column; }
.h3-flogo b { font-size: 19px; font-weight: 700; }
.h3-flogo small { font-size: 12px; color: var(--h3-faint); }
.h3-fbrand p { margin: 14px 0 0; max-width: 34em; font-size: 14px; line-height: 2; color: var(--h3-dim); }
.h3-fcta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.h3-fcta .h3-btn { flex: 0 1 auto; min-height: 46px; padding: 0 20px; gap: 8px; font-size: 14px; }
.h3-fcta .h3-btn svg { width: 18px; height: 18px; flex: none; }
.h3-fcol h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--h3-ink); }
.h3-fcol ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.h3-fcol ul a { display: inline-flex; align-items: center; min-height: 34px; color: var(--h3-dim); font-size: 13.5px; text-decoration: none; transition: color 0.2s; }
.h3-fcol ul a:hover, .h3-fbottom a:hover { color: var(--h3-accent); }
.h3-fcontact { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.h3-fcontact h3 { margin-bottom: 2px; }
.h3-fline { margin: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.h3-fline > svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 13px; color: var(--h3-accent); border: 1px solid var(--h3-line); background: rgba(255, 255, 255, 0.05); }
.h3-fline span { display: flex; flex-direction: column; gap: 1px; }
.h3-fline small { font-size: 12px; color: var(--h3-faint); }
.h3-fline b { font-size: 14.5px; font-weight: 600; color: var(--h3-ink); font-variant-numeric: tabular-nums; }
.h3-fbottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--h3-line); display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; line-height: 1.9; color: var(--h3-faint); }
.h3-fbottom a { color: var(--h3-dim); text-decoration: none; transition: color 0.2s; }
.h3-flinks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.h3-footer a:focus-visible { outline: 2px solid var(--h3-accent); outline-offset: 3px; border-radius: 6px; }
@media (min-width: 821px) {
  .h3-fwrap { padding: 64px 0 36px; }
  .h3-ftop { grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
  .h3-fbrand, .h3-fcontact { grid-column: auto; }
  .h3-fbottom { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 48px; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .h3-ftop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h3-fbrand { grid-column: 1 / -1; }
}

/* صفحه‌های کوتاه: کارت ناحیه فشرده‌تر تا در قاب جا شود */
@media (min-width: 821px) and (max-height: 900px) {
  .h3-rcard { padding: 24px 28px 18px; }
  .h3-rblock { margin-top: 14px; padding-top: 10px; }
  .h3-doc, .h3-art, .h3-doc:hover, .h3-art:hover { padding: 8px 0; }
  .h3-art-tx b { -webkit-line-clamp: 1; }
  .h3-art-im { width: 60px; height: 44px; }
}

/* مارک‌ها: رنگ خنثی (سفید مات) به‌جای فیروزه‌ای */
.h3-marker, .h3-marker--hot { --mk: rgba(235, 240, 243, 0.78); }
.h3-marker i { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12); }
.h3-marker::before { background: rgba(255, 255, 255, 0.28); }
.h3-marker:hover span, .h3-marker:focus-visible span { border-color: rgba(255, 255, 255, 0.4); }
.h3-marker:focus-visible i { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.3); }

/* رنگ خنثی برای کارت‌های ناحیه و مارک‌ها (بدون فیروزه‌ای) */
.h3-rcard::before { background: radial-gradient(80% 100% at 85% 0%, rgba(255, 255, 255, 0.07), transparent 70%); }
.h3-rico { color: rgba(240, 244, 246, 0.9); border-color: rgba(255, 255, 255, 0.16); background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)); }
.h3-rlabel svg { color: rgba(240, 244, 246, 0.6); }
.h3-rcard .h3-step { color: var(--h3-faint); }
.h3-rcard .h3-doc-av { background: rgba(255, 255, 255, 0.08); color: rgba(240, 244, 246, 0.85); }
.h3-rcard .h3-doc-slot, .h3-rcard .h3-more, .h3-rcard .h3-rmore { color: rgba(240, 244, 246, 0.72); }
.h3-doc:hover, .h3-art:hover { border-color: rgba(255, 255, 255, 0.28); }
.h3-doc:hover .h3-doc-tx b, .h3-art:hover .h3-art-tx b, .h3-doc:hover .h3-row-go { color: #fff; }
.h3-rcard .h3-rtabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.h3-marker i::after { border-color: rgba(255, 255, 255, 0.35); }
.h3-marker small { color: rgba(240, 244, 246, 0.6); }

/* ═══════════ موبایل: کارت‌های کوچک ثابت پایین صفحه با جابه‌جایی محو (home3d.js کلاس is-on را می‌دهد) ═══════════ */
@media (max-width: 820px) {
  /* بخش‌ها فقط فاصلهٔ اسکرول را می‌سازند؛ کارت خودش جابه‌جا نمی‌شود */
  .h3-sec:not(.h3-sec--mid) { padding: 0; }
  .h3-sec:not(.h3-sec--mid)::before { content: none; }
  .h3-home main::before {
    content: ""; position: fixed; inset: auto 0 0; height: 46vh; z-index: -1; pointer-events: none;
    background: linear-gradient(to top, rgba(7, 20, 26, 0.92) 0%, rgba(7, 20, 26, 0.6) 45%, rgba(7, 20, 26, 0) 100%);
  }
  .h3-js .h3-sec:not(.h3-sec--mid) > .h3-wrap {
    position: fixed; z-index: 2; inset-inline: 0; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: min(380px, calc(100% - 40px)); margin-inline: auto;
    opacity: 0; visibility: hidden; transform: scale(0.96);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
  }
  .h3-js .h3-sec.is-on > .h3-wrap {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.42s ease 0.18s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s, visibility 0s;
  }
  /* داخل کارت ثابت، ورود جداگانهٔ اجزا لازم نیست */
  .h3-js .h3-sec:not(.h3-sec--mid) .h3-reveal { opacity: 1; transform: none; transition: none; }

  /* کارت هیرو: عنوان، جستجو، تخصص‌ها و دعوت کلینیک */
  .h3-sec[data-stop="hero"] .h3-copy {
    gap: 10px; padding: 14px; border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.035) 42%, rgba(255, 255, 255, 0.02) 100%), rgba(12, 14, 16, 0.55);
    -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 30px 70px -40px rgba(0, 0, 0, 0.95);
  }
  .h3-sec[data-stop="hero"] .h3-title { font-size: clamp(18px, 5.4vw, 22px); font-weight: 400; line-height: 1.6; }
  .h3-sec[data-stop="hero"] .h3-search { height: 50px; padding: 0 5px; max-width: none; }
  .h3-sec[data-stop="hero"] .h3-search-ico { width: 30px; }
  .h3-sec[data-stop="hero"] .h3-search input { font-size: 16px; }   /* کمتر از ۱۶ در iOS بزرگ‌نمایی می‌کند */
  .h3-sec[data-stop="hero"] .h3-search button.h3-search-go { height: 40px; padding: 0 16px; font-size: 14px; }
  /* پیشنهادها رو به بالا باز می‌شوند چون کارت پایین صفحه است */
  .h3-sec[data-stop="hero"] .h3-suggest { top: auto; bottom: calc(100% + 8px); max-height: min(44vh, 320px); }
  .h3-sec[data-stop="hero"] .h3-chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + 28px);
    margin-inline: -14px; padding-inline: 14px; scroll-padding-inline: 14px;
  }
  .h3-sec[data-stop="hero"] .h3-chips::-webkit-scrollbar { display: none; }
  .h3-sec[data-stop="hero"] .h3-chips a { flex: none; min-height: 32px; padding: 0 12px; font-size: 12.5px; }
  .h3-sec[data-stop="hero"] .h3-clinic { gap: 6px 8px; padding-top: 10px; }
  .h3-sec[data-stop="hero"] .h3-clinic > span { flex: 1 0 100%; font-size: 12px; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .h3-sec[data-stop="hero"] .h3-clinic .h3-btn { flex: 1 1 0; min-height: 38px; padding: 0 12px; font-size: 13px; }

  /* کارت‌های ناحیه: فشرده */
  .h3-rcard { padding: 14px 14px 10px; border-radius: 22px; max-height: calc(100svh - 150px); overflow-y: auto; scrollbar-width: none; }
  .h3-rcard::-webkit-scrollbar { display: none; }
  .h3-rhead { gap: 10px; }
  .h3-rico { width: 38px; height: 38px; border-radius: 12px; }
  .h3-rico svg { width: 20px; height: 20px; }
  .h3-rhead .h3-step { font-size: 11.5px; }
  .h3-rhead .h3-h2 { font-size: 17px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .h3-rhead > div { min-width: 0; }
  .h3-rtabs { margin-top: 10px; }
  .h3-rtabs button { min-height: 32px; font-size: 13px; }
  .h3-doc, .h3-art, .h3-doc:hover, .h3-art:hover { padding: 6px 0; }
  .h3-doc-av { width: 36px; height: 36px; }
  .h3-doc-tx b { font-size: 13.5px; }
  .h3-art-im { width: 50px; height: 36px; border-radius: 10px; }
  .h3-rmore { min-height: 36px; margin-top: 2px; padding-top: 2px; font-size: 13.5px; }
  .h3-rempty { margin-top: 10px; font-size: 13px; line-height: 1.8; }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  .h3-js .h3-sec:not(.h3-sec--mid) > .h3-wrap,
  .h3-js .h3-sec.is-on > .h3-wrap { transition: none; transform: none; }
}

/* موبایل: محوشدن روی خود کارت (نه والد) تا شیشهٔ مات هم‌زمان و نرم ظاهر شود.
   opacity کمتر از ۱ روی والد، backdrop-filter فرزند را تا پایان انیمیشن از کار می‌انداخت و مات‌شدن یک‌باره بود. */
@media (max-width: 820px) {
  .h3-js .h3-sec:not(.h3-sec--mid) > .h3-wrap,
  .h3-js .h3-sec.is-on > .h3-wrap { opacity: 1; }
  .h3-js .h3-sec:not(.h3-sec--mid) > .h3-wrap > * {
    opacity: 0;
    -webkit-backdrop-filter: blur(0px) saturate(1); backdrop-filter: blur(0px) saturate(1);
    transition: opacity 0.28s ease, -webkit-backdrop-filter 0.28s ease, backdrop-filter 0.28s ease;
  }
  .h3-js .h3-sec.is-on > .h3-wrap > * {
    opacity: 1;
    -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
    transition: opacity 0.45s ease 0.18s, -webkit-backdrop-filter 0.6s ease 0.18s, backdrop-filter 0.6s ease 0.18s;
  }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  .h3-js .h3-sec:not(.h3-sec--mid) > .h3-wrap > * { transition: none; }
}

/* اسکرول بخش‌به‌بخش بدون Lenis (موبایل و دستگاه لمسی): هر کشیدن انگشت = یک بخش. فوتر از قاب بلندتر است و داخلش آزاد اسکرول می‌شود. */
html.h3-snap { scroll-snap-type: y mandatory; }
html.h3-snap .h3-home main > .h3-sec { scroll-snap-align: start; scroll-snap-stop: always; }
html.h3-snap .h3-home .h3-footer { scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { html.h3-snap { scroll-snap-type: y proximity; } }
/* body با overflow: hidden خودش ظرف اسکرول می‌شد و نقطه‌های snap به آن می‌چسبیدند نه صفحه؛ clip سرریز افقی را می‌گیرد بی آنکه ظرف اسکرول بسازد */
html.h3-snap body.h3-home { overflow-x: clip !important; overflow-y: visible !important; }

/* ═══════════ موبایل: هدر کپسولی شیشه‌ای (فقط صفحهٔ اصلی) ═══════════ */
@media (max-width: 820px) {
  .h3-home .site-header-sticky,
  .h3-home .site-header-sticky.is-scrolled,
  .h3-home .site-header-sticky.is-pinned {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 0 !important; height: auto !important; min-height: 0 !important;
  }
  /* will-change: opacity روی هدر آن را «ریشهٔ بک‌دراپ» می‌کرد و بلور شیشه فقط محتوای خود هدر را می‌دید، نه اسکلت پشتش را */
  .h3-home .site-header-sticky { will-change: auto !important; }
  .h3-home .site-header-sticky .header-inner {
    width: 100% !important; max-width: none !important; height: 54px !important; min-height: 0 !important; margin: 0 !important;
    padding: 0 7px !important; padding-inline-start: 12px !important;
    display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center !important; gap: 8px !important;
    /* هم‌جنس کارت‌های ناحیه‌ها (.h3-card): همان شیشهٔ برش‌خورده، مرز، بلور و سایه */
    border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.035) 42%, rgba(255, 255, 255, 0.02) 100%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.4) !important; backdrop-filter: blur(24px) saturate(1.4) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 40px 90px -50px rgba(0, 0, 0, 0.95) !important;
  }
  .h3-home .site-header-sticky .brand-wrap { display: flex !important; align-items: center !important; gap: 9px !important; }
  .h3-home .site-header-sticky .brand-logo-emblem { display: none !important; }
  .h3-home .site-header-sticky .brand-title-fa { font-size: 21px !important; font-weight: 800 !important; letter-spacing: 0 !important; line-height: 1.2 !important; white-space: nowrap; }
  .h3-home .site-header-sticky .brand-subtitle-fa { display: none !important; }
  /* چینش: همبرگر راست، لوگو و نام وسط، دکمهٔ ورود چپ */
  .h3-home .site-header-sticky .header-brand-cluster { grid-column: 2; grid-row: 1; justify-self: center; }
  .h3-home .site-header-sticky .header-actions { display: contents !important; }
  .h3-home .site-header-sticky .header-actions .pez-shell-pill-demo { display: none !important; }
  .h3-home .site-header-sticky .mobile-menu-toggle { grid-column: 1; grid-row: 1; justify-self: start; }
  .h3-home .site-header-sticky .header-auth-capsule { grid-column: 3; grid-row: 1; justify-self: end; }
  .h3-home .site-header-sticky .header-auth-capsule { display: flex !important; padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
  .h3-home .site-header-sticky .header-auth-capsule .auth-combined-btn {
    height: 40px !important; min-height: 0 !important; padding: 0 14px !important; gap: 6px !important;
    display: inline-flex !important; align-items: center !important; border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    color: #f1f4f5 !important; font-size: 13px !important; font-weight: 600 !important; white-space: nowrap !important;
  }
  .h3-home .site-header-sticky .header-auth-capsule .auth-combined-btn * { color: #f1f4f5 !important; }
  .h3-home .site-header-sticky .mobile-menu-toggle {
    display: grid !important; place-items: center !important; flex: none !important;
    width: 40px !important; height: 40px !important; padding: 0 !important; margin: 0 !important; border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important; color: #f1f4f5 !important;
  }
  .h3-home .site-header-sticky .mobile-menu-toggle .svg-icon { width: 19px !important; height: 19px !important; }
}
@media (max-width: 340px) {
  .h3-home .site-header-sticky .header-auth-capsule .auth-combined-btn svg { display: none !important; }
  .h3-home .site-header-sticky .header-auth-capsule .auth-combined-btn { padding: 0 12px !important; }
}

/* ═══════════ منوی کشویی صفحهٔ اصلی ═══════════ */
html:has(#mobileNavDrawer.active), html:has(#mobileNavDrawer.active) body.h3-home { overflow: hidden !important; }
/* لایهٔ پشتِ منو فقط تیره می‌کند؛ بلور روی آن «ریشهٔ بک‌دراپ» می‌ساخت و شیشهٔ خود منو اسکلت را نمی‌دید */
.h3-home #mobileNavDrawer { background: rgba(4, 5, 6, 0.35); -webkit-backdrop-filter: none; backdrop-filter: none; }
.h3-home #mobileNavDrawer .drawer-content.h3-dr {
  width: min(340px, 88vw); max-width: none; gap: 14px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.035) 42%, rgba(255, 255, 255, 0.02) 100%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.4) !important; backdrop-filter: blur(24px) saturate(1.4) !important;
  border: 0 !important;
  border-radius: 26px 0 0 26px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.02), -40px 0 90px -50px rgba(0, 0, 0, 0.95);
  color: #f1f4f5; overscroll-behavior: contain; scrollbar-width: none;
}
/* منو از سمت راست باز می‌شود */
.h3-home #mobileNavDrawer .drawer-content.h3-dr {
  left: auto !important; right: 0 !important; transform: translateX(100%);
  border-right: 0 !important; border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.h3-home #mobileNavDrawer.active .drawer-content.h3-dr { transform: translateX(0); }
.h3-dr::-webkit-scrollbar { display: none; }
.h3-dr a { text-decoration: none; }
.h3-dr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.h3-dr-brand { display: flex; align-items: center; gap: 10px; color: #f1f4f5; min-width: 0; }
.h3-dr-brand img { display: block; flex: none; }
.h3-dr-brand span { display: flex; flex-direction: column; min-width: 0; }
.h3-dr-brand b { font-size: 16px; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.h3-dr-brand small { font-size: 11.5px; color: rgba(241, 244, 245, 0.5); white-space: nowrap; }
.h3-dr-close, .h3-dr-search, .h3-dr-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #f1f4f5; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.h3-dr-close { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.h3-dr-close svg { width: 18px; height: 18px; }
.h3-dr-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px; color: rgba(241, 244, 245, 0.6); font-size: 14px; white-space: nowrap; }
.h3-dr-search svg { width: 18px; height: 18px; flex: none; color: rgba(241, 244, 245, 0.75); }
.h3-dr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.h3-dr-list > li { margin: 0; }
.h3-dr .h3-dr-group, .h3-dr .h3-dr-group.is-open { border: 0 !important; border-radius: 16px; background: transparent !important; overflow: visible; }
.h3-dr .h3-dr-group.is-open { background: rgba(255, 255, 255, 0.04) !important; }
.h3-dr-row {
  width: 100%; min-height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 14px;
  border: 0; background: none; color: rgba(241, 244, 245, 0.86); font: inherit; font-size: 14.5px; font-weight: 600; text-align: start;
  cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s;
}
.h3-dr-row > svg:first-child { width: 20px; height: 20px; flex: none; color: rgba(241, 244, 245, 0.55); }
.h3-dr-row > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.h3-dr-row[aria-current="page"] { background: rgba(255, 255, 255, 0.08); color: #fff; }
.h3-dr-row[aria-current="page"] > svg:first-child { color: #fff; }
.h3-dr-chev { width: 16px; height: 16px; flex: none; color: rgba(241, 244, 245, 0.45); transition: transform 0.25s; }
.h3-dr-group.is-open .h3-dr-chev { transform: rotate(180deg); }
.h3-dr-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.h3-dr-group.is-open .h3-dr-sub { grid-template-rows: 1fr; }
.h3-dr-sub > div { overflow: hidden; display: flex; flex-direction: column; padding-inline-start: 44px; }
.h3-dr-group.is-open .h3-dr-sub > div { padding-bottom: 8px; }
.h3-dr-sub a { display: flex; align-items: center; min-height: 40px; color: rgba(241, 244, 245, 0.62); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h3-dr-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.h3-dr-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.h3-dr-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.h3-dr-btn--main { border-color: rgba(255, 255, 255, 0.28); background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.09)); color: #fff; }
@media (hover: hover) {
  .h3-dr-row:hover, .h3-dr-sub a:hover { color: #fff; }
  .h3-dr-row:hover { background: rgba(255, 255, 255, 0.06); }
  .h3-dr-close:hover, .h3-dr-search:hover, .h3-dr-btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)); border-color: rgba(255, 255, 255, 0.24); }
}
.h3-dr a:focus-visible, .h3-dr button:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .h3-dr-sub, .h3-dr-chev, .h3-dr-row { transition: none; } }

/* ═══════════ دور دوم هدر و منوی موبایل: شیشهٔ مات‌تر، رنگ برند فیروزه‌ای در نقاط کلیدی، حذف کادر آبی لمس، انیمیشن منو ═══════════ */
/* کادر آبی هنگام لمس/کلیک: هایلایت لمسی مرورگر و خط فوکوس پیش‌فرض. فقط فوکوس صفحه‌کلید (focus-visible) حلقه دارد */
.h3-home, .h3-home * { -webkit-tap-highlight-color: transparent; }
.h3-home .site-header-sticky :focus:not(:focus-visible),
.h3-home #mobileNavDrawer :focus:not(:focus-visible),
.h3-home main :focus:not(:focus-visible) { outline: none !important; box-shadow: none; }
.h3-home .site-header-sticky .mobile-menu-toggle:focus:not(:focus-visible),
.h3-home .site-header-sticky .auth-combined-btn:focus:not(:focus-visible) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important; }
.h3-home .site-header-sticky a:focus-visible,
.h3-home .site-header-sticky button:focus-visible { outline: 2px solid rgba(79, 203, 209, 0.8) !important; outline-offset: 2px; }

/* دسکتاپ: دکمهٔ «ورود و ثبت‌نام» فیروزه‌ای توپُر، هم‌رنگ «ثبت کلینیک» هیرو؛ آیکن ورود برای راست‌به‌چپ برعکس شد تا فلش به داخل بپرد */
@media (min-width: 821px) {
  .h3-home .site-header-sticky .header-auth-capsule .auth-combined-btn {
    height: 38px; padding: 0 16px !important; gap: 8px !important; border-radius: 12px !important;
    font-size: 13px !important; font-weight: 700 !important; border: 0 !important;
    box-shadow: 0 10px 28px -14px rgba(79, 203, 209, 0.75) !important; transition: background 0.2s;
  }
  .h3-home .site-header-sticky .header-auth-capsule .auth-combined-btn svg { width: 16px !important; height: 16px !important; transform: scaleX(-1); }
  .h3-home .site-header-sticky .header-auth-capsule .auth-combined-btn:hover { background: #6fdbe0 !important; transform: none !important; }
}
@media (max-width: 820px) {
  .h3-home .site-header-sticky .header-auth-capsule .auth-combined-btn {
    border-color: rgba(79, 203, 209, 0.5) !important;
    background: linear-gradient(180deg, rgba(79, 203, 209, 0.32), rgba(79, 203, 209, 0.14)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 22px -12px rgba(79, 203, 209, 0.6) !important;
    color: #e6fdfe !important;
  }
  .h3-home .site-header-sticky .header-auth-capsule .auth-combined-btn * { color: #e6fdfe !important; }
  .h3-home .site-header-sticky .mobile-menu-toggle { background: rgba(255, 255, 255, 0.07) !important; border-color: rgba(255, 255, 255, 0.12) !important; transition: transform 0.2s, background 0.2s; }
  .h3-home .site-header-sticky .mobile-menu-toggle:active,
  .h3-home .site-header-sticky .auth-combined-btn:active { transform: scale(0.94); }
}

/* منو: شیشهٔ تیرهٔ مات با ته‌رنگ کم فیروزه‌ای */
.h3-home #mobileNavDrawer .drawer-content.h3-dr {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.035) 42%, rgba(255, 255, 255, 0.02) 100%) !important;
  border-right-color: rgba(255, 255, 255, 0.1) !important;
}
.h3-dr-row > svg:first-child { color: rgba(79, 203, 209, 0.8); }
.h3-dr-row[aria-current="page"] { background: linear-gradient(90deg, rgba(79, 203, 209, 0.04), rgba(79, 203, 209, 0.16)); color: #fff; box-shadow: inset -3px 0 0 #4fcbd1; }
.h3-dr-row[aria-current="page"] > svg:first-child { color: #4fcbd1; }
.h3-dr .h3-dr-group.is-open { background: rgba(79, 203, 209, 0.06) !important; }
.h3-dr-group.is-open > .h3-dr-row { color: #fff; }
.h3-dr-group.is-open .h3-dr-chev { color: #4fcbd1; }
.h3-dr-sub a { position: relative; }
.h3-dr-sub a::before { content: ""; position: absolute; inset-inline-start: -16px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: rgba(79, 203, 209, 0.45); }
.h3-dr-search { background: rgba(255, 255, 255, 0.06); }
.h3-dr-search svg { color: #4fcbd1; }
.h3-dr-btn--main {
  border-color: rgba(79, 203, 209, 0.55); color: #e6fdfe;
  background: linear-gradient(180deg, rgba(79, 203, 209, 0.34), rgba(79, 203, 209, 0.15));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 28px -16px rgba(79, 203, 209, 0.7);
}
.h3-dr-row:active, .h3-dr-sub a:active, .h3-dr-btn:active, .h3-dr-search:active { transform: scale(0.98); }
.h3-dr-row, .h3-dr-btn, .h3-dr-search { transition: background 0.2s, color 0.2s, transform 0.15s; }

/* انیمیشن باز و بسته شدن منو: پس‌زمینه نرم محو، پنل با فنرِ نرم می‌آید، ردیف‌ها پشت‌سرهم ظاهر می‌شوند؛ بستن سریع‌تر */
.h3-home #mobileNavDrawer {
  background: rgba(4, 6, 7, 0); -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 1;
  transition: background 0.28s ease, visibility 0s linear 0.3s;
}
.h3-home #mobileNavDrawer.active {
  background: rgba(4, 6, 7, 0.35); -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background 0.35s ease, visibility 0s;
}
.h3-home #mobileNavDrawer .drawer-content.h3-dr {
  transform: translateX(104%); opacity: 0.6;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.9, 0.5), opacity 0.3s ease;
}
.h3-home #mobileNavDrawer.active .drawer-content.h3-dr {
  transform: none; opacity: 1;
  transition: transform 0.55s cubic-bezier(0.22, 1.12, 0.36, 1), opacity 0.25s ease;
}
.h3-dr-head, .h3-dr-search, .h3-dr-list > li, .h3-dr-foot {
  opacity: 0; transform: translateX(14px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
#mobileNavDrawer.active .h3-dr-head, #mobileNavDrawer.active .h3-dr-search,
#mobileNavDrawer.active .h3-dr-list > li, #mobileNavDrawer.active .h3-dr-foot {
  opacity: 1; transform: none;
  transition: opacity 0.4s ease var(--d, 0s), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s);
}
#mobileNavDrawer.active .h3-dr-head { --d: 0.06s; }
#mobileNavDrawer.active .h3-dr-search { --d: 0.1s; }
#mobileNavDrawer.active .h3-dr-list > li:nth-child(1) { --d: 0.13s; }
#mobileNavDrawer.active .h3-dr-list > li:nth-child(2) { --d: 0.16s; }
#mobileNavDrawer.active .h3-dr-list > li:nth-child(3) { --d: 0.19s; }
#mobileNavDrawer.active .h3-dr-list > li:nth-child(4) { --d: 0.22s; }
#mobileNavDrawer.active .h3-dr-list > li:nth-child(5) { --d: 0.25s; }
#mobileNavDrawer.active .h3-dr-list > li:nth-child(6) { --d: 0.28s; }
#mobileNavDrawer.active .h3-dr-list > li:nth-child(7) { --d: 0.31s; }
#mobileNavDrawer.active .h3-dr-foot { --d: 0.34s; }
@media (prefers-reduced-motion: reduce) {
  .h3-home #mobileNavDrawer, .h3-home #mobileNavDrawer .drawer-content.h3-dr,
  .h3-dr-head, .h3-dr-search, .h3-dr-list > li, .h3-dr-foot { transition: none !important; }
  .h3-dr-head, .h3-dr-search, .h3-dr-list > li, .h3-dr-foot { transform: none; }
}



/* آیکون ردیف‌های منو: کاشی گرد و ملایم با رنگ برند */
.h3-dr-row > svg:first-child {
  box-sizing: content-box; width: 18px !important; height: 18px !important; padding: 8px; border-radius: 12px;
  color: #4fcbd1 !important; background: rgba(79, 203, 209, 0.1); border: 1px solid rgba(79, 203, 209, 0.16);
}
.h3-dr-row[aria-current="page"] > svg:first-child { background: rgba(79, 203, 209, 0.2); border-color: rgba(79, 203, 209, 0.34); color: #fff !important; }

/* ورود مرحله‌ای نشانگرها (--p از home3d.js): اول دایره ظاهر می‌شود، بعد خط از آن کشیده می‌شود، آخر برچسب ناحیه */
/* نقطه سر جای خودش بزرگ می‌شود، خط از نقطه بیرون کشیده می‌شود، و برچسب از سمت خط به بیرون «نوشته» می‌شود (clip-path) */
.h3-marker { --p: 0; }
/* نشانگر لینک است و قانون سراسری لینک‌ها به transform گذار ۰٫۱۶ ثانیه می‌داد: نشانگر از گوشهٔ بالای صفحه سُر می‌خورد سر جایش.
   جای نشانگر هر فریم از home3d.js می‌آید و نباید هیچ گذاری داشته باشد. */
.h3-marker, .h3-marker i, .h3-marker::before { transition: none !important; }
.h3-marker i { transform: scale(clamp(0, calc(var(--p) * 4), 1)); }
.h3-marker::before { transform: scaleX(clamp(0, calc((var(--p) - 0.2) * 2.6), 1)); }
.h3-marker[data-dir="1"]::before { transform-origin: left center; }
.h3-marker[data-dir="-1"]::before { transform-origin: right center; }
.h3-marker span { --q: clamp(0, calc((var(--p) - 0.55) * 2.3), 1); opacity: clamp(0, calc(var(--q) * 4), 1); }
.h3-marker[data-dir="1"] span { clip-path: inset(-2px calc((1 - var(--q)) * 100%) -2px -2px); }
.h3-marker[data-dir="-1"] span { clip-path: inset(-2px -2px -2px calc((1 - var(--q)) * 100%)); }
@media (prefers-reduced-motion: reduce) {
  .h3-marker i, .h3-marker::before, .h3-marker span { transform: none; opacity: 1; clip-path: none; }
  .h3-marker span { transform: translateY(-50%); }
}
