/* ==========================================================================
   TURBO — نظام التصميم
   هوية تيربو الرسمية (الأحمر F40002 + الفحمي) بنسخة نهارية فاتحة،
   بإحساس مستقبلي: طبقات زجاجية، عمق ثلاثي الأبعاد، وحبيبات ناعمة.
   ========================================================================== */

/* ---------- 1. الجذور ---------- */
:root {
  /* علامة «وصل ملف التنسيق وطُبِّق» — يقرأها حارس التنسيق في <head> */
  --css-ok: 1;

  /* الهوية */
  --red: #f40002;
  --red-2: #c30004;
  --red-3: #8f0003;
  --red-wash: #fff2f2;
  --red-line: #ffd9d9;

  /* الحبر */
  --ink: #08080b;
  --ink-2: #2c2f38;
  --ink-3: #61667a;
  --ink-4: #8d93a6;

  /* الأسطح */
  --bg: #fafafc;
  --bg-2: #f2f3f7;
  --card: #ffffff;
  --line: #e8e9f0;
  --line-2: #d7d9e4;

  /* اليوم الوطني */
  --green: #0f7a43;
  --green-2: #0a5e33;
  --green-wash: #eefaf2;

  /* الخطوط */
  --f-display: "Zain", "Space Grotesk", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --f-num: "Space Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif;

  /* المقاييس */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --wrap: 1220px;
  --pad: clamp(18px, 4vw, 40px);

  /* الظلال — طبقات ناعمة تعطي عمقاً بلا ثقل */
  --sh-1: 0 1px 2px rgba(10, 12, 24, 0.04), 0 2px 8px rgba(10, 12, 24, 0.04);
  --sh-2: 0 2px 6px rgba(10, 12, 24, 0.05), 0 12px 28px rgba(10, 12, 24, 0.07);
  --sh-3: 0 4px 12px rgba(10, 12, 24, 0.06), 0 26px 60px rgba(10, 12, 24, 0.11);
  --sh-red: 0 10px 30px rgba(244, 0, 2, 0.24), 0 2px 6px rgba(244, 0, 2, 0.16);

  --ease: cubic-bezier(0.22, 0.75, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  /* الهيدر الثابت + الأقسام العريضة تحتاج قصّ أفقي — لا تُزال */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}
img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--red);
  color: #fff;
}

/* الأرقام والرموز اللاتينية داخل نص عربي */
.num {
  font-family: var(--f-num);
  font-feature-settings: "tnum" 1;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  letter-spacing: 0.01em;
}

/* ---------- 2. الطباعة ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.h-display {
  font-size: clamp(2.3rem, 6.4vw, 4.6rem);
  line-height: 1.08;
}
.h-1 {
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
}
.h-2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}
.h-3 {
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
}

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1rem, 1.55vw, 1.17rem);
  color: var(--ink-2);
  line-height: 1.85;
}

.muted {
  color: var(--ink-3);
}

.en {
  font-family: var(--f-body);
  direction: ltr;
  unicode-bidi: isolate;
  display: block;
  font-size: 0.86em;
  color: var(--ink-4);
  letter-spacing: 0.005em;
}
/* السطر اللاتيني داخل صفحة عربية: اتجاهه LTR لكن محاذاته تتبع الأب،
   وإلا انفصل عن العنوان العربي فوقه وبدا كأنه خارج البطاقة. */
[dir="rtl"] .en {
  text-align: right;
}
[dir="ltr"] .ar {
  text-align: left;
}
/* الأرقام الكبيرة عناصر block تحمل .num (اتجاهها LTR)، فتنحاز يساراً
   داخل صفحة عربية ما لم تُحاذَ صراحةً مع النص الذي تحتها. */
[dir="rtl"] .stat b,
[dir="rtl"] .why-n,
[dir="rtl"] .svc-no,
[dir="rtl"] .pg-inc-n,
[dir="rtl"] .pg-list-n,
[dir="rtl"] .hero-trust b {
  text-align: right;
}

/* السطر العلوي الصغير فوق كل عنوان قسم */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-num);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ---------- 3. التخطيط ---------- */
.wrap {
  width: min(100% - var(--pad) * 2, var(--wrap));
  margin-inline: auto;
}

section {
  position: relative;
}

.sect {
  position: relative;
  padding-block: clamp(64px, 9vw, 116px);
}
/* الأقسام ذات الخلفية المصوّرة تحتاج محتواها فوق الصورة */
.sect > .wrap {
  position: relative;
  z-index: 1;
}
.sect-tight {
  padding-block: clamp(46px, 6vw, 72px);
}

.sect-head {
  max-width: 660px;
  margin-bottom: clamp(34px, 5vw, 56px);
}
.sect-head.center {
  margin-inline: auto;
  text-align: center;
}
.sect-head p {
  margin-top: 14px;
}

/* خلفية فحمية للأقسام المميزة */
.dark {
  background: var(--ink);
  color: #fff;
}
.dark h1,
.dark h2,
.dark h3,
.dark h4 {
  color: #fff;
}
.dark .lead,
.dark .muted {
  color: #a8adbd;
}
.dark .en {
  color: #6f7589;
}

/* شبكة الحبيبات — لمسة فيلمية خفيفة تمنع الأسطح من الظهور "بلاستيكية" */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}

/* ---------- 4. الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.btn-red {
  background: linear-gradient(140deg, var(--red) 0%, var(--red-2) 100%);
  color: #fff;
  box-shadow: var(--sh-red);
}
.btn-red:hover {
  box-shadow: 0 16px 38px rgba(244, 0, 2, 0.3);
}

.btn-ink {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--sh-2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line-2);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.dark .btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-green {
  background: linear-gradient(140deg, var(--green) 0%, var(--green-2) 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(15, 122, 67, 0.26);
}

.btn-lg {
  padding: 17px 34px;
  font-size: 1.04rem;
}
.btn-block {
  width: 100%;
}

/* ---------- 5. الهيدر ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 90;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(250, 250, 252, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(10, 12, 24, 0.05);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand img {
  height: 27px;
  width: auto;
}
/* اسم المنشأة القانوني تحت اللوجو */
.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.brand-legal {
  display: flex;
  flex-direction: column;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-3);
  white-space: nowrap;
}
.brand-legal [lang="en"] {
  font-family: var(--f-num);
  font-weight: 500;
  font-size: 0.92em;
  color: var(--ink-3);
}

/* بطاقة المنشأة في قسم من نحن */
.legal-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.legal-card img {
  height: 30px;
  width: auto;
  flex: none;
}
.legal-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-inline-start: 18px;
  border-inline-start: 1px solid var(--line);
}
.legal-names b {
  font-size: 0.98rem;
  line-height: 1.4;
}
.legal-names [lang="en"] {
  font-family: var(--f-num);
  font-size: 0.84rem;
  color: var(--ink-3);
}
.legal-cr {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.legal-cr .num {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}
@media (max-width: 520px) {
  .legal-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .legal-names {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}
.brand-tag {
  font-family: var(--f-num);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-4);
  border-inline-start: 1px solid var(--line-2);
  padding-inline-start: 11px;
  line-height: 1.45;
  max-width: 96px;
}

.links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.links a {
  padding: 9px 13px;
  border-radius: 100px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}
.links a:hover {
  color: var(--red);
  background: var(--red-wash);
}
/* القسم الذي يقرأه الزائر الآن — صفحة واحدة طويلة بلا هذا لا يعرف أين هو */
.links a.here {
  color: var(--red);
  background: var(--red-wash);
}
.links a.here::after {
  content: "";
  display: block;
  height: 2px;
  width: 18px;
  margin: 3px auto -4px;
  border-radius: 2px;
  background: var(--red);
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-family: var(--f-num);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s, color 0.2s;
}
.lang:hover {
  border-color: var(--ink);
  color: var(--red);
}
.lang svg {
  width: 15px;
  height: 15px;
  opacity: 0.6;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 17px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.burger span::before {
  top: -6px;
}
.burger span::after {
  top: 6px;
}
.burger[aria-expanded="true"] span {
  background: transparent;
}
.burger[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}
.burger[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 6. الهيرو ---------- */
.hero {
  position: relative;
  padding-top: clamp(112px, 15vw, 164px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}

/* الهالة الحمراء + الشبكة المستقبلية خلف الهيرو */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      52rem 34rem at 78% -6%,
      rgba(244, 0, 2, 0.14) 0%,
      rgba(244, 0, 2, 0) 62%
    ),
    radial-gradient(
      44rem 30rem at 6% 16%,
      rgba(11, 13, 30, 0.07) 0%,
      rgba(11, 13, 30, 0) 60%
    ),
    linear-gradient(180deg, #fff 0%, var(--bg) 58%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(
    60% 60% at 50% 30%,
    #000 0%,
    transparent 78%
  );
  mask-image: radial-gradient(60% 60% at 50% 30%, #000 0%, transparent 78%);
  background-image: linear-gradient(
      to inset-inline-start,
      rgba(11, 13, 30, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(11, 13, 30, 0.05) 1px, transparent 1px);
  background-size: 62px 62px;
}
/* الصاروخ كعلامة مائية ضخمة — عنصر الهوية الأول لدى تيربو */
.hero-rocket {
  position: absolute;
  inset-inline-end: -4%;
  top: 2%;
  width: clamp(280px, 34vw, 520px);
  color: rgba(244, 0, 2, 0.05);
  /* المسار داخل الـSVG بلا fill، فبدون هذا السطر يُرسم أسود صلباً فوق البطاقة */
  fill: currentColor;
  z-index: 0;
  pointer-events: none;
}

.hero-in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 8px 8px 8px 16px;
  padding-inline: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  box-shadow: var(--sh-1);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.hero-badge b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-wash);
  color: var(--green);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 800;
}
.hero-badge b svg {
  width: 14px;
  height: 14px;
}

.hero h1 .accent {
  color: var(--red);
}
.hero h1 .stroke {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}

.hero-sub {
  margin-top: 20px;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--ink-2);
  line-height: 1.9;
  max-width: 54ch;
}
.hero-sub .en {
  margin-top: 8px;
  font-size: 0.9rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-trust div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hero-trust b {
  font-family: var(--f-num);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.hero-trust span {
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* --- بطاقة العرض ثلاثية الأبعاد --- */
.hero-art {
  position: relative;
  perspective: 1400px;
  min-height: 440px;
  min-width: 0; /* وإلا وسّع الكاروسيل العمود بعرض شرائحه الثلاث مجتمعة */
  display: grid;
  place-items: center;
}

.offer-card {
  position: relative;
  width: min(100%, 400px);
  border-radius: var(--r-xl);
  padding: 30px 28px 26px;
  background: linear-gradient(165deg, #131318 0%, #08080b 62%, #1a0204 100%);
  color: #fff;
  box-shadow: 0 30px 70px rgba(8, 8, 14, 0.36),
    0 6px 18px rgba(8, 8, 14, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -8deg));
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.offer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      26rem 16rem at 88% -12%,
      rgba(244, 0, 2, 0.5) 0%,
      transparent 60%
    ),
    radial-gradient(
      20rem 14rem at 4% 108%,
      rgba(15, 122, 67, 0.34) 0%,
      transparent 62%
    );
  z-index: -1;
}
.offer-card::after {
  content: "";
  position: absolute;
  inset-inline-start: -60%;
  top: -40%;
  width: 80%;
  height: 180%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.11) 48%,
    transparent 72%
  );
  transform: rotate(14deg);
  z-index: -1;
}

.offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.offer-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  padding: 6px 13px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.offer-tag svg {
  width: 14px;
  height: 14px;
  color: #59e39b;
}
.offer-card .logo-w {
  height: 19px;
  width: auto;
  opacity: 0.95;
}

.offer-price {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  transform: translateZ(40px);
}
.offer-price .amt {
  font-family: var(--f-num);
  font-size: 4.3rem;
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
  background: linear-gradient(170deg, #fff 30%, #ff9c9d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.offer-price .cur {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  padding-bottom: 8px;
}
.offer-was {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #9aa0b2;
}
.offer-was s {
  color: #6f7589;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}
.offer-was b {
  color: #59e39b;
  font-weight: 700;
}

.offer-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  transform: translateZ(26px);
}
.offer-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.89rem;
  color: #d6d9e3;
  line-height: 1.6;
}
.offer-list svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 4px;
  color: #59e39b;
}

.offer-cd {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateZ(20px);
}
.offer-cd > span {
  display: block;
  font-size: 0.76rem;
  color: #8d93a6;
  margin-bottom: 10px;
}
.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  direction: ltr;
}
.cd-cell {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 9px 4px;
  text-align: center;
}
.cd-cell b {
  display: block;
  font-family: var(--f-num);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.cd-cell span {
  font-size: 0.62rem;
  color: #8d93a6;
  letter-spacing: 0.04em;
}

.offer-card .btn {
  margin-top: 20px;
  transform: translateZ(34px);
}

/* --- كاروسيل عروض اليوم الوطني: نفس بطاقة العرض، ثلاث شرائح تتبدّل --- */
.offer-deck {
  position: relative;
  width: min(100%, 400px);
  min-width: 0;
}
/* الميلان على المجموعة كلها — الأسهم والنقاط تبقى مستوية ليسهل ضغطها */
.deck-view {
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -8deg));
  transition: transform 0.35s var(--ease);
}
/* الشرائح الثلاث فوق بعضها في خانة واحدة: الارتفاع = أطول بطاقة،
   والجانبيّتان تنزاحان يميناً ويساراً خلف البطاقة الظاهرة */
.deck-track {
  display: grid;
  align-items: stretch;
}
.offer-card.deck-slide {
  grid-area: 1 / 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 30px 70px rgba(8, 8, 14, 0.36), 0 6px 18px rgba(8, 8, 14, 0.22);
  overflow: hidden;
  transform: translateX(0) scale(1);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease),
    filter 0.5s var(--ease);
}
.deck-slide.is-on {
  z-index: 3;
}
.deck-slide.is-side {
  z-index: 1;
  opacity: 0.55;
  filter: saturate(0.6) brightness(0.7);
  pointer-events: none;
}
.deck-slide.is-prev {
  transform: translateX(25%) scale(0.82);
}
.deck-slide.is-next {
  transform: translateX(-25%) scale(0.82);
}
/* أي شريحة أبعد من الجارتين تختفي خلف الظاهرة بلا قفزة */
.deck-slide.is-far {
  z-index: 0;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}
.deck-slide .offer-price,
.deck-slide .offer-list,
.deck-slide .btn {
  transform: none;
}
/* شريط أخضر وطني رفيع أعلى كل شريحة */
.deck-slide .offer-top {
  position: relative;
  padding-top: 4px;
}
.deck-slide .offer-top::before {
  content: "";
  position: absolute;
  inset-inline: -28px;
  top: -30px;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, #59e39b 55%, var(--red) 100%);
}
.offer-tag.nd-tag {
  background: rgba(15, 122, 67, 0.2);
  border-color: rgba(89, 227, 155, 0.34);
  color: #7ff0b7;
}
.offer-tag.nd-tag svg {
  color: #59e39b;
}
.offer-name {
  margin: 2px 0 0;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
}
.offer-limited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin: 12px 0 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ff8a8b;
  background: rgba(244, 0, 2, 0.12);
  border: 1px solid rgba(244, 0, 2, 0.28);
  border-radius: 100px;
  padding: 4px 11px;
}
.offer-fine {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #9aa0b2;
}
.deck-slide .offer-list {
  flex: 1 1 auto;
  align-content: start;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}
.deck-slide .btn svg {
  width: 17px;
  height: 17px;
}
.flag {
  font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
}

.deck-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}
.deck-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.deck-arrow svg {
  width: 17px;
  height: 17px;
}
/* في RTL: «السابق» يشير يميناً و«التالي» يشير يساراً */
.deck-arrow[data-dir="-1"] svg {
  transform: scaleX(-1);
}
.deck-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.deck-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.deck-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line-2);
  cursor: pointer;
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}
.deck-dot.on {
  width: 26px;
  border-radius: 100px;
  background: var(--red);
}
.deck-note {
  margin-top: 12px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* الشارة الصغيرة الطائرة بجانب البطاقة */
.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 15px;
  box-shadow: var(--sh-3);
  font-size: 0.82rem;
  font-weight: 700;
  animation: bob 5s ease-in-out infinite;
}
.float-chip i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--red-wash);
  color: var(--red);
  flex: none;
}
.float-chip i svg {
  width: 17px;
  height: 17px;
}
.float-chip small {
  display: block;
  font-weight: 500;
  color: var(--ink-3);
  font-size: 0.72rem;
}
/* الشريحتان تطفوان فوق حافتَي البطاقة لا فوق محتواها —
   السعر كان يختفي خلف الشريحة العلوية. */
.chip-a {
  inset-inline-start: -5%;
  top: -16px;
}
.chip-b {
  inset-inline-end: -4%;
  bottom: -16px;
  animation-delay: -2.4s;
}
/* مع الكاروسيل تحت البطاقة شريط تحكّم وسطر ملاحظة — لا مكان لشارة أسفلها */
.hero-art:has(.offer-deck) .chip-b {
  display: none;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ---------- 7. شريط العملاء المتحرك ---------- */
.marquee {
  position: relative;
  padding-block: 26px;
  border-block: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.marquee-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  margin-bottom: 18px;
}
.marquee-track {
  display: flex;
  gap: 54px;
  width: max-content;
  animation: slide 46s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.3s, opacity 0.3s;
}
.marquee-track img:hover {
  filter: none;
  opacity: 1;
}
@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* في RTL يجب أن يستمر الشريط بنفس الاتجاه البصري */
[dir="rtl"] .marquee-track {
  animation-name: slide-rtl;
}
@keyframes slide-rtl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  inset-inline-start: 0;
  background: linear-gradient(to inset-inline-end, #fff, transparent);
  background: linear-gradient(90deg, #fff, transparent);
}
.marquee::after {
  inset-inline-end: 0;
  background: linear-gradient(270deg, #fff, transparent);
}

/* ---------- 8. من نحن + الأرقام ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.quote-box {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 38px);
  box-shadow: var(--sh-2);
}
/* الشريط الأحمر على حافة البداية داخل الصندوق نفسه */
.quote-box {
  overflow: hidden;
}
.quote-box::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red) 0%, transparent 85%);
}
.quote-mark {
  width: 40px;
  height: 40px;
  color: var(--red);
  margin-bottom: 16px;
}

/* شريط أرقام بفواصل شعرية — بلا صناديق مكرّرة */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.stat {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px) clamp(6px, 1.4vw, 18px);
  transition: background 0.35s var(--ease);
}
.stat:nth-child(even) {
  border-inline-start: 1px solid var(--line);
}
.stat:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}
.stat:hover {
  background: var(--red-wash);
}
.stat b {
  display: block;
  font-family: var(--f-num);
  font-size: clamp(2.1rem, 3.8vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.02em;
}
.stat span {
  display: block;
  margin-top: 9px;
  font-size: 0.88rem;
  color: var(--ink-2);
  font-weight: 600;
}
.stat .en,
.stat .ar {
  font-size: 0.72rem;
  margin-top: 2px;
  font-weight: 500;
}

/* الرؤية والرسالة — كتلتان بخط علوي، لا بطاقتان */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(28px, 3.4vw, 42px);
}
.vm {
  position: relative;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.vm:last-child {
  border-top-color: var(--red);
}
.vm-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--red-wash);
  border: 1px solid var(--red-line);
  color: var(--red);
  margin-bottom: 16px;
}
.vm-icon svg {
  width: 22px;
  height: 22px;
}
.vm h3 {
  margin-bottom: 4px;
  font-size: 1.12rem;
}
.vm p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.85;
}

/* ---------- 9. لماذا تيربو — أعمدة بفواصل شعرية فوق صورة حقيقية ---------- */
/* صورة فعالية حقيقية خلف القسم بدل سطح أسود مسطّح */
.why-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.why-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: grayscale(0.3) contrast(1.08);
}
.why-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 11, 0.94) 0%,
    rgba(8, 8, 11, 0.68) 46%,
    rgba(8, 8, 11, 0.96) 100%
  );
}

.why-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.why {
  position: relative;
  padding: clamp(26px, 3vw, 40px) clamp(18px, 2.2vw, 30px);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.4s var(--ease);
}
.why:first-child {
  border-inline-start: 0;
}
.why:hover {
  background: rgba(255, 255, 255, 0.05);
}
/* شريط أحمر يرتفع من أسفل العمود عند التحويم */
.why::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: var(--origin, right);
  transition: transform 0.45s var(--ease);
}
[dir="ltr"] .why::after {
  transform-origin: left;
}
.why:hover::after {
  transform: scaleX(1);
}

.why-n {
  display: block;
  font-family: var(--f-num);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(255, 255, 255, 0.4);
  margin-bottom: 18px;
  transition: color 0.4s var(--ease), -webkit-text-stroke-color 0.4s var(--ease);
}
.why:hover .why-n {
  color: var(--red);
  -webkit-text-stroke-color: var(--red);
}
.why-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(244, 0, 2, 0.14);
  border: 1px solid rgba(244, 0, 2, 0.4);
  color: #ff5b5c;
  margin-bottom: 16px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.why:hover .why-ico {
  background: var(--red);
  color: #fff;
  transform: translateY(-3px);
}
.why-ico svg {
  width: 23px;
  height: 23px;
}
.why h3 {
  font-size: 1.06rem;
}
.why .en {
  margin-top: 3px;
  font-size: 0.75rem;
}
.why p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #a8adbd;
  line-height: 1.78;
}

/* ---------- 10. الخدمات — قائمة تحريرية لا كروت مكرّرة ---------- */
.svc-grid {
  display: block;
  margin-top: 10px;
  border-top: 1px solid var(--line-2);
}
.svc {
  position: relative;
  display: grid;
  grid-template-columns: clamp(58px, 6vw, 96px) minmax(0, 1fr) minmax(0, 1.08fr) 40px;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
  padding: clamp(20px, 2.4vw, 30px) clamp(6px, 1.4vw, 18px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: padding-inline 0.45s var(--ease);
  /* الصف صار رابطاً لصفحة الخدمة المستقلة */
  color: inherit;
  text-decoration: none;
}
.svc:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
  border-radius: var(--r-sm);
}
/* لوح التعبئة خلف الصف — يوضّح الصف المحوّم بلا إزاحة أي عنصر */
.svc::before {
  content: "";
  position: absolute;
  inset: -1px calc(-1 * clamp(10px, 1.6vw, 22px));
  z-index: -1;
  border-radius: var(--r);
  background: var(--red-wash);
  /* الشريط الأحمر على حافة البداية: يمين في RTL ويسار في LTR */
  box-shadow: inset -3px 0 0 var(--red);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
[dir="ltr"] .svc::before {
  box-shadow: inset 3px 0 0 var(--red);
}
.svc:hover::before {
  opacity: 1;
}
.svc:hover {
  padding-inline: clamp(14px, 2.2vw, 30px);
}

.svc-no {
  font-family: var(--f-num);
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--line-2);
  transition: color 0.4s var(--ease), -webkit-text-stroke-color 0.4s var(--ease);
}
.svc:hover .svc-no {
  color: var(--red);
  -webkit-text-stroke-color: var(--red);
}

.svc-head {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.svc-ico {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  color: var(--red);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    background 0.4s var(--ease);
}
.svc:hover .svc-ico {
  transform: translateY(-3px) rotate(-6deg);
  border-color: var(--red-line);
  background: linear-gradient(155deg, #fff 0%, var(--red-wash) 100%);
}
.svc-ico svg {
  width: 25px;
  height: 25px;
}
.svc h3 {
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  line-height: 1.32;
}
.svc .en {
  margin-top: 3px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.svc p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.8;
}
.svc-go {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    background 0.3s, color 0.3s, border-color 0.3s;
}
[dir="ltr"] .svc-go {
  transform: translateX(-10px);
}
.svc-go svg {
  width: 18px;
  height: 18px;
}
.svc:hover .svc-go {
  opacity: 1;
  transform: translateX(0);
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
/* على الشاشات اللمسية لا يوجد تحويم: بلا هذا يبقى الصف بلا أي إشارة أنه رابط،
   فيظن الزائر أنها قائمة نصية ولا يفتح صفحة الخدمة أصلاً. */
@media (hover: none) and (min-width: 1081px) {
  .svc-go {
    opacity: 1;
    transform: none;
    border-color: var(--red-line);
    color: var(--red);
  }
}
.svc:active::before {
  opacity: 1;
}

/* ---------- 11. الأعمال — فسيفساء غير متماثلة، الصورة هي البطل ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.work {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
  min-height: 300px;
  box-shadow: var(--sh-1);
  transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.work:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
}
.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.9s var(--ease);
}
.work:hover img {
  transform: scale(1.06);
}
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 6, 10, 0.9) 0%,
    rgba(6, 6, 10, 0.5) 34%,
    rgba(6, 6, 10, 0.06) 72%,
    transparent 100%
  );
  transition: opacity 0.45s;
}
.work:hover::after {
  opacity: 0.88;
}
.work-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(20px, 2.2vw, 30px);
  color: #fff;
  transform: translateY(0);
  transition: transform 0.45s var(--ease);
}
.work:hover .work-cap {
  transform: translateY(-4px);
}
.work-cap span {
  display: inline-block;
  font-family: var(--f-num);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(244, 0, 2, 0.94);
  border-radius: 100px;
  padding: 4px 11px;
  margin-bottom: 10px;
}
.work-cap h3 {
  color: #fff;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.38;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.work-cap p {
  margin-top: 6px;
  font-size: 0.86rem;
  color: #cdd1dd;
  /* مخفي حتى التحويم على الشاشات الكبيرة — العنوان وحده يكفي في السكون */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease),
    margin-top 0.45s var(--ease);
}
.work:hover .work-cap p {
  max-height: 60px;
  opacity: 1;
}

/* شارة "شاهد" تظهر في زاوية البطاقة */
.work-eye {
  position: absolute;
  z-index: 2;
  top: 18px;
  inset-inline-end: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.work-eye svg {
  width: 18px;
  height: 18px;
}
.work:hover .work-eye {
  opacity: 1;
  transform: scale(1);
}

.w-4 { grid-column: span 4; }
.w-5 { grid-column: span 5; }
.w-6 { grid-column: span 6; }
.w-7 { grid-column: span 7; }
.w-8 { grid-column: span 8; }
.w-12 { grid-column: span 12; }
/* بطاقتان طويلتان تكسران رتابة الصف الواحد */
.w-tall {
  min-height: clamp(360px, 36vw, 470px);
}

/* ---------- 12. الأفلام ---------- */
.film-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.film-tab {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #a8adbd;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.film-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.film-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(244, 0, 2, 0.3);
}

/* شريط أفقي بالسحب بدل جدار من 18 مربعاً متطابقاً */
.film-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  /* مساحة تنفّس على الأطراف حتى لا تلتصق البطاقة بحافة الشاشة */
  margin-inline: calc(-1 * var(--pad));
  padding-inline: var(--pad);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
.film-grid::-webkit-scrollbar {
  height: 6px;
}
.film-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 100px;
}
.film-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}
.film-grid > * {
  flex: 0 0 clamp(250px, 29vw, 360px);
  scroll-snap-align: start;
}
.film-hint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: #7b8195;
  display: flex;
  align-items: center;
  gap: 8px;
}
.film-hint svg {
  width: 16px;
  height: 16px;
}
.film {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #111117;
  aspect-ratio: 16 / 10;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.film:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 0, 2, 0.6);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.film img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.4s;
  opacity: 0.82;
}
.film:hover img {
  transform: scale(1.06);
  opacity: 1;
}
.film::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 5, 9, 0.9) 0%,
    rgba(5, 5, 9, 0.2) 55%,
    transparent 100%
  );
}
.film-play {
  position: absolute;
  inset-inline-end: 16px;
  top: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(244, 0, 2, 0.94);
  color: #fff;
  box-shadow: 0 6px 20px rgba(244, 0, 2, 0.45);
  transition: transform 0.35s var(--ease);
}
.film:hover .film-play {
  transform: scale(1.12);
}
.film-play svg {
  width: 17px;
  height: 17px;
  margin-inline-start: 2px;
}
.film-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  padding: 18px;
}
.film-cap h3 {
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.4;
}
.film-cap span {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: #9aa0b2;
}

/* ---------- 13. عرض اليوم الوطني ---------- */
.nd {
  position: relative;
  background: linear-gradient(170deg, #fff 0%, var(--green-wash) 100%);
  overflow: hidden;
}
.nd::before {
  content: "";
  position: absolute;
  inset-inline-end: -8%;
  top: -10%;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(15, 122, 67, 0.12) 0%,
    transparent 64%
  );
  pointer-events: none;
}
.nd .eyebrow {
  color: var(--green);
}

.cmp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}
.cmp-card {
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  background: #fff;
  position: relative;
  overflow: hidden;
}
.cmp-card.win {
  border-color: var(--green);
  box-shadow: 0 20px 50px rgba(15, 122, 67, 0.16);
}
.cmp-card.win::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), #48c88a);
}
.cmp-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 100px;
  background: var(--bg-2);
  color: var(--ink-3);
  margin-bottom: 16px;
}
.cmp-card.win .cmp-tag {
  background: var(--green);
  color: #fff;
}
.cmp-price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.cmp-price b {
  font-family: var(--f-num);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.cmp-card.win .cmp-price b {
  color: var(--green);
}
.cmp-price span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-3);
  padding-bottom: 6px;
}
.cmp-note {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--ink-3);
}
.cmp-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.cmp-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--ink-2);
  line-height: 1.65;
}
.cmp-list svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 4px;
}
.cmp-list .yes {
  color: var(--green);
}
.cmp-list .no {
  color: var(--ink-4);
}
.cmp-list .off {
  color: var(--ink-4);
  text-decoration: line-through;
  text-decoration-color: var(--line-2);
}

.save-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 20px 26px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--sh-3);
}
.save-bar b {
  font-family: var(--f-num);
  font-size: 1.6rem;
  color: #59e39b;
}
.save-bar p {
  color: #a8adbd;
  font-size: 0.9rem;
}

/* ---------- 14. خطوات العمل — مسار متصل لا أربع بطاقات ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.6vw, 34px);
}
/* الخيط الذي يربط الخطوات ببعضها */
.steps::before {
  content: "";
  position: absolute;
  inset-inline: 6%;
  top: 23px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--line-2) 0 8px,
    transparent 8px 16px
  );
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  padding-top: 0;
  text-align: start;
}
.step-n {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.step:hover .step-n {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-4px);
}
.step h3 {
  font-size: 1.04rem;
}
.step p {
  margin-top: 8px;
  font-size: 0.89rem;
  color: var(--ink-3);
  line-height: 1.8;
}

/* ---------- 15. الشركاء ---------- */
/* شبكة بفواصل شعرية مشتركة — لا 22 صندوقاً منفصلاً */
.clients-grid {
  /* شبكة ثابتة الأعمدة تترك خلايا فارغة بإطارات في آخر صف (٢٢ شعاراً لا
     تقسّم على ٦). الالتفاف مع التوسيط يوزّع الصف الأخير بلا فراغ مرسوم. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  /* الخلفية بيضاء والخطوط من ظل كل خلية — وإلا ظهرت الخلايا الفارغة
     في آخر صف كمستطيلات رمادية. */
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.client {
  display: grid;
  place-items: center;
  flex: 0 1 calc(100% / 6 - 1px);
  min-width: 132px;
  min-height: 116px;
  padding: 20px 16px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  transition: background 0.35s var(--ease);
}
.client:hover {
  background: var(--red-wash);
}
.client img {
  max-height: 58px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.client:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.06);
}

/* ---------- 16. النماذج ---------- */
.forms-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--bg-2);
  border-radius: 100px;
  margin-bottom: 22px;
}
.tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.tab svg {
  width: 17px;
  height: 17px;
}
.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--sh-1);
}

.panel {
  display: none;
}
.panel.on {
  display: block;
  animation: fade 0.35s var(--ease);
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 38px);
  box-shadow: var(--sh-2);
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: block;
}
.field.full {
  grid-column: 1 / -1;
}
.field > span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.field > span i {
  color: var(--red);
  font-style: normal;
}

.inp,
select.inp,
textarea.inp {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}
.inp::placeholder {
  color: var(--ink-4);
}
.inp:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(244, 0, 2, 0.1);
}
textarea.inp {
  min-height: 108px;
  resize: vertical;
  line-height: 1.7;
}
select.inp {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2361667a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 17px;
  background-position: left 14px center;
  padding-inline-end: 15px;
  padding-inline-start: 40px;
}
[dir="ltr"] select.inp {
  background-position: right 14px center;
  padding-inline-start: 15px;
  padding-inline-end: 40px;
}

/* اختيار الوسيلة / الباقة — راديو على شكل بطاقات */
.pick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 9px;
}
.pick-item {
  position: relative;
}
.pick-item input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.pick-lbl {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  background: #fff;
  line-height: 1.35;
}
.pick-lbl svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--ink-3);
  transition: color 0.2s;
}
.pick-item input:checked + .pick-lbl {
  border-color: var(--red);
  background: var(--red-wash);
  color: var(--red-2);
  box-shadow: 0 0 0 3px rgba(244, 0, 2, 0.09);
}
.pick-item input:checked + .pick-lbl svg {
  color: var(--red);
}
.pick-item input:focus-visible + .pick-lbl {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* أوقات المواعيد */
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  transition: opacity 0.3s;
}
.slot {
  position: relative;
}
.slot input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.slot-lbl {
  display: grid;
  place-items: center;
  padding: 11px 6px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s var(--ease);
}
.slot input:checked + .slot-lbl {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: var(--sh-red);
}
.slot input:disabled + .slot-lbl {
  background: var(--bg-2);
  color: var(--ink-4);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: var(--line-2);
}
.slot-hint {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-top: 9px;
}

.form-msg {
  display: none;
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.7;
}
.form-msg.ok {
  display: block;
  background: var(--green-wash);
  border: 1px solid #b9e8cd;
  color: var(--green-2);
}
.form-msg.err {
  display: block;
  background: #fff1f1;
  border: 1px solid var(--red-line);
  color: var(--red-2);
  font-weight: 600;
}
.form-msg .ref {
  font-family: var(--f-num);
  font-weight: 700;
  background: #fff;
  border: 1px dashed currentColor;
  border-radius: 8px;
  padding: 2px 9px;
  display: inline-block;
  margin-inline: 3px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-4);
  margin-top: 14px;
  text-align: center;
  line-height: 1.7;
}

/* اللوح الجانبي بجانب النماذج */
.aside-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.4vw, 36px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.aside-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    24rem 18rem at 100% 0%,
    rgba(244, 0, 2, 0.34) 0%,
    transparent 60%
  );
}
.aside-card h3 {
  color: #fff;
}
.aside-card > p {
  margin-top: 12px;
  color: #a8adbd;
  font-size: 0.94rem;
}
.aside-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.aside-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.aside-list i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--red);
  flex: none;
}
.aside-list i svg {
  width: 17px;
  height: 17px;
}
.aside-list b {
  display: block;
  font-size: 0.93rem;
  font-weight: 700;
}
.aside-list span {
  display: block;
  font-size: 0.84rem;
  color: #8d93a6;
  margin-top: 2px;
}
.aside-contact {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 10px;
}
.aside-contact a {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.92rem;
  color: #d6d9e3;
  transition: color 0.2s;
}
.aside-contact a:hover {
  color: #fff;
}
.aside-contact svg {
  width: 17px;
  height: 17px;
  color: var(--red);
  flex: none;
}

/* ---------- 17. تتبّع الطلب ---------- */
.track-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 36px);
  box-shadow: var(--sh-2);
  max-width: 760px;
  margin-inline: auto;
}
.track-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.track-row .inp {
  flex: 1;
  font-family: var(--f-num);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.track-res {
  display: none;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-2);
}
.track-res.on {
  display: block;
}
.track-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.track-head b {
  font-size: 1rem;
}
.chip {
  background: var(--green-wash);
  color: var(--green-2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 700;
}
.track-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.track-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding-block: 9px;
}
.track-steps li::before {
  content: "";
  position: absolute;
  inset-inline-start: 11px;
  top: 30px;
  bottom: -9px;
  width: 2px;
  background: var(--line);
}
.track-steps li:last-child::before {
  display: none;
}
.track-steps .dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: #fff;
  flex: none;
  z-index: 1;
  color: #fff;
}
.track-steps .dot svg {
  width: 12px;
  height: 12px;
}
.track-steps .lbl {
  font-size: 0.93rem;
  color: var(--ink-4);
}
.track-steps .done .dot {
  background: var(--green);
  border-color: var(--green);
}
.track-steps .done .lbl {
  color: var(--ink-2);
}
.track-steps .cur .dot {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(244, 0, 2, 0.14);
}
.track-steps .cur .lbl {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- 18. الأسئلة الشائعة ---------- */
.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin-inline: auto;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq details[open] {
  border-color: var(--red-line);
  box-shadow: var(--sh-1);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--red);
}
.faq summary::after {
  content: "";
  width: 11px;
  height: 11px;
  flex: none;
  border-inline-end: 2.2px solid currentColor;
  border-bottom: 2.2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.28s var(--ease);
  margin-top: -4px;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.faq .faq-a {
  padding: 0 22px 20px;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.85;
}

/* ---------- 19. المشاركة ---------- */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.share a,
.share button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.share a:hover,
.share button:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  color: var(--red);
  box-shadow: var(--sh-2);
}
.share svg {
  width: 20px;
  height: 20px;
}

/* ---------- 20. الفوتر ---------- */
.foot {
  background: var(--ink);
  color: #a8adbd;
  padding-block: clamp(44px, 6vw, 70px) 26px;
  position: relative;
  overflow: hidden;
}
.foot::before {
  content: "";
  position: absolute;
  inset-inline-start: -10%;
  bottom: -40%;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(244, 0, 2, 0.16) 0%,
    transparent 62%
  );
  pointer-events: none;
}
.foot-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}
.foot h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.foot a {
  font-size: 0.9rem;
  transition: color 0.2s;
}
.foot a:hover {
  color: #fff;
}
.foot-brand img {
  height: 26px;
  width: auto;
  margin-bottom: 16px;
}
.foot-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 34ch;
}
.foot-social {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.foot-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  transition: all 0.25s var(--ease);
}
.foot-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-3px);
}
.foot-social svg {
  width: 17px;
  height: 17px;
}
.foot-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}
.foot-contact svg {
  width: 16px;
  height: 16px;
  color: var(--red);
  flex: none;
  margin-top: 5px;
}
.foot-bottom {
  position: relative;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
}

/* ---------- 21. زر واتساب عائم ---------- */
.wa-fab {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42);
  transition: transform 0.28s var(--ease);
}
.wa-fab:hover {
  transform: scale(1.09);
}
/* الزر العائم يركب على عناصر الهيرو في أول شاشة — يظهر بعد ما يبدأ الزائر
   يتصفّح فعلاً، وهي كذلك اللحظة التي يحتاجه فيها. */
.wa-fab {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s;
}
body.scrolled .wa-fab {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* زر الرجوع لأعلى — الصفحة طويلة، ويقف فوق زر واتساب بنفس العمود */
.to-top {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 86px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  box-shadow: var(--sh-2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s, background 0.25s, color 0.25s, border-color 0.25s;
}
.to-top svg {
  width: 20px;
  height: 20px;
}
.to-top:hover,
.to-top:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
body.deep .to-top {
  opacity: 1;
  visibility: visible;
  transform: none;
}
/* بلا زر عائم (واتساب أو الشات بوت) يأخذ الرجوع لأعلى مكانه الطبيعي بالأسفل */
body:not(:has(.wa-fab)):not(:has(.chat-fab)) .to-top {
  bottom: 20px;
}
/* ونافذة الشات مفتوحة: زر الرجوع لأعلى يختفي حتى لا يركب عليها */
body.chat-open .to-top {
  opacity: 0;
  visibility: hidden;
}
.wa-fab svg {
  width: 27px;
  height: 27px;
}

/* ---------- 21ب. شات بوت الموقع ----------
   نافذة المحادثة تحلّ محل زر واتساب في نفس الزاوية. القياسات منطقية
   (inset-inline) فتعمل في RTL و LTR بلا نسخة ثانية، وعلى الجوال تفتح
   بملء الشاشة لأن نافذة 380px على شاشة 390px نافذة مقصوصة. */
.chat-fab {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--sh-red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s, background 0.25s;
}
body.scrolled .chat-fab,
body.chat-open .chat-fab {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.chat-fab:hover {
  background: var(--red-2);
  transform: scale(1.07);
}
.chat-fab svg {
  width: 26px;
  height: 26px;
  grid-area: 1 / 1;
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
}
.chat-fab-close {
  opacity: 0;
  transform: rotate(-45deg) scale(0.7);
}
body.chat-open .chat-fab-open {
  opacity: 0;
  transform: rotate(45deg) scale(0.7);
}
body.chat-open .chat-fab-close {
  opacity: 1;
  transform: none;
}
/* نقطة حمراء: وصل رد ونافذة الشات مقفلة */
.chat-fab-dot {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--green);
}

/* النافذة */
.chat-win {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 88px;
  z-index: 91;
  display: flex;
  flex-direction: column;
  width: min(384px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 140px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.98);
  transform-origin: bottom var(--chat-origin, right);
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), visibility 0.26s;
}
body.chat-open .chat-win {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}
.chat-head .chat-ava {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
}
.chat-head .chat-ava svg {
  width: 20px;
  height: 20px;
}
.chat-head b {
  display: block;
  font-family: var(--f-display);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
}
.chat-head .chat-sub {
  display: block;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.72);
}
.chat-head .chat-x {
  margin-inline-start: auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-head .chat-x:hover {
  background: rgba(255, 255, 255, 0.22);
}
.chat-head .chat-x svg {
  width: 17px;
  height: 17px;
}
.chat-live {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 5px;
  border-radius: 50%;
  background: #35d07f;
  vertical-align: middle;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 6px;
  /* أغمق قليلاً من فقاعات الرد البيضاء — بلا فرق واضح تبدو النافذة ورقة
     فارغة لا محادثة */
  background: var(--bg-2);
  scroll-behavior: smooth;
}
.chat-msg {
  max-width: 84%;
  margin-bottom: 10px;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  animation: chatIn 0.28s var(--ease) both;
}
.chat-msg.bot {
  margin-inline-end: auto;
  border: 1px solid var(--line);
  border-start-start-radius: 5px;
  background: var(--card);
  color: var(--ink-2);
}
.chat-msg.human {
  margin-inline-end: auto;
  border: 1px solid var(--red-line);
  border-start-start-radius: 5px;
  background: var(--red-wash);
  color: var(--ink);
}
.chat-msg.me {
  margin-inline-start: auto;
  border-start-end-radius: 5px;
  background: var(--ink);
  color: #fff;
}
.chat-msg b {
  font-weight: 600;
}
.chat-who {
  display: block;
  margin-bottom: 3px;
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--red-2);
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
/* مؤشّر الكتابة — ثلاث نقاط، نفس ما يتوقّعه أي مستخدم واتساب */
.chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 13px;
}
.chat-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-4);
  animation: chatDot 1.1s infinite ease-in-out;
}
.chat-typing i:nth-child(2) { animation-delay: 0.16s; }
.chat-typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes chatDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.chat-note {
  margin: 4px 0 10px;
  padding: 8px 11px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink-3);
  font-size: 0.79rem;
  text-align: center;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 14px 10px;
  background: var(--bg-2);
}
.chat-chip {
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chat-chip:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.chat-foot {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.chat-foot textarea {
  flex: 1;
  max-height: 92px;
  min-height: 42px;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  resize: none;
  transition: border-color 0.2s, background 0.2s;
}
.chat-foot textarea:focus {
  outline: 0;
  border-color: var(--red);
  background: var(--card);
}
.chat-send {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}
.chat-send:hover { background: var(--red-2); transform: scale(1.06); }
.chat-send:disabled { opacity: 0.45; cursor: default; transform: none; }
.chat-send svg { width: 19px; height: 19px; }
/* أيقونة الإرسال مرسومة باتجاه LTR — تُعكس في الصفحة العربية */
[dir="rtl"] .chat-send svg { transform: scaleX(-1); }

/* ---------- المرفقات: إرفاق ملف · تسجيل صوتي ----------
   الزرّان ثانويان بصرياً (شفافان، بلون النص) فيبقى زر الإرسال الأحمر هو
   الفعل الأول في الشريط — الإرفاق إضافة لا بديل. */
.chat-attach,
.chat-mic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chat-attach:hover,
.chat-mic:hover { background: var(--bg-2); color: var(--ink); }
.chat-attach svg,
.chat-mic svg { width: 20px; height: 20px; }
.chat-mic.rec {
  background: var(--red);
  color: #fff;
  animation: chatRec 1.3s infinite ease-in-out;
}
@keyframes chatRec {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(220, 38, 38, 0); }
}
/* شريط «جاري التسجيل» فوق الشريط السفلي: العدّاد يطمئن الزائر أن صوته
   يُسجَّل فعلاً، والإلغاء بجانبه مباشرة لا مخبّأ. */
.chat-rec {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  background: var(--red-wash);
  color: var(--ink-2);
  font-size: 0.82rem;
}
.chat-rec[hidden] { display: none; }
.chat-rec b { font-weight: 600; }
.chat-rec-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  animation: chatDot 1.1s infinite ease-in-out;
}
.chat-rec-t {
  margin-inline-start: auto;
  font-family: var(--font-num, inherit);
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.chat-rec-x {
  padding: 5px 10px;
  border: 1px solid var(--red-line);
  border-radius: 999px;
  background: var(--card);
  color: var(--red-2);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chat-rec-x:hover { background: var(--red); color: #fff; }
/* معاينة الصورة التي أرسلها الزائر داخل فقاعته */
.chat-shot {
  display: block;
  width: 100%;
  max-width: 220px;
  margin-top: 7px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 560px) {
  .chat-win {
    inset-inline: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  body.chat-open .chat-fab { opacity: 0; visibility: hidden; }
  /* على الجوال كل بكسل في خانة الكتابة محسوب: زرّا الإرفاق والتسجيل يضيقان
     قليلاً بدل أن تُزاح الكتابة إلى سطرين مبكراً. */
  .chat-foot { gap: 5px; padding-inline: 9px; }
  .chat-attach,
  .chat-mic { width: 34px; }
}

/* ---------- 22. ظهور عند التمرير ---------- */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  /* شبكة أمان: المحتوى يظهر حتى لو تعطّل الجافاسكربت — لا تُزال */
  animation: rvFallback 0.01s linear 1.6s forwards;
}
.rv.in {
  opacity: 1;
  transform: none;
  animation: none;
}
@keyframes rvFallback {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 23. الاستجابة ---------- */
@media (max-width: 1080px) {
  .why-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps::before {
    display: none;
  }
  .why:nth-child(odd) {
    border-inline-start: 0;
  }
  .why:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  /* صفوف الخدمات: الوصف ينزل تحت العنوان بدل عمود ثالث ضيّق */
  .svc {
    grid-template-columns: clamp(50px, 8vw, 78px) minmax(0, 1fr);
    row-gap: 12px;
  }
  .svc p {
    grid-column: 2;
  }
  /* العنوان الطويل كان يُقصّ عند حافة الشاشة بدل أن يلتفّ */
  .svc h3 {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  /* الدائرة تضيّق الصف على الجوال — يستبدلها سطر واضح أن الصف يفتح صفحة */
  .svc-go {
    display: none;
  }
  .svc::after {
    content: attr(data-more);
    grid-column: 2;
    justify-self: start;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--red);
  }
  .client {
    flex-basis: calc(100% / 4 - 1px);
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 940px) {
  .nav-in {
    height: 66px;
  }
  .burger {
    display: grid;
  }
  .brand-tag {
    display: none;
  }
  .links {
    position: fixed;
    inset-inline: 12px;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 10px;
    box-shadow: var(--sh-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.28s var(--ease);
    margin: 0;
  }
  .links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .links a {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 1rem;
  }
  .nav-side {
    margin-inline-start: auto;
  }
  .nav .btn-red {
    display: none;
  }

  .hero-in,
  .about-grid,
  .forms-wrap {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: auto;
    margin-top: 12px;
  }
  .offer-card,
  .offer-deck {
    transform: none;
    width: min(100%, 430px);
  }
  .deck-view {
    transform: none;
  }
  .float-chip {
    display: none;
  }
  .vm-grid,
  .cmp {
    grid-template-columns: 1fr;
  }
  /* على الجوال تُقرأ البطاقتان بالترتيب: بطاقة العرض هي المهمّة فتسبق
     بطاقة السعر المعتاد بدل ما يمرّ الزائر على السعر الأعلى أولاً */
  .cmp .cmp-card.win {
    order: -1;
  }
  .work-grid > * {
    grid-column: span 12 !important;
    min-height: 240px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --r-xl: 24px;
    --r-lg: 18px;
  }
  /* على الجوال لا مساحة لبطاقتين خلف البطاقة الظاهرة دون أن تخرجا عن الشاشة */
  .deck-slide.is-side {
    opacity: 0;
    transform: scale(0.82);
  }
  /* زرّا الهيرو بعرضين مختلفين يبدوان غير مقصودين على الجوال — يتساويان */
  .hero-cta {
    display: grid;
    gap: 10px;
  }
  .hero-cta .btn {
    width: 100%;
  }
  /* الشارة تلتفّ لسطرين على الجوال: تُعامَل كبطاقة صغيرة لا ككبسولة مقطوعة */
  .hero-badge {
    border-radius: 18px;
    padding: 7px 12px;
    font-size: 0.8rem;
    line-height: 1.5;
  }
  body {
    font-size: 15.5px;
  }
  .why-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  /* عمود واحد: الفواصل تصير أفقية، والصورة تخفّ حتى يبقى النص مقروءاً */
  .why {
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .why:first-child {
    border-top: 0;
  }
  .why-photo img {
    opacity: 0.13;
  }
  /* الرقم بجانب العنوان في صفّ واحد، والوصف تحتهما */
  .svc {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    row-gap: 12px;
    padding-block: 22px;
  }
  .svc-head {
    grid-column: 2;
  }
  .svc p {
    grid-column: 1 / -1;
  }
  .svc-no {
    font-size: 1.8rem;
  }
  .svc-ico {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .svc-ico svg {
    width: 21px;
    height: 21px;
  }
  .client {
    flex-basis: calc(100% / 3 - 1px);
    min-height: 88px;
    padding: 12px;
  }
  .client img {
    max-height: 40px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* عمودان ثابتان — الصفّ المرن كان يقصّ «Clients & partners» خارج الشاشة */
  .hero-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
  }
  .hero-trust div {
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .hero-trust b {
    font-size: 1.3rem;
  }
  .hero-trust span {
    font-size: 0.8rem;
  }
  .tabs {
    flex-direction: column;
    border-radius: var(--r);
  }
  .tab {
    border-radius: 12px;
  }
  .save-bar {
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
  }
  .marquee-track img {
    height: 30px;
  }
  .marquee-track {
    gap: 34px;
  }
}

/* ==========================================================================
   النسخة الإنجليزية — خطوط لاتينية وسطر عربي مساعد
   English edition: Latin type stack + an Arabic helper line (.ar)
   كل التخطيط مبني على خصائص منطقية، فلا شيء آخر يحتاج قلباً في LTR.
   ========================================================================== */
html[lang="en"] {
  --f-display: "Space Grotesk", "Zain", system-ui, sans-serif;
  --f-body: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-num: "Space Grotesk", "Inter", system-ui, sans-serif;
}
html[lang="en"] body {
  line-height: 1.65;
}
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}
html[lang="en"] .lead {
  line-height: 1.72;
}
/* العناوين اللاتينية أعرض من العربية بنفس المقاس — تُضبط حتى لا يبتلع العنوان الشاشة */
html[lang="en"] .h-display {
  font-size: clamp(2.05rem, 4.4vw, 3.45rem);
  line-height: 1.06;
}
html[lang="en"] .h-1 {
  font-size: clamp(1.7rem, 3.3vw, 2.5rem);
}
html[lang="en"] .num {
  font-feature-settings: "tnum" 1;
}

/* السطر العربي المساعد داخل الصفحة الإنجليزية */
.ar {
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  direction: rtl;
  unicode-bidi: isolate;
  display: block;
  font-size: 0.9em;
  color: var(--ink-4);
  line-height: 1.7;
}
.dark .ar {
  color: #6f7589;
}
.hero-sub .ar {
  margin-top: 12px;
  color: var(--ink-3);
}
.stat .ar,
.why .ar,
.svc .ar,
.vm .ar {
  margin-top: 2px;
  font-size: 0.82em;
}

/* ==========================================================================
   24. صفحات السيو الداخلية (الخدمات، الفهرس، 404)
   تستخدم نفس نظام التصميم أعلاه: الأرقام المفرّغة، الخطوط الرفيعة،
   والإيقاع التحريري بدل شبكة الكروت المتطابقة.
   ========================================================================== */

/* مسار التنقل */
.crumbs {
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding-top: calc(var(--nav-h, 74px) + 14px);
  padding-bottom: 14px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.crumbs li + li::before {
  content: "/";
  margin-inline-end: 8px;
  color: var(--line-2);
}
.crumbs a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s;
}
.crumbs a:hover {
  color: var(--red);
}
.crumbs [aria-current] {
  color: var(--ink);
  font-weight: 600;
}

/* رأس الصفحة الداخلية */
.pg-hero {
  padding-top: clamp(40px, 5vw, 66px);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
/* شريط المسار أعلاه يحمل بالفعل إزاحة الهيدر الثابت، فلا تُضاف مرتين */
.pg-top {
  padding-top: clamp(30px, 4.5vw, 54px);
  padding-bottom: clamp(18px, 2.5vw, 30px);
}
.pg-top .lead {
  margin-top: 14px;
  max-width: 56ch;
}
.pg-top + .sect-tight {
  padding-top: clamp(20px, 3vw, 36px);
}
.pg-hero-in {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 66px);
}
.pg-hero-txt .eyebrow {
  margin-bottom: 14px;
}
.pg-hero-txt .lead {
  margin-top: 16px;
  max-width: 44ch;
}
.pg-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.pg-hero-img {
  position: relative;
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
  aspect-ratio: 4 / 3;
}
.pg-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pg-hero-ico {
  position: absolute;
  inset-block-end: 18px;
  inset-inline-start: 18px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--red);
  box-shadow: var(--sh-2);
}
.pg-hero-ico svg {
  width: 28px;
  height: 28px;
}

/* فقرات تمهيدية */
.pg-prose {
  max-width: 74ch;
}
.pg-prose p {
  font-size: clamp(1rem, 1.5vw, 1.09rem);
  line-height: 1.95;
  color: var(--ink-2);
}
.pg-prose p + p {
  margin-top: 20px;
}

/* ما تشمله الخدمة — صفّان بخطوط فاصلة، لا كروت */
.pg-inc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.pg-inc-i {
  padding: clamp(24px, 3vw, 34px) clamp(18px, 2.4vw, 32px);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.3s var(--ease);
}
.pg-inc-i:nth-child(odd) {
  border-inline-end: 1px solid var(--line);
}
.pg-inc-i:hover {
  background: #fff;
}
.pg-inc-n {
  display: block;
  font-family: var(--f-num);
  font-size: 1.5rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--line-2);
  margin-bottom: 12px;
  transition: -webkit-text-stroke-color 0.3s;
}
.pg-inc-i:hover .pg-inc-n {
  -webkit-text-stroke-color: var(--red);
}
.pg-inc-i h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}
.pg-inc-i p {
  color: var(--ink-3);
  font-size: 0.93rem;
  line-height: 1.8;
  margin: 0;
}

/* صور داخل الصفحة */
.pg-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.pg-shots figure {
  margin: 0;
}
.pg-shots img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  display: block;
}
.pg-shots figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.7;
}

/* الأسئلة الشائعة داخل صفحة الخدمة */
.pg-faq .sect-head {
  margin-inline: auto;
  max-width: 860px;
}
.pg-faq summary h3 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
  line-height: 1.6;
}

/* خاتمة الصفحة */
.pg-end {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.pg-end .lead {
  margin-top: 14px;
}
.pg-end .pg-cta {
  justify-content: center;
}
.pg-end .btn svg {
  width: 18px;
  height: 18px;
}

/* خدمات أخرى */
.pg-rel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pg-rel-i {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  transition: all 0.25s var(--ease);
}
.pg-rel-i:hover {
  border-color: var(--red-line);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
  color: var(--red);
}
.pg-rel-ico {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--red-wash);
  color: var(--red);
}
.pg-rel-ico svg {
  width: 19px;
  height: 19px;
}
.pg-all {
  margin-top: 22px;
  font-size: 0.9rem;
}
.pg-all a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--red-line);
  padding-bottom: 2px;
}

/* فهرس الخدمات — قائمة تحريرية */
.pg-list {
  border-top: 1px solid var(--line);
}
.pg-list-i {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  gap: clamp(16px, 2.6vw, 30px);
  padding: clamp(22px, 3vw, 34px) clamp(8px, 1.6vw, 20px);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s var(--ease), padding-inline-start 0.3s var(--ease);
}
.pg-list-i:hover {
  background: #fff;
}
.pg-list-n {
  font-family: var(--f-num);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--line-2);
  transition: -webkit-text-stroke-color 0.3s;
}
.pg-list-i:hover .pg-list-n {
  -webkit-text-stroke-color: var(--red);
}
.pg-list-ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--red-wash);
  color: var(--red);
  flex: none;
}
.pg-list-ico svg {
  width: 22px;
  height: 22px;
}
.pg-list-tx h2 {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  margin: 0 0 8px;
  transition: color 0.25s;
}
.pg-list-i:hover .pg-list-tx h2 {
  color: var(--red);
}
.pg-list-tx p {
  color: var(--ink-3);
  font-size: 0.94rem;
  line-height: 1.8;
  margin: 0;
  max-width: 62ch;
}
.pg-list-tx em {
  display: inline-block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--red);
  border-bottom: 1px solid var(--red-line);
  padding-bottom: 2px;
}

/* 404 */
.pg-404 {
  padding-top: calc(var(--nav-h, 74px) + clamp(50px, 8vw, 110px));
  text-align: center;
}
.pg-404 .eyebrow {
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--red-line);
  letter-spacing: 0;
  margin-bottom: 10px;
}
.pg-404 .lead {
  margin-inline: auto;
  max-width: 48ch;
}
.pg-404 .pg-cta {
  justify-content: center;
}

@media (max-width: 900px) {
  .pg-hero-in {
    grid-template-columns: 1fr;
  }
  .pg-hero-img {
    order: -1;
    aspect-ratio: 16 / 10;
  }
  .pg-rel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .pg-inc {
    grid-template-columns: 1fr;
  }
  .pg-inc-i:nth-child(odd) {
    border-inline-end: 0;
  }
  .pg-rel {
    grid-template-columns: 1fr;
  }
  .pg-list-i {
    grid-template-columns: auto 1fr;
    row-gap: 10px;
  }
  .pg-list-ico {
    display: none;
  }
  .pg-cta .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

:root { --nav-h: 74px; }
@media (max-width: 760px) { :root { --nav-h: 66px; } }

/* ---------- صفحتا الأعمال والإنتاج ---------- */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 26px);
}
.pf-i {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.pf-i:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: var(--red-line);
}
.pf-i img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.pf-i figcaption {
  padding: 18px 20px 22px;
}
.pf-cat {
  display: inline-block;
  font-family: var(--f-num);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.pf-i h2 {
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0 0 7px;
}
.pf-i p {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.88rem;
  line-height: 1.75;
}

.pf-films {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
}
.pf-f a {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.pf-f img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease), filter 0.35s;
}
.pf-f a:hover img {
  transform: scale(1.05);
  filter: brightness(0.82);
}
.pf-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
  box-shadow: var(--sh-2);
  transition: transform 0.3s var(--ease);
}
.pf-f a:hover .pf-play {
  transform: scale(1.12);
}
.pf-play svg {
  width: 20px;
  height: 20px;
  margin-inline-start: 2px;
}
/* مثلث التشغيل رمز عالمي لا يُعكس في RTL — يبقى كما هو في كل الصفحات */
.pf-f h3 {
  font-size: 0.98rem;
  margin: 14px 0 6px;
}
.pf-f p {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.86rem;
  line-height: 1.75;
}

@media (max-width: 980px) {
  .pf-grid,
  .pf-films {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .pf-grid,
  .pf-films {
    grid-template-columns: 1fr;
  }
}

/* رابط «كل الأعمال / كل الخدمات» أسفل أقسام الصفحة الرئيسية */
.sect-more {
  margin-top: clamp(22px, 3vw, 34px);
  font-size: 0.92rem;
}
.sect-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red-line);
  padding-bottom: 3px;
  transition: gap 0.25s var(--ease), border-color 0.25s;
}
.sect-more a svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.sect-more a:hover {
  gap: 13px;
  border-color: var(--red);
}
.dark .sect-more a {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.dark .sect-more a:hover {
  border-color: #fff;
}

/* ---------- خطأ الحقل — رسالة تحت الحقل نفسه لا في صندوق أسفل النموذج ---------- */
.field.bad .inp {
  border-color: var(--red);
  background: var(--red-wash);
}
.field.bad .inp:focus {
  box-shadow: 0 0 0 4px rgba(214, 38, 44, 0.12);
}
.field-err {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
}

/* ---------- هيكل مؤقت مكان الصورة ----------
   الصور الكسولة تترك مربعات سوداء أثناء التمرير السريع. الهيكل خلف الصورة لا
   عليها: أول ما تُرسم الصورة تغطّيه — فلا يعتمد الظهور على الجافاسكربت. */
.work::before,
.pf-f a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, #2c313b 30%, #474e5c 48%, #2c313b 66%);
  background-size: 300% 100%;
  animation: skel 1.4s linear infinite;
}
.work img,
.pf-f a img {
  position: relative;
  z-index: 1;
}
@keyframes skel {
  to {
    background-position: -300% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .work::before,
  .pf-f a::before {
    animation: none;
  }
}

/* ---------- أهداف اللمس ----------
   روابط الفوتر وأيقونات التواصل أصغر من أن تُضغط بإصبع على الجوال. */
@media (hover: none) and (max-width: 900px) {
  .foot a,
  .foot-contact a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .foot-social a {
    min-width: 44px;
    min-height: 44px;
  }
  .links a {
    padding: 12px 14px;
  }
}

/* ---------- التنقّل بلوحة المفاتيح ----------
   بلا حلقة تركيز واضحة يتوه من يتصفّح بالكيبورد أو بقارئ شاشة تماماً. */
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}
.work:focus-within,
.pf-f a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* رابط «تخطَّ إلى المحتوى» — أول ما يصله مستخدم الكيبورد */
.skip {
  position: fixed;
  inset-inline-start: 50%;
  top: 10px;
  translate: -50% -140%;
  z-index: 200;
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--sh-3);
  transition: translate 0.2s var(--ease);
}
.skip:focus {
  translate: -50% 0;
}
