/* ==========================================================================
   ساسان کلینیک · مدل ۱ (حرفه‌ای سازمانی + دسترس‌پذیر)
   base.css: توکن‌ها، هدر، دکمه‌ها، فرم، منوها، تنظیمات نمایش
   ========================================================================== */

:root {
  color-scheme: light;

  /* رنگ */
  --navy-950: #061022;
  --navy-900: #081427;
  --navy-800: #0B1A33;
  --navy-700: #12284B;
  --navy-600: #1B3A66;
  --ink: #0D1B30;
  --ink-2: #3F4D66;
  --ink-3: #66748C;
  --line: #DCE3EC;
  --line-2: #C7D1DE;
  --paper: #FFFFFF;
  --mist: #F3F6FA;
  --mist-2: #E9EEF5;
  --blue: #1E5EEB;
  --blue-600: #1650CC;
  --blue-700: #0E3D9E;
  --blue-50: #EAF1FF;
  --ok: #12A36B;
  --warn: #E69A1C;
  --focus: #FFD23F;

  /* رنگ سه بخش */
  --dental: #2A9BE0;
  --beauty: #D65A83;
  --med: #1FAE86;

  /* تایپوگرافی */
  --f-body: "Vazirmatn", "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif;
  --f-ui: "IBM Plex Sans Arabic", "Vazirmatn", Tahoma, sans-serif;
  --fs-h1: clamp(2.2rem, 1.25rem + 3.1vw, 3.9rem);
  --fs-h2: clamp(1.75rem, 1.15rem + 1.9vw, 2.75rem);
  --fs-h3: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
  --fs-lead: clamp(1.04rem, .97rem + .3vw, 1.22rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .8125rem;

  /* فاصله، گوشه، سایه */
  --gutter: clamp(16px, 4vw, 48px);
  --r1: 4px;
  --r2: 6px;
  --r3: 8px;
  --sh-1: 0 1px 2px rgba(13, 27, 48, .06), 0 1px 1px rgba(13, 27, 48, .04);
  --sh-2: 0 2px 4px rgba(13, 27, 48, .05), 0 12px 28px -12px rgba(13, 27, 48, .22);
  --sh-3: 0 4px 10px rgba(6, 16, 34, .08), 0 30px 60px -24px rgba(6, 16, 34, .45);

  /* حرکت */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.3, .64, 1);

  /* هدر */
  --util-h: 0px;
  --bar-h: 68px;
  --bar-gap: 8px;
  --r-cap: 14px;
  --hdr-h: calc(var(--util-h) + var(--bar-gap) + var(--bar-h));
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017, 1.077 22.5%, 1.101 25.2%, 1.1 27.6%, 1.068 32.6%, 1.019 38.6%, .999 43.3%, .991 48.6%, 1.001 63.5%, 1); }
}

*, *::before, *::after { box-sizing: border-box; }
/* جای نوار اسکرول همیشه نگه داشته می‌شود و صفحه هیچ‌وقت افقی جابه‌جا نمی‌شود:
   وقتی برگه‌ای باز است و اسکرول قفل می‌شود، یا وقتی معرفی لوگو تمام می‌شود، محتوا یک پیکسل هم تکان نمی‌خورد.
   overflow-x: clip روی ریشه هم هر لغزش افقی (مثلاً با انگشت روی موبایل) را غیرممکن می‌کند */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 800; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic--s { width: 1em; height: 1em; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- فوکوس و پرش ---------- */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px var(--navy-900); border-radius: var(--r1); }
.skip {
  position: fixed; inset-inline-start: 16px; top: 12px; z-index: 300;
  padding: 10px 18px; border-radius: var(--r1);
  background: var(--focus); color: #0b0c0c; font-weight: 700;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip:focus-visible { transform: none; }

/* ---------- برچسب بالای تیتر ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 600; line-height: 1.6;
  color: var(--blue);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; transform-origin: 100% 50%; transform: scaleX(var(--kx, 1)); }
.kicker.kx-t::before { transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.kicker--light { color: #9EC0FF; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: rgba(30, 94, 235, .35); transition: text-decoration-color .25s, color .25s; }
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow .ic { transition: translate .45s var(--spring); }
.link-arrow:hover .ic { translate: -4px 0; }
.link-arrow--light { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); }

/* ==========================================================================
   دکمه‌ها
   ========================================================================== */
.btn {
  --bh: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 22px;
  border-radius: var(--r1);
  font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  translate: var(--mx, 0px) var(--my, 0px);
  transition: background-color .2s, color .2s, box-shadow .2s, border-color .2s, transform .15s var(--ease-out), translate .5s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(2px); }
.btn--lg { --bh: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--primary { color: #fff; background: var(--blue); box-shadow: 0 2px 0 var(--blue-700); }
.btn--primary:hover { background: var(--blue-600); }
.btn--primary:active { box-shadow: 0 0 0 var(--blue-700); }
.btn--outline-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); background: rgba(6, 16, 34, .15); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px #fff; }
.btn--light { color: var(--navy-800); background: #fff; box-shadow: 0 2px 0 rgba(6, 16, 34, .25); }
.btn--light:hover { background: #EEF3FB; }
.btn--outline { color: var(--navy-800); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--navy-800); }

/* ==========================================================================
   فرم
   ========================================================================== */
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.field select, .field input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r1);
  background: #fff; color: var(--ink); font-size: 1rem;
  appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  padding-inline-start: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233F4D66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center;
}
.field select:hover, .field input:hover { border-color: var(--ink-3); }
.field select:focus-visible, .field input:focus-visible { border-color: var(--navy-900); }
.field__label { transition: color .25s; }
.field:focus-within .field__label, .field.is-open .field__label { color: var(--blue); }
.field input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 94, 235, .14); }

/* ---------- فهرست انتخاب سفارشی (js/home.js → Pick) ---------- */
.field select.is-picked { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field { position: relative; }
[data-tone="dental"] { --tone: #1673D6; }
[data-tone="beauty"] { --tone: #C2386B; }
[data-tone="medicine"] { --tone: #0E8F6B; }
.pick {
  position: relative; width: 100%; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r1); background: #fff; color: var(--ink); font-size: 1rem; text-align: start; cursor: pointer;
  transition: border-color .2s, box-shadow .3s var(--ease-out);
}
.pick:hover { border-color: var(--ink-3); }
.pick:focus-visible, .pick[aria-expanded="true"] { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 94, 235, .14); }
.pick__val { position: relative; flex: 1; min-width: 0; height: 26px; overflow: hidden; }
.pick__txt { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pick__txt span { overflow: hidden; text-overflow: ellipsis; }
.pick__txt .ic { width: 18px; height: 18px; flex: none; color: var(--tone, var(--blue)); }
.pick__chev { width: 16px; height: 16px; flex: none; color: var(--ink-2); transition: transform .5s var(--spring), color .2s; }
.pick[aria-expanded="true"] .pick__chev { transform: rotate(180deg); color: var(--blue); }
.pick-pop {
  position: fixed; z-index: 70; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 2px 6px rgba(13, 27, 48, .06), 0 28px 56px -18px rgba(13, 27, 48, .32); transform-origin: 50% 0;
}
.pick-pop[data-side="top"] { transform-origin: 50% 100%; }
.pick-pop[hidden] { display: none; }
.pick-pop__hl {
  position: absolute; inset-inline: 6px; top: 0; height: 0; border-radius: 7px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, var(--mist-2), var(--mist)); transform: translateY(var(--y, 0));
  transition: transform .42s var(--spring), height .3s var(--ease-out), opacity .2s;
}
.pick-pop.has-hl .pick-pop__hl { opacity: 1; }
.pick-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 10px; border-radius: 7px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.pick-opt__ic { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; flex: none; color: var(--tone, var(--blue)); background: color-mix(in srgb, var(--tone, var(--blue)) 11%, #fff); transition: transform .45s var(--spring); }
.pick-opt__ic .ic { width: 18px; height: 18px; }
.pick-opt.is-active .pick-opt__ic { transform: scale(1.08) rotate(-4deg); }
.pick-opt__txt { flex: 1; min-width: 0; display: grid; line-height: 1.45; }
.pick-opt__txt b { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.pick-opt__txt small { font-family: var(--f-ui); font-size: .75rem; color: var(--ink-3); }
.pick-opt__ok { width: 18px; height: 18px; flex: none; color: var(--blue); stroke-width: 2.6; opacity: 0; transform: scale(.3) rotate(-30deg); transition: opacity .2s, transform .45s var(--spring); }
.pick-opt[aria-selected="true"] .pick-opt__ok { opacity: 1; transform: none; }
.pick-opt[aria-selected="true"] .pick-opt__txt b { font-weight: 700; color: var(--navy-800); }

/* ---------- نقطه‌ی وضعیت ---------- */
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; }
/* پینگ بی‌پایان هر فریم کل صفحه را دوباره می‌سازد؛ برای همین فقط وقتی نقطه دیده می‌شود و هر چند ثانیه یک بار (core.js) */
.dot.is-ping::after { animation: ping 1.6s var(--ease-out); }
.dot.is-closed { background: var(--warn); }
.dot.is-closed::after { border-color: var(--warn); }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.5); opacity: 0; } }

/* ==========================================================================
   هدر
   ========================================================================== */
.hdr {
  position: fixed; inset-inline: 0; top: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .45s var(--ease-out);
}

.bar-wrap { position: relative; margin-top: var(--bar-gap); }
.bar { position: relative; background: #fff; border-radius: var(--r-cap); box-shadow: 0 0 0 1px rgba(13, 27, 48, .06), 0 16px 36px -20px rgba(6, 16, 34, .5); transition: box-shadow .35s; }
.hdr.is-scrolled .bar { box-shadow: 0 0 0 1px rgba(13, 27, 48, .08), 0 18px 40px -18px rgba(6, 16, 34, .45); }
.bar__in { height: var(--bar-h); display: flex; align-items: center; gap: 20px; padding-inline: 12px 10px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 56px; height: 50px; flex: none; overflow: visible; }
@media (hover: hover) { .brand:hover { --lg-rot: 90deg; --lg-sc: 1.18; } }
.brand__txt { display: grid; line-height: 1.3; }
.brand__txt b { font-size: 1.125rem; font-weight: 800; color: var(--navy-800); }
.brand__txt small { font-family: var(--f-ui); font-size: .6875rem; color: var(--ink-3); }

.nav { position: relative; display: flex; align-items: center; margin-inline: auto; }
.nav__ind {
  position: absolute; top: 50%; margin-top: -20px; left: 0; height: 40px; width: 0; border-radius: 8px;
  background: var(--blue-50);
  transform: translateX(var(--ix, 0px));
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.nav.has-ind .nav__ind { opacity: 1; }
.nav__link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 14px;
  font-size: .96875rem; font-weight: 600; color: var(--ink);
  white-space: nowrap;
  transition: color .2s;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--blue); }
/* صفحه‌ی فعلی: رنگ آبی و خط کوتاه زیر لینک */
.nav__link[aria-current="page"] { color: var(--blue); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 16px; height: 2px; margin-left: -8px; border-radius: 2px; background: currentColor; }
.sheet__nav a[aria-current="page"] { color: var(--blue); }
.foot a[aria-current="page"] { color: #fff; }
.foot__legal { margin-inline-start: 10px; color: rgba(226, 233, 245, .8); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; transition: color .2s; }
.foot__legal:hover { color: #fff; }
.nav__link--menu .ic { transition: transform .4s var(--spring); opacity: .7; }
.nav__link--menu[aria-expanded="true"] .ic { transform: rotate(180deg); }
.bar__end { display: flex; align-items: center; gap: 10px; flex: none; }
.bar__cta { border-radius: 8px; }

/* ---------- تنظیمات نمایش (دکمه‌ی کوچک در هدر) ---------- */

.burger { display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy-800); transition: transform .4s var(--spring), top .4s var(--spring), opacity .2s; }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ==========================================================================
   گرادیان آئورا: چند لکه‌ی رنگی که آرام جابه‌جا می‌شوند و در هم می‌آمیزند،
   مدارها و ستاره‌های لوگو به‌عنوان طرح، دانه‌ی فیلم و سایه‌ی زیر متن
   ========================================================================== */
:root { --a0: 6 12 46; --a0h: 14 30 104; --a1: 30 68 242; --a2: 45 212 240; --a3: 123 97 255; --a4: 165 175 255; }
.pcard__back, .svc__bg, .svc-morph, .aur-host { --aur-fallback: radial-gradient(120% 80% at 100% 0%, rgb(var(--a1) / .55), rgb(var(--a1) / 0) 60%), radial-gradient(90% 70% at 0% 100%, rgb(var(--a3) / .5), rgb(var(--a3) / 0) 60%), linear-gradient(165deg, rgb(var(--a0h)), rgb(var(--a0))); }
.aur { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; isolation: isolate; background: linear-gradient(165deg, rgb(var(--a0h)) 0%, rgb(var(--a0)) 70%); }
.aur__cv { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* مدارها با گرادیان خودِ خط محو می‌شوند (بدون mask که هر فریم لایه‌ی جدا می‌خواهد) */
.aur__art { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: url(#aurFade); }
.aur__art .o { stroke-opacity: .2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.aur__art .o2 { stroke-opacity: .12; }
.aur__sp { position: absolute; display: block; width: 14px; aspect-ratio: 290 / 334; color: #fff; }
.aur__sp svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.aur__sp--1 { right: 26%; top: 6%; width: 18px; animation: aurTw 5.2s ease-in-out 3 both; }
.aur__sp--2 { right: 62%; top: 4%; width: 10px; animation: aurTw 6.6s ease-in-out -2.2s 3 both; }
.aur__sp--3 { right: 44%; top: 11%; width: 12px; animation: aurTw 7.4s ease-in-out -4.1s 3 both; }
/* هر انیمیشن فعال هر فریم کل صفحه را دوباره می‌سازد؛ پس درخشش ستاره‌ها با هر بار دیده شدن بخش سه دور پخش می‌شود و آرام می‌گیرد.
   روی لایه‌ی باز شده‌ی هر بخش (که کاربر به آن نگاه می‌کند) پیوسته می‌ماند */
.svc-morph .aur__sp, .svc__bg .aur__sp { animation-iteration-count: infinite; }
@keyframes aurTw { 0%, 100% { transform: scale(.55) rotate(0deg); opacity: .3; } 50% { transform: scale(1.08) rotate(45deg); opacity: .95; } }
/* سایه‌ی پایین روی خود بوم رسم می‌شود؛ این لایه فقط دانه‌ی ریز است */
.aur::after { content: ""; position: absolute; inset: 0; background-image: var(--grain, none); background-size: 180px 180px; opacity: .07; }
html.rm .aur__sp { animation: none; }
/* بیرون از دید انیمیشن برداشته می‌شود تا با برگشتن به بخش دوباره از اول پخش شود */
.aur-host:not(.is-live) * { animation: none !important; }
.end-probe { height: 1px; margin-top: -1px; pointer-events: none; }
html.rm 
/* ==========================================================================
   ریزتعامل‌ها
   ========================================================================== */
/* نوار پیشرفت اسکرول زیر کپسول */
.bar__prog { position: absolute; inset-inline: 14px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(270deg, #9DD9EE, #1E44F2 45%, #7B61FF 80%, #E8436F); transform: scaleX(0); transform-origin: 100% 50%; pointer-events: none; opacity: .85; }
html.rm .bar__prog { display: none; }
/* نور دنبال‌کننده و لبه‌ی روشن */
.spot { position: relative; }
.spot::before, .spot::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease-out); }
.spot::after { inset: 0; background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(30, 94, 235, .065), rgba(30, 94, 235, 0) 45%); }
.spot::before { inset: -1px; padding: 1px; background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(30, 94, 235, .6), rgba(123, 97, 255, .25) 40%, rgba(30, 94, 235, 0) 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: 1; }
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* نور براق روی دکمه‌های اصلی */
.btn--primary, .btn--light { overflow: hidden; isolation: isolate; }
.btn--primary::after, .btn--light::after { content: ""; position: absolute; inset: -2px auto -2px 0; width: 45%; z-index: -1; background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .38) 50%, transparent 100%); transform: translateX(-120%) skewX(-18deg); transition: transform .8s var(--ease-out); pointer-events: none; }
.btn--light::after { background: linear-gradient(100deg, transparent 0%, rgba(30, 94, 235, .16) 50%, transparent 100%); }
@media (hover: hover) { .btn--primary:hover::after, .btn--light:hover::after { transform: translateX(330%) skewX(-18deg); } }
.btn .ic { transition: transform .5s var(--spring); }
@media (hover: hover) { .btn:hover .ic { transform: translateX(-2px) rotate(-6deg); } }
html.rm .btn--primary::after, html.rm .btn--light::after { display: none; }

/* ==========================================================================
   معرفی لوگو (فقط بار اول هر بازدید)
   ========================================================================== */
.bi-ov { display: none; }
html.bi .bi-ov { display: block; position: fixed; inset: 0; z-index: 400; }
.bi-ov__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(42% 38% at 50% 44%, rgba(157, 217, 238, .38), rgba(157, 217, 238, 0) 70%),
    radial-gradient(60% 50% at 88% 8%, rgba(123, 97, 255, .12), rgba(123, 97, 255, 0) 70%),
    radial-gradient(60% 50% at 10% 96%, rgba(30, 68, 242, .10), rgba(30, 68, 242, 0) 70%),
    #fff;
}
.bi-ov__logo { position: absolute; left: 50%; top: 50%; width: min(300px, 58vw); transform: translate(-50%, -56%); display: grid; justify-items: center; gap: clamp(16px, 3vh, 28px); }
.bi-mark { display: block; width: 100%; height: auto; overflow: visible; }
.bi-word { display: block; width: 84%; height: auto; clip-path: inset(0 100% 0 0); }
.bi-blue, .bi-fill, .bi-star { opacity: 0; }
html.bi .hdr .brand__mark { opacity: 0; }

/* ---------- مگامنو ---------- */
.mega {
  position: absolute; inset-inline: var(--gutter); top: calc(100% + 8px);
  background: #fff; border-radius: var(--r-cap);
  box-shadow: 0 0 0 1px rgba(13, 27, 48, .06), 0 30px 60px -28px rgba(6, 16, 34, .5);
  transform-origin: 50% 0;
}
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 0; padding: 26px 26px 28px; }
.mega__col { padding-inline: 0 28px; margin-inline-end: 28px; border-inline-end: 1px solid var(--line); }
.mega__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mega__head b { font-size: 1.125rem; }
.mega__ic { width: 40px; height: 40px; border-radius: var(--r1); display: grid; place-items: center; color: #fff; }
.mega__col--dental .mega__ic { background: linear-gradient(150deg, #2A9BE0, #0B4E93); }
.mega__col--beauty .mega__ic { background: linear-gradient(150deg, #D65A83, #7E1F48); }
.mega__col--med .mega__ic { background: linear-gradient(150deg, #1FAE86, #0A6049); }
.mega__list { display: grid; }
.mega__list a { display: flex; align-items: center; min-height: 40px; font-size: .96875rem; color: var(--ink-2); border-bottom: 1px solid var(--mist-2); transition: color .2s, padding .3s var(--ease-out); }
.mega__list li:last-child a { border-bottom: 0; }
.mega__list a:hover { color: var(--blue); padding-inline-start: 6px; }
.mega__aside { padding: 22px; border-radius: 10px; background: var(--navy-800); color: #D9E2F1; display: grid; gap: 8px; align-content: start; font-size: .9375rem; line-height: 1.85; }
.mega__kicker { font-weight: 800; font-size: 1.0625rem; color: #fff; }
.mega__tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; margin-top: 6px; text-decoration: none; }

/* ---------- شیت موبایل ---------- */
.sheet { position: fixed; inset: 0; z-index: 120; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(6, 16, 34, .55); opacity: 0; }
.sheet__panel {
  position: absolute; inset-inline: 0; bottom: 0;
  max-height: calc(100svh - 40px - env(safe-area-inset-top, 0px));
  display: flex; flex-direction: column;
  border-radius: 12px 12px 0 0;
  background: #fff; color: var(--ink);
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .4);
  transform: translate3d(0, 100%, 0);
  touch-action: none;
}
.sheet__grab { display: grid; place-items: center; height: 24px; flex: none; cursor: grab; }
.sheet__grab span { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; touch-action: pan-y; }

.sheet__svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet__svc { display: grid; justify-items: start; gap: 16px; padding: 14px; border-radius: var(--r2); color: #fff; font-weight: 700; font-size: .9375rem; line-height: 1.5; }
.sheet__svc .ic { width: 24px; height: 24px; }
.sheet__svc--dental { background: linear-gradient(155deg, #2A9BE0, #0B4E93 70%, #08396E); }
.sheet__svc--beauty { background: linear-gradient(155deg, #D65A83, #9A2B58 70%, #6C1A3D); }
.sheet__svc--med { background: linear-gradient(155deg, #1FAE86, #0E7A5E 70%, #094F3D); }
.sheet__nav { display: grid; border-top: 1px solid var(--line); }
.sheet__nav a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-size: 1.125rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.sheet__nav .ic { color: var(--ink-3); }

.sheet__foot { display: grid; gap: 12px; }
.sheet__foot p, .sheet__tel { display: flex; align-items: center; gap: 8px; justify-content: center; font-weight: 700; color: inherit; text-decoration: none; }

/* ---------- واکنش‌گرا ---------- */
/* ==========================================================================
   فوتر: روی دسکتاپ زیر صفحه ثابت است و آخرین بخش مثل پرده از رویش کنار می‌رود
   ========================================================================== */
.foot { position: relative; overflow: hidden; isolation: isolate; background: #070A1E; color: #D9E2F1; }
.foot__in { position: relative; z-index: 1; }
.fsky { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: #070A1E; }
.fsky__cv { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.foot__word { position: relative; padding-block: 8px 20px; }
.fword { display: block; width: min(100%, 960px); height: auto; margin-inline: auto; overflow: visible; }
/* لایه‌ی جدا (will-change) فقط وقتی فوتر نزدیک دید است؛ دور از دید حافظه‌ی گرافیک گوشی را نمی‌گیرد (core.js: is-near) */
.foot.is-near .foot__in, .foot.is-near .fword { will-change: transform; }
.foot.is-near .fsky { will-change: transform, opacity; }
.fword__star { position: absolute; width: clamp(18px, 2.6vw, 34px); aspect-ratio: 290 / 334; fill: #fff; filter: drop-shadow(0 0 10px rgba(165, 175, 255, .8)); }
.fword__star--l { left: calc(50% + min(50%, 480px) - 1%); top: 0; }
.fword__star--s { left: calc(50% + min(50%, 480px) - 5%); top: 30%; width: clamp(10px, 1.4vw, 18px); }
/* همان چشمک، ولی از حالت کامل ستاره شروع و به همان ختم می‌شود تا بعد از چند دور ستاره‌ی لوگو کامل بماند */
@keyframes fwTw { 0%, 100% { transform: none; opacity: 1; } 50% { transform: scale(.55) rotate(45deg); opacity: .35; } }
html.motion .fword__star { animation: fwTw 4.8s ease-in-out 4; }
html.motion .fword__star--s { animation-delay: -2.1s; }
.foot a:not(.btn) { color: inherit; text-decoration: none; }
.foot__grid, .foot__bottom, .foot__word { background: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)) 50% 0 / calc(100% - var(--gutter) * 2) 1px no-repeat; }
.foot__cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; padding-block: clamp(36px, 6vh, 60px); }
.foot__title { margin-top: 10px; font-size: clamp(1.45rem, 1.05rem + 1.3vw, 2.15rem); line-height: 1.4; color: #fff; }
.foot__title span { color: #9EC0FF; }
.foot__acts { display: flex; flex-wrap: wrap; gap: 12px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; padding-block: 36px; }
.brand--light { --lg-ink: #fff; --lg-fill: transparent; }
.brand--light .brand__txt b { color: #fff; }
.brand--light .brand__txt small { color: rgba(217, 226, 241, .62); }
.foot__about { margin-top: 16px; max-width: 42ch; font-size: .9375rem; line-height: 1.9; color: rgba(217, 226, 241, .78); }
.foot__lic { display: grid; gap: 8px; margin-top: 18px; }
.foot__lic li { display: flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-size: .8125rem; color: rgba(217, 226, 241, .72); }
.foot__lic .ic, .foot__contact .ic { width: 16px; height: 16px; flex: none; color: #9EC0FF; }
.foot__col h3 { margin-bottom: 14px; font-family: var(--f-ui); font-size: .8125rem; font-weight: 600; color: rgba(217, 226, 241, .55); }
.foot__col ul { display: grid; gap: 10px; }
.foot__col a { font-size: .9375rem; color: #fff; transition: color .2s; }
.foot__col a:hover { color: #9EC0FF; }
.foot__contact li { display: flex; align-items: center; gap: 10px; font-size: .9375rem; }
.foot__social { display: flex; gap: 8px; margin-top: 18px; }
.foot__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; transition: background-color .2s, border-color .2s; }
.foot__social a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); }
.foot__social .ic { width: 18px; height: 18px; }
.foot__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; font-family: var(--f-ui); font-size: .8125rem; color: rgba(217, 226, 241, .6); }
.foot__sample { margin-inline-end: auto; }
.foot__top { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.foot__top .ic { width: 16px; height: 16px; }

@media (max-width: 1240px) {
  .nav__link { padding: 0 11px; }
}
@media (max-width: 1060px) {
  .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
  :root { --bar-h: 60px; --bar-gap: 10px; }
  .nav { display: none; }
  .burger { display: block; }
  .bar__end { margin-inline-start: auto; }
  .brand__mark { width: 44px; height: 40px; }
}
@media (max-width: 699.98px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .foot__grid > .foot__col:last-child { grid-column: 1 / -1; }
  .foot__acts, .foot__acts .btn { width: 100%; }
}
@media (max-width: 440px) {
  .bar__cta span { display: none; }
  .bar__cta { width: 46px; padding: 0; }
  .brand__txt small { display: none; }
}

/* ---------- کنتراست بالا ---------- */

/* ---------- حرکت کمتر ---------- */
html.rm *, html.rm *::before, html.rm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
html.rm .btn, html.rm .nav__ind { transition-duration: .001ms !important; }
.btn--insta img { width: 20px; height: 20px; flex: none; }
.foot__sub { margin-top: 6px; font-family: var(--f-ui); font-size: .9375rem; color: rgba(217, 226, 241, .8); }
.foot__social a.foot__soc { background: #fff; border-color: transparent; transition: transform .45s var(--spring), box-shadow .3s; }
.foot__social a.foot__soc:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .6); }
.foot__soc img { display: block; width: 22px; height: 22px; object-fit: contain; }
html.rm .pick__chev, html.rm .pick-pop__hl, html.rm .pick-opt__ok, html.rm .pick-opt__ic { transition: none; }
/* هنگام اسکرول نرم، هاور کارت‌ها خاموش است تا هر فریم صفحه دوباره رسم نشود (core.js): لایه‌ی شفاف زیر هدر */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.scroll-shield { display: none; position: fixed; inset: 0; z-index: 55; }
