/* ══════════════════════════════════════════════════════════════
   ريف فاليو — الخيار B «Noir» · مستقل تماماً عن reef-ds.css
   الاتجاه: داكن · طباعي · غامر — نقيض الخيار A في كل شيء:
   - لا صناديق ولا شبكات متساوية؛ تخطيطات غير متناظرة، سطور رفيعة، فراغ واسع
   - الخط IBM Plex Sans Arabic (تقني/تحريري) بدل Cairo
   - ذهبي كلهجة وحيدة على أرضية بنفسجية-سوداء؛ البنفسجي توهّج لا لون سطح
   - أقسام «تتدحرج»: لوحة صور ثابتة تتبدّل مع التمرير، شريط نص متحرك، شبكة bento،
     قائمة تكشف الصور بالهوفر، معرض أفقي بانزلاق
   ══════════════════════════════════════════════════════════════ */

/* ───────── الرموز ─────────
   الفاتح هو الافتراضي. اللهجة الأساسية بنفسجي الهوية، والذهبي لإبراز الكلمات والخطوط.
   الداكن (t-dark) بنفسجي عميق لا أسود، ولهجته ذهبية دافئة. */
:root {
  --bg: #FCFBFD;
  --bg-rgb: 252, 251, 253;
  --bg-2: #F5F3F9;
  --surface: #FFFFFF;
  --line: #ECE8F2;
  --line-2: #D8D1E5;
  --text: #221C33;
  --mute: #5F5870;
  --dim: #9891A6;
  --accent: #5400A8;
  --accent-2: #43008A;
  --accent-soft: rgba(84, 0, 168, .10);
  --on-accent: #FFFFFF;
  --gold: #9C8440;
  --gold-2: #B89A4E;
  --stroke: rgba(84, 0, 168, .14);
  --shadow: 0 12px 32px rgba(64, 24, 120, .07);
  --logo-filter: none;
  --grain-op: 0;
  --img-op: 1;
  --font: 'Cairo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 92px;
}
:root.t-dark {
  --bg: #1B1430;
  --bg-rgb: 27, 20, 48;
  --bg-2: #231A40;
  --surface: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .11);
  --line-2: rgba(255, 255, 255, .2);
  --text: #F3EFF9;
  --mute: #B3AAC6;
  --dim: #7E758F;
  --accent: #D2B86C;
  --accent-2: #E6D08A;
  --accent-soft: rgba(210, 184, 108, .14);
  --on-accent: #1B1430;
  --gold: #D9C07A;
  --gold-2: #EAD596;
  --stroke: rgba(255, 255, 255, .14);
  --shadow: none;
  --logo-filter: brightness(0) invert(1);
  --grain-op: .03;
  --img-op: .9;
}
:root.t-dark body::before {
  background:
    radial-gradient(ellipse 50% 40% at 85% 0%, rgba(120, 60, 200, .32), transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 100%, rgba(210, 184, 108, .08), transparent 60%);
}
:root.t-dark .tile__glow { background: radial-gradient(circle, rgba(160,110,230,.32), transparent 65%); }

/* ───────── إعادة ضبط ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.85;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; color: var(--text); letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.num, [data-count] { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.rf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rf-ico { width: 1em; height: 1em; fill: currentColor; flex: 0 0 auto; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* توهّج خلفي ثابت */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 85% 0%, rgba(84,0,168,.07), transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 100%, rgba(156,132,64,.09), transparent 60%);
}

/* ───────── حبيبات خفيفة (تكسر «نظافة» الشاشة الرقمية) ───────── */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none; mix-blend-mode: overlay; opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────── عناوين وتسميات ───────── */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.label::before { content: ''; width: 28px; height: 1px; background: var(--accent); }
.h-xl { font-size: clamp(32px, 4.8vw, 62px); line-height: 1.15; font-weight: 700; }
.h-lg { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.2; }
.h-md { font-size: clamp(22px, 2.6vw, 34px); }
.lede { font-size: clamp(16px, 1.5vw, 19px); color: var(--mute); max-width: 58ch; }
.gold { color: var(--gold); }

.sec { padding-block: clamp(72px, 9vw, 128px); }
.sec--line { border-top: 1px solid var(--line); }

/* رأس قسم بسطر: تسمية يمين، عنوان يسار — تخطيط تحريري لا مركزي */
.shead {
  display: grid; grid-template-columns: 220px 1fr; gap: var(--pad);
  align-items: end; margin-bottom: clamp(40px, 5vw, 72px);
}
.shead .lede { margin-top: 16px; }

/* ───────── أزرار ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  border: 1px solid var(--line-2);
  transition: all .35s var(--ease);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--on-accent); }
.btn:hover::before { transform: none; }
.btn--gold { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--gold::before { background: var(--accent-2); }
.btn--gold:hover { border-color: var(--accent-2); }
.btn .rf-ico { transition: transform .35s var(--ease); }
.btn:hover .rf-ico { transform: translateX(-5px); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--accent);
  padding-bottom: 4px; border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.arrow-link:hover { border-bottom-color: var(--accent); gap: 16px; }
.arrow-link::after { content: '←'; }

/* ───────── القائمة ───────── */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: all .4s var(--ease);
}
.nav.scrolled { background: rgba(var(--bg-rgb),.86); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav__brand { height: 64px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; transition: height .4s var(--ease); }
.nav.scrolled .nav__brand { height: 52px; }
.nav__brand .nav__logo img { height: 40px; transition: height .4s var(--ease); }
.nav.scrolled .nav__brand .nav__logo img { height: 30px; }
.nav__in { height: 92px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; gap: 32px; transition: height .4s var(--ease); }
.nav.scrolled .nav__in { height: 68px; }

/* الشريط العلوي: داكن دائماً ليؤطّر الصفحة، ويطوى عند التمرير */
.topbar { display: none; }
.topbar-old {
  height: 40px; overflow: hidden;
  background: rgba(27,20,48,.38); backdrop-filter: blur(12px); color: #E4DFEF; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
  transition: height .35s var(--ease), opacity .3s var(--ease);
}
.nav.scrolled .topbar { height: 0; opacity: 0; border: 0; }
.topbar__in { height: 40px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__g { display: flex; align-items: center; gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.topbar a:hover { color: #D9C07A; }
.topbar .rf-ico { font-size: 14px; color: #D9C07A; }
.topbar__sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); }
.nav__logo img { height: 28px; width: auto; filter: var(--logo-filter); opacity: 1; }
.nav.scrolled .nav__logo img { height: 28px; }
.nav__links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--mute);
  transition: all .3s var(--ease);
}
.nav__links a:hover { color: var(--gold); background: var(--surface); }
.nav__links a[aria-current="page"] { color: var(--gold); background: transparent; }
.nav__cta { padding: 11px 22px; font-size: 14px; border-color: transparent; }
.nav__cta.btn--gold:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.nav__cta.btn--gold::before { background: var(--accent-2); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; font-size: 18px; }

.rf-progress { position: absolute; bottom: -1px; inset-inline-start: 0; height: 2px; width: 0; background: var(--accent); }

/* زر الثيم */
.theme-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-size: 17px; color: var(--mute);
  transition: all .35s var(--ease);
}
.theme-btn:hover { color: var(--accent); border-color: var(--accent); transform: rotate(20deg); }
.theme-btn .i-sun { display: none; }
:root.t-dark .theme-btn .i-sun { display: block; }
:root.t-dark .theme-btn .i-moon { display: none; }

/* ───────── مناطق داكنة دائماً (تمنح الفاتح عمقاً ولا تتأثر بالثيم) ───────── */
.hero, .phead, .spot, .foot {
  --bg: #1B1430; --bg-rgb: 27, 20, 48; --bg-2: #231A40;
  --surface: rgba(255,255,255,.05); --line: rgba(255,255,255,.12); --line-2: rgba(255,255,255,.22);
  --text: #F3EFF9; --mute: #C6BFD6; --dim: #8A8299;
  --accent: #D2B86C; --accent-2: #E6D08A; --accent-soft: rgba(210,184,108,.16); --on-accent: #1B1430;
  --gold: #D9C07A; --gold-2: #EAD596; --stroke: rgba(255,255,255,.14); --logo-filter: brightness(0) invert(1);
  color: var(--text);
}
/* الدعوة الختامية: ذهبية بنص بنفسجي داكن */
.mega {
  background: linear-gradient(135deg, #A88D47 0%, #C4A962 45%, #DFC98A 100%);
  --text: #1E1430; --mute: rgba(30,20,48,.78); --line-2: rgba(30,20,48,.35);
  --accent: #2A1A4E; --accent-2: #3D1A74; --accent-soft: rgba(42,26,78,.14); --on-accent: #F5EFD9;
  --gold: #3D1A74; --gold-2: #5400A8;
  color: var(--text);
}
.mega .label { color: #3D1A74; }
.mega .label::before { background: #3D1A74; }
.mega__glow { background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255,255,255,.35), transparent 70%) !important; }
.foot { background: var(--bg); }
.sec--tint { background: var(--bg-2); }
.marquee { background: var(--bg-2); }

/* ───────── الوضع الفاتح: صفحة هادئة أنيقة تحت ترويسات داكنة ─────────
   الترويسات (.hero/.phead) تبقى داكنة بصورة غنية ونص أبيض، فتكتسب الصفحة الفاتحة عمقاً بلا حجب.
   القائمة فوق الترويسة بيضاء شفافة، وتتحوّل إلى بيضاء ثابتة بعد التمرير. */
/* سوليوشنز: الهيرو فاتح — القائمة بنص داكن دائماً (لا رموز بيضاء قبل التمرير) */
:root:not(.t-dark) .nav:not(.scrolled) { color: var(--text); }
:root:not(.t-dark) .nav:not(.scrolled) .nav__links a[aria-current="page"] { color: var(--gold); background: transparent; }
:root:not(.t-dark) .nav:not(.scrolled) .nav__cta { border-color: transparent; }
:root:not(.t-dark) .nav:not(.scrolled) .nav__cta::before { background: #E6D08A; }
:root:not(.t-dark) .nav:not(.scrolled) .nav__cta:hover { color: #1B1430; border-color: #E6D08A; }
:root:not(.t-dark) .nav.scrolled { background: rgba(255,255,255,.92); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(64,24,120,.06); }
:root:not(.t-dark) .nav.scrolled .nav__links a[aria-current="page"] { color: var(--gold); background: transparent; }
/* الترويسة الداكنة: تدرّج يُبقي الصورة ظاهرة أعلاها ويُعمِّق أسفلها للنص */
:root:not(.t-dark) .hero::before, :root:not(.t-dark) .phead::before {
  background:
    linear-gradient(to top, #1B1430 0%, rgba(27,20,48,.92) 18%, rgba(27,20,48,.55) 55%, rgba(27,20,48,.35) 100%),
    linear-gradient(to left, rgba(27,20,48,.55), transparent 60%);
}
:root:not(.t-dark) .phead { border-bottom: 0; }
:root:not(.t-dark) .phead__bg, :root:not(.t-dark) .hero__img img { filter: none; }
/* سطح الصفحة: أبيض دافئ هادئ، بلا توهّجات ملوّنة */
:root:not(.t-dark) body::before { background: none; }
:root:not(.t-dark) .sec--tint, :root:not(.t-dark) .marquee { background: #F5F3F9; }
:root:not(.t-dark) .fact, :root:not(.t-dark) .tile { box-shadow: 0 1px 2px rgba(31,26,43,.04), 0 10px 28px rgba(64,24,120,.06); }
:root:not(.t-dark) .tile:hover, :root:not(.t-dark) .fact:hover { box-shadow: 0 2px 4px rgba(31,26,43,.05), 0 18px 40px rgba(64,24,120,.10); }
:root:not(.t-dark) .label { color: var(--gold); }
:root:not(.t-dark) .label::before { background: var(--gold); }

/* ───────── الهيرو الغامر ───────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: var(--nav-h); overflow: hidden;
}
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2.6s ease-in-out; }
.hero__img img.on { opacity: 1; animation: kb 18s linear forwards; }
.hero__index a.on { color: var(--text); padding-inline-start: 8px; }
.hero__index a.on i { color: var(--gold); }
.hero__index a.on b { position: relative; }
.hero__index a.on b::after { content: ''; position: absolute; inset-inline-start: 0; bottom: -4px; width: 100%; height: 1px; background: var(--gold); transform-origin: right; animation: hline 7s linear forwards; }
@keyframes hline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(var(--bg-rgb),.7) 38%, rgba(var(--bg-rgb),.25) 72%, rgba(var(--bg-rgb),.45) 100%),
    linear-gradient(to left, rgba(var(--bg-rgb),.5), transparent 55%);
}
.hero__top { display: none; }
.hero__top--x {
  position: absolute; top: calc(var(--nav-h) + 24px); inset-inline: 0;
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 12.5px; letter-spacing: .14em; color: var(--mute); text-transform: uppercase;
}
.hero__body {
  display: grid; grid-template-columns: 1fr auto; gap: var(--pad);
  align-items: end; padding-bottom: clamp(48px, 7vw, 96px);
}
.hero__title { max-width: 16ch; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; transform: translateY(110%); animation: up 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes up { to { transform: none; } }
.hero__sub { margin-top: 28px; max-width: 52ch; opacity: 0; animation: fade 1s .5s var(--ease) forwards; }
@keyframes fade { to { opacity: 1; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; opacity: 0; animation: fade 1s .7s var(--ease) forwards; }

/* فهرس القطاعات الجانبي */
.hero__index { display: grid; gap: 4px; min-width: 260px; opacity: 0; animation: fade 1s .9s var(--ease) forwards; }
.hero__index a {
  display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--line);
  color: var(--mute); transition: all .35s var(--ease);
}
.hero__index a:last-child { border-bottom: 1px solid var(--line); }
.hero__index a:hover { color: var(--text); padding-inline-start: 8px; }
.hero__index i { font-style: normal; font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.hero__index b { font-weight: 600; font-size: 15px; }

.hero__scroll {
  position: absolute; bottom: 28px; inset-inline-end: var(--pad);
  width: 1px; height: 64px; background: var(--line-2); overflow: hidden;
}
.hero__scroll::after { content: ''; position: absolute; inset-inline: 0; top: -100%; height: 100%; background: var(--accent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { to { top: 100%; } }

/* نص لكل شريحة: يُعرض المطابق فقط، وتُعاد حركة كشف السطور عند كل تبديل */
.hero__texts { display: grid; }
.hero__text { grid-area: 1 / 1; align-self: end; opacity: 0; pointer-events: none; transition: opacity 2.2s ease-in-out; }
.hero__index a:last-child { border-bottom: 0; }
.hero__text.on { opacity: 1; pointer-events: auto; }
/* حركة الكشف تعمل مرة واحدة عند تحميل الصفحة فقط؛ التبديل بين الشرائح تلاشٍ بحت */
.hero__text:not(.on) .line > span, .hero__text:not(.on) .hero__sub, .hero__text:not(.on) .hero__cta { animation: none; transform: none; opacity: 1; }
@keyframes softup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* عناصر تحكم السلايدر (مثل الخيار A) */
.hero__dots { position: absolute; bottom: 26px; inset-inline: 0; z-index: 3; display: flex; justify-content: center; gap: 9px; }
.hero__dot { position: relative; width: 8px; height: 8px; padding: 0; border: 1.5px solid rgba(255,255,255,.7); border-radius: 2px; transition: all .25s var(--ease); }
.hero__dot::after { content: ''; position: absolute; inset: -10px; }   /* منطقة لمس 30px غير مرئية */
.hero__dot:hover { border-color: #fff; }
.hero__dot[aria-selected="true"] { background: var(--gold); border-color: var(--gold); transform: scale(1.25); }
.hero__count { position: absolute; bottom: 22px; inset-inline-end: var(--pad); z-index: 3; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75); letter-spacing: .12em; }
.hero__count b { color: var(--gold); font-size: 22px; }
.hero__bar { position: absolute; bottom: 0; inset-inline: 0; z-index: 3; height: 4px; background: rgba(255,255,255,.15); }
.hero__bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.hero__bar i.run { animation: hbar 9s linear forwards; }
@keyframes hbar { from { width: 0; } to { width: 100%; } }
.hero__arr { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; font-size: 18px; background: rgba(27,20,48,.25); transition: all .25s var(--ease); }
.hero__arr:hover { background: var(--gold); border-color: var(--gold); color: #1B1430; }
.hero__arr { direction: ltr; } /* يمنع انعكاس الرمزين ‹ › في RTL */
.hero__arr--prev { right: 22px; }  /* السابق يمين الشاشة ويشير لليمين */
.hero__arr--next { left: 22px; }   /* التالي يسار الشاشة ويشير لليسار */
.hero .hero__body { padding-top: clamp(140px, 18vh, 220px); padding-bottom: clamp(72px, 9vw, 120px); }
.hero__scroll { display: none; }
@media (max-width: 900px) { .hero__arr, .hero__count { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__bar i.run { animation: none; width: 100%; } }

/* ───────── شريط النص المتحرك ───────── */
.marquee {
  border-block: 1px solid var(--line); padding-block: 18px; overflow: hidden;
  display: flex; white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 0; animation: slide 38s linear infinite; flex: 0 0 auto; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-size: clamp(15px, 1.6vw, 20px); font-weight: 600; color: var(--mute);
  padding-inline: 28px; display: inline-flex; align-items: center; gap: 28px;
}
.marquee span::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@keyframes slide { to { transform: translateX(50%); } }

/* ───────── من نحن: صورة + نص + حقائق ───────── */
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__media { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow); }
.about__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.about__media:hover img { transform: scale(1.04); }
.about__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,20,48,.55), transparent 45%); }
.about__badge {
  position: absolute; z-index: 1; bottom: 20px; inset-inline-start: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #1F1A2B;
  font-size: 13px; font-weight: 600; backdrop-filter: blur(8px);
}
.about__badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #5400A8; }
.about__text .lede { margin-top: 14px; }
.about__text .lede .gold { font-weight: 600; color: var(--accent); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.fact { padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.fact b { display: flex; align-items: baseline; gap: 3px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1; color: var(--accent); }
.fact b .sign { font-size: .65em; color: var(--gold); }
.fact span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--mute); }

/* ───────── نموذج طلب الخدمة ───────── */
.lf { display: grid; gap: 16px; position: relative; }
.lf label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.lf label b { color: var(--gold); font-weight: 700; }
.lf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lf input, .lf select, .lf textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 13px 16px; transition: all .3s var(--ease);
}
.lf input::placeholder, .lf textarea::placeholder { color: var(--dim); }
.lf input:focus, .lf select:focus, .lf textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lf select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(18px) 50%, calc(18px + 6px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-start: 36px; }
.lf textarea { resize: vertical; min-height: 120px; }
.lf__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.lf__foot small { font-size: 12.5px; color: var(--mute); max-width: 44ch; }
.lf__ok, .lf__bad { padding: 14px 18px; border-radius: 10px; font-size: 14.5px; }
.lf__ok { background: rgba(34,150,94,.12); color: #1F7A4D; border: 1px solid rgba(34,150,94,.3); }
.lf__bad { background: var(--accent-soft); color: var(--text); border: 1px solid var(--line-2); }
.lf-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow); }
:root.t-dark .lf__ok { color: #8FE0B4; }

/* ───────── البيان الافتتاحي ───────── */
.manifesto { max-width: 980px; }
.manifesto p {
  font-size: clamp(18px, 1.9vw, 24px); line-height: 1.8; font-weight: 500;
  color: var(--mute);
}
.manifesto p b { color: var(--text); font-weight: 600; }
.manifesto p .gold { font-weight: 600; border-bottom: 2px solid var(--gold-2); padding-bottom: 1px; }
.manifesto p .gold { font-weight: 600; }
.stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.stat { flex: 1 1 200px; padding: 28px var(--pad) 28px 0; border-inline-end: 1px solid var(--line); }
.stat:last-child { border-inline-end: 0; }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1; color: var(--accent); }
.stat b .sign { color: var(--accent); }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--mute); }

/* ───────── القطاعات: لوحة صور ثابتة + نصوص تتدحرج ───────── */
.scrolly { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); align-items: start; }
.scrolly__media { position: sticky; top: 100px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.scrolly__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.2s var(--ease);
}
.scrolly__media img.on { opacity: 1; transform: none; }
.scrolly__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--bg-rgb),.7), transparent 50%); }
.scrolly__tag {
  position: absolute; bottom: 24px; inset-inline-start: 24px; z-index: 1;
  font-size: 12.5px; letter-spacing: .16em; color: var(--accent); text-transform: uppercase;
}
.scrolly__items { display: grid; gap: 0; }
.scrolly__item {
  padding: clamp(48px, 6vw, 96px) 0; border-top: 1px solid var(--line);
  min-height: 70vh; display: flex; flex-direction: column; justify-content: center;
  transition: opacity .5s var(--ease);
}
.scrolly__item:not(.on) { opacity: .38; }
.scrolly__n { font-size: 13px; letter-spacing: .2em; color: var(--accent); margin-bottom: 18px; }
.scrolly__item h3 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 16px; }
.scrolly__item p { color: var(--mute); max-width: 50ch; }
.scrolly__list { margin: 26px 0 32px; display: grid; gap: 10px; }
.scrolly__list li { display: flex; gap: 14px; align-items: baseline; font-size: 15.5px; color: var(--text); }
.scrolly__list li::before { content: ''; width: 18px; height: 1px; background: var(--accent); flex: 0 0 auto; transform: translateY(-4px); }

/* ───────── شبكة Bento ───────── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; }
.tile {
  position: relative; overflow: hidden; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 26px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: all .45s var(--ease); isolation: isolate;
}
.tile:hover { border-color: var(--accent-soft); transform: translateY(-4px); }
.tile--2 { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile__img { position: absolute; inset: 0; z-index: -2; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); opacity: var(--img-op); }
.tile:hover .tile__img img { transform: scale(1.06); }
.tile__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--bg-rgb),.95), rgba(var(--bg-rgb),.2)); }
.tile__ico { font-size: 30px; color: var(--accent); margin-bottom: auto; transition: transform .45s var(--ease); }
.tile:hover .tile__ico { transform: translateY(-4px) rotate(-8deg); }
.tile h3 { font-size: 19px; margin-bottom: 6px; }
.tile p { font-size: 14px; color: var(--mute); }
.tile__glow { position: absolute; inset-inline-end: -40%; top: -40%; width: 80%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(84,0,168,.12), transparent 65%); opacity: 0; transition: opacity .5s; }
.tile:hover .tile__glow { opacity: 1; }

/* ───────── إدارة المرافق الذكية: لوحة عريضة ───────── */
.spot { position: relative; overflow: hidden; border-radius: 6px; isolation: isolate; min-height: 560px; display: grid; align-items: end; }
.spot__img { position: absolute; inset: -10% 0; z-index: -2; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.spot::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(var(--bg-rgb),.96) 30%, rgba(var(--bg-rgb),.5)); }
.spot__in { padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--pad); align-items: end; }
.spot__feats { display: grid; gap: 0; }
.spot__feats li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 18px 0; border-top: 1px solid var(--line-2);
}
.spot__feats i { font-style: normal; font-size: 12px; color: var(--accent); letter-spacing: .14em; padding-top: 6px; }
.spot__feats b { display: block; font-size: 16px; font-weight: 600; }
.spot__feats span { font-size: 14px; color: var(--mute); }

/* ───────── من نخدم: قائمة تكشف الصور ───────── */
.reveal { display: grid; grid-template-columns: 1fr 420px; gap: var(--pad); align-items: start; }
.reveal__list { display: grid; }
.reveal__row {
  display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 20px;
  padding: 28px 0; border-top: 1px solid var(--line);
  transition: all .4s var(--ease); cursor: pointer;
}
.reveal__row:last-child { border-bottom: 1px solid var(--line); }
.reveal__row i { font-style: normal; font-size: 13px; color: var(--dim); letter-spacing: .12em; transition: color .3s; }
.reveal__row h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 600; color: var(--mute); transition: all .4s var(--ease); }
.reveal__row p { grid-column: 2; font-size: 14.5px; color: var(--mute); max-height: 0; overflow: hidden; opacity: 0; transition: all .5s var(--ease); }
.reveal__row .arrow-link { opacity: 0; transition: opacity .4s; }
.reveal__row.on i { color: var(--accent); }
.reveal__row.on h3 { color: var(--text); padding-inline-start: 8px; }
.reveal__row.on p { max-height: 120px; opacity: 1; margin-top: 8px; }
.reveal__row.on .arrow-link { opacity: 1; }
.reveal__media { position: sticky; top: 110px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.reveal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .7s var(--ease), transform 1s var(--ease); }
.reveal__media img.on { opacity: 1; transform: none; }

/* ───────── المسار: خط أفقي ───────── */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.path::before { content: ''; position: absolute; top: 9px; inset-inline: 0; height: 1px; background: var(--line-2); }
.path__step { padding: 40px 24px 0 0; position: relative; }
.path__step::before { content: ''; position: absolute; top: 4px; inset-inline-start: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); transition: all .4s var(--ease); }
.path__step:hover::before { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.path__step i { font-style: normal; font-size: 12px; color: var(--accent); letter-spacing: .18em; }
.path__step h3 { font-size: 19px; margin: 10px 0 8px; }
.path__step p { font-size: 14.5px; color: var(--mute); }

/* ───────── اقتباس ───────── */
.quote { display: grid; grid-template-columns: 120px 1fr; gap: var(--pad); align-items: start; }
.quote__ava { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-2); }
.quote__ava img { width: 100%; height: 100%; object-fit: cover; }
.quote__mark { font-size: 110px; line-height: .5; color: var(--accent); font-family: Georgia, serif; opacity: .6; margin-bottom: 10px; }
.quote__q { font-size: clamp(18px, 2.1vw, 26px); line-height: 1.7; font-weight: 500; max-width: 34ch; }
.quote__who { margin-top: 24px; color: var(--mute); font-size: 14.5px; }
.quote__who b { color: var(--text); display: block; font-size: 15.5px; }

/* ───────── معرض الصور: شريط متحرك ببطء ─────────
   ارتفاع موحّد وعرض يتبع نسبة كل صورة، يتحرك بلا نهاية ويتوقف عند الهوفر. */
.strip-wrap { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.strip { display: flex; gap: 14px; width: max-content; animation: strip-slide 70s linear infinite; will-change: transform; }
.strip-wrap:hover .strip { animation-play-state: paused; }
.strip__item { position: relative; flex: 0 0 auto; height: clamp(220px, 28vw, 340px); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.strip__item img { height: 100%; width: auto; display: block; transition: transform 1.2s var(--ease); }
.strip__item:hover img { transform: scale(1.04); }
.strip__cap { position: absolute; bottom: 0; inset-inline: 0; padding: 40px 18px 16px; font-size: 13.5px; color: #fff; background: linear-gradient(to top, rgba(27,20,48,.85), transparent); }
@keyframes strip-slide { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .strip { animation: none; } .strip-wrap { overflow-x: auto; } }

/* ───────── دعوة عملاقة ───────── */
.mega { text-align: center; padding-block: clamp(80px, 12vw, 160px); position: relative; overflow: hidden; }
.mega__glow { position: absolute; inset: auto 0 -40% 0; height: 80%; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(84,0,168,.12), transparent 70%); pointer-events: none; }
.mega h2 { font-size: clamp(40px, 7vw, 96px); line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.mega h2 .gold { font-weight: 300; }
.mega p { margin: 28px auto 0; max-width: 48ch; color: var(--mute); font-size: clamp(16px, 1.6vw, 19px); }
.mega__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }

/* ───────── الفوتر ───────── */
.foot { border-top: 1px solid var(--line); padding-top: 64px; overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: 1.7fr 1fr 1.3fr; gap: var(--pad); padding-bottom: 56px; }
.foot__grid h4 { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; font-weight: 600; }
.foot__grid li { margin-bottom: 10px; font-size: 15px; color: var(--mute); }
.foot__grid a:hover { color: var(--accent); }
.foot__logo img { height: 26px; width: auto; filter: var(--logo-filter); }
.foot__about { color: var(--mute); font-size: 15px; margin-top: 18px; max-width: 34ch; }
.foot__social { display: flex; gap: 10px; margin-top: 22px; }
.foot__social a { width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: all .3s var(--ease); }
.foot__social a:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.foot__word { display: none; }
.foot__word-old {
  font-size: clamp(48px, 11vw, 170px); line-height: .85; font-weight: 700; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px var(--stroke);
  white-space: nowrap; user-select: none; direction: ltr; text-align: center;
  margin-top: 20px; transform: translateY(18%);
}
.foot__addr { display: grid; gap: 4px; margin-top: 4px; }
.foot__addr small { color: var(--dim); font-size: 12.5px; direction: ltr; text-align: start; display: block; }
.foot__bar { border-top: 1px solid var(--line); padding: 22px 0; font-size: 13px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; }

.rf-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); background: rgba(var(--bg-rgb),.7); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: all .35s var(--ease); }
.rf-top.on { opacity: 1; pointer-events: auto; }
.rf-top:hover { background: var(--accent); color: var(--on-accent); }

/* ───────── ظهور عند التمرير ───────── */
.rf-rise { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rf-anim .rf-rise { opacity: 0; transform: translateY(28px); }
.rf-anim .rf-rise.in { opacity: 1; transform: none; }
.rf-anim .rf-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rf-anim .rf-stagger.in > * { opacity: 1; transform: none; }
.rf-stagger.in > :nth-child(2) { transition-delay: .08s; }
.rf-stagger.in > :nth-child(3) { transition-delay: .16s; }
.rf-stagger.in > :nth-child(4) { transition-delay: .24s; }
.rf-stagger.in > :nth-child(5) { transition-delay: .32s; }
.rf-stagger.in > :nth-child(6) { transition-delay: .4s; }



/* ───────── ترويسة الصفحات الداخلية v2: صورة بعرض الشاشة + عنوان ضخم + فهرس ───────── */
.phead {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;   /* نفس ارتفاع هيرو الرئيسية */
  padding: calc(var(--nav-h) + 160px) 0 clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.phead__bg { position: absolute; inset: -8% 0; z-index: -2; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.phead::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 6%, rgba(var(--bg-rgb),.78) 45%, rgba(var(--bg-rgb),.3) 100%),
    linear-gradient(to left, rgba(var(--bg-rgb),.5), transparent 60%);
}
.phead__in { display: grid; grid-template-columns: 1fr 320px; gap: var(--pad); align-items: end; }
.crumb { font-size: 12.5px; letter-spacing: .16em; color: var(--mute); text-transform: uppercase; margin-bottom: 20px; display: flex; gap: 12px; }
.crumb b { color: var(--accent); font-weight: 600; }
.phead h1 { font-size: clamp(34px, 5.6vw, 72px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.phead h1 .line { display: block; overflow: hidden; }
.phead h1 .line > span { display: block; transform: translateY(110%); animation: up 1s var(--ease) forwards; }
.phead h1 .line:nth-child(2) > span { animation-delay: .12s; }
.phead__sub { margin-top: 24px; max-width: 52ch; opacity: 0; animation: fade 1s .5s var(--ease) forwards; }
.phead__index { display: grid; opacity: 0; animation: fade 1s .7s var(--ease) forwards; }
.phead__index a { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--mute); font-size: 14.5px; transition: all .3s var(--ease); }
.phead__index a:last-child { border-bottom: 1px solid var(--line); }
.phead__index a:hover { color: var(--text); padding-inline-start: 8px; }
.phead__index i { font-style: normal; font-size: 11.5px; color: var(--accent); letter-spacing: .1em; }
.phead__img { display: none; }

/* ───────── قسم قطاع كامل (صفحة القطاعات) ───────── */
.div { padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.div__head { display: grid; grid-template-columns: 120px 1fr; gap: var(--pad); align-items: start; margin-bottom: clamp(32px, 4vw, 56px); }
.div__n { font-size: clamp(40px, 5.5vw, 72px); line-height: .9; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.div__head h2 { font-size: clamp(26px, 3.2vw, 40px); }
.div__head .lede { margin-top: 16px; }
.div__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--pad); align-items: start; }
.div__img { position: sticky; top: 100px; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.div__img img { width: 100%; height: 100%; object-fit: cover; }
.kv { display: grid; gap: 0; }
.kv > div { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kv > div:last-child { border-bottom: 1px solid var(--line); }
.kv dt { color: var(--accent); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; padding-top: 4px; font-weight: 600; }
.kv dd { margin: 0; color: var(--text); }
.kv dd small { display: block; color: var(--mute); font-size: 14px; margin-top: 4px; }
.feats { display: grid; gap: 0; margin-top: 8px; }
.feats li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.feats li:last-child { border-bottom: 1px solid var(--line); }
.feats i { font-style: normal; font-size: 12px; color: var(--accent); letter-spacing: .14em; padding-top: 5px; }
.feats b { display: block; font-size: 16px; font-weight: 600; }
.feats span { font-size: 14.5px; color: var(--mute); }
.edge { margin-top: 32px; padding: 24px 28px; border: 1px solid var(--gold); border-radius: 6px; position: relative; }
.edge::before { content: 'القيمة التنافسية'; position: absolute; top: -11px; inset-inline-start: 20px; background: var(--bg); padding: 0 10px; font-size: 12px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.edge p { color: var(--text); font-size: 15.5px; }

/* شريط ترابط القطاعات */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.band > div { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.band h3 { font-size: 20px; margin-bottom: 8px; }
.band p { color: var(--mute); font-size: 15px; }
.band .label { margin-bottom: 14px; }

/* ───────── قوائم عامة للصفحات الداخلية ───────── */
.rows { display: grid; }
.rows > div { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { color: var(--accent); font-weight: 600; }
.rows dd { margin: 0; color: var(--text); }
.rows dd small { display: block; color: var(--mute); font-size: 13.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); align-items: start; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.cols3 > div { padding: 28px 28px 28px 0; border-inline-end: 1px solid var(--line); }
.cols3 > div:last-child { border-inline-end: 0; }
.cols3 > div:not(:first-child) { padding-inline-start: 28px; }
.cols3 h3 { font-size: 19px; margin: 14px 0 8px; }
.cols3 p { color: var(--mute); font-size: 14.5px; }
.cols3 .tile__ico { margin: 0; }
.statement { padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: var(--pad); align-items: start; }
.statement:last-child { border-bottom: 1px solid var(--line); }
.statement p { font-size: clamp(18px, 2vw, 24px); line-height: 1.7; font-weight: 500; max-width: 36ch; }
.statement small { display: block; margin-top: 14px; color: var(--mute); font-size: 14px; }

/* الوظائف */
.role { border-top: 1px solid var(--line); padding: 32px 0; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.role:last-child { border-bottom: 1px solid var(--line); }
.role h3 { font-size: clamp(20px, 2.2vw, 26px); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.role__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 16px; font-size: 13.5px; color: var(--mute); }
.role__meta b { color: var(--accent); font-weight: 600; }
.role p { color: var(--mute); max-width: 62ch; }
.pill { padding: 4px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; color: var(--accent); font-weight: 500; }
.pill--open { border-color: rgba(92,200,140,.6); color: #5FC98C; }

/* التواصل */
.contact-list { display: grid; }
.contact-list a { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); transition: all .35s var(--ease); }
.contact-list a:last-child { border-bottom: 1px solid var(--line); }
.contact-list a:hover { padding-inline-start: 10px; }
.contact-list .rf-ico { font-size: 30px; color: var(--accent); }
.contact-list small { display: block; font-size: 12.5px; letter-spacing: .12em; color: var(--mute); text-transform: uppercase; }
.contact-list b { font-size: clamp(17px, 1.8vw, 22px); font-weight: 600; }
.contact-list span.go { color: var(--accent); font-size: 22px; transition: transform .3s; }
.contact-list a:hover span.go { transform: translateX(-6px); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 3; }
  .lf__row { grid-template-columns: 1fr; }
  .phead { min-height: 0; }
  .phead__in { grid-template-columns: 1fr; }
  .phead__index { display: none; }
  .div__head { grid-template-columns: 1fr; gap: 8px; }
  .div__grid { grid-template-columns: 1fr; }
  .div__img { position: relative; top: 0; }
  .band, .two, .cols3 { grid-template-columns: 1fr; }
  .cols3 > div { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 24px 0 !important; }
  .statement { grid-template-columns: 1fr; gap: 12px; }
  .rows > div, .kv > div { grid-template-columns: 1fr; gap: 4px; }
  .role { grid-template-columns: 1fr; }
  .contact-list a { grid-template-columns: 44px 1fr; }
  .contact-list span.go { display: none; }
}

/* ───────── توافق مع مكوّنات الصفحات الداخلية (المشتقة من A) ───────── */
main > .rf-sec, .rf-sec { padding-block: clamp(64px, 8vw, 112px); }
.rf-sec--panel { background: var(--bg-2); }
.rf-sec--dark { background: transparent; border-block: 1px solid var(--line); }
.rf-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.rf-grid { display: grid; gap: 14px; }
.rf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rf-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rf-shead { max-width: 820px; margin: 0 auto clamp(36px, 4vw, 56px); text-align: center; }
.rf-shead--start { margin-inline: 0; text-align: start; }
.rf-shead h1, .rf-shead h2 { font-size: clamp(28px, 3.6vw, 48px); margin-top: 14px; }
.rf-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.rf-kicker::before { content: ''; width: 22px; height: 1px; background: var(--accent); }
.rf-lede { color: var(--mute); margin-top: 14px; font-size: 17px; }
.rv-p { color: var(--mute); margin-bottom: 16px; }
.rv-p strong { color: var(--text); font-weight: 600; }
.rf-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); align-items: center; }
.rf-split__img { border-radius: 6px; overflow: hidden; }
.rf-split__img img { width: 100%; height: 100%; object-fit: cover; }
.rf-split--flip .rf-split__img { order: 2; }
.rf-zoom { overflow: hidden; }
.rf-zoom img { transition: transform 1.2s var(--ease); }
.rf-zoom:hover img { transform: scale(1.05); }
.rf-check { display: grid; gap: 12px; }
.rf-check li { display: flex; gap: 14px; align-items: baseline; color: var(--text); font-size: 15.5px; }
.rf-check li::before { content: ''; width: 18px; height: 1px; background: var(--accent); flex: 0 0 auto; transform: translateY(-4px); }
.rf-btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 28px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 1px solid var(--line-2); transition: all .35s var(--ease); }
.rf-btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.rf-btn--primary, .rf-btn--gold { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.rf-btn--primary:hover, .rf-btn--gold:hover { background: var(--accent-2); }
.rf-btn--white { background: var(--text); color: var(--on-accent); border-color: var(--text); }
.rf-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--accent); }
.rf-link::after { content: '←'; transition: transform .3s; }
.rf-link:hover::after { transform: translateX(-5px); }
.rf-fbox, .rf-card, .rf-ibox, .rv-contact {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 28px;
  transition: all .4s var(--ease);
}
.rf-fbox:hover, .rf-card:hover, .rf-ibox:hover, .rv-contact:hover { border-color: var(--accent-soft); transform: translateY(-4px); }
.rf-fbox { text-align: start; }
.rf-fbox::before { display: none; }
.rf-fbox__ico { font-size: 30px; color: var(--accent); margin-bottom: 18px; width: auto; height: auto; border: 0; background: none; display: block; }
.rf-fbox__title, .rf-card__title, .rf-ibox__title { font-size: 18px; margin-bottom: 8px; }
.rf-fbox__text, .rf-card__text, .rf-ibox__text { font-size: 14.5px; color: var(--mute); }
.rf-fbox__more { margin-top: 16px; }
.rf-ibox { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.rf-ibox__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.rf-ibox__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); opacity: .9; }
.rf-ibox:hover .rf-ibox__img img { transform: scale(1.05); }
.rf-ibox__ico { position: absolute; bottom: 16px; inset-inline-start: 16px; font-size: 28px; color: var(--accent); }
.rf-ibox__body { padding: 24px; }
.rf-ibox__foot { margin-top: 16px; }
.rf-rows { border-top: 1px solid var(--line); }
.rf-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rf-row__k { color: var(--accent); font-weight: 600; }
.rf-row__v { color: var(--text); }
.rf-row__en { font-size: 12.5px; color: var(--dim); }
.rf-tag { display: inline-block; padding: 4px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; color: var(--accent); }
.rf-tag--open { border-color: rgba(92,200,140,.5); color: #7FD9A3; }
.rv-contact { display: flex; align-items: center; gap: 18px; }
.rv-contact__ico { font-size: 28px; color: var(--accent); }
.rv-contact__k { font-size: 12.5px; color: var(--mute); letter-spacing: .06em; }
.rv-contact__v { font-size: 16px; font-weight: 600; color: var(--text); }
.rf-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.rf-gallery__item { position: relative; overflow: hidden; border-radius: 6px; }
.rf-gallery__item--wide { grid-column: span 2; }
.rf-gallery__item--tall { grid-row: span 2; }
.rf-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.rf-gallery__item:hover img { transform: scale(1.06); }
.rf-gallery__cap { position: absolute; inset-inline: 0; bottom: 0; padding: 36px 16px 14px; font-size: 13.5px; background: linear-gradient(to top, rgba(var(--bg-rgb),.9), transparent); }
.rf-ctabar, .rf-phead, .rf-topbar { display: none; }
.rf-counters { display: none; }

/* ───────── تقليل الحركة ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rf-anim .rf-rise, .rf-anim .rf-stagger > * { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .hero__sub, .hero__cta, .hero__index { opacity: 1; }
  .marquee__track { animation: none; }
}

.nav__theme-row { display: none; }
.nav__theme-off { display: none; }
:root.t-dark .nav__theme-on { display: none; }
:root.t-dark .nav__theme-off { display: inline; }
/* زر واتساب عائم (مثل موقع ريف فاليو أعمال) — يسار الشاشة في RTL، فوق كل شيء */
.wa-float { position: fixed; left: 22px; bottom: 22px; z-index: 95; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 10px 28px rgba(37,211,102,.45); transition: transform .25s var(--ease), background .25s; animation: waPulse 2.6s infinite; }
.wa-float .rf-ico { font-size: 30px; width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); background: #1FBA5A; }
@keyframes waPulse { 0% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }
@media (max-width: 600px) { .wa-float { width: 52px; height: 52px; left: 16px; bottom: 16px; } .wa-float .rf-ico { font-size: 26px; width: 26px; height: 26px; } .rf-top { bottom: 16px; } }

.div__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.div__links .btn .rf-ico { font-size: 16px; margin-inline-start: 6px; }
.div__mail { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); font-size: 15px; direction: ltr; transition: color .25s; }
.div__mail .rf-ico { color: var(--gold); font-size: 17px; }
.div__mail:hover { color: var(--accent); }
.div__site { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }

/* ───────── الاستجابة ───────── */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .reveal { grid-template-columns: 1fr; }
  .reveal__media { display: none; }
  .reveal__row p { max-height: none; opacity: 1; margin-top: 8px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* قائمة الجوال: لوحة منسدلة تحت شريط القائمة (مثل موقع ريف فاليو أعمال) بألوان صريحة داكنة لا تتأثر بالثيم،
     وخلفها حجاب يغلقها بالنقر. backdrop-filter على .nav يحوّل fixed/absolute إلى نسبي، لذا يُعطَّل أثناء الفتح. */
  .nav.menu-open, .nav.menu-open.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: #1B1430; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav.menu-open .nav__in { --text: #fff; --line-2: rgba(255,255,255,.38); --logo-filter: brightness(0) invert(1); color: #fff; }
  .nav.menu-open::after { content: ''; position: fixed; inset: 0; background: rgba(27,20,48,.55); z-index: 0; }
  .nav__links { position: absolute; top: 100%; inset-inline: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 8px 12px 12px; background: #1B1430; color: #F3EFF9; z-index: 1; border-radius: 0 0 20px 20px; box-shadow: 0 24px 48px rgba(0,0,0,.35); max-height: calc(100dvh - 64px); overflow-y: auto; }
  .nav__links.open { display: flex; animation: menuIn .28s var(--ease) both; }
  .nav__links li { list-style: none; }
  .nav__links a { display: block; font-size: 17px; font-weight: 600; color: #F3EFF9; padding: 13px 16px; border-radius: 12px; background: transparent; text-align: start; }
  .nav__links a:hover { color: #E6D08A; background: rgba(255,255,255,.06); }
  .nav__links a[aria-current="page"] { color: #E6D08A; background: rgba(230,208,138,.08); }
  .nav__theme-row { display: block; margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.12); }
  .nav__theme { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; color: #F3EFF9; font-size: 15.5px; font-weight: 500; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
  .nav__theme .rf-ico { font-size: 18px; color: #E6D08A; }
  .nav__theme .i-sun { display: none; }
  :root.t-dark .nav__theme .i-sun { display: block; }
  :root.t-dark .nav__theme .i-moon { display: none; }
  .nav__cta, .nav__in > .theme-btn { display: none; }
  .nav__logo, .burger { position: relative; z-index: 2; }
  .burger { display: grid; place-items: center; }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .hero__body { grid-template-columns: 1fr; }
  .hero__index { min-width: 0; }
  .hero__scroll, .hero__top { display: none; }
  .shead { grid-template-columns: 1fr; gap: 12px; }
  .scrolly { grid-template-columns: 1fr; }
  .scrolly__media { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .scrolly__item { min-height: 0; opacity: 1 !important; }
  .scrolly__item:not(.on) { opacity: 1; }
  .spot__in { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr 1fr; gap: 20px; }
  .path::before { display: none; }
  .quote { grid-template-columns: 1fr; }
  .rf-grid--2, .rf-grid--3 { grid-template-columns: 1fr; }
  .rf-grid--4 { grid-template-columns: 1fr 1fr; }
  .rf-split { grid-template-columns: 1fr; }
  .rf-split--flip .rf-split__img { order: 0; }
  .rf-gallery { grid-template-columns: 2fr 1fr; grid-auto-rows: 160px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .tile--2 { grid-column: span 1; }
  .tile--tall { grid-row: span 1; }
  .path { grid-template-columns: 1fr; }
  .stat { flex-basis: 100%; border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .rf-grid--4 { grid-template-columns: 1fr; }
  .rf-row { grid-template-columns: 1fr; gap: 4px; }
  .rf-gallery { grid-template-columns: 1fr 1fr; }
  .rf-gallery__item--wide { grid-column: span 2; }
  .rf-gallery__item--tall { grid-row: span 1; }
}

/* ───────── الجوال: الهيرو في شاشة واحدة ───────── */
@media (max-width: 600px) {
  :root { --nav-h: 72px; }
  .hero__index { display: none; }
  .hero .hero__body { padding-top: clamp(96px, 14vh, 140px); padding-bottom: 88px; }
  .hero__title { max-width: none; }
  .hero__sub { margin-top: 18px; }
  .hero__cta { margin-top: 24px; }
  .hero__cta .btn { padding: 13px 22px; font-size: 14.5px; }
  .phead { padding-top: calc(var(--nav-h) + 72px); }
  .foot__grid { grid-template-columns: 1fr; gap: 28px; }
  .nav__in { height: 64px; gap: 10px; }
  .nav.scrolled .nav__in { height: 58px; }
  .nav__logo { margin-inline-end: auto; display: flex; align-items: center; }
  .nav__logo img, .nav.scrolled .nav__logo img { height: 22px; }
  .theme-btn, .burger { width: 40px; height: 40px; font-size: 16px; }
}

/* ───────── أقسام اختيارية (تُفعَّل من اللوحة) ───────── */
.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.testi__card { margin: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.testi__card blockquote { margin: 0; font-size: 16.5px; line-height: 1.85; color: var(--text); }
.testi__card blockquote::before { content: '“'; display: block; font-size: 48px; line-height: .5; color: var(--gold); font-family: Georgia, serif; margin-bottom: 10px; }
.testi__card figcaption { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.testi__card figcaption b { display: block; font-size: 15px; }
.testi__card figcaption span { font-size: 13px; color: var(--mute); }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logos__item { display: grid; place-items: center; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-height: 96px; }
.logos__item img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .7; transition: all .3s var(--ease); }
.logos__item:hover img { filter: none; opacity: 1; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.faq details[open] { border-color: var(--accent); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.faq details[open] summary::after { content: '−'; }
.faq__a { padding: 0 20px 18px; color: var(--mute); font-size: 15px; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.team__card { text-align: center; }
.team__img { aspect-ratio: 1; border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.team__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.team__card:hover .team__img img { transform: scale(1.05); }
.team__card b { display: block; font-size: 16px; }
.team__card span { font-size: 13.5px; color: var(--mute); }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news__card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: all .3s var(--ease); }
.news__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news__img { aspect-ratio: 16 / 10; overflow: hidden; }
.news__img img { width: 100%; height: 100%; object-fit: cover; }
.news__card time { display: block; padding: 16px 20px 0; font-size: 12.5px; color: var(--accent); letter-spacing: .06em; }
.news__card h3 { padding: 6px 20px 0; font-size: 17px; }
.news__card p { padding: 6px 20px 20px; font-size: 14px; color: var(--mute); }
.video, .map { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); box-shadow: var(--shadow); }
.map { aspect-ratio: 21 / 9; }
.video iframe, .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 1020px) { .testi, .news { grid-template-columns: 1fr; } .logos { grid-template-columns: repeat(3, 1fr); } .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(2, 1fr); } .map { aspect-ratio: 4 / 3; } }

/* ───────── الصفحات المخصصة (من اللوحة) ───────── */
.prose { max-width: 820px; font-size: clamp(16px, 1.45vw, 18px); line-height: 1.9; color: var(--text); }
.prose p + p, .prose ul, .prose ol { margin-top: 16px; }
.prose h3 { font-size: 22px; margin-top: 32px; margin-bottom: 8px; }
.prose ul, .prose ol { padding-inline-start: 24px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose b, .prose strong { color: var(--text); font-weight: 600; }
.prose .gold { font-weight: 600; border-bottom: 2px solid var(--gold-2); padding-bottom: 1px; }
.prose blockquote { margin: 24px 0; padding-inline-start: 20px; border-inline-start: 3px solid var(--gold); color: var(--mute); }
.pimg { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.pimg img { width: 100%; display: block; max-height: 640px; object-fit: cover; }
.pimg figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--mute); background: var(--surface); border-top: 1px solid var(--line); }
.cols3 h3 { font-size: 19px; margin-bottom: 10px; }
.cols3 p { color: var(--mute); font-size: 15.5px; line-height: 1.8; }

/* ══════════════════════════════════════════════════════════════
   ريف فاليو أعمال — طبقة المكوّنات الخاصة بموقع خدمات الأعمال
   (فوق قاعدة الخيار B: القائمة، الترويسات، الفوتر، النماذج، الأسئلة…)
   الطابع: مكتب استشارات مؤسسي — نظام، ثقة، وضوح المسار، تحويل للاستشارة.
   ══════════════════════════════════════════════════════════════ */
:root { --cream: #F8F5EF; --green: #1F7A4D; }
.nav__logo { display: inline-flex; align-items: center; gap: 12px; }
.nav__brandtag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--on-accent); background: var(--accent); }
:root:not(.t-dark) .nav:not(.scrolled) .nav__brandtag, .nav.menu-open .nav__brandtag { background: #E6D08A; color: #1B1430; }

/* ───────── الهيرو: نص + بطاقة استشارة ───────── */
.hero-rvb { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding-top: var(--nav-h); overflow: hidden; isolation: isolate;
  --bg: #1B1430; --bg-rgb: 27, 20, 48; --surface: rgba(255,255,255,.06); --line: rgba(255,255,255,.14); --line-2: rgba(255,255,255,.24);
  --text: #F3EFF9; --mute: #C6BFD6; --dim: #8A8299; --accent: #D2B86C; --accent-2: #E6D08A; --accent-soft: rgba(210,184,108,.16); --on-accent: #1B1430;
  --gold: #D9C07A; --gold-2: #EAD596; --logo-filter: brightness(0) invert(1); color: var(--text); }
.hero-rvb__bg { position: absolute; inset: 0; z-index: -2; }
.hero-rvb__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-rvb__bg::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(100deg, rgba(27,20,48,.96) 0%, rgba(27,20,48,.86) 45%, rgba(84,0,168,.55) 100%); }
.hero-rvb__in { display: grid; grid-template-columns: 1.25fr minmax(0, 400px); gap: clamp(32px, 4vw, 64px); align-items: center; padding-block: clamp(36px, 6vh, 72px); justify-content: space-between; }
.hero-rvb__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; }
.hero-rvb__kicker::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.hero-rvb h1 { margin-top: 14px; font-size: clamp(30px, 3.7vw, 52px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.hero-rvb h1 .gold { color: var(--gold); }
.hero-rvb__sub { margin-top: 16px; font-size: clamp(15px, 1.25vw, 17px); color: var(--mute); max-width: 54ch; line-height: 1.75; }
.hero-rvb__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-height: 880px) { .hero-rvb .badges { display: none; } }   /* شاشات قصيرة: الشارات تُدفع الهيرو خارج الشاشة */
.badges span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mute); }
.badges .rf-ico { color: var(--gold); font-size: 16px; }
/* بطاقة الاستشارة */
.hcard { background: #fff; color: #221C33; border-radius: 14px; padding: clamp(18px, 1.8vw, 24px); box-shadow: 0 24px 60px rgba(0,0,0,.3);
  --text: #221C33; --mute: #5F5870; --dim: #9891A6; --surface: #fff; --line: #ECE8F2; --line-2: #D8D1E5; --accent: #5400A8; --accent-2: #43008A; --accent-soft: rgba(84,0,168,.1); --on-accent: #fff; --gold: #9C8440; --gold-2: #B89A4E; }
.hcard__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.hcard__head h2 { font-size: 17px; }
.hcard__head small { font-size: 11.5px; color: var(--green); background: rgba(31,122,77,.1); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.hcard .lf { gap: 9px; }
.hcard .lf input, .hcard .lf select { padding: 10px 13px; font-size: 14px; }
.hcard .btn { width: 100%; justify-content: center; padding: 11px 18px; font-size: 14.5px; }
.hcard__note { font-size: 12px; color: var(--mute); text-align: center; margin-top: 4px; }
.hcard__alt { display: flex; justify-content: center; gap: 16px; margin-top: 10px; font-size: 13px; }
.hcard__alt a { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
:root.t-dark .hcard { background: #251B44; color: #F3EFF9; --text: #F3EFF9; --mute: #B3AAC6; --surface: rgba(255,255,255,.05); --line: rgba(255,255,255,.12); --line-2: rgba(255,255,255,.2); --accent: #D2B86C; --accent-2: #E6D08A; --on-accent: #1B1430; --gold: #D9C07A; }

/* ───────── شريط الأرقام ───────── */
.numbers { background: var(--surface); border-block: 1px solid var(--line); }
.numbers__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.number { padding: 28px var(--pad); border-inline-end: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.number:last-child { border-inline-end: 0; }
.number b { font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1; color: var(--accent); display: flex; align-items: baseline; gap: 2px; }
.number b .sign { font-size: .55em; color: var(--gold); }
.number span { font-size: 13.5px; color: var(--mute); line-height: 1.5; }

/* ───────── شريط المنصات الرسمية ───────── */
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 28px; }
.platforms small { width: 100%; font-size: 12.5px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.platforms span { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--text); background: var(--surface); }

/* ───────── البرامج الثلاثة ───────── */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.program { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; }
.program:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(64,24,120,.12); }
.program__img { aspect-ratio: 16 / 9; overflow: hidden; }
.program__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.program:hover .program__img img { transform: scale(1.05); }
.program__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.program__n { position: absolute; top: 16px; inset-inline-start: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(27,20,48,.7); color: #E6D08A; font-size: 12px; letter-spacing: .14em; backdrop-filter: blur(6px); }
.program h3 { font-size: 21px; }
.program__tag { font-size: 13.5px; color: var(--gold); margin-top: 4px; }
.program p { margin-top: 12px; font-size: 14.5px; color: var(--mute); }
.program ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.program li { position: relative; padding-inline-start: 22px; font-size: 14px; }
.program li::before { content: ''; position: absolute; inset-inline-start: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); }
.program .arrow-link { margin-top: auto; padding-top: 20px; }

/* ───────── دليل المسار التفاعلي ───────── */
.finder { display: grid; grid-template-columns: 360px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.finder__opts { display: grid; gap: 10px; }
.finder__opt { display: flex; align-items: center; gap: 14px; text-align: start; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font: inherit; color: var(--text); cursor: pointer; transition: all .3s var(--ease); }
.finder__opt .rf-ico { font-size: 22px; color: var(--accent); flex: 0 0 auto; }
.finder__opt b { display: block; font-size: 15.5px; }
.finder__opt small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.finder__opt:hover { border-color: var(--accent); }
.finder__opt[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.finder__panel { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.finder__panel.on { display: block; animation: menuIn .35s var(--ease) both; }
.finder__panel h3 { font-size: 22px; }
.finder__panel > p { margin-top: 10px; color: var(--mute); font-size: 15px; }
.finder__steps { counter-reset: fs; list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.finder__steps li { counter-increment: fs; display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; }
.finder__steps li::before { content: counter(fs, decimal-leading-zero); flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; }
.finder__reco { margin-top: 22px; padding: 16px 18px; border: 1px dashed var(--gold); border-radius: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.finder__reco b { color: var(--gold); font-size: 13px; letter-spacing: .08em; display: block; }
.finder__reco span { font-size: 16px; font-weight: 600; }

/* ───────── الجدول الزمني (45 يوماً) ───────── */
.tl { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin-top: 40px; }
.tl::before { content: ''; position: absolute; top: 14px; inset-inline: 0; height: 2px; background: linear-gradient(to left, var(--accent), var(--gold)); }
.tl__s { position: relative; padding: 44px 20px 0 0; }
.tl__s::before { content: ''; position: absolute; top: 6px; inset-inline-start: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.tl__s:last-child::before { background: var(--gold); border-color: var(--gold); }
.tl__s i { font-style: normal; font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.tl__s h3 { font-size: 17px; margin-top: 8px; }
.tl__s p { font-size: 14px; color: var(--mute); margin-top: 6px; }

/* ───────── الباقات ───────── */
.pkg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pkg-tab { padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: all .3s var(--ease); }
.pkg-tab:hover { border-color: var(--accent); color: var(--accent); }
.pkg-tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pkg-panel { display: none; }
.pkg-panel.on { display: block; animation: menuIn .35s var(--ease) both; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; padding: 28px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .35s; }
.pkg:hover { transform: translateY(-4px); border-color: var(--accent-soft); }
.pkg--featured { border-color: var(--gold); box-shadow: 0 24px 48px rgba(156,132,64,.14); }
.pkg__flag { position: absolute; top: -12px; inset-inline-start: 22px; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: #1B1430; font-size: 12px; font-weight: 700; }
.pkg__ico { font-size: 26px; line-height: 1; }
.pkg h3 { font-size: 19px; margin-top: 12px; }
.pkg__tag { font-size: 13.5px; color: var(--gold); margin-top: 4px; }
.pkg__desc { font-size: 14px; color: var(--mute); margin-top: 10px; }
.pkg__offer { margin-top: 10px; font-size: 13px; color: var(--green); }
.pkg__price { margin-top: 12px; font-size: 22px; font-weight: 700; color: var(--accent); }
.pkg__price s { font-size: 14px; color: var(--dim); margin-inline-start: 8px; }
.pkg__price small { font-size: 12.5px; color: var(--mute); font-weight: 400; margin-inline-start: 6px; }
.pkg ul { list-style: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.pkg li { position: relative; padding-inline-start: 22px; font-size: 14px; }
.pkg li::before { content: '\2713'; position: absolute; inset-inline-start: 0; top: 0; color: var(--accent); font-weight: 700; }
.pkg .btn { margin-top: 22px; justify-content: center; }
.pkg .btn { margin-top: auto; padding-top: 13px; }
.pkg__cta { margin-top: 22px; }

/* ───────── جدول المقارنة ───────── */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.compare th { background: var(--bg-2); font-weight: 700; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.compare td .ok { color: var(--green); font-weight: 700; }
.compare td .no { color: var(--dim); }
.compare tr:last-child td { border-bottom: 0; }
.compare th.hot { color: var(--accent); }

/* ───────── لماذا نحن ───────── */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.why__item { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: all .35s var(--ease); }
.why__item:hover { border-color: var(--accent-soft); transform: translateY(-4px); box-shadow: var(--shadow); }
.why__item i { font-style: normal; font-size: 12px; letter-spacing: .16em; color: var(--gold); }
.why__item .rf-ico { display: block; font-size: 28px; color: var(--accent); margin: 14px 0 12px; }
.why__item h3 { font-size: 17.5px; }
.why__item p { font-size: 14px; color: var(--mute); margin-top: 8px; }

/* ───────── الجمهور ───────── */
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.aud__item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.aud__item .rf-ico { font-size: 24px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.aud__item b { display: block; font-size: 15.5px; }
.aud__item span { display: block; font-size: 13.5px; color: var(--mute); margin-top: 4px; }

/* ───────── الدليل المجاني (كتاب) ───────── */
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.book { position: relative; width: min(320px, 80%); aspect-ratio: 3 / 4; margin-inline: auto; border-radius: 6px 14px 14px 6px; background: linear-gradient(160deg, #3D1A74 0%, #5400A8 55%, #2A1A4E 100%); color: #fff; padding: 34px 28px; box-shadow: 24px 24px 60px rgba(27,20,48,.35), inset 6px 0 0 rgba(255,255,255,.08); display: flex; flex-direction: column; }
.book::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, rgba(255,255,255,.14), transparent 40%); pointer-events: none; }
.book small { font-size: 12px; letter-spacing: .16em; color: #E6D08A; }
.book b { display: block; font-size: 26px; line-height: 1.3; margin-top: 14px; }
.book span { display: block; font-size: 13.5px; color: rgba(255,255,255,.8); margin-top: 10px; }
.book__foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 12px; color: #E6D08A; }
.guide ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.guide li { position: relative; padding-inline-start: 26px; font-size: 15px; }
.guide li::before { content: '\2713'; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 700; }
.guide__stats { display: flex; gap: 24px; margin-top: 22px; }
.guide__stats div b { display: block; font-size: 24px; color: var(--accent); line-height: 1; }
.guide__stats div span { font-size: 12.5px; color: var(--mute); }

/* ───────── صفحة الخدمات: برنامج تفصيلي ───────── */
.prog { padding-block: clamp(56px, 7vw, 96px); }
.prog__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(28px, 4vw, 48px); }
.prog__head img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.prog__n { font-size: 12.5px; letter-spacing: .18em; color: var(--gold); }
.prog__head h2 { font-size: clamp(26px, 3vw, 38px); margin-top: 10px; }
.prog__tag { font-size: 16px; color: var(--accent); margin-top: 8px; }
.prog__head p.lede { margin-top: 14px; }

/* ───────── الحجز ───────── */
.bk { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.bk__list { list-style: none; display: grid; gap: 14px; margin-top: 22px; }
.bk__list li { display: flex; gap: 14px; }
.bk__list .rf-ico { color: var(--gold); font-size: 22px; flex: 0 0 auto; margin-top: 2px; }
.bk__list b { display: block; font-size: 15.5px; }
.bk__list span { font-size: 13.5px; color: var(--mute); }
.bk__times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.bk__times div { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13.5px; }
.bk__times b { display: block; font-size: 14px; }

/* ───────── برنامج الشركاء ───────── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); position: relative; }
.tier i { font-style: normal; font-size: 12px; letter-spacing: .16em; color: var(--gold); }
.tier h3 { font-size: 18px; margin-top: 10px; }
.tier p { font-size: 14px; color: var(--mute); margin-top: 8px; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s4; }
.steps4 > div { counter-increment: s4; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.steps4 > div::before { content: counter(s4, decimal-leading-zero); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; }
.steps4 h3 { font-size: 16.5px; margin-top: 14px; }
.steps4 p { font-size: 14px; color: var(--mute); margin-top: 6px; }

/* ───────── الموارد والمدوّنة ───────── */
.res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.res__card { display: block; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: all .35s var(--ease); position: relative; }
.res__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.res__card .rf-ico { font-size: 28px; color: var(--accent); }
.res__card h3 { font-size: 17.5px; margin-top: 14px; }
.res__card p { font-size: 14px; color: var(--mute); margin-top: 8px; }
.res__card .arrow-link { margin-top: 14px; display: inline-flex; }
.res__flag { position: absolute; top: 16px; inset-inline-end: 16px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.post { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.post__meta { position: sticky; top: calc(var(--nav-h) + 24px); padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 14px; }
.post__meta dt { color: var(--dim); font-size: 12px; letter-spacing: .1em; margin-top: 12px; }
.post__meta dd { margin-top: 4px; }
.post__meta dt:first-child { margin-top: 0; }
.toc { list-style: none; margin-top: 8px; display: grid; gap: 6px; }
.toc a { color: var(--text); font-size: 13.5px; }
.toc a:hover { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14.5px; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: start; }
.prose th { background: var(--bg-2); }
.callout { margin-top: 20px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--gold); background: rgba(156,132,64,.06); font-size: 15px; }
.callout b { color: var(--gold); }
.legal h2 { font-size: 20px; margin-top: 36px; }
.legal ol, .legal ul { padding-inline-start: 22px; margin-top: 10px; }
.legal li + li { margin-top: 6px; }

/* ───────── الاستجابة للمكوّنات الجديدة ───────── */
@media (max-width: 1100px) {
  .hero-rvb__in { grid-template-columns: 1fr; }
  .hcard { max-width: 560px; }
  .programs, .why, .aud, .tiers, .res { grid-template-columns: repeat(2, 1fr); }
  .numbers__in { grid-template-columns: repeat(2, 1fr); }
  .number:nth-child(2) { border-inline-end: 0; }
  .number { border-bottom: 1px solid var(--line); }
  .steps4 { grid-template-columns: repeat(2, 1fr); }
  .finder { grid-template-columns: 1fr; }
  .finder__opts { grid-template-columns: repeat(3, 1fr); }
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .post { grid-template-columns: 1fr; }
  .post__meta { position: static; }
}
@media (max-width: 760px) {
  .hero-rvb { min-height: 0; }
  .hero-rvb__in { padding-block: 40px 48px; gap: 28px; }
  .programs, .why, .aud, .tiers, .res, .pkg-grid, .steps4, .finder__opts, .guide, .prog__head, .bk, .tl { grid-template-columns: 1fr; }
  .numbers__in { grid-template-columns: 1fr 1fr; }
  .tl::before { inset-inline-start: 8px; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(to bottom, var(--accent), var(--gold)); }
  .tl__s { padding: 0 0 28px 0; padding-inline-start: 36px; }
  .tl__s::before { top: 0; }
  .book { width: min(260px, 90%); }
  .bk__times { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .numbers__in { grid-template-columns: 1fr; } .number { border-inline-end: 0; } }

/* قسم داكن عام (للمستثمرين/الوعد) — نفس رموز الترويسات الداكنة */
.sec--dark { background: #1B1430; --bg: #1B1430; --bg-rgb: 27, 20, 48; --bg-2: #231A40; --surface: rgba(255,255,255,.05); --line: rgba(255,255,255,.12); --line-2: rgba(255,255,255,.22); --text: #F3EFF9; --mute: #C6BFD6; --dim: #8A8299; --accent: #D2B86C; --accent-2: #E6D08A; --accent-soft: rgba(210,184,108,.16); --on-accent: #1B1430; --gold: #D9C07A; --gold-2: #EAD596; --stroke: rgba(255,255,255,.14); --shadow: none; color: var(--text); position: relative; overflow: hidden; }
.sec--dark .sec__bg { position: absolute; inset: 0; z-index: 0; opacity: .18; }
.sec--dark .sec__bg img { width: 100%; height: 100%; object-fit: cover; }
.sec--dark .wrap { position: relative; z-index: 1; }
.sec--dark .btn--gold { background: var(--gold); color: #1B1430; border-color: var(--gold); }
.checks { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.checks li { position: relative; padding-inline-start: 28px; font-size: 15.5px; }
.checks li::before { content: '\2713'; position: absolute; inset-inline-start: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--accent-soft); color: var(--gold); font-weight: 700; }
.badges i { font-style: normal; }

/* ───────── سلايد شو الهيرو: مسح قطري + كلمات متدرّجة + مصغّرات بتقدّم ─────────
   مختلف عمداً عن سلايدر الموقع الأم (تلاشٍ + أسطر): هنا الصورة تدخل بمسح clip-path مائل
   مع تقريب بطيء، والنص ينكشف كلمةً كلمة، وشريط مصغّرات يظهر التالي مع مؤشر تقدّم زمني. */
.hero-rvb__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 0; }
.hero-rvb__bg img.on { opacity: 1; }
.hero-rvb__bg img.in { opacity: 1; z-index: 1; animation: hwipe 1.3s var(--ease) both, hzoom 9.5s linear both; }
@keyframes hwipe { from { clip-path: polygon(0 0, 12% 0, -12% 100%, 0 100%); } to { clip-path: polygon(0 0, 124% 0, 100% 100%, 0 100%); } }
@keyframes hzoom { from { transform: scale(1.07); } to { transform: scale(1); } }

.hslides { display: grid; }
.hslide { grid-area: 1 / 1; visibility: hidden; pointer-events: none; }
.hslide.on { visibility: visible; pointer-events: auto; }
/* الكلمات: rvb-ui.js يلفّ كل كلمة في العنوان بـ <span class="w"><i>…</i></span> */
.hslide h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hslide h1 .w > i { display: inline-block; font-style: normal; transform: translateY(112%); }
.hslide.on h1 .w > i { transform: none; transition: transform .75s var(--ease); transition-delay: var(--d, 0s); }
.hslide .hero-rvb__kicker, .hslide .hero-rvb__sub, .hslide .hero-rvb__cta { opacity: 0; transform: translateY(14px); }
.hslide.on .hero-rvb__kicker { opacity: 1; transform: none; transition: all .6s var(--ease) .05s; }
.hslide.on .hero-rvb__sub { opacity: 1; transform: none; transition: all .7s var(--ease) .55s; }
.hslide.on .hero-rvb__cta { opacity: 1; transform: none; transition: all .7s var(--ease) .7s; }

/* المصغّرات */
.hthumbs { display: flex; gap: 10px; margin-top: 26px; }
.hthumb { display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; max-width: 220px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.05); color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: border-color .3s, background .3s; }
.hthumb img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; opacity: .85; }
.hthumb > span { min-width: 0; flex: 1; }
.hthumb .num { display: block; font-size: 10.5px; letter-spacing: .14em; color: var(--dim); }
.hthumb b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mute); margin-top: 2px; }
.hthumb__bar { display: block; height: 2px; margin-top: 7px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; position: relative; }
.hthumb__bar::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%; }
.hthumb:hover { border-color: var(--line-2); background: rgba(255,255,255,.09); }
.hthumb.on { border-color: var(--gold); background: rgba(210,184,108,.1); }
.hthumb.on b { color: var(--text); }
.hthumb.on .num { color: var(--gold); }
.hthumb.on .hthumb__bar::after { animation: hbar var(--hsec, 8s) linear forwards; }
[data-hero].paused .hthumb.on .hthumb__bar::after { animation-play-state: paused; }
@keyframes hbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 1100px) { .hthumbs { max-width: 560px; } }
@media (max-width: 600px) {
  .hthumb { padding: 6px 8px; gap: 8px; }
  .hthumb img { width: 34px; height: 34px; }
  .hthumb .num { display: none; }
  .hthumb b { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rvb__bg img.in { animation: none; }
  .hslide h1 .w > i, .hslide .hero-rvb__kicker, .hslide .hero-rvb__sub, .hslide .hero-rvb__cta { transform: none; opacity: 1; transition: none; }
}

/* ───────── خيارات طبقة اللون لكل شريحة (تُضبط من اللوحة) ─────────
   full: التدرج البنفسجي الكامل (الافتراضي) · light: أخف بوضوح أكبر للصورة ·
   side: تعتيم خلف النص فقط والصورة مكشوفة · dark: تعتيم متعادل بلا بنفسجي · none: بلا طبقة */
.hero-rvb__bg::after { transition: background .9s var(--ease), opacity .9s var(--ease); }
.hero-rvb__bg.ov-light::after { background: linear-gradient(100deg, rgba(27,20,48,.72) 0%, rgba(27,20,48,.45) 45%, rgba(84,0,168,.25) 100%); }
.hero-rvb__bg.ov-side::after { background: linear-gradient(270deg, rgba(27,20,48,.92) 0%, rgba(27,20,48,.72) 38%, rgba(27,20,48,.15) 68%, rgba(27,20,48,0) 100%); }
.hero-rvb__bg.ov-dark::after { background: rgba(12,9,22,.6); }
.hero-rvb__bg.ov-none::after { background: none; opacity: 0; }

/* ───────── مبدّل اللغة ───────── */
.lang-sw { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; color: var(--text); transition: all .25s var(--ease); }
.lang-sw:hover { color: var(--gold); border-color: var(--gold); }
[dir="ltr"] .lang-sw { letter-spacing: 0; }
@media (max-width: 600px) { .lang-sw { min-width: 36px; height: 36px; padding: 0 9px; } }

/* nav-nowrap: العناوين الإنجليزية أطول فلا تلتف */
.nav__links a { white-space: nowrap; }
[dir="ltr"] .nav__links { gap: 2px; }
[dir="ltr"] .nav__cta { white-space: nowrap; }

/* ltr-nav-fit: تباعد القائمة الإنجليزية */
[dir="ltr"] .nav__brand { margin-inline-end: 20px; }
[dir="ltr"] .nav__cta { padding: 11px 16px; font-size: 13.5px; }
[dir="ltr"] .nav__links a { padding-inline: 10px; }

/* ltr-hero-scale: هيرو إنجليزي أصغر */
[dir="ltr"] .hero-rvb h1 { font-size: clamp(26px, 3.1vw, 44px); line-height: 1.16; }
[dir="ltr"] .hero-rvb__sub { font-size: clamp(15px, 1.25vw, 17px); }
[dir="ltr"] .phead h1 { font-size: clamp(30px, 4.6vw, 58px); }


/* ══════════════════════════════════════════════════════════════
   قشرة ريف المرافق — «مركز تحكم ذكي على أرضية فاتحة»:
   خلفية فاتحة نظيفة · لوحة تحكم مرافق حيّة في الهيرو (مخطط مبنى بنقاط حالة
   + أوامر عمل + بث من الموقع) · صور مرافق حقيقية ظاهرة في كل قسم ·
   صفوف مرقّمة وخطوط فاصلة بدل البطاقات العائمة.
   ══════════════════════════════════════════════════════════════ */

/* ───────── الهيرو الفاتح ───────── */
.fmhero { position: relative; padding-top: calc(var(--nav-h) + clamp(26px, 4vh, 52px)); padding-bottom: clamp(20px, 3vh, 40px); overflow: hidden; isolation: isolate;
  background: radial-gradient(760px 520px at 84% -12%, rgba(84,0,168,.10), transparent 62%),
              radial-gradient(620px 440px at 6% 30%, rgba(156,132,64,.11), transparent 62%),
              var(--bg); }
.fmhero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(rgba(84,0,168,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(84,0,168,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(78% 78% at 50% 34%, #000 26%, transparent 100%);
  mask-image: radial-gradient(78% 78% at 50% 34%, #000 26%, transparent 100%); }
:root.t-dark .fmhero { background: radial-gradient(760px 520px at 84% -12%, rgba(210,184,108,.10), transparent 62%),
              radial-gradient(620px 440px at 6% 30%, rgba(122,60,220,.16), transparent 62%), var(--bg); }
.fmhero__in { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(30px, 4vw, 64px); align-items: center; }
.fmtag { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(84,0,168,.16); }
.fmtag i { width: 7px; height: 7px; border-radius: 50%; background: #2E9E5B; box-shadow: 0 0 0 3px rgba(46,158,91,.2); animation: fmpulse 2.4s ease-in-out infinite; }
@keyframes fmpulse { 50% { box-shadow: 0 0 0 8px rgba(46,158,91,0); } }
:root.t-dark .fmtag { color: var(--gold-2); background: rgba(210,184,108,.1); border-color: rgba(210,184,108,.25); }
.fmhero h1 { margin-top: 22px; font-size: clamp(32px, 3.9vw, 55px); line-height: 1.18; font-weight: 800; letter-spacing: -.015em; }
.fmhero h1 .u { color: var(--accent); position: relative; white-space: nowrap; }
:root.t-dark .fmhero h1 .u { color: var(--gold-2); }
.fmhero h1 .u::after { content: ''; position: absolute; inset-inline: 0; bottom: .06em; height: 4px; border-radius: 2px; background: var(--gold); opacity: .45; }
.fmhero__sub { margin-top: 20px; font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.9; color: var(--mute); max-width: 52ch; }
.fmhero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fmhero__pts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.fmhero__pts span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mute); }
.fmhero__pts .rf-ico { color: var(--accent); font-size: 16px; }
:root.t-dark .fmhero__pts .rf-ico { color: var(--gold-2); }

/* ───────── مركز التحكم الذكي (لوحة حيّة) ───────── */
.fmcc { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 34px 80px rgba(64,24,120,.18); }
:root.t-dark .fmcc { box-shadow: 0 34px 80px rgba(0,0,0,.5); }
.fmcc__bar { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.fmcc__bar b { font-size: 13px; font-weight: 700; }
.fmcc__live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #2E7D32; background: rgba(46,125,50,.12); padding: 3px 9px; border-radius: 999px; }
.fmcc__live i { width: 6px; height: 6px; border-radius: 50%; background: #2E9E5B; animation: fmpulse 2.4s ease-in-out infinite; }
.fmcc__time { margin-inline-start: auto; font-size: 11.5px; color: var(--dim); letter-spacing: .05em; }
.fmcc__kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.fmcc__kpi { padding: 14px 16px; border-inline-start: 1px solid var(--line); }
.fmcc__kpi:first-child { border-inline-start: 0; }
.fmcc__kpi small { display: block; font-size: 10.5px; color: var(--dim); }
.fmcc__kpi b { display: block; margin-top: 5px; font-size: 21px; font-weight: 800; line-height: 1; }
.fmcc__kpi b span { font-size: .6em; color: var(--accent); }
:root.t-dark .fmcc__kpi b span { color: var(--gold-2); }
.fmcc__kpi em { font-style: normal; font-size: 10.5px; color: #2E7D32; }
.fmcc__body { display: grid; grid-template-columns: 1.25fr .75fr; }
.fmcc__map { position: relative; padding: 16px; border-inline-end: 1px solid var(--line); background:
  linear-gradient(rgba(84,0,168,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(84,0,168,.05) 1px, transparent 1px);
  background-size: 22px 22px; }
:root.t-dark .fmcc__map { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); }
.fmcc__mapttl { font-size: 10.5px; color: var(--dim); letter-spacing: .06em; margin-bottom: 10px; }
/* مخطط مبنى مبسّط: طوابق ووحدات بحالات */
.fmfloor { display: grid; gap: 6px; }
.fmfloor__row { display: grid; grid-template-columns: 26px repeat(6, 1fr); gap: 5px; align-items: center; }
.fmfloor__row > b { font-size: 9.5px; color: var(--dim); font-weight: 600; }
.fmunit { height: 22px; border-radius: 3px; background: rgba(84,0,168,.09); border: 1px solid rgba(84,0,168,.14); position: relative; }
:root.t-dark .fmunit { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.fmunit--ok { background: rgba(46,158,91,.16); border-color: rgba(46,158,91,.34); }
.fmunit--warn { background: rgba(214,158,46,.2); border-color: rgba(214,158,46,.45); }
.fmunit--alert { background: rgba(198,64,60,.18); border-color: rgba(198,64,60,.42); }
.fmunit--alert::after { content: ''; position: absolute; inset: -3px; border-radius: 5px; border: 1px solid rgba(198,64,60,.5); animation: fmring 2s ease-out infinite; }
@keyframes fmring { 70%, 100% { opacity: 0; transform: scale(1.18); } }
.fmlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.fmlegend span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--mute); }
.fmlegend i { width: 8px; height: 8px; border-radius: 2px; }
.fmlegend .ok { background: rgba(46,158,91,.6); } .fmlegend .warn { background: rgba(214,158,46,.7); } .fmlegend .alert { background: rgba(198,64,60,.6); }
/* بثّ من الموقع (صورة مرفق حقيقية داخل اللوحة) */
.fmcc__side { display: grid; grid-template-rows: auto 1fr; }
.fmcam { position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-bottom: 1px solid var(--line); }
.fmcam img { width: 100%; height: 100%; object-fit: cover; }
.fmcam__tag { position: absolute; top: 8px; inset-inline-start: 8px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; font-weight: 700; color: #fff; background: rgba(13,8,24,.72); padding: 3px 8px; border-radius: 4px; backdrop-filter: blur(4px); }
.fmcam__tag i { width: 5px; height: 5px; border-radius: 50%; background: #FF5A5A; animation: fmpulse 2s ease-in-out infinite; }
.fmcc__wo { padding: 12px 14px; display: grid; gap: 8px; align-content: start; }
.fmcc__wo > small { font-size: 10.5px; color: var(--dim); letter-spacing: .06em; }
.fmwo { display: flex; align-items: center; gap: 8px; font-size: 11px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; }
.fmwo b { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmwo span { margin-inline-start: auto; font-size: 9.5px; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.fmwo .st-ok { background: rgba(46,125,50,.12); color: #2E7D32; }
.fmwo .st-run { background: var(--accent-soft); color: var(--accent); }
:root.t-dark .fmwo .st-run { background: rgba(210,184,108,.14); color: var(--gold-2); }
/* شرائح طافية حول اللوحة */
.fmchip { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 700; z-index: 3; }
.fmchip .rf-ico { color: var(--accent); font-size: 15px; }
:root.t-dark .fmchip .rf-ico { color: var(--gold-2); }
.fmccw { position: relative; }
.fmchip--a { top: -19px; inset-inline-end: 30px; animation: fmfloat 5.4s ease-in-out infinite; }
.fmchip--b { bottom: -19px; inset-inline-start: 30px; animation: fmfloat 6.2s ease-in-out 1s infinite; }
@keyframes fmfloat { 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .fmchip, .fmcc__live i, .fmtag i, .fmunit--alert::after, .fmcam__tag i { animation: none; } }

/* ───────── شريط الحالة المتحرك ───────── */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ticker__in { display: flex; width: max-content; animation: tick 44s linear infinite; }
.ticker:hover .ticker__in { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 10px; padding: 13px clamp(20px, 3vw, 44px); font-size: 13.5px; color: var(--mute); white-space: nowrap; border-inline-end: 1px solid var(--line); }
.ticker span .rf-ico { font-size: 15px; color: var(--accent); }
:root.t-dark .ticker span .rf-ico { color: var(--gold-2); }
@keyframes tick { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__in { animation: none; } }

/* ───────── صفوف الخدمات المرقّمة ───────── */
.oplist { border-top: 1px solid var(--line); counter-reset: op; }
.oprow { display: grid; grid-template-columns: 74px 1.05fr 1.35fr auto; gap: clamp(16px, 2.4vw, 40px); align-items: start;
  padding: clamp(22px, 2.8vw, 34px) 0; border-bottom: 1px solid var(--line); counter-increment: op; position: relative; }
.oprow::before { content: ''; position: absolute; inset-inline: calc(var(--pad) * -1); inset-block: 0; background: var(--bg-2); opacity: 0; transition: opacity .3s var(--ease); z-index: -1; }
.oprow:hover::before { opacity: .7; }
.oprow__n { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--accent); padding-top: 8px; }
.oprow__n::before { content: '0' counter(op); }
:root.t-dark .oprow__n { color: var(--gold-2); }
.oprow__ttl { display: flex; align-items: center; gap: 14px; }
.oprow__ttl h3 { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; }
.oprow__ico { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; font-size: 21px; color: var(--accent); }
:root.t-dark .oprow__ico { color: var(--gold-2); }
.oprow__body p { font-size: 15px; line-height: 1.85; color: var(--mute); }
.oprow__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.oprow__tags i { font-style: normal; font-size: 11.5px; padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--mute); }
.oprow__go { display: flex; align-items: center; gap: 10px; padding-top: 10px; }
.oprow__badge { font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 3px; white-space: nowrap; }
.badge--ops { background: rgba(46,125,50,.12); color: #2E7D32; }
.badge--gov { background: var(--accent-soft); color: var(--accent); }
.badge--adv { background: rgba(156,132,64,.16); color: #7E6A31; }
:root.t-dark .badge--gov { background: rgba(122,60,220,.2); color: #C9A2FF; }
:root.t-dark .badge--adv { background: rgba(230,208,138,.14); color: var(--gold-2); }
.oprow__link { font-size: 13.5px; color: var(--accent); white-space: nowrap; }
:root.t-dark .oprow__link { color: var(--gold-2); }
.oprow__link:hover { text-decoration: underline; }

/* ───────── بلاطات القطاعات بالصور (فاتحة: الصورة ظاهرة والنص تحتها) ───────── */
.optiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.optile { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: all .35s var(--ease); }
.optile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(84,0,168,.24); }
.optile__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.optile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.optile:hover .optile__img img { transform: scale(1.06); }
.optile__img i { position: absolute; top: 10px; inset-inline-start: 10px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  color: #fff; background: rgba(13,8,24,.6); padding: 4px 9px; border-radius: 4px; backdrop-filter: blur(4px); }
.optile__txt { padding: 18px 18px 20px; }
.optile h3 { font-size: 17px; }
.optile p { margin-top: 8px; font-size: 13.5px; line-height: 1.75; color: var(--mute); }

/* ───────── شبكة بحدود ───────── */
.opgrid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.opgrid > div { padding: clamp(22px, 2.5vw, 32px); border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); transition: background .3s var(--ease); }
.opgrid > div:hover { background: var(--bg-2); }
.opgrid .rf-ico { font-size: 24px; color: var(--accent); }
:root.t-dark .opgrid .rf-ico { color: var(--gold-2); }
.opgrid h3 { margin-top: 14px; font-size: 17px; line-height: 1.5; }
.opgrid p { margin-top: 8px; font-size: 14.5px; line-height: 1.8; color: var(--mute); }
.opgrid--2 { grid-template-columns: repeat(2, 1fr); }

/* ───────── الخط الزمني ───────── */
.opstep { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: clamp(18px, 2.5vw, 40px); padding: clamp(22px, 2.8vw, 36px) 0; border-bottom: 1px solid var(--line); }
.opstep:first-child { border-top: 1px solid var(--line); }
.opstep__n b { font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; color: var(--line-2); line-height: 1; transition: color .3s var(--ease); }
.opstep:hover .opstep__n b { color: var(--accent); }
:root.t-dark .opstep:hover .opstep__n b { color: var(--gold-2); }
.opstep h3 { font-size: clamp(18px, 1.8vw, 22px); }
.opstep p { margin-top: 10px; font-size: 15px; line-height: 1.85; color: var(--mute); max-width: 68ch; }
.opstep ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.opstep ul li { font-size: 13.5px; color: var(--mute); padding-inline-start: 18px; position: relative; }
.opstep ul li::before { content: ''; position: absolute; inset-inline-start: 0; top: .62em; width: 7px; height: 1px; background: var(--accent); }
:root.t-dark .opstep ul li::before { background: var(--gold-2); }

/* ───────── صورة + نص ───────── */
.opsplit { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.opsplit__img { position: relative; min-height: 320px; overflow: hidden; }
.opsplit__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.opsplit__txt { padding: clamp(24px, 3.2vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.opsplit__txt h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.45; }
.opsplit__txt p { margin-top: 14px; font-size: 15px; line-height: 1.9; color: var(--mute); }
.opsplit__txt ul { margin-top: 18px; display: grid; gap: 10px; }
.opsplit__txt ul li { font-size: 14px; color: var(--mute); padding-inline-start: 22px; position: relative; }
.opsplit__txt ul li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 700; }
:root.t-dark .opsplit__txt ul li::before { color: var(--gold-2); }

/* ───────── شريط الدعوة: فاتح بصورة مرفق ───────── */
.opcta { display: grid; grid-template-columns: 1.15fr .85fr; align-items: stretch; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.opcta__txt { padding: clamp(30px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.opcta h2 { font-size: clamp(23px, 2.6vw, 34px); line-height: 1.35; }
.opcta p { margin-top: 14px; font-size: 15.5px; color: var(--mute); max-width: 60ch; line-height: 1.85; }
.opcta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.opcta__img { position: relative; min-height: 240px; overflow: hidden; }
.opcta__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.opcta__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(84,0,168,.28), rgba(84,0,168,0) 60%); }

/* ───────── ترويسة داخلية فاتحة بصورة مرفق ───────── */
.ophead { position: relative; padding: calc(var(--nav-h) + clamp(40px, 6vh, 72px)) 0 0; overflow: hidden;
  background: radial-gradient(680px 420px at 88% -14%, rgba(84,0,168,.12), transparent 62%),
              radial-gradient(560px 380px at 4% 110%, rgba(156,132,64,.11), transparent 62%), var(--bg); }
.ophead__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 4vw, 56px); align-items: end; }
.ophead .label { color: var(--accent); }
:root.t-dark .ophead .label { color: var(--gold-2); }
.ophead h1 { margin-top: 14px; font-size: clamp(30px, 3.8vw, 50px); line-height: 1.2; font-weight: 800; }
.ophead h1 .u { color: var(--accent); }
:root.t-dark .ophead h1 .u { color: var(--gold-2); }
.ophead p { margin-top: 15px; font-size: clamp(15px, 1.25vw, 17.5px); color: var(--mute); max-width: 60ch; line-height: 1.9; padding-bottom: clamp(26px, 4vh, 48px); }
.ophead__img { position: relative; align-self: stretch; min-height: 230px; border-radius: 14px 14px 0 0; overflow: hidden; box-shadow: 0 -18px 50px rgba(64,24,120,.14); }
.ophead__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* عنوان قسم */
.opshead { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 56px); align-items: end; padding-bottom: 24px; margin-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.opshead .label { color: var(--accent); }
:root.t-dark .opshead .label { color: var(--gold-2); }
.opshead h2 { font-size: clamp(24px, 2.9vw, 40px); line-height: 1.28; font-weight: 800; }
.opshead p { margin-top: 12px; font-size: 15.5px; color: var(--mute); line-height: 1.85; max-width: 70ch; }

/* ───────── استجابة ───────── */
@media (max-width: 1100px) {
  .fmhero__in { grid-template-columns: 1fr; gap: 40px; }
  .fmcc { max-width: 620px; margin-inline: auto; }
  .optiles { grid-template-columns: repeat(2, 1fr); }
  .opgrid { grid-template-columns: repeat(2, 1fr); }
  .oprow { grid-template-columns: 56px 1fr; }
  .oprow__body, .oprow__go { grid-column: 2; }
  .opsplit, .opcta { grid-template-columns: 1fr; }
  .ophead__in { grid-template-columns: 1fr; }
  .ophead__img { min-height: 200px; border-radius: 14px; margin-bottom: clamp(20px, 3vh, 34px); }
  .ophead p { padding-bottom: 0; }
}
@media (max-width: 700px) {
  .fmcc__body { grid-template-columns: 1fr; }
  .fmcc__map { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .fmcam { aspect-ratio: 16 / 9; }
  .fmchip { display: none; }
}
@media (max-width: 640px) {
  .optiles, .opgrid, .opgrid--2 { grid-template-columns: 1fr; }
  .opshead { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .opstep { grid-template-columns: 1fr; gap: 10px; }
  .opstep__n b { font-size: 26px; }
  .fmcc__kpi { padding: 11px 10px; }
  .fmcc__kpi small { font-size: 9.5px; }
  .fmcc__kpi b { font-size: 17px; }
}
[dir="ltr"] .fmhero h1 { font-size: clamp(28px, 3.3vw, 47px); }
[dir="ltr"] .ophead h1 { font-size: clamp(27px, 3.3vw, 43px); }
[dir="ltr"] .ticker__in { animation-name: tickltr; }
@keyframes tickltr { to { transform: translateX(-50%); } }

/* القائمة فوق هيرو فاتح: نص داكن دائماً */
.nav { background: rgba(252,251,253,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
:root.t-dark .nav { background: rgba(27,20,48,.86); }
.nav:not(.scrolled) .nav__links a:not([aria-current="page"]) { color: var(--text); }
.nav:not(.scrolled) .nav__links a:hover { color: var(--accent); }
:root.t-dark .nav:not(.scrolled) .nav__links a:hover { color: var(--gold-2); }
.nav:not(.scrolled) .theme-btn, .nav:not(.scrolled) .burger, .nav:not(.scrolled) .lang-sw { color: var(--text); border-color: var(--line-2); }
.nav .nav__logo img { filter: none; }
:root.t-dark .nav .nav__logo img { filter: brightness(0) invert(1); }
.nav__brandtag, :root:not(.t-dark) .nav:not(.scrolled) .nav__brandtag { background: var(--accent); color: #fff; }
:root.t-dark .nav__brandtag { background: var(--gold-2); color: #150F26; }
.nav:not(.scrolled) .nav__cta { border-color: transparent; }
.skip { position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 100; padding: 10px 18px; background: var(--accent); color: #fff; border-radius: 6px; }
.skip:focus { inset-inline-start: 8px; }

/* ───────── بلوكات منشئ الصفحات ───────── */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
.split--rev { grid-template-columns: 1.1fr 1fr; }
.split--rev .split__img { order: 2; }
.split__img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.split__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split__txt .rf-shead { margin-bottom: 18px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.quote { max-width: 780px; margin-inline: auto; padding: clamp(26px, 4vw, 44px); border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.quote blockquote { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.9; color: var(--text); }
.quote blockquote::before { content: '\201C'; display: block; font-size: 54px; line-height: .6; color: var(--accent); font-family: Georgia, serif; margin-bottom: 12px; }
:root.t-dark .quote blockquote::before { color: var(--gold); }
.quote figcaption { margin-top: 18px; }
.quote figcaption b { display: block; font-size: 15.5px; }
.quote figcaption span { font-size: 13px; color: var(--mute); }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.trust__in--sec { border-block: 0; padding-block: 8px; }
@media (max-width: 900px) { .split, .split--rev { grid-template-columns: 1fr; } .split--rev .split__img { order: 0; } }




/* ───────── أزرار مواقع المجموعة داخل الفوتر ───────── */
.foot__sites { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  padding: 20px 0; border-top: 1px solid var(--line); }
.foot__sites-l { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.foot__sites-b { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
.fsite { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text); font-size: 13.5px; font-weight: 600;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease); }
.fsite i { font-style: normal; font-size: 11px; opacity: .7; }
a.fsite:hover { color: var(--gold-2); border-color: var(--gold-2); transform: translateY(-2px); }
a.fsite:hover i { opacity: 1; }
.fsite--here { background: var(--gold); border-color: var(--gold); color: #1B1430; cursor: default; }
@media (max-width: 700px) {
  .foot__sites { flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot__sites-b { margin-inline-start: 0; }
  .fsite { padding: 8px 14px; font-size: 12.5px; }
}


/* ───────── مربع الموافقة (إخلاء مسؤولية) ───────── */
.lf-consent { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 2px; font-size: 12.5px; line-height: 1.7; color: var(--mute); cursor: pointer; }
.lf-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.lf-consent a { color: var(--accent); font-weight: 600; }
:root.t-dark .lf-consent a { color: var(--gold-2); }
.lf-consent a:hover { text-decoration: underline; }

/* روابط قانونية في شريط الفوتر */
.foot__legal { display: inline-flex; align-items: center; gap: 10px; }
.foot__legal a { color: var(--dim); transition: color .25s var(--ease); }
.foot__legal a:hover { color: var(--gold-2); }
.foot__legal span { color: var(--line-2); }

/* ══════════════════════════════════════════════════════════════
   قشرة ماس — الخدمات المُدارة للأصول (mas-layer-v1)
   على أساس ريف المرافق نفسه: أرضية فاتحة + لوحة أصول حيّة بـ CSS خالص
   (شجرة أصول · صحة أصل · منحنى صيانة · أوامر عمل) · شارة الشريك في القائمة ·
   زر دخول العملاء · شاشة تصميم مركز ماس · شريط الشراكة.
   ══════════════════════════════════════════════════════════════ */
:root { --ok: #2E9E5B; --warn: #D69E2E; --bad: #C6403C; }

/* ───────── القائمة: شارة الشريك + دخول العملاء ───────── */
.ibmbadge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 9px; border: 1px solid var(--line-2); border-radius: 8px;
  font-size: 11px; line-height: 1.2; color: var(--mute); white-space: nowrap; background: var(--surface); }
.ibmbadge b { font-weight: 800; font-size: 14px; letter-spacing: .04em; color: var(--text); font-family: Georgia, "Times New Roman", serif; }
.ibmbadge span { font-weight: 600; }
.ibmbadge--img { padding: 0; border: 0; background: transparent; }
.ibmbadge--img img { height: 36px; width: auto; display: block; }
.ibmbadge--lg { padding: 14px 22px 14px 18px; border-radius: 12px; font-size: 14px; gap: 12px; }
.ibmbadge--lg b { font-size: 26px; }
.ibmbadge--lg.ibmbadge--img img { height: 72px; }
.nav .ibmbadge { margin-inline-start: 4px; }
.nav__login { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; transition: all .3s var(--ease); }
.nav__login .rf-ico { font-size: 15px; color: var(--accent); }
.nav__login:hover { border-color: var(--accent); color: var(--accent); }
.nav__mobile-only { display: none; }
.soon { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; font-style: normal; line-height: 1.6;
  color: #7A5A12; background: rgba(214,158,46,.16); border: 1px solid rgba(214,158,46,.4); vertical-align: middle; }
.soon--lg { margin: 0 0 12px; padding: 4px 12px; font-size: 12.5px; display: inline-block; }
:root.t-dark .soon { color: #F0D28A; }

/* ───────── لوحة الأصول الحيّة (CSS خالص) ───────── */
.mascc { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 34px 80px rgba(64,24,120,.18); font-size: 12px; }
:root.t-dark .mascc { box-shadow: 0 34px 80px rgba(0,0,0,.5); }
.mascc__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mascc__bar > b { font-size: 13px; font-weight: 700; }
.mascc__demo { font-size: 10px; font-weight: 700; color: var(--mute); border: 1px dashed var(--line-2); padding: 2px 8px; border-radius: 999px; }
.mascc__kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.mascc__body { display: grid; grid-template-columns: .95fr 1.05fr; border-bottom: 1px solid var(--line); }
.mascc__ttl { font-size: 10.5px; color: var(--dim); letter-spacing: .06em; margin-bottom: 10px; }
/* شجرة الأصول */
.mastree { padding: 14px; border-inline-end: 1px solid var(--line); background:
  linear-gradient(rgba(84,0,168,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(84,0,168,.045) 1px, transparent 1px); background-size: 22px 22px; }
:root.t-dark .mastree { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); }
.mastree ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.mastree li { position: relative; display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 6px; font-size: 11.5px; line-height: 1.4; }
.mastree li.l1 { margin-inline-start: 14px; } .mastree li.l2 { margin-inline-start: 28px; } .mastree li.l3 { margin-inline-start: 42px; }
.mastree li.l1::before, .mastree li.l2::before, .mastree li.l3::before { content: ''; position: absolute; inset-inline-start: -9px; top: -4px; bottom: 50%; width: 9px;
  border-inline-start: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-end-start-radius: 4px; }
.mastree li i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.mastree li i.ok { background: var(--ok); } .mastree li i.warn { background: var(--warn); }
.mastree li i.alert { background: var(--bad); box-shadow: 0 0 0 3px rgba(198,64,60,.18); animation: fmpulse 2.2s ease-in-out infinite; }
.mastree li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.mastree li.l0 span { font-weight: 700; }
.mastree li b { font-size: 9.5px; font-weight: 600; color: var(--dim); direction: ltr; }
.mastree li.on { background: var(--accent-soft); outline: 1px solid rgba(84,0,168,.18); }
.mastree li.on span { color: var(--accent); font-weight: 700; }
:root.t-dark .mastree li.on { background: rgba(210,184,108,.12); outline-color: rgba(210,184,108,.3); }
:root.t-dark .mastree li.on span { color: var(--gold-2); }
/* صحة الأصل */
.mashealth { padding: 14px; display: grid; align-content: start; gap: 12px; }
.mashealth__in { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; }
.masgauge { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; align-content: center; text-align: center;
  background: conic-gradient(var(--accent) calc(var(--v) * 1%), var(--line) 0); }
.masgauge::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.masgauge b, .masgauge small { position: relative; z-index: 1; }
.masgauge b { font-size: 24px; font-weight: 800; line-height: 1; color: var(--text); }
.masgauge small { display: block; margin-top: 3px; font-size: 8.5px; color: var(--dim); }
:root.t-dark .masgauge { background: conic-gradient(var(--gold-2) calc(var(--v) * 1%), rgba(255,255,255,.12) 0); }
.masreads { display: grid; gap: 8px; }
.masreads div { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
.masreads small { font-size: 10px; color: var(--mute); }
.masreads b { font-size: 12px; font-weight: 700; direction: ltr; }
.masreads b i { font-style: normal; font-size: 9.5px; color: var(--dim); font-weight: 500; }
.bar { grid-column: 1 / -1; display: block; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 50%); border-radius: 3px; background: var(--ok); }
.bar.warn i { background: var(--warn); }
/* منحنى الصيانة */
.mascurve { padding: 0 14px 14px; }
.mascurve__plot { position: relative; height: 78px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%, var(--bg-2); }
.mascurve__plot .c { position: absolute; inset: 0; display: block; }
.mascurve__plot .c--corr { background: linear-gradient(180deg, rgba(198,64,60,.42), rgba(198,64,60,.04));
  clip-path: polygon(0 12%, 12% 20%, 25% 26%, 38% 40%, 50% 50%, 62% 60%, 75% 68%, 88% 76%, 100% 82%, 100% 100%, 0 100%); }
.mascurve__plot .c--prev { background: linear-gradient(180deg, rgba(46,158,91,.5), rgba(46,158,91,.05));
  clip-path: polygon(0 88%, 12% 82%, 25% 74%, 38% 66%, 50% 54%, 62% 44%, 75% 34%, 88% 26%, 100% 20%, 100% 100%, 0 100%); mix-blend-mode: multiply; }
:root.t-dark .mascurve__plot .c--prev { mix-blend-mode: screen; }
.mascurve__tag { position: absolute; top: 8px; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); }
.mascurve__tag--corr { inset-inline-start: 8px; color: var(--bad); }
.mascurve__tag--prev { inset-inline-end: 8px; color: #237A47; }
/* أوامر العمل */
.maswo { padding: 12px 14px; display: grid; gap: 6px; }
.maswo > small { font-size: 10.5px; color: var(--dim); letter-spacing: .06em; }
.maswo__row { display: flex; align-items: center; gap: 8px; font-size: 11px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; }
.maswo__row b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maswo__row .pr { font-size: 9.5px; padding: 2px 7px; border-radius: 999px; background: var(--bg-2); color: var(--mute); white-space: nowrap; }
.maswo__row .pr--hi { background: rgba(198,64,60,.12); color: var(--bad); }
.maswo__row .st { font-size: 9.5px; padding: 2px 7px; border-radius: 999px; white-space: nowrap; direction: ltr; }
.st--open { background: var(--bg-2); color: var(--mute); }
.st--run { background: var(--accent-soft); color: var(--accent); }
.st--late { background: rgba(198,64,60,.12); color: var(--bad); }
.st--ok { background: rgba(46,125,50,.12); color: #2E7D32; }
:root.t-dark .st--run { background: rgba(210,184,108,.14); color: var(--gold-2); }
@media (max-width: 1100px) { .mascc { max-width: 640px; margin-inline: auto; } }
@media (max-width: 700px) {
  .mascc__body { grid-template-columns: 1fr; }
  .mastree { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .maschip { display: none; }
}
@media (max-width: 640px) { .mascc__kpis .fmcc__kpi { padding: 11px 10px; } .mascc__kpis .fmcc__kpi small { font-size: 9.5px; } .mascc__kpis .fmcc__kpi b { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .mastree li i.alert { animation: none; } }

/* ───────── التعريف والحقائق ───────── */
.masintro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.masintro__lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.9; font-weight: 500; color: var(--text); }
.masintro__facts { display: grid; gap: 10px; }
.masintro__facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.masintro__facts b { font-size: 17px; font-weight: 800; color: var(--accent); }
:root.t-dark .masintro__facts b { color: var(--gold-2); }
.masintro__facts span { font-size: 13.5px; color: var(--mute); line-height: 1.7; }
.masfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.masfacts div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.masfacts b { display: block; font-size: 13.5px; font-weight: 700; }
.masfacts span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--mute); line-height: 1.7; }
.optile__go { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent); }
:root.t-dark .optile__go { color: var(--gold-2); }
.opgrid--1 { grid-template-columns: 1fr; }

/* ───────── مركز ماس: شاشة تصميم صادقة ───────── */
.mascare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.mascare__txt h2 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.25; font-weight: 800; margin-top: 6px; }
.mascare__txt > p { margin-top: 16px; color: var(--mute); line-height: 1.9; }
.mascare .checks { margin: 18px 0 0; }
.mascare .btnrow { margin-top: 24px; }
.masportal { display: grid; grid-template-columns: 44px 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface);
  box-shadow: 0 30px 70px rgba(64,24,120,.14); position: relative; font-size: 12px; }
.masportal::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 18px, rgba(84,0,168,.025) 18px 20px); pointer-events: none; }
.masportal__side { background: #1B1430; padding: 16px 0; display: grid; gap: 12px; justify-items: center; align-content: start; }
.masportal__side i { width: 18px; height: 18px; border-radius: 5px; background: rgba(255,255,255,.14); }
.masportal__side i.on { background: #E6D08A; }
.masportal__main { padding: 14px; display: grid; gap: 12px; align-content: start; }
.masportal__top { display: flex; align-items: center; gap: 8px; }
.masportal__top b { font-size: 13px; font-weight: 700; }
.masportal__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.masportal__cards div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 4px; align-content: start; }
.masportal__cards small { font-size: 10px; color: var(--dim); }
.masportal__cards b { font-size: 20px; font-weight: 800; line-height: 1; }
.masportal__cards em { font-style: normal; font-size: 10px; color: var(--mute); }
.masportal__cards .bar { margin-top: 4px; }
.masportal__cards .bar i { background: var(--accent); }
.masportal__rows { display: grid; gap: 6px; }
.masportal__rows div { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 11.5px; }
.masportal__rows i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.masportal__rows i.warn { background: var(--warn); }
@media (max-width: 900px) { .mascare { grid-template-columns: 1fr; } .masintro { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .masportal__cards, .masfacts { grid-template-columns: 1fr; } .masintro__facts div { grid-template-columns: 1fr; gap: 4px; } }

/* ───────── شريط الشراكة ───────── */
.maspartner { display: grid; grid-template-columns: auto 1fr; gap: clamp(22px, 3vw, 44px); align-items: center; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.maspartner h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; }
.maspartner p { margin-top: 12px; color: var(--mute); line-height: 1.9; }
.maspartner__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.maspartner__pills span { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
:root.t-dark .maspartner__pills span { background: rgba(210,184,108,.14); color: var(--gold-2); }
@media (max-width: 700px) { .maspartner { grid-template-columns: 1fr; justify-items: start; } }

/* ───────── التواصل ───────── */
.mascontact { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 3vw, 44px); align-items: start; }
.mascontact .lf { padding: clamp(20px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.mascontact .lf__row { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .mascontact { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .mascontact .lf__row { grid-template-columns: 1fr; } }

/* ───────── الفوتر: سطر العلامات ───────── */
.foot__tm { padding: 10px var(--pad) 22px; font-size: 11.5px; color: rgba(255,255,255,.45); line-height: 1.7; }
/* القائمة مزدحمة (٧ روابط + دخول + دعوة): لا لفّ في زر الدعوة وفراغات أضيق تحت 1400px */
.nav__cta { white-space: nowrap; }
@media (max-width: 1600px) { .nav__in { gap: 14px; } .nav__links { gap: 0; } .nav__links a { padding-inline: 9px; font-size: 14px; } }
.nav__logo, .theme-btn, .lang-sw, .nav__cta { flex: none; }

/* ───────── الشريط العلوي: الشارة يميناً ودخول العملاء يساراً (فوق القائمة داخل .nav) ───────── */
:root { --nav-h: 128px; }
.mastop { background: #1B1430; color: #fff; }
.mastop__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 36px; }
.mastop .ibmbadge { padding: 3px 10px 3px 8px; border-color: rgba(255,255,255,.28); background: transparent; color: rgba(255,255,255,.85); font-size: 10.5px; }
.mastop .ibmbadge b { color: #fff; font-size: 13px; }
.mastop .ibmbadge--img img { height: 26px; }
.mastop .nav__login { height: 26px; padding: 0 12px; font-size: 12.5px; color: #fff; border-color: rgba(255,255,255,.3); }
.mastop .nav__login .rf-ico { color: #E6D08A; }
.mastop .nav__login:hover { border-color: #E6D08A; color: #E6D08A; }
.nav.menu-open .mastop { display: none; }
.mashero h1 { font-size: clamp(30px, 3.4vw, 48px); }
@media (max-width: 600px) { :root { --nav-h: 108px; } .mastop .ibmbadge span { display: none; } .mastop .ibmbadge b { font-size: 12px; } }

/* ───────── ترويسة الصفحات الداخلية الفاتحة (الخصوصية/الشروط/الصفحات المخصصة) — كانت غائبة فتختفي تحت الشريط ───────── */
.pheadlite { position: relative; padding: calc(var(--nav-h) + clamp(40px, 8vh, 80px)) 0 clamp(36px, 6vh, 64px); overflow: hidden;
  background: radial-gradient(620px 400px at 90% -20%, rgba(84,0,168,.13), transparent 65%),
              radial-gradient(520px 360px at 4% 110%, rgba(156,132,64,.11), transparent 65%), var(--bg); border-bottom: 1px solid var(--line); }
.pheadlite .label { color: var(--accent); }
:root.t-dark .pheadlite .label { color: var(--gold-2); }
.pheadlite h1 { margin-top: 14px; font-size: clamp(30px, 4vw, 52px); line-height: 1.2; font-weight: 800; }
.pheadlite h1 .grad { color: var(--accent); }
:root.t-dark .pheadlite h1 .grad { color: var(--gold-2); }
.pheadlite p { margin-top: 14px; font-size: clamp(15px, 1.25vw, 17px); color: var(--mute); max-width: 62ch; line-height: 1.85; }
/* الإنجليزية أطول: قائمة أضيق وزر دعوة أصغر حتى لا يُقصّ ─ */
html[lang="en"] .nav__links a { padding-inline: 7px; font-size: 13.5px; }
html[lang="en"] .nav__cta { padding: 10px 14px; font-size: 13px; }
@media (max-width: 1500px) { html[lang="en"] .nav__links a { padding-inline: 5px; font-size: 13px; } html[lang="en"] .nav__in { gap: 10px; } }
/* الفوتر: الحواف الجانبية كانت صفراً في .foot__sites و.foot__bar */
.foot__sites { padding: 20px var(--pad); }
.foot__bar { padding: 22px var(--pad); }

/* ───────── اعتماد IBM في الواجهة دائماً وبوضوح (طلب المؤسس 2026-09-26) ───────── */
:root { --nav-h: 136px; }
.mastop__in { height: 44px; }
.mastop .ibmbadge { padding: 4px 14px 4px 10px; font-size: 12.5px; gap: 10px; border-color: rgba(255,255,255,.45); color: #fff; }
.mastop .ibmbadge b { font-size: 17px; }
.mastop .ibmbadge--img img { height: 32px; }
.masibm { display: inline-flex; align-items: center; gap: 16px; padding: 10px 18px 10px 12px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); max-width: 100%; }
.ibmbadge--hero { padding: 8px 14px 8px 12px; border-radius: 10px; font-size: 13px; gap: 10px; border-color: var(--text); background: var(--text); color: rgba(255,255,255,.85); flex: none; }
.ibmbadge--hero b { color: #fff; font-size: 24px; }
.ibmbadge--hero.ibmbadge--img { background: transparent; border: 0; padding: 0; }
.ibmbadge--hero.ibmbadge--img img { height: 56px; }
.masibm__txt { font-size: 13.5px; font-weight: 700; line-height: 1.6; color: var(--text); }
.masibm__txt::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2E9E5B; margin-inline-end: 8px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(46,158,91,.2); }
@media (max-width: 600px) {
  :root { --nav-h: 116px; }
  .mastop .ibmbadge span { display: inline; font-size: 10.5px; }
  .mastop .ibmbadge b { font-size: 14px; }
  .mastop .nav__login { padding: 0 9px; }
  .masibm { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ───────── mas-hero-slides: هيرو أعلى + سلايدات نصية (كل شريحة ميزة من ملف IBM) واللوحة ثابتة ───────── */
.mashero { padding-top: calc(var(--nav-h) + 10px); }
.masibm { margin-top: 4px; }
.mashero__slides { display: grid; margin-top: 18px; }
.mashero__slides > div { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .9s var(--ease), transform .9s var(--ease), visibility 0s .9s; }
.mashero__slides > div.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mashero h1 { margin-top: 0; }
.mashero h1 .u { white-space: normal; }
.masdots { display: flex; gap: 8px; margin-top: 18px; }
.masdots button { width: 26px; height: 6px; border-radius: 3px; border: 0; padding: 0; background: var(--line-2); cursor: pointer; transition: background .3s, width .3s; }
.masdots button[aria-selected="true"] { background: var(--gold); width: 40px; }
.mashero .fmhero__cta { margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { .mashero__slides > div { transition: none; } }

/* الشريحة الطافية العلوية كانت تلامس شريط القائمة بعد رفع الهيرو */
.mashero .fmccw { margin-top: 22px; }

/* ═════════ mas-hero-v2: هيرو بصور بملء الشاشة لكل شريحة (Ken Burns + طبقة داكنة) — اللوحة قسم مستقل تحته ═════════ */
.mashero2 { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; color: #fff;
  padding-top: calc(var(--nav-h) + 8px); background: #14102A; }
.mashero2__bg { position: absolute; inset: 0; z-index: -2; }
.mashero2__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); transform: scale(1.04); }
.mashero2__bg img.on { opacity: 1; animation: maskb 10s ease-out forwards; }
@keyframes maskb { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.mashero2__bg::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to left, rgba(19,12,38,.92) 0%, rgba(19,12,38,.72) 42%, rgba(19,12,38,.30) 100%), linear-gradient(to top, rgba(19,12,38,.85), transparent 40%); }
[dir="ltr"] .mashero2__bg::after { background: linear-gradient(to right, rgba(19,12,38,.92) 0%, rgba(19,12,38,.72) 42%, rgba(19,12,38,.30) 100%), linear-gradient(to top, rgba(19,12,38,.85), transparent 40%); }
.mashero2__in { position: relative; z-index: 1; padding-block: clamp(28px, 5vh, 56px) clamp(24px, 4vh, 40px); }
.mashero2__in > div { max-width: 700px; }
.mashero2 .masibm { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mashero2 .masibm__txt { color: #fff; }
.mashero2 .ibmbadge--hero { background: #fff; border-color: #fff; color: #444; }
.mashero2 .ibmbadge--hero b { color: #111; }
.mashero2__slides { display: grid; margin-top: 26px; }
.mashero2__slides > div { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease), visibility 0s 1s; }
.mashero2__slides > div.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mashero2__k { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #E6D08A; font-weight: 700; }
.mashero2__k b { font-size: 13px; padding: 2px 8px; border: 1px solid rgba(230,208,138,.5); border-radius: 4px; }
.mashero2__k i { font-style: normal; }
.mashero2 h1 { margin-top: 14px; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.mashero2 h1 .u { color: #E6D08A; white-space: normal; position: relative; }
.mashero2 h1 .u::after { content: ''; position: absolute; inset-inline: 0; bottom: .04em; height: 4px; border-radius: 2px; background: var(--gold); opacity: .55; }
.mashero2__slides p { margin-top: 18px; font-size: clamp(15.5px, 1.3vw, 18.5px); line-height: 1.9; color: rgba(255,255,255,.86); max-width: 58ch; }
.mashero2 .fmhero__cta { margin-top: 28px; }
.mashero2 .btn:not(.btn--gold) { color: #fff; border-color: rgba(255,255,255,.55); }
.mashero2 .btn:not(.btn--gold):hover { background: rgba(255,255,255,.12); border-color: #fff; }
.mashero2 .btn--gold { background: #E6D08A; border-color: #E6D08A; color: #1B1430; }
.mashero2 .btn--gold::before { background: #F2E2A6; }
.mashero2__nav { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.mashero2 .masdots { margin: 0; }
.mashero2 .masdots button { background: rgba(255,255,255,.3); }
.mashero2 .masdots button[aria-selected="true"] { background: #E6D08A; }
.mashero2__count { font-size: 12.5px; color: rgba(255,255,255,.7); letter-spacing: .1em; }
.mashero2__count b { color: #fff; font-weight: 700; }
.mashero2__pts { position: relative; z-index: 1; margin-top: auto; border-top: 1px solid rgba(255,255,255,.14); background: rgba(19,12,38,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fmhero__pts--bar { margin-top: 0; padding: 16px 0; border-top: 0; gap: 10px clamp(18px, 3vw, 44px); }
.fmhero__pts--bar span { color: rgba(255,255,255,.85); font-size: 13.5px; }
.fmhero__pts--bar .rf-ico { color: #E6D08A; }
:root.t-dark .mashero2 { color: #fff; }
/* لوحة الأصول قسماً مستقلاً */
.masboard__in { max-width: 1040px; margin: 8px auto 0; }
.masboard .fmccw { margin-top: 24px; }
.masboard .mascc { box-shadow: 0 30px 70px rgba(64,24,120,.16); }
@media (max-width: 1100px) { .masboard .mascc { max-width: none; } }
@media (max-width: 900px) {
  .mashero2 { min-height: calc(100svh - 0px); }
  .mashero2__in > div { max-width: none; }
  .mashero2 h1 { font-size: clamp(30px, 8vw, 44px); }
}
@media (max-width: 600px) {
  .mashero2 .masibm { gap: 8px; padding: 8px 12px; }
  .mashero2 .ibmbadge--hero b { font-size: 18px; }
  .fmhero__pts--bar { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .mashero2__bg img.on { animation: none; } .mashero2__slides > div { transition: none; } }

/* ───────── الرئيسية: القائمة شفافة فوق صورة الهيرو وتبيضّ بعد التمرير (html.mas-home يضيفه mas-ui.js) ───────── */
html.mas-home .nav:not(.scrolled):not(.menu-open) { background: transparent; border-bottom: 1px solid rgba(255,255,255,.14); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.mas-home .nav:not(.scrolled):not(.menu-open) .nav__in { --text: #fff; --line-2: rgba(255,255,255,.45); --logo-filter: brightness(0) invert(1); --mute: rgba(255,255,255,.8); color: #fff; }
html.mas-home .nav:not(.scrolled):not(.menu-open) .nav__links a { color: rgba(255,255,255,.88); }
html.mas-home .nav:not(.scrolled):not(.menu-open) .nav__links a:hover, html.mas-home .nav:not(.scrolled):not(.menu-open) .nav__links a[aria-current="page"] { color: #E6D08A; }
html.mas-home .nav:not(.scrolled):not(.menu-open) .theme-btn, html.mas-home .nav:not(.scrolled):not(.menu-open) .lang-sw, html.mas-home .nav:not(.scrolled):not(.menu-open) .burger { color: #fff; border-color: rgba(255,255,255,.45); }
html.mas-home .nav:not(.scrolled):not(.menu-open) .nav__brandtag { background: #E6D08A; color: #1B1430; }
html.mas-home .nav:not(.scrolled):not(.menu-open) .nav__cta { background: #E6D08A; border-color: #E6D08A; color: #1B1430; }
/* الهيرو يملأ الشاشة تماماً */
.mashero2 { min-height: 100svh; }
.mashero2__in { padding-block: clamp(16px, 3vh, 36px) clamp(16px, 3vh, 28px); }
.mashero2 h1 { font-size: clamp(32px, 4.1vw, 56px); }
.mashero2__slides { margin-top: 20px; }
.mashero2__slides p { margin-top: 14px; }
.mashero2 .fmhero__cta { margin-top: 22px; }
.mashero2__nav { margin-top: 22px; }

html.mas-home .nav:not(.scrolled):not(.menu-open) .soon { background: rgba(230,208,138,.22); border-color: rgba(230,208,138,.5); color: #F0D28A; }

/* ═════════ mas-hero-v3: هيرو فاتح راقٍ ومرتفع — شرائح نصية يميناً وبطاقة صورة لكل شريحة يساراً ═════════ */
.mashero3 { padding-top: calc(var(--nav-h) + 6px); padding-bottom: clamp(18px, 3vh, 34px); }
.mashero3__in { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 64px); align-items: center; min-height: calc(100svh - var(--nav-h) - 6px); }
.mashero3__txt { padding-block: clamp(14px, 3vh, 34px); }
.mashero3 .masibm { margin-top: 0; }
.mashero3 .mashero2__slides { margin-top: 22px; }
.mashero3 .mashero2__k { color: var(--accent); }
.mashero3 .mashero2__k b { border-color: rgba(84,0,168,.3); }
:root.t-dark .mashero3 .mashero2__k { color: var(--gold-2); }
.mashero3 h1 { margin-top: 12px; font-size: clamp(31px, 3.6vw, 50px); line-height: 1.2; font-weight: 800; letter-spacing: -.012em; color: var(--text); text-shadow: none; }
.mashero3 h1 .u { color: var(--accent); white-space: normal; }
:root.t-dark .mashero3 h1 .u { color: var(--gold-2); }
.mashero3 .mashero2__slides p { margin-top: 14px; font-size: clamp(15.5px, 1.25vw, 18px); line-height: 1.9; color: var(--mute); max-width: 56ch; }
.mashero3 .fmhero__cta { margin-top: 24px; }
.mashero3 .mashero2__nav { margin-top: 22px; }
.mashero3 .masdots button { background: var(--line-2); }
.mashero3 .masdots button[aria-selected="true"] { background: var(--gold); }
.mashero3 .mashero2__count { color: var(--dim); }
.mashero3 .mashero2__count b { color: var(--text); }
.mashero3 .fmhero__pts { margin-top: 24px; padding-top: 18px; }
/* بطاقة الصورة */
.mashero3__art { position: relative; }
.mashero3__frame { position: relative; aspect-ratio: 4 / 3.15; border-radius: 22px; overflow: hidden; background: var(--bg-2);
  box-shadow: 0 30px 70px rgba(64,24,120,.20), 0 2px 6px rgba(31,26,43,.06); border: 1px solid rgba(255,255,255,.6); isolation: isolate; }
.mashero3__frame .mashero2__bg { position: absolute; inset: 0; z-index: 0; }
.mashero3__frame .mashero2__bg::after { background: linear-gradient(to top, rgba(19,12,38,.62), transparent 48%); }
[dir="ltr"] .mashero3__frame .mashero2__bg::after { background: linear-gradient(to top, rgba(19,12,38,.62), transparent 48%); }
.mashero3__frame::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 40%); }
.mashero3__cap { position: absolute; z-index: 2; bottom: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 10px; background: rgba(255,255,255,.92); color: var(--text); font-size: 13px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.mashero3__cap b { font-size: 12px; padding: 2px 7px; border-radius: 5px; background: var(--accent); color: #fff; }
.mashero3__cap i { font-style: normal; }
.mashero3__art .fmchip--a { top: 22px; inset-inline-end: -14px; }
.mashero3__art .fmchip--b { bottom: 56px; inset-inline-start: -14px; }
:root.t-dark .mashero3__frame { border-color: rgba(255,255,255,.08); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
@media (max-width: 1100px) {
  .mashero3__in { grid-template-columns: 1fr; min-height: 0; gap: 26px; }
  .mashero3__art { max-width: 640px; margin-inline: auto; width: 100%; }
  .mashero3__art .fmchip--a { inset-inline-end: 10px; } .mashero3__art .fmchip--b { inset-inline-start: 10px; }
}
@media (max-width: 700px) { .mashero3__art .fmchip { display: none; } .mashero3__frame { border-radius: 16px; } }

/* الشريحة الطافية السفلية كانت تلامس تسمية الصورة */
.mashero3__art .fmchip--b { bottom: 26px; inset-inline-start: auto; inset-inline-end: -14px; }
.mashero3__in { min-height: calc(100svh - var(--nav-h) - 40px); }
@media (max-width: 1100px) { .mashero3__art .fmchip--b { inset-inline-end: 10px; } }

/* ═════════ mas-mocks-v1: لوحة CSS معبّرة لكل شريحة (بدل الصور) — تتبدّل مع الشريحة ═════════ */
.mashero3__frame { aspect-ratio: auto; min-height: 470px; background:
  radial-gradient(420px 260px at 90% -10%, rgba(84,0,168,.10), transparent 65%), radial-gradient(360px 240px at 0% 100%, rgba(156,132,64,.12), transparent 65%),
  linear-gradient(rgba(84,0,168,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(84,0,168,.05) 1px, transparent 1px), #F7F5FB; background-size: auto, auto, 24px 24px, 24px 24px, auto; }
:root.t-dark .mashero3__frame { background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px), #1E1738; background-size: 24px 24px, 24px 24px, auto; }
.mashero3__frame::before { display: none; }
.masmocks { position: absolute; inset: 0; display: grid; padding: 22px 22px 58px; }
.masmocks > .mk { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.985); transition: opacity .9s var(--ease), transform .9s var(--ease), visibility 0s .9s;
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(64,24,120,.14); font-size: 12px; color: var(--text); }
.masmocks > .mk.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mk__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mk__bar > b { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk__body { padding: 14px; display: grid; gap: 12px; align-content: start; flex: 1; }
.mk small { font-size: 10px; color: var(--dim); }
.mk .ok { color: #237A47; }
.mk__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk__kpis > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 3px; }
.mk__kpis b { font-size: 19px; font-weight: 800; line-height: 1.1; }
.mk__kpis b span { font-size: .6em; color: var(--accent); }
.mk__kpis em { font-style: normal; font-size: 10px; color: var(--mute); }
.mk__kpis em.up { color: #2E7D32; }
.mk__kpis--top { padding: 12px 14px 0; }
/* ١: الخط الزمني والأعمدة */
.mk__tl { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.mk__tl::before { content: ''; position: absolute; top: 7px; inset-inline: 12%; height: 2px; background: var(--line-2); }
.mk__tl span { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 10.5px; color: var(--mute); }
.mk__tl span i { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); z-index: 1; }
.mk__tl span.done i { background: var(--ok); border-color: var(--ok); }
.mk__tl span.now i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.mk__tl span.now em { color: var(--accent); font-weight: 700; }
.mk__tl em { font-style: normal; }
.mk__chart { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 8px; }
.mk__bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; height: 92px; margin-top: 8px; }
.mk__bars i { display: block; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, rgba(84,0,168,.55), rgba(84,0,168,.18)); }
.mk__bars i.hi { background: linear-gradient(180deg, var(--accent), rgba(84,0,168,.5)); }
.mk__axis { display: grid; grid-template-columns: repeat(6, 1fr); text-align: center; font-size: 9.5px; color: var(--dim); margin-top: 4px; }
/* ٢: جدول المؤشرات والخصومات */
.mk__tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.mk__tbl th { text-align: start; font-size: 10px; color: var(--dim); font-weight: 600; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.mk__tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.mk__tbl td .st { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.mk__tbl .st--ok { background: var(--ok); } .mk__tbl .st--warn { background: var(--warn); }
.mk__ded { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk__ded > div { padding: 9px 11px; border-radius: 8px; background: var(--bg-2); display: grid; gap: 2px; }
.mk__ded b { font-size: 16px; font-weight: 800; }
.mk__ded b span { font-size: .6em; color: var(--accent); }
.mk__ded em { font-style: normal; font-size: 10px; color: var(--mute); }
/* ٣: نموذج أمر عمل عربي + محادثة دعم */
.mk__form { gap: 10px; }
.mk__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk__fields label { display: grid; gap: 2px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-2); }
.mk__fields label.wide { grid-column: 1 / -1; }
.mk__fields b { font-size: 11.5px; font-weight: 700; }
.mk__chat { display: grid; gap: 6px; }
.mk__chat > div { max-width: 88%; padding: 8px 11px; border-radius: 12px; font-size: 11px; line-height: 1.6; }
.mk__chat .me { justify-self: start; background: var(--accent); color: #fff; border-end-start-radius: 3px; }
.mk__chat .bot { justify-self: end; background: var(--bg-2); border: 1px solid var(--line); border-end-end-radius: 3px; }
.mk__chat .bot i { display: block; font-style: normal; font-size: 9.5px; color: var(--accent); font-weight: 700; margin-bottom: 2px; }
/* ٤: الأدوار */
.mk__roles { display: grid; gap: 9px; }
.mk__roles > div { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; font-size: 11.5px; }
.mk__roles .bar { grid-column: auto; height: 7px; }
.mk__roles .bar i { background: linear-gradient(90deg, var(--accent), #8A5CD6); }
.mk__roles b { font-size: 11px; text-align: end; }
/* ٥: مركز التحكّم */
.mk__cc { grid-template-columns: 1.2fr .8fr; gap: 12px; }
.mk__map { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(rgba(84,0,168,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(84,0,168,.05) 1px, transparent 1px); background-size: 20px 20px; }
.mk__map .fmfloor { margin-top: 8px; }
.mk__wo { display: grid; gap: 7px; align-content: start; }
/* ٦: خريطة التكاملات */
.mk__net { position: relative; min-height: 300px; display: block; }
.mk__hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -54%); width: 128px; height: 128px; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 2px;
  background: var(--accent); color: #fff; box-shadow: 0 0 0 10px var(--accent-soft), 0 0 0 22px rgba(84,0,168,.05); z-index: 2; }
.mk__hub b { font-size: 17px; font-weight: 800; }
.mk__hub small { color: rgba(255,255,255,.8); font-size: 9.5px; }
.mk__node { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 11px; font-weight: 700; box-shadow: var(--shadow); z-index: 2; }
.mk__node .rf-ico { color: var(--accent); font-size: 14px; }
.mk__node::before { content: ''; position: absolute; z-index: -1; height: 1.5px; width: var(--len, 70px); background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); opacity: .5; top: 50%; }
.mk__node.n1 { top: 6%; inset-inline-start: 6%; } .mk__node.n2 { top: 6%; inset-inline-end: 6%; }
.mk__node.n3 { top: 44%; inset-inline-start: 2%; } .mk__node.n4 { top: 44%; inset-inline-end: 2%; }
.mk__node.n5 { bottom: 8%; inset-inline-start: 8%; } .mk__node.n6 { bottom: 8%; inset-inline-end: 8%; }
.mk__node.n1::before, .mk__node.n3::before, .mk__node.n5::before { inset-inline-end: -60px; --len: 62px; }
.mk__node.n2::before, .mk__node.n4::before, .mk__node.n6::before { inset-inline-start: -60px; --len: 62px; }
.mk__node.n1::before, .mk__node.n2::before { transform: rotate(28deg); transform-origin: 0 50%; }
.mk__node.n5::before, .mk__node.n6::before { transform: rotate(-28deg); transform-origin: 0 50%; }
.mk__eng { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--mute); white-space: nowrap; }
.mk__eng .rf-ico { color: var(--gold); }
@media (max-width: 700px) {
  .masmocks { padding: 12px 12px 52px; }
  .mashero3__frame { min-height: 520px; }
  .mk__kpis, .mk__ded { grid-template-columns: 1fr 1fr; }
  .mk__cc { grid-template-columns: 1fr; }
  .mk__fields { grid-template-columns: 1fr; }
  .mk__roles > div { grid-template-columns: 90px 1fr 36px; }
  .mk__node span { display: none; } .mk__node { padding: 7px 9px; }
}
@media (prefers-reduced-motion: reduce) { .masmocks > .mk { transition: none; } }

/* تنقيح اللوحات: الشريحة الطافية فوق الإطار لا على شريط اللوحة · حلقة تكاملات بدل الخطوط · مسار تدريب ثلاثي */
.mashero3__art .fmchip--a { top: -18px; inset-inline-end: 18px; }
.mk__node::before { display: none; }
.mk__net::before { content: ''; position: absolute; top: 50%; left: 50%; width: 300px; height: 300px; border-radius: 50%; transform: translate(-50%, -54%); border: 1.5px dashed rgba(84,0,168,.35); }
.mk__net::after { content: ''; position: absolute; top: 50%; left: 50%; width: 420px; height: 420px; border-radius: 50%; transform: translate(-50%, -54%); border: 1px dashed rgba(84,0,168,.14); }
.mk__tl--3 { grid-template-columns: repeat(3, 1fr); }
.mk__tl--3::before { inset-inline: 16%; }

/* ───────── الهيرو في شاشة واحدة (بما فيها النقاط الأربع) — طلب المؤسس ───────── */
.mashero3__txt { padding-block: 6px; }
.mashero3 .masibm { padding: 8px 14px 8px 10px; }
.mashero3 .ibmbadge--hero b { font-size: 21px; }
.mashero3 .mashero2__slides { margin-top: 14px; }
.mashero3 h1 { font-size: clamp(30px, 3.05vw, 44px); line-height: 1.18; margin-top: 10px; }
.mashero3 .mashero2__slides p { margin-top: 10px; font-size: clamp(15px, 1.1vw, 16.5px); line-height: 1.75; max-width: 58ch; }
.mashero3__cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 18px; }
.mashero3 .fmhero__cta { margin-top: 0; }
.mashero3 .mashero2__nav { margin: 0; }
.mashero3 .fmhero__pts { margin-top: 16px; padding-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.mashero3 .fmhero__pts span { font-size: 13.5px; font-weight: 600; color: var(--text); gap: 10px; }
.mashero3 .fmhero__pts .rf-ico { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--accent-soft); box-sizing: border-box; flex: none; }
.mashero3__in { min-height: 0; }
@media (max-width: 600px) { .mashero3 .fmhero__pts { grid-template-columns: 1fr; } }
/* الإنجليزية أطول نصاً: أحجام أهدأ حتى يكتمل الهيرو في الشاشة الأولى أيضاً */
html[lang="en"] .mashero3 h1 { font-size: clamp(27px, 2.5vw, 37px); line-height: 1.16; }
html[lang="en"] .mashero3 .mashero2__slides p { font-size: clamp(14.5px, 1vw, 15.5px); line-height: 1.65; }
html[lang="en"] .mashero3 .masibm__txt { font-size: 12.5px; line-height: 1.45; }
html[lang="en"] .mashero3 .masibm { padding: 6px 12px 6px 8px; gap: 12px; }
html[lang="en"] .mashero3 .ibmbadge--hero b { font-size: 19px; }
html[lang="en"] .mashero3__cta-row { gap: 10px 16px; margin-top: 14px; }
html[lang="en"] .mashero3 .fmhero__cta .btn { padding: 11px 18px; font-size: 14px; }
html[lang="en"] .mashero3 .fmhero__pts { margin-top: 12px; padding-top: 12px; }
html[lang="en"] .mashero3 .fmhero__pts span { font-size: 13px; }

/* ═══════════ هيرو ريف ماس — فاتح عالمي ═══════════ */
.mashero{position:relative;overflow:hidden;background:#FBFAFD;color:#221C2E;padding:clamp(150px,19vh,185px) 0 0}
.mashero__bg{position:absolute;inset:0;z-index:0;background:radial-gradient(120% 90% at 86% 0%,rgba(124,60,220,.13),transparent 55%),radial-gradient(90% 70% at 0% 100%,rgba(168,144,72,.10),transparent 60%),linear-gradient(180deg,#ffffff 0%,#FBFAFD 58%,#F4F1FA 100%)}
.mashero__bg::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(84,0,168,.06) 1px,transparent 1px);background-size:22px 22px;mask-image:linear-gradient(180deg,#000,transparent 80%)}
.mashero__in{position:relative;z-index:2;display:grid;grid-template-columns:1.02fr .98fr;gap:clamp(28px,4.5vw,60px);align-items:center;padding-block:clamp(14px,2vh,26px) clamp(26px,4vh,46px)}
.mashero__txt{max-width:600px}
.mashero__badge{display:inline-flex;align-items:center;gap:10px;padding:6px 14px 6px 7px;border-radius:999px;background:#fff;border:1px solid #cfe0ff;box-shadow:0 10px 26px -14px rgba(15,98,254,.4);font-size:13px;color:#3a2d55;font-weight:600}
.mashero__badge b{font-family:Arial,Helvetica,sans-serif;font-weight:800;letter-spacing:1px;background:linear-gradient(135deg,#0f62fe,#0043ce);color:#fff;padding:6px 11px;border-radius:999px;font-size:15px}
.mashero h1{margin:20px 0 0;font-size:clamp(31px,4.8vw,55px);line-height:1.14;font-weight:800;letter-spacing:-.5px;color:#1c1230}
.mashero h1 .u{background:linear-gradient(100deg,#5400a8,#9c8440);-webkit-background-clip:text;background-clip:text;color:transparent}
.mashero__sub{margin:20px 0 0;font-size:clamp(15.5px,1.5vw,18px);line-height:1.78;color:#5c5470;max-width:566px}
.mashero__cta{display:flex;flex-wrap:wrap;gap:14px;margin-top:28px}
.mashero__cta .btn:not(.btn--gold){background:#fff;color:#3a2d55;border:1px solid #e3dfec}
.mashero__cta .btn:not(.btn--gold):hover{border-color:#5400a8;color:#5400a8}
.mashero__cred{margin:20px 0 0;font-size:12.5px;line-height:1.6;color:#7a7288;max-width:520px;padding-inline-start:14px;border-inline-start:2px solid #9c8440}
.mashero__art{position:relative}
.mashero__screen{position:relative;border-radius:16px;padding:12px;background:linear-gradient(160deg,#ffffff,#f3eefc);border:1px solid #e7e0f4;box-shadow:0 45px 90px -45px rgba(50,20,90,.4)}
.mashero__screen .mk{position:static!important;display:block!important;opacity:1!important;transform:none!important;inset:auto!important;width:100%;box-shadow:0 18px 40px -26px rgba(50,20,90,.35)}
.mashero__chip{position:absolute;inset-block-start:-14px;inset-inline-start:-14px;display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;background:#fff;color:#3a2d55;font-size:12.5px;font-weight:700;box-shadow:0 14px 30px -14px rgba(50,20,90,.3);z-index:3;border:1px solid #efeaf8}
.mashero__chip .rf-ico{width:16px;height:16px;color:#7c3cdc}
.mashero__adv{position:relative;z-index:2;list-style:none;margin:0;padding:22px 0 6px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px 26px;border-top:1px solid #e9e5f2}
.mashero__adv li{display:flex;align-items:center;gap:11px;font-size:14.5px;color:#33284d;font-weight:600}
.mashero__adv .rf-ico{width:20px;height:20px;color:#5400a8;flex:0 0 auto}
@media (max-width:980px){.mashero__in{grid-template-columns:1fr;gap:32px}.mashero__art{order:2}.mashero__txt{order:1;max-width:none}.mashero__adv{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.mashero__adv{grid-template-columns:1fr;gap:12px}}

/* ═══ بطاقات الميزات التنافسية — ماس ═══ */
.masadv{margin-top:clamp(26px,4vh,42px);display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.masadv__c{background:#fff;border:1px solid #ece7f5;border-radius:16px;padding:24px 22px;box-shadow:0 18px 42px -30px rgba(50,20,90,.35);transition:transform .25s var(--ease,ease),box-shadow .25s}
.masadv__c:hover{transform:translateY(-4px);box-shadow:0 28px 54px -28px rgba(84,0,168,.4)}
.masadv__i{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:13px;background:linear-gradient(150deg,#efe7fb,#f7f2ff);color:#5400a8;margin-bottom:16px}
.masadv__i .rf-ico{width:24px;height:24px}
.masadv__c b{display:block;font-size:17px;font-weight:800;color:#1c1230;line-height:1.35}
.masadv__c p{margin:9px 0 0;font-size:14px;color:#5c5470;line-height:1.7}
@media (max-width:860px){.masadv{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.masadv{grid-template-columns:1fr}}

/* تفاعل الضغط: الأزرار تتحوّل ذهبية عند النقر */
.btn:active,.btn:active:hover{background:linear-gradient(135deg,#cbab4f,#a8863a)!important;border-color:#a8863a!important;color:#1c1230!important;transform:translateY(1px)}
