/* ==========================================================================
   ساسان کلینیک · صفحه‌های داخلی (پزشکان، درباره‌ی ما و ...)
   بخش‌های مشترک هدر و فوتر از base.css و home.css می‌آیند؛ اینجا فقط بخش‌های خود صفحه‌ها است.
   حرکت‌ها فقط transform و opacity اند و هیچ‌کدام بی‌پایان نیستند.
   ========================================================================== */

[data-k="dental"] { --tone: var(--dental); --tint: #E6F3FC; }
[data-k="beauty"] { --tone: var(--beauty); --tint: #FBEAF0; }
[data-k="medicine"] { --tone: var(--med); --tint: #E4F6F0; }

/* ---------- سربرگ صفحه ---------- */
.pg-hero {
  position: relative; isolation: isolate; overflow: clip;
  color: #fff; background: #070A1E;
  padding-top: calc(var(--hdr-h) + clamp(36px, 7vh, 84px));
  padding-bottom: clamp(56px, 9vh, 110px);
}
.pg-hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 60% at 85% 10%, rgba(30, 94, 235, .38), transparent 70%),
    radial-gradient(40% 45% at 8% 88%, rgba(214, 90, 131, .22), transparent 70%),
    radial-gradient(45% 50% at 45% 55%, rgba(31, 174, 134, .12), transparent 70%);
}
.pg-hero__glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 60% 30%, #000, transparent 75%);
}
.pg-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--f-ui); font-size: var(--fs-label); color: rgba(217, 226, 241, .62); }
.pg-crumb li + li::before { content: "/"; margin-inline-end: 6px; opacity: .5; }
.pg-crumb a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 4px; transition: color .2s; }
.pg-crumb a:hover { color: #fff; }
.pg-crumb [aria-current] { color: #fff; }
.pg-hero .kicker { margin-top: 22px; }
.pg-title { margin-top: 14px; font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4.1rem); line-height: 1.22; letter-spacing: -.01em; }
.pg-title em {
  font-style: normal; display: inline-block;
  background: linear-gradient(100deg, #9EC5FF 0%, #C4B2FF 45%, #FFA9C8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pg-lead { margin-top: 20px; max-width: 54ch; font-size: var(--fs-lead); line-height: 1.95; color: rgba(217, 226, 241, .78); }
.pg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vh, 40px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.pg-stats > div { display: flex; flex-direction: column-reverse; gap: 2px; }
.pg-stats dd { font-family: var(--f-ui); font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.6rem); font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pg-stats dt { font-family: var(--f-ui); font-size: var(--fs-label); color: rgba(217, 226, 241, .62); }

/* ورود سربرگ: یک بار با CSS، بدون وابستگی به اسکریپت */
@keyframes pgIn { from { opacity: 0; transform: translate3d(0, 26px, 0); } }
html:not(.rm) .pg-in { animation: pgIn 1s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(var(--d, 0) * 80ms + 60ms); }

/* ==========================================================================
   پزشکان: بادبزن عکس‌ها در سربرگ
   ========================================================================== */
.dr-hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.dr-fan { --cw: clamp(150px, 13.5vw, 200px); --sx: 1; position: relative; height: calc(var(--cw) * 2.05); }
.dr-fan__card {
  position: absolute; left: 50%; top: 50%; width: var(--cw); aspect-ratio: 4 / 5;
  margin: calc(var(--cw) * -.66) 0 0 calc(var(--cw) * -.5);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px -24px rgba(0, 0, 0, .7);
  background: #0B1430;
  transition: translate .8s var(--spring), rotate .8s var(--spring), box-shadow .3s;
}
.dr-fan__card:nth-child(1) { z-index: 1; translate: calc(var(--cw) * 1.12 * var(--sx)) 30px; rotate: 11deg; }
.dr-fan__card:nth-child(2) { z-index: 2; translate: calc(var(--cw) * .58 * var(--sx)) 8px; rotate: 5.5deg; }
.dr-fan__card:nth-child(3) { z-index: 3; translate: 0 0; rotate: 0deg; }
.dr-fan__card:nth-child(4) { z-index: 2; translate: calc(var(--cw) * -.58 * var(--sx)) 8px; rotate: -5.5deg; }
.dr-fan__card:nth-child(5) { z-index: 1; translate: calc(var(--cw) * -1.12 * var(--sx)) 30px; rotate: -11deg; }
.dr-fan__img { position: absolute; inset: 0; }
.dr-fan__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.dr-fan__cap {
  position: absolute; inset: auto 0 0; display: grid; gap: 0; padding: 36px 12px 10px;
  background: linear-gradient(0deg, rgba(4, 8, 22, .88), rgba(4, 8, 22, 0));
  font-family: var(--f-ui); line-height: 1.5;
}
.dr-fan__cap b { font-size: .875rem; font-weight: 700; }
.dr-fan__cap small { display: flex; align-items: center; gap: 6px; font-size: .6875rem; color: rgba(217, 226, 241, .75); }
.dr-fan__cap small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); }
.dr-fan__card:focus-visible { outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .dr-fan:hover { --sx: 1.1; }
  .dr-fan__card:hover { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5), 0 36px 70px -24px rgba(0, 0, 0, .8); }
  .dr-fan__card:hover .dr-fan__img img { transform: scale(1.06); }
}
/* پخش شدن کارت‌ها در ورود: از یک دسته روی هم به بادبزن */
@keyframes drFan { from { translate: 0 60px; rotate: 0deg; opacity: 0; } }
html:not(.rm) .dr-fan__card { animation: drFan 1.2s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(280ms + var(--i) * 70ms); }

/* ==========================================================================
   پزشکان: فیلتر بخش‌ها (چسبان زیر هدر)
   ========================================================================== */
.dr-list { position: relative; padding-top: 22px; background: #fff; }
.pg-bar__top { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.pg-bar { position: sticky; top: calc(var(--hdr-h) + 10px); z-index: 20; pointer-events: none; }
/* وقتی نوار چسبید، یک نوار سفید پشتش از بالای صفحه تا زیر زبانه‌ها می‌آید تا متن زیرش دیده نشود (فقط opacity) */
.pg-bar::before {
  content: ""; position: absolute; z-index: -1; inset-inline: 0; top: calc(-1 * var(--hdr-h) - 10px); bottom: -10px;
  background: #fff; box-shadow: 0 1px 0 var(--line), 0 14px 30px -24px rgba(13, 27, 48, .4);
  opacity: 0; transition: opacity .25s var(--ease-out); pointer-events: none;
}
.pg-bar.is-stuck::before { opacity: 1; }
.pg-bar.is-stuck .ar-tabs { box-shadow: none; }
.pg-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pg-bar .ar-tabs { margin: 0; pointer-events: auto; box-shadow: 0 12px 28px -16px rgba(13, 27, 48, .35); }
.dr-tabs:not(.has-pill) { padding: 4px; background: #fff; border-radius: calc(var(--r1) + 4px); }
.pg-count { pointer-events: auto; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-family: var(--f-ui); font-size: var(--fs-label); color: var(--ink-3); box-shadow: 0 0 0 1px var(--line); }
.pg-count b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   پزشکان: پروفایل‌ها
   ========================================================================== */
.dr-cards { padding-bottom: clamp(40px, 7vh, 88px); }
.dr-card {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start;
  gap: clamp(28px, 5vw, 88px);
  padding-block: clamp(48px, 8vh, 96px);
}
.dr-card + .dr-card { border-top: 1px solid var(--line); }
.dr-card.is-first { border-top: 0; }
.dr-card.is-alt { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.dr-card.is-alt .dr-card__media { order: 2; }
.dr-anchor { position: absolute; top: calc(-1 * var(--hdr-h) - 64px); inset-inline: 0; height: 0; pointer-events: none; }
.dr-card__media { position: sticky; top: calc(var(--hdr-h) + 96px); }
.dr-card__frame { position: relative; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--hdr-h) - 128px); min-height: 360px; border-radius: 18px; overflow: hidden; background: var(--mist-2); box-shadow: var(--sh-2); }
.dr-card__in { position: absolute; inset: -7% 0; }
.dr-card__in img { width: 100%; height: 100%; object-fit: cover; }
.dr-card__no {
  position: absolute; top: 16px; inset-inline-start: 16px; z-index: 1;
  display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); box-shadow: 0 6px 16px -8px rgba(6, 16, 34, .45);
  font-family: var(--f-ui); font-size: .875rem; font-weight: 700; line-height: 1.6; color: var(--ink);
  font-variant-numeric: tabular-nums; pointer-events: none;
}
.dr-card__no small { font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.dr-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-family: var(--f-ui); font-size: var(--fs-label); color: var(--ink-3); }
.dr-chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; font-weight: 700; color: var(--ink); background: var(--tint); }
.dr-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.dr-card__name { margin-top: 14px; font-size: var(--fs-h2); line-height: 1.3; }
.dr-card__role { margin-top: 4px; font-family: var(--f-ui); font-weight: 600; color: var(--ink-2); }
.dr-card__quote { margin: 24px 0 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--tone); font-size: var(--fs-lead); line-height: 1.95; color: var(--ink); }
.dr-card__more { margin-top: 14px; max-width: 62ch; color: var(--ink-2); }
.dr-card__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.dr-box { padding: 18px; border-radius: 14px; background: var(--mist); }
.dr-box__t { margin-bottom: 12px; font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 600; color: var(--ink-3); }
.dr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dr-tags li { padding: 3px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .875rem; font-weight: 600; line-height: 1.9; }
.dr-card__hours { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .9375rem; color: var(--ink-2); }
.dr-card__hours .ic { width: 18px; height: 18px; color: var(--tone); }
.dr-card__prep { display: flex; gap: 10px; margin-top: 12px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line-2); font-size: var(--fs-small); line-height: 1.9; color: var(--ink-2); }
.dr-card__prep .ic { width: 20px; height: 20px; margin-top: 3px; color: var(--tone); }
.dr-card__prep b { color: var(--ink); }
.dr-card__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }

.dr-box--hrs .dr-card__hours { margin-top: 0; align-items: flex-start; line-height: 1.8; }
.dr-box--hrs .dr-card__hours .ic { margin-top: 4px; }
.dr-box--hrs .hrs__now { margin-top: 10px; }

/* پیش از رسیدن به کارت (فقط با حرکت): pages.js با انیمیشن بومی ظاهرش می‌کند */
html.motion .dr-card.is-pre .dr-card__frame,
html.motion .dr-card.is-pre .dr-card__body > * { opacity: 0; }

/* ==========================================================================
   ساعت کاری بخش‌ها: صفحه‌ی ۲۴ ساعته برای هر بخش (پزشکان و تماس)
   کمان ساعت‌های باز یک بار کشیده می‌شود و عقربه روی ساعت همین حالا (وقت تهران) می‌ایستد
   ========================================================================== */
.hrs { padding-block: clamp(64px, 10vh, 120px); background: var(--mist); }
.hrs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hrs__card { display: grid; justify-items: center; gap: 22px; padding: 28px 24px 26px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--sh-1); text-align: center; }
.hrs__dial { position: relative; width: min(100%, 184px); aspect-ratio: 1; }
.hrs__dial svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hrs__ticks line { stroke: var(--line-2); stroke-width: 1.4; stroke-linecap: round; }
.hrs__ticks line.is-major { stroke: var(--ink-3); stroke-width: 2; }
.hrs__labs text { font-family: var(--f-ui); font-size: 9px; font-weight: 600; fill: var(--ink-3); text-anchor: middle; dominant-baseline: central; }
.hrs__track { fill: none; stroke: var(--mist-2); stroke-width: 9; }
.hrs__arc { fill: none; stroke: var(--tone); stroke-width: 9; stroke-linecap: round; }
.hrs__card[data-k="medicine"] .hrs__arc { stroke-dasharray: 24 0; stroke-linecap: butt; }
.hrs__arc--appt { stroke-dasharray: .55 .45; stroke-linecap: butt; opacity: .8; }
.hrs__hand { transform-box: view-box; transform-origin: 70px 70px; transform: rotate(var(--a, 0deg)); }
.hrs__hand circle { fill: var(--navy-800); stroke: #fff; stroke-width: 2.5; }
.hrs__mid { position: absolute; inset: 0; display: grid; place-content: center; gap: 0; text-align: center; line-height: 1.3; pointer-events: none; }
.hrs__mid b { font-family: var(--f-ui); font-size: 1.0625rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.hrs__mid small { font-family: var(--f-ui); font-size: .6875rem; color: var(--ink-3); }
.hrs__txt { display: grid; justify-items: center; gap: 10px; }
.hrs__t { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; line-height: 1.4; }
.hrs__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--tone); }
.hrs__ic .ic { width: 20px; height: 20px; }
.hrs__when { font-size: .9375rem; line-height: 1.8; color: var(--ink-2); }
.hrs__week { display: grid; grid-template-columns: repeat(7, 28px); gap: 4px; }
.hrs__week li { display: grid; place-items: center; height: 28px; border-radius: 7px; background: var(--mist); font-family: var(--f-ui); font-size: .75rem; font-weight: 700; color: var(--ink-3); }
.hrs__week li.is-on { background: var(--tint); color: var(--ink); box-shadow: inset 0 -2px 0 var(--tone); }
.hrs__week li.is-today { outline: 2px solid var(--navy-800); outline-offset: 1px; }
.hrs__now { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.hrs__now i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.hrs__now.is-open i { background: var(--ok); box-shadow: 0 0 0 4px rgba(18, 163, 107, .15); }
.hrs__now.is-closed i { background: var(--warn); box-shadow: 0 0 0 4px rgba(230, 154, 28, .15); }
.hrs__book { margin-top: 4px; font-size: .9375rem; }
.hrs__note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--f-ui); font-size: var(--fs-label); color: var(--ink-3); }
.hrs__note .ic { width: 18px; height: 18px; }
html.motion .hrs.is-pre .hrs__arc, html.motion .hrs.is-pre .hrs__hand, html.motion .hrs.is-pre .hrs__week li { opacity: 0; }

/* ==========================================================================
   تماس و مسیر
   ========================================================================== */
.ct-hero .pg-title { font-size: clamp(2.1rem, 1.2rem + 2.5vw, 3.5rem); }
.ct-hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: clamp(28px, 5vw, 80px); }
.ct-live { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-family: var(--f-ui); font-size: .875rem; color: rgba(226, 233, 245, .9); }
.ct-live i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); }
.ct-ways { display: grid; gap: 10px; }
.ct-way {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: 16px; color: #fff; text-align: start;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: transform .6s var(--spring), background-color .25s;
}
/* نوری که با نشانگر روی کارت می‌لغزد (فقط روی همین کارت رسم می‌شود) */
.ct-way::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 194, 255, .22), transparent 70%); transition: opacity .3s; }
.ct-way__ic { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.ct-way__ic .ic { width: 24px; height: 24px; }
.ct-way--tel .ct-way__ic { background: var(--blue); box-shadow: 0 10px 24px -8px rgba(30, 94, 235, .8); }
.ct-way__ic--img { background: #fff; }
.ct-way__ic--img img { width: 26px; height: 26px; object-fit: contain; }
.ct-way__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(140, 194, 255, .8); opacity: 0; pointer-events: none; }
@keyframes ctRing { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
html:not(.rm) .ct-way__ring { animation: ctRing 1.8s cubic-bezier(.2, .7, .3, 1) 1.3s 3; }
html:not(.rm) .ct-way__ring + .ct-way__ring { animation-delay: 1.75s; }
.ct-way__t { display: grid; gap: 1px; min-width: 0; line-height: 1.5; }
.ct-way__t small { font-family: var(--f-ui); font-size: .8125rem; color: rgba(217, 226, 241, .65); }
.ct-way__t b { font-size: 1.0625rem; font-weight: 700; }
.ct-way--tel .ct-way__t b { font-family: var(--f-ui); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); letter-spacing: .02em; text-align: end; }
.ct-way__go { color: rgba(255, 255, 255, .55); transition: translate .5s var(--spring), color .25s; }
@media (hover: hover) and (pointer: fine) {
  .ct-way:hover { transform: translateX(-6px); background-color: rgba(255, 255, 255, .09); }
  .ct-way:hover::before { opacity: 1; }
  .ct-way:hover .ct-way__go { translate: -4px 0; color: #fff; }
}
.ct-map { border-top: 0; }
.ct-info { padding-block: clamp(64px, 10vh, 120px); background: #fff; }
.ct-grid .callback { grid-column: 1 / -1; }
.ct-faq { padding-block: clamp(64px, 10vh, 120px); background: var(--mist); }
.ct-faq__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.ct-faq__head { position: sticky; top: calc(var(--hdr-h) + 32px); }
.ct-faq__head .link-arrow { margin-top: 22px; }

/* ==========================================================================
   سؤال‌های پرتکرار
   ========================================================================== */
.fq-hero__in { max-width: 860px; }
.fq-search { position: relative; display: flex; align-items: center; margin-top: 30px; max-width: 640px; }
.fq-search__ic { position: absolute; inset-inline-start: 20px; width: 22px; height: 22px; color: var(--ink-3); pointer-events: none; }
.fq-search input {
  width: 100%; height: 62px; padding-inline: 56px 64px; border: 0; border-radius: 18px;
  background: #fff; color: var(--ink); font-size: 1.0625rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 24px 50px -24px rgba(0, 0, 0, .6);
  transition: box-shadow .3s;
}
.fq-search input::placeholder { color: var(--ink-3); }
.fq-search input::-webkit-search-cancel-button { display: none; }
.fq-search input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(140, 194, 255, .55), 0 24px 50px -24px rgba(0, 0, 0, .6); border-radius: 18px; }
.fq-search__clear { position: absolute; inset-inline-end: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--mist); color: var(--ink-2); }
.fq-search__clear:hover { background: var(--mist-2); }
.fq-search__kbd { position: absolute; inset-inline-end: 16px; display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); font-family: var(--f-ui); font-size: .8125rem; color: var(--ink-3); pointer-events: none; }
.fq-search__clear:not([hidden]) + .fq-search__kbd { display: none; }
.fq-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--f-ui); font-size: .8125rem; color: rgba(217, 226, 241, .65); }
.fq-pop__b { height: 32px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #fff; font-size: .8125rem; font-weight: 600; transition: background-color .2s, transform .5s var(--spring); }
.fq-pop__b:hover { background: rgba(255, 255, 255, .16); }
.fq-pop__b:active { transform: scale(.94); }

.fq { position: relative; padding-top: 22px; padding-bottom: clamp(64px, 10vh, 120px); background: var(--mist); }
.fq .pg-bar::before { background: var(--mist); }
.fq-tabs button small { margin-inline-start: 4px; font-family: var(--f-ui); font-size: .75rem; font-weight: 600; opacity: .6; }
.fq__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: 26px; }
.fq__list { display: grid; gap: 34px; min-width: 0; }
.fq-grp[hidden] { display: none; }
.fq-grp__t { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 1.3rem; line-height: 1.4; }
.fq-grp__t small { margin-inline-start: auto; font-family: var(--f-ui); font-size: .8125rem; font-weight: 600; color: var(--ink-3); }
.fq-grp__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #fff; color: var(--blue); box-shadow: 0 0 0 1px var(--line); }
.fq-grp__ic .ic { width: 20px; height: 20px; }
.fq .faq-item summary { position: relative; }
.fq-anchor { position: absolute; top: calc(-1 * var(--hdr-h) - 84px); inset-inline: 0; height: 0; pointer-events: none; }
.fq .faq-item__q mark { padding: 0 2px; border-radius: 4px; background: #FFE58A; color: inherit; }
.fq-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 24px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-align: center; }
.fq-empty[hidden] { display: none; }
.fq-empty__ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; background: var(--mist); color: var(--ink-3); }
.fq-empty__ic .ic { width: 28px; height: 28px; }
.fq-empty b { font-size: 1.15rem; }
.fq-empty p { color: var(--ink-2); }
.fq-empty__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }

.fq-ask { position: sticky; top: calc(var(--hdr-h) + 92px); }
.fq-ask__card { position: relative; overflow: hidden; isolation: isolate; padding: 24px; border-radius: 22px; background: #070A1E; color: #fff; }
.fq-ask__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 100% 0%, rgba(30, 94, 235, .45), transparent 70%), radial-gradient(70% 60% at 0% 100%, rgba(214, 90, 131, .28), transparent 70%); }
.fq-chat { display: grid; gap: 8px; margin-bottom: 20px; }
.fq-chat__m { justify-self: end; max-width: 88%; padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, .12); font-size: .875rem; line-height: 1.8; color: rgba(236, 241, 250, .95); }
.fq-chat__m--me { justify-self: start; border-radius: 16px 16px 4px 16px; background: var(--blue); color: #fff; }
.fq-ask__t { font-size: 1.3rem; line-height: 1.45; }
.fq-ask__p { margin-top: 6px; font-size: .9375rem; color: rgba(217, 226, 241, .75); }
.fq-ask__acts { display: grid; gap: 10px; margin-top: 18px; }
.fq-ask__acts .btn--outline { background: rgba(255, 255, 255, .95); }
.fq-ask__acts .link-arrow { justify-self: start; margin-top: 4px; }
html.motion .fq-ask.is-pre .fq-chat__m { opacity: 0; }

/* ==========================================================================
   نمونه‌کارها
   ========================================================================== */
.cs-page { padding-top: 22px; border-top: 0; }
.cs-page .cs-list { margin-top: clamp(40px, 7vh, 72px); }
.cs-page .cs[hidden] { display: none; }
.cs-tabs button small { margin-inline-start: 4px; font-family: var(--f-ui); font-size: .75rem; font-weight: 600; opacity: .6; }

/* روند کار: خط پیشرفت با اسکرول پر می‌شود و هر قدم وقتی خط به آن رسید روشن می‌شود */
.cs-proc { padding-block: clamp(64px, 10vh, 120px); background: var(--mist); }
.cs-proc__track { position: relative; margin-top: clamp(24px, 4vh, 40px); }
.cs-proc__line { position: absolute; top: 31px; right: 12.5%; left: 12.5%; height: 3px; border-radius: 3px; background: var(--line); }
.cs-proc__line i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(270deg, var(--blue), #8A6CF5); transform-origin: 100% 50%; transform: scaleX(var(--p, 1)); }
.cs-proc__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cs-proc__s { display: grid; justify-items: center; gap: 10px; text-align: center; }
.cs-proc__ic { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--ink-3); box-shadow: 0 0 0 1px var(--line), var(--sh-1); transition: transform .7s var(--spring), box-shadow .4s; }
.cs-proc__ic .ic { width: 26px; height: 26px; }
.cs-proc__ic b { position: absolute; top: -4px; inset-inline-end: -4px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy-800); color: #fff; font-family: var(--f-ui); font-size: .75rem; }
/* رنگ آیکون قدم روشن با opacity لایه‌ی رنگی عوض می‌شود، نه با ترنزیشن رنگ */
.cs-proc__ic::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(135deg, var(--blue), #8A6CF5); opacity: 0; transition: opacity .4s; }
.cs-proc__ic { isolation: isolate; }
.cs-proc__s.is-on .cs-proc__ic { color: #fff; transform: scale(1.08); box-shadow: 0 14px 30px -12px rgba(30, 94, 235, .6); }
.cs-proc__s.is-on .cs-proc__ic::after { opacity: 1; }
.cs-proc__t { margin-top: 6px; font-size: 1.15rem; line-height: 1.45; }
.cs-proc__p { max-width: 30ch; font-size: .9375rem; line-height: 1.9; color: var(--ink-2); }
html:not(.motion) .cs-proc__s .cs-proc__ic, html.rm .cs-proc__s .cs-proc__ic { color: #fff; }
html:not(.motion) .cs-proc__ic::after, html.rm .cs-proc__ic::after { opacity: 1; }


.cs-cta { padding-block: clamp(48px, 8vh, 88px) clamp(64px, 10vh, 120px); background: #fff; }
.cs-cta__in { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 4vw, 52px); border-radius: 24px; color: #fff; background: #070A1E; text-align: center; }
.cs-cta__in::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 100% 0%, rgba(30, 94, 235, .45), transparent 70%), radial-gradient(50% 120% at 0% 100%, rgba(214, 90, 131, .3), transparent 70%); }
.cs-cta__t { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.4; }
.cs-cta__p { margin-top: 8px; color: rgba(217, 226, 241, .78); }
.cs-cta__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 860px; margin: 28px auto 0; }
.cs-cta__b { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #fff; font-size: 1rem; text-align: start; transition: transform .6s var(--spring), background-color .25s; }
.cs-cta__b b { flex: 1; }
.cs-cta__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tone); color: #fff; }
.cs-cta__ic .ic { width: 22px; height: 22px; }
.cs-cta__go { color: rgba(255, 255, 255, .6); transition: translate .5s var(--spring); }
@media (hover: hover) and (pointer: fine) {
  .cs-cta__b:hover { transform: translateY(-4px); background-color: rgba(255, 255, 255, .12); }
  .cs-cta__b:hover .cs-cta__go { translate: -4px 0; }
}

/* ==========================================================================
   حریم خصوصی و شرایط استفاده
   ========================================================================== */
.lg-prom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vh, 40px); max-width: 920px; }
.lg-prom__i { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.lg-prom__ic { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(61, 220, 151, .14); color: #6BE6B0; }
.lg-prom__ic .ic { width: 22px; height: 22px; }
.lg-prom__i b { font-size: .96875rem; }
.lg-prom__i span:last-child { font-size: .8125rem; line-height: 1.7; color: rgba(217, 226, 241, .7); }

.lg { padding-block: clamp(56px, 9vh, 104px); background: #fff; }
.lg__in { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.lg-toc { position: sticky; top: calc(var(--hdr-h) + 28px); }
.lg-toc__card { position: relative; overflow: hidden; padding: 18px 16px; border-radius: 18px; background: var(--mist); }
/* نوار پیشرفت خواندن بالای فهرست (فقط transform) */
.lg-toc__prog { position: absolute; inset: 0 0 auto; height: 3px; background: var(--mist-2); }
.lg-toc__prog i { position: absolute; inset: 0; background: var(--blue); transform-origin: 100% 50%; transform: scaleX(var(--p, 0)); }
.lg-toc__h { margin: 6px 8px 8px; font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 700; color: var(--ink-3); }
.lg-toc__h + ol + .lg-toc__h { margin-top: 18px; }
.lg-toc ol { display: grid; gap: 2px; }
.lg-toc a { position: relative; display: block; padding: 6px 12px; border-radius: 10px; font-size: .9375rem; line-height: 1.6; color: var(--ink-2); transition: color .2s, background-color .2s; }
.lg-toc a:hover { background: #fff; color: var(--ink); }
.lg-toc a.is-on { background: #fff; color: var(--blue); font-weight: 700; box-shadow: 0 6px 14px -10px rgba(13, 27, 48, .4); }
.lg__doc { max-width: 760px; }
.lg__h { font-size: var(--fs-h2); line-height: 1.3; }
.lg__h + .lg-sec { margin-top: 26px; }
.lg-sec + .lg__h { margin-top: clamp(56px, 8vh, 88px); padding-top: clamp(40px, 6vh, 64px); border-top: 1px solid var(--line); }
.lg-sec { scroll-margin-top: calc(var(--hdr-h) + 24px); }
.lg-sec + .lg-sec { margin-top: 34px; }
.lg-sec__t { display: flex; align-items: center; gap: 12px; font-size: var(--fs-h3); line-height: 1.45; }
.lg-sec__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.lg-sec__ic .ic { width: 20px; height: 20px; }
.lg-sec__list { display: grid; gap: 10px; margin-top: 14px; padding-inline-start: 52px; }
.lg-sec__list li { position: relative; line-height: 2; color: var(--ink-2); }
.lg-sec__list li::before { content: ""; position: absolute; inset-inline-start: -18px; top: .85em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.lg-sec__list b { color: var(--ink); }
.lg-end { margin-top: clamp(48px, 7vh, 72px); padding: 20px 22px; border-radius: 16px; background: var(--mist); font-size: .9375rem; line-height: 2; color: var(--ink-2); }

/* ==========================================================================
   صفحه‌ی ۴۰۴: «۴ (لوگو) ۴» که با نشانگر عمق پیدا می‌کند
   ========================================================================== */
.nf { position: relative; isolation: isolate; overflow: clip; min-height: 100svh; display: flex; align-items: center; color: #fff; background: #070A1E; padding-block: calc(var(--hdr-h) + 40px) 72px; }
.nf__in { text-align: center; }
.nf__art { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 24px); margin-bottom: clamp(12px, 3vh, 28px); direction: ltr; }
.nf__d { display: inline-block; font-family: var(--f-ui); font-size: clamp(6rem, 3rem + 14vw, 13rem); font-weight: 700; line-height: 1; background: linear-gradient(180deg, #fff 30%, rgba(158, 197, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf__o { position: relative; display: grid; place-items: center; width: clamp(96px, 3rem + 11vw, 190px); aspect-ratio: 1; }
.nf__logo { position: relative; width: 78%; height: 78%; --lg-ink: #fff; --lg-fill: transparent; filter: drop-shadow(0 18px 40px rgba(30, 94, 235, .45)); }
.nf__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(158, 197, 255, .35); }
@keyframes nfDrop { from { opacity: 0; transform: translate3d(0, -60px, 0) rotate(-8deg); } }
@keyframes nfSpin { from { opacity: 0; transform: rotate(-200deg) scale(.4); } }
@keyframes nfRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
html:not(.rm) .nf__d { animation: nfDrop 1.1s cubic-bezier(.34, 1.56, .64, 1) backwards; }
html:not(.rm) .nf__d--a { animation-delay: .15s; }
html:not(.rm) .nf__d--b { animation-delay: .3s; }
html:not(.rm) .nf__logo { animation: nfSpin 1.4s cubic-bezier(.16, 1, .3, 1) .45s backwards; }
html:not(.rm) .nf__ring { animation: nfRing 2.4s cubic-bezier(.65, 0, .35, 1) .45s 2; }
.nf__art [data-depth] { transition: translate .9s var(--ease-out); translate: var(--tx, 0) var(--ty, 0); }
.nf .pg-lead { margin-inline: auto; max-width: 56ch; }
.nf .pg-lead a { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.nf__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.nf__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 980px; margin: clamp(32px, 6vh, 56px) auto 0; text-align: start; }
.nf__l { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .6s var(--spring), background-color .25s; }
.nf__l-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.nf__l-ic .ic { width: 20px; height: 20px; }
.nf__l-t { flex: 1; display: grid; line-height: 1.5; }
.nf__l-t b { font-size: .96875rem; }
.nf__l-t small { font-size: .75rem; color: rgba(217, 226, 241, .65); }
.nf__l-go { flex: none; width: 18px; height: 18px; color: rgba(255, 255, 255, .5); transition: translate .5s var(--spring); }
@media (hover: hover) and (pointer: fine) {
  .nf__l:hover { transform: translateY(-4px); background-color: rgba(255, 255, 255, .1); }
  .nf__l:hover .nf__l-go { translate: -4px 0; color: #fff; }
}

html.rm .nf__art [data-depth] { transition: none; translate: none; }

/* ==========================================================================
   واکنش‌گرایی
   ========================================================================== */
@media (max-width: 1080px) {
  .hrs__grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .hrs__card { grid-template-columns: 150px minmax(0, 1fr); align-items: center; text-align: start; }
  .hrs__txt { justify-items: start; }
}
@media (max-width: 960px) {
  .ct-hero__in, .ct-faq__in { grid-template-columns: minmax(0, 1fr); }
  .ct-faq__head { position: static; }
  .fq__in { grid-template-columns: minmax(0, 1fr); }
  .lg__in { grid-template-columns: minmax(0, 1fr); }
  .lg-toc { display: none; }
  .nf__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-prom { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .cs-proc__steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cs-proc__s { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto 1fr; justify-items: start; column-gap: 18px; row-gap: 2px; text-align: start; }
  .cs-proc__ic { grid-row: 1 / 3; }
  .cs-proc__t { margin-top: 8px; }
  .cs-proc__line { top: 32px; bottom: 32px; right: 30.5px; left: auto; width: 3px; height: auto; }
  .cs-proc__line i { transform-origin: 50% 0; transform: scaleY(var(--p, 1)); background: linear-gradient(180deg, var(--blue), #8A6CF5); }
  .cs-cta__row { grid-template-columns: minmax(0, 1fr); }
  .fq-ask { position: static; }
  .dr-hero__in { grid-template-columns: minmax(0, 1fr); }
  .dr-fan { --cw: clamp(120px, 24vw, 180px); margin-top: 8px; }

  .dr-card { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .dr-card.is-alt { grid-template-columns: minmax(0, 1fr); }
  .dr-card.is-alt .dr-card__media { order: 0; }
  .dr-card__media { position: relative; top: auto; width: min(100%, 420px); }
  .dr-card__frame { max-height: none; min-height: 0; }
}
@media (max-width: 640px) {
  .pg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .dr-fan { --cw: clamp(96px, 27vw, 128px); }
  .dr-fan__cap { padding: 26px 8px 7px; }
  .dr-fan__cap b { font-size: .75rem; }
  .dr-fan__cap small { font-size: .625rem; }

  .pg-bar { padding-top: 14px; }
  .pg-bar .ar-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .pg-bar .ar-tabs::-webkit-scrollbar { display: none; }
  .pg-bar .ar-tabs button { flex: none; padding: 0 12px; }
  .pg-count { display: none; }

  .dr-card__grid { grid-template-columns: minmax(0, 1fr); }
  .dr-card__media { width: 100%; }
  .dr-card__acts .btn { flex: 1 1 100%; }
  .hrs__card { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .hrs__week { grid-template-columns: repeat(7, minmax(0, 24px)); gap: 3px; }
  .ct-way { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .fq-search input { height: 56px; font-size: 1rem; }
  .fq-search__kbd { display: none; }
  .fq-grp__t { font-size: 1.15rem; }
  .lg-sec__list { padding-inline-start: 22px; }
  .nf__links { grid-template-columns: minmax(0, 1fr); }
  .ct-way__ic { width: 44px; height: 44px; }
  .hrs__week li { height: 24px; font-size: .6875rem; }
  .hrs__mid b { font-size: .9375rem; }
}

/* ---------- کنتراست بالا و حرکت کمتر ---------- */

html.rm .dr-fan__card, html.rm .dr-fan__img img { transition: none; }

/* ==========================================================================
   درباره‌ی ما
   ========================================================================== */
/* سربرگ: پایینش سفید است تا عکس بزرگ نیمی روی زمینه‌ی تیره و نیمی روی سفید بنشیند */
.ab-hero { --ov: clamp(90px, 15vw, 230px); padding-bottom: 0; background: linear-gradient(#070A1E calc(100% - var(--ov)), #fff 0); }
.ab-hero .pg-hero__glow { bottom: var(--ov); }
.ab-hero .pg-lead { max-width: 62ch; }
.ab-shot-wrap { margin-top: clamp(36px, 6vh, 64px); }
.ab-shot { position: relative; margin: 0; aspect-ratio: 16 / 8; border-radius: 22px; overflow: hidden; background: #0B1430; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 100px -50px rgba(6, 16, 34, .75); transform-origin: 50% 0; }
.ab-shot__in { position: absolute; inset: -6% 0; }
.ab-shot__in img { width: 100%; height: 100%; object-fit: cover; }

/* چند عدد */
.ab-facts { padding-block: clamp(56px, 9vh, 104px) clamp(48px, 7vh, 88px); background: #fff; }
.ab-facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ab-facts__grid > div { padding-top: 18px; border-top: 1px solid var(--line); }
.ab-facts__grid dt { font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 600; color: var(--ink-3); }
.ab-facts__grid dd { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.ab-facts__grid b { font-family: var(--f-ui); font-size: clamp(2.6rem, 1.7rem + 2.8vw, 4.4rem); font-weight: 700; line-height: 1.1; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.ab-facts__grid span { font-weight: 600; color: var(--ink-2); }

/* چهار قول: عکس چسبان کنار، متن‌ها با اسکرول یکی‌یکی روشن می‌شوند */
.ab-story { padding-block: clamp(64px, 10vh, 120px); background: var(--mist); }
.ab-story__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ab-story__media { position: sticky; top: calc(var(--hdr-h) + 32px); }
.ab-story__frame { position: relative; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--hdr-h) - 72px); border-radius: 22px; overflow: hidden; background: #DCE3EC; box-shadow: var(--sh-3); }
.ab-story__img { position: absolute; inset: 0; opacity: 0; }
.ab-story__img.is-on { opacity: 1; }
.ab-story__img img { width: 100%; height: 100%; object-fit: cover; }
.ab-story__count { position: absolute; bottom: 16px; inset-inline-start: 16px; z-index: 2; display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-family: var(--f-ui); font-size: .8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ab-story__count b { font-size: .9375rem; color: var(--ink); }
.ab-story__steps { padding-block: 6vh 18vh; }
.ab-step { display: flex; flex-direction: column; justify-content: center; min-height: 58vh; padding-block: 32px; opacity: .3; transition: opacity .6s var(--ease-out); }
.ab-step.is-on { opacity: 1; }
.ab-step__img { display: none; }
.ab-step__no { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-800); color: #fff; font-family: var(--f-ui); font-size: .9375rem; font-weight: 700; }
.ab-step__t { margin-top: 18px; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); line-height: 1.35; }
.ab-step__p { margin-top: 14px; max-width: 52ch; font-size: var(--fs-lead); line-height: 1.95; color: var(--ink-2); }

/* بخش‌ها */
.ab-depts { padding-block: clamp(64px, 10vh, 120px); background: #fff; }
.ab-dp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ab-dp__card {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 330px; padding: 28px; border-radius: 20px; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 1px var(--line), var(--sh-1);
  transition: transform .7s var(--spring), box-shadow .35s;
}
.ab-dp__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--tone); }
.ab-dp__ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--tint); color: var(--tone); }
.ab-dp__ic .ic { width: 26px; height: 26px; }
.ab-dp__t { margin-top: 6px; font-size: 1.45rem; font-weight: 800; line-height: 1.4; }
.ab-dp__p { color: var(--ink-2); line-height: 1.9; }
.ab-dp__meta { display: flex; align-items: flex-start; gap: 8px; margin-top: auto; font-family: var(--f-ui); font-size: .875rem; line-height: 1.7; color: var(--ink-2); }
.ab-dp__meta .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--tone); }
.ab-dp__go { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; color: var(--blue); }
.ab-dp__go .ic { transition: translate .5s var(--spring); }
@media (hover: hover) and (pointer: fine) {
  .ab-dp__card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(13, 27, 48, .45); }
  .ab-dp__card:hover .ab-dp__go .ic { translate: -5px 0; }
}

/* کجا هستیم */
.ab-loc { padding-block: clamp(64px, 10vh, 120px); background: var(--mist); }
.ab-loc__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ab-map { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: #F1F3F7; box-shadow: 0 0 0 1px var(--line), var(--sh-2); }
.ab-map__world { position: absolute; left: 50%; top: 50%; width: 250%; aspect-ratio: 33 / 20; translate: -36.364% -35%; transform-origin: 36.364% 35%; }
.ab-map__world > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.ab-map__lab { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; rotate: var(--r, 0deg); display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-ui); font-size: .8125rem; font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.ab-map__lab--sea { color: #2E7FB8; letter-spacing: .02em; }
.ab-map__lab--road { font-size: .75rem; color: var(--ink-3); }
.ab-map__lab--poi { padding: 3px 9px; border-radius: 999px; background: #fff; box-shadow: 0 4px 12px -6px rgba(13, 27, 48, .35); color: var(--ink); }
.ab-map__lab--poi .ic { width: 15px; height: 15px; color: var(--ink-3); }
.ab-map__pin { position: absolute; left: var(--x); top: var(--y); z-index: 2; }
.ab-map__pin i { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #fff, 0 8px 18px -4px rgba(30, 94, 235, .6); }
.ab-map__pin i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; }
.ab-map__pin b { position: absolute; left: 0; bottom: 20px; translate: -50% 0; padding: 5px 12px; border-radius: 10px; background: var(--navy-800); color: #fff; font-family: var(--f-ui); font-size: .875rem; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(6, 16, 34, .6); }
.ab-map__pin b::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: inherit; rotate: 45deg; border-radius: 2px; }
@keyframes abRing { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
html:not(.rm) .ab-map.is-in .ab-map__pin i::after { animation: abRing 1.8s cubic-bezier(.2, .7, .3, 1) 1.1s 3; }
.ab-loc__list { display: grid; gap: 14px; margin-top: 22px; }
.ab-loc__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.ab-loc__list .ic { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--blue-50); color: var(--blue); }
.ab-loc__list a { color: var(--blue); }
.ab-loc__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
html.motion .ab-map.is-pre .ab-map__pin { opacity: 0; }

/* پزشکان */
.ab-team { padding-block: clamp(56px, 9vh, 104px); background: #fff; }
.ab-team__in {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 52px); border-radius: 24px; color: #fff; background: #070A1E;
}
.ab-team__in::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 0%, rgba(30, 94, 235, .4), transparent 70%), radial-gradient(50% 120% at 0% 100%, rgba(214, 90, 131, .25), transparent 70%); }
.ab-team__faces { display: flex; padding-inline-start: 14px; }
.ab-team__f { width: 68px; height: 68px; margin-inline-start: -14px; border-radius: 50%; overflow: hidden; background: #1A2130; box-shadow: 0 0 0 3px #070A1E, 0 0 0 5px var(--tone); }
.ab-team__f img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.ab-team__t { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.4; }
.ab-team__p { margin-top: 6px; max-width: 52ch; color: rgba(217, 226, 241, .75); }

@media (max-width: 1080px) {
  .ab-dp { grid-template-columns: minmax(0, 1fr); }
  .ab-dp__card { min-height: 0; }
  .ab-team__in { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (max-width: 960px) {
  .ab-story__in { grid-template-columns: minmax(0, 1fr); }
  .ab-story__media { display: none; }
  .ab-story__steps { display: grid; gap: 40px; padding-block: 0; }
  .ab-step { min-height: 0; padding: 0; opacity: 1; }
  .ab-step__img { display: block; margin: 0 0 18px; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #DCE3EC; }
  .ab-step__img img { width: 100%; height: 100%; object-fit: cover; }
  .ab-loc__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ab-shot { aspect-ratio: 4 / 3; border-radius: 16px; }
  .ab-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .ab-map { aspect-ratio: 1 / 1; }
  .ab-map__world { width: 330%; }
  .ab-loc__acts .btn { flex: 1 1 100%; }
  .ab-team__f { width: 56px; height: 56px; }
  .ab-team__in .btn { width: 100%; }
}

html.rm .ab-dp__card, html.rm .ab-dp__go .ic, html.rm .ab-step { transition: none; }
