/* Mitrone — الصفحة الرئيسية v2 (قالب Home v2). منقول من design/prototypes/home-v2.html؛ بيتحمّل على صفحات القالب ده بس. */
@font-face { font-family: "Norsal"; src: url("../home-v2/fonts/norsal-regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Norsal"; src: url("../home-v2/fonts/norsal-medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Norsal"; src: url("../home-v2/fonts/norsal-bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Handel Gothic Arabic"; src: url("../home-v2/fonts/itc-handel-gothic-arabic-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* Tokens (docs/02-homepage-v2-handoff.md §4 و§4.1 — قيم مقترحة للمراجعة) */
:root {
  --deep: #073B73;          /* الكحلي: العناوين والأزرار */
  --brand: #0081C6;         /* أزرق اللوجو */
  --light: #42B9EE;
  --lime: #C7EF36;          /* محدود: نقطة الحالة النشطة وزر التواصل لاحقًا */
  --text: #101820;
  --text-2: #52616B;
  /* خلفية الصفحة: مضبوطة على المرجع (#EDF4FB تقريبًا، 2026-11-19). ليست اعتمادًا نهائيًا للمطابقة */
  --page-top: #E2EDFA;
  --page-mid: #EDF4FB;
  --page-bot: #F2F7FD;
  --edge: rgba(255, 255, 255, .88);        /* حد مضيء رقيق */
  --edge-blue: rgba(0, 129, 198, .10);
  /* سطح الحاوية: زجاج لبني بإضاءة بيضاء في الركن، مش أبيض مصمت */
  --surface: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0) 55%),
             linear-gradient(140deg, rgba(255, 255, 255, .66) 0%, rgba(236, 245, 254, .56) 50%, rgba(214, 233, 251, .58) 100%);
  --shadow: 0 18px 44px rgba(12, 74, 140, .11), 0 2px 6px rgba(12, 74, 140, .05);

  --font: "Norsal", system-ui, sans-serif;
  --display: "Handel Gothic Arabic", var(--font);

  --page-gap: 80px;         /* هامش الصفحة على 1440 */
  --box-max: 1280px;        /* عرض الحاويات */
  --box-pad: 56px;          /* حشو حاوية الافتتاحية */
  --box-radius: 32px;
  --stack: 28px;            /* المسافة بين الحاويات */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-weight: 400; font-synthesis: none; line-height: 1.75; color: var(--text);
  background:
    radial-gradient(1100px 620px at 88% -4%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 62%),
    radial-gradient(900px 640px at 4% 38%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 64%),
    radial-gradient(1000px 700px at 96% 78%, rgba(150, 205, 245, .30), rgba(150, 205, 245, 0) 66%),
    linear-gradient(180deg, var(--page-top) 0%, var(--page-mid) 42%, var(--page-bot) 100%);
  background-color: var(--page-mid);
}
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* الإطار العام: كل الحاويات بنفس العرض والمحاذاة */
.frame { inline-size: min(100% - 2 * var(--page-gap), var(--box-max)); margin-inline: auto; }
main.frame { display: grid; gap: var(--stack); padding-block: var(--stack) 64px; }

/* حاوية القسم: حدود + ظل ناعم + سطح زجاجي، والإضاءة لا تخرج منها */
.box {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--box-radius); background: var(--surface);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(0, 129, 198, .06);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}

/* ===== Header: كبسولة زجاجية عائمة بنفس عرض الحاويات ===== */
.site-head { position: sticky; inset-block-start: 16px; z-index: 20; margin-block-start: 16px; }
.head-bar {
  position: relative; display: flex; align-items: center; gap: 24px; min-block-size: 72px; padding-inline: 28px;
  border-radius: 20px; background: linear-gradient(140deg, rgba(255, 255, 255, .82), rgba(236, 245, 254, .74)); border: 1px solid var(--edge);
  box-shadow: 0 10px 28px rgba(12, 74, 140, .09), inset 0 1px 0 rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.logo { display: block; flex: none; line-height: 0; }
.logo img { inline-size: 132px; block-size: auto; }
.nav { display: flex; align-items: center; gap: 28px; margin-inline-start: auto; }
.nav ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav a:not(.btn) { position: relative; display: block; padding-block: 10px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .9375rem; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--deep); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 2px; block-size: 2px; border-radius: 2px; background: var(--brand); }
.nav .is-pending { color: var(--text-2); cursor: default; }

/* ===== القائمة الفرعية للخدمات (ديسكتوب: لوح منسدل؛ موبايل: قائمة متداخلة تحت «خدماتنا») ===== */
.has-sub { position: relative; }
.has-sub__row { display: flex; align-items: center; gap: 2px; }
.has-sub.is-active > .has-sub__row > a { color: var(--brand); }
.sub-btn {
  display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; padding: 0; margin-inline-start: -2px;
  border: 0; border-radius: 8px; background: none; color: var(--text); cursor: pointer;
}
.sub-btn:hover { color: var(--deep); background: rgba(0, 129, 198, .08); }
.sub-btn svg { inline-size: 1rem; block-size: 1rem; }
.has-sub.is-open .sub-btn svg { transform: rotate(180deg); }
.sub-btn__label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav .subnav { display: none; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav .subnav a:not(.btn) { padding: 10px 14px; border-radius: 10px; font-size: .9375rem; }
.nav .subnav a:not(.btn):hover { background: rgba(0, 129, 198, .07); }
.nav .subnav a[aria-current="page"] { background: rgba(0, 129, 198, .08); }
.nav .subnav a[aria-current="page"]::after { display: none; }
@media (min-width: 1061px) {
  .nav .subnav {
    position: absolute; z-index: 5; inset-block-start: calc(100% + 10px); inset-inline-start: -14px;
    min-inline-size: 220px; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--edge);
    box-shadow: 0 16px 40px rgba(7, 59, 115, .14);
  }
  /* جسر غير مرئي عشان الماوس ما يقفلش القائمة وهو نازل عليها */
  .nav .subnav::before { content: ""; position: absolute; inset-inline: 0; inset-block-end: 100%; block-size: 12px; }
  .nav .has-sub.is-open > .subnav { display: flex; }
}
@media (prefers-reduced-motion: no-preference) { .sub-btn svg { transition: transform .18s ease; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-block-size: 52px; padding-inline: 1.6rem;
  border-radius: 14px; font: 500 1rem/1.4 var(--font); text-decoration: none; white-space: nowrap; border: 0; cursor: pointer;
}
.btn--primary { background: var(--deep); color: #fff; box-shadow: 0 6px 16px rgba(7, 59, 115, .18); }
.btn--primary:hover { background: #052F5C; }
.btn--sm { min-block-size: 44px; padding-inline: 1.2rem; font-size: .9375rem; border-radius: 12px; }
.btn--text { background: none; color: var(--deep); padding-inline: .5rem; }
.btn--text:hover { color: var(--brand); }
.btn--text svg { inline-size: 1rem; block-size: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .18s ease, color .18s ease, transform .18s ease; }
  .btn--primary:hover { transform: translateY(-1px); }
}
.menu-btn { display: none; }

/* ===== Hero ===== */
.hero { padding: var(--box-pad); background:
  radial-gradient(90% 80% at 100% 0%, rgba(255, 255, 255, .80), rgba(255, 255, 255, 0) 55%),
  linear-gradient(115deg, rgba(255, 255, 255, .70) 0%, rgba(232, 243, 254, .62) 40%, rgba(196, 224, 250, .66) 100%); }
/* إضاءة لبنية داخل الحاوية فقط، خلف مكان المجسّم */
.hero::before {
  content: ""; position: absolute; z-index: -1; inset-block-start: -20%; inset-inline-end: -10%;
  inline-size: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(66, 185, 238, .30), rgba(0, 129, 198, .08) 60%, transparent);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset-block-end: -30%; inset-inline-start: -10%;
  inline-size: 50%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(66, 185, 238, .12), transparent);
}
/* 1168 = 560 نص + 48 فاصل + 560 مجسّم (على 1440) */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero__copy { max-inline-size: 560px; }
.hero h1 {
  margin: 0; color: var(--deep); font-family: var(--display); font-weight: 700;
  font-size: clamp(2.25rem, 1.2rem + 3.1vw, 4rem); line-height: 1.35; text-wrap: balance;
}
/* سطر تمهيدي فوق العنوان (صياغة 2026-11-25) */
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 16px 7px 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .78); border: 1px solid var(--edge); box-shadow: 0 6px 18px rgba(7, 59, 115, .08);
  color: var(--deep); font-weight: 500; font-size: .9375rem; line-height: 1.5;
}
.hero__kicker-ic { flex: none; display: grid; place-items: center; inline-size: 28px; block-size: 28px; border-radius: 50%; background: var(--lime); color: var(--deep); }
.hero__kicker-ic svg { inline-size: 16px; block-size: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__lead { margin: 20px 0 0; color: var(--text-2); font-size: clamp(1rem, .92rem + .35vw, 1.1875rem); line-height: 1.8; max-inline-size: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-block-start: 32px; }

/* مكان المجسّم: 8:7، بانتظار الأصل H1 */
.hero__visual { position: relative; inline-size: 100%; max-inline-size: 560px; justify-self: end; }
.asset-slot {
  position: relative; aspect-ratio: 8 / 7; display: grid; place-items: center; text-align: center; padding: 24px;
  border-radius: 24px; border: 2px dashed rgba(0, 129, 198, .35);
  background: repeating-linear-gradient(135deg, rgba(0, 129, 198, .035) 0 12px, rgba(0, 129, 198, 0) 12px 24px);
  color: var(--text-2); font-size: .875rem; line-height: 1.6;
}
.asset-slot strong { display: block; color: var(--deep); font-weight: 500; font-size: .9375rem; }

/* كارت «طلب جديد»: عنصر HTML مستقل فوق المجسّم */
.order-card {
  position: absolute; inset-block-start: 6%; inset-inline-start: 6%;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 12px;
  border-radius: 16px; background: rgba(255, 255, 255, .9); border: 1px solid var(--edge);
  box-shadow: 0 10px 24px rgba(7, 59, 115, .12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-weight: 500; font-size: .9375rem; color: var(--text); white-space: nowrap;
}
.order-card .ic { inline-size: 1.4rem; block-size: 1.4rem; color: var(--brand); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.order-card .ok { display: grid; place-items: center; inline-size: 1.4rem; block-size: 1.4rem; border-radius: 50%; background: var(--lime); color: var(--text); }
.order-card .ok svg { inline-size: .85rem; block-size: .85rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ملاحظات المراجعة: خارج الحاويات، لا تظهر في النسخة المنشورة */

/* ===== عناوين الأقسام ===== */
.sec-title { margin: 0; color: var(--deep); font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1.4; }

/* ===== العملاء: حاوية أقل ارتفاعًا، شبكة ثابتة بدون حركة ===== */
.clients { padding: 26px var(--box-pad) 28px; }
.clients__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.clients__head .sec-title { flex: 1; min-inline-size: 0; }
.marquee__toggle { flex: none; display: grid; place-items: center; inline-size: 44px; block-size: 44px; padding: 0; border: 0; background: none; color: var(--deep); cursor: pointer; }
.marquee__ic { display: grid; place-items: center; inline-size: 32px; block-size: 32px; border-radius: 50%; background: rgba(255, 255, 255, .7); border: 1px solid var(--edge); box-shadow: 0 2px 8px rgba(12, 74, 140, .08); }
.marquee__toggle:hover .marquee__ic { background: #fff; }
.marquee__toggle svg { inline-size: 12px; block-size: 12px; fill: currentColor; }
.marquee__toggle:focus-visible { outline: none; }
.marquee__toggle:focus-visible .marquee__ic { outline: 3px solid var(--brand); outline-offset: 2px; }
.marquee__toggle [data-ic="play"] { display: none; }
.marquee.is-paused .marquee__toggle [data-ic="pause"] { display: none; }
.marquee.is-paused .marquee__toggle [data-ic="play"] { display: inline; }
/* شريط واحد بحركة بطيئة متواصلة؛ النسخة المكررة للحركة مخفية عن قارئ الشاشة */
.marquee__viewport {
  margin-block-start: 18px; overflow: hidden; border-radius: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; inline-size: max-content; }
.marquee__set { display: flex; align-items: center; gap: 56px; margin: 0; padding: 0 0 0 56px; list-style: none; }
.marquee__set li { flex: none; display: grid; place-items: center; block-size: 64px; }
/* توازن بصري بالارتفاع وحد أقصى للعرض، بدون تمديد أو قص */
.marquee__set img { display: block; block-size: 46px; inline-size: auto; max-inline-size: 150px; object-fit: contain; }
/* شعارات بيضاء رسمية: لوح كحلي مؤقت بدل إعادة التلوين، حتى وصول نسخة للخلفية الفاتحة */
.marquee__set li.on-dark { block-size: 52px; padding: 0 14px; border-radius: 12px; background: var(--deep); }
.marquee__set li.on-dark img { block-size: 30px; }
@keyframes marquee { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: no-preference) {
  .js .marquee__track { animation: marquee var(--mq-dur, 50s) linear infinite; }
  .marquee__viewport:hover .marquee__track,
  .marquee__viewport:focus-within .marquee__track,
  .marquee.is-offscreen .marquee__track,
  .marquee.is-paused .marquee__track { animation-play-state: paused; }
}
/* بدون حركة: صف ثابت يتمرّر يدويًا، ولا نسخ مكررة */
.marquee__set[data-clone] { display: none; }
.js .marquee__set[data-clone] { display: flex; }
@media (prefers-reduced-motion: reduce) {
  .js .marquee__set[data-clone] { display: none; }
  .marquee__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x proximity; padding-block-end: 6px; }
  .marquee__set li { scroll-snap-align: start; }
  .marquee__toggle { display: none; }
}
.marquee__viewport:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* ===== خبرتنا بالأرقام: حاوية واحدة تجمع العنوان والسلايدر والتنقّل والمصدر ===== */
.numbers { padding: 44px var(--box-pad) 32px; }
.numbers::before {
  content: ""; position: absolute; z-index: -1; inset-block-start: -30%; inset-inline-start: -15%;
  inline-size: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(66, 185, 238, .16), transparent);
}
.slider { position: relative; margin-block-start: 24px; padding-inline: 56px; }
.scenes { display: grid; }
.js .scenes > .scene { grid-area: 1 / 1; }
.js .scenes > .scene:not(.is-active) { display: none; } /* ارتفاع السلايدر = المشهد النشط */
.scenes.is-resizing { overflow: hidden; transition: block-size .3s var(--ease); }
.scene { min-inline-size: 0; }
.scene__title { margin: 0; color: var(--deep); font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2rem); line-height: 1.45; text-wrap: balance; }
.scene__lead { margin: 6px 0 0; color: var(--text-2); font-size: 1.0625rem; line-height: 1.7; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: lining-nums tabular-nums; }
.sar { display: inline-block; inline-size: .82em; block-size: .92em; vertical-align: -0.08em; fill: currentColor; }

/* المشهد ١ */
.s-spend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: center; }
.s-spend__main { padding-inline-end: 40px; border-inline-end: 1px solid rgba(7, 59, 115, .10); }
.kpi { margin: 14px 0 0; color: var(--deep); }
.kpi__num { display: block; inline-size: fit-content; font-weight: 700; font-size: clamp(4rem, 2.4rem + 4.4vw, 7rem); line-height: 1; letter-spacing: -.02em; }
.kpi__unit { display: inline-flex; align-items: center; gap: .3em; margin-block-start: 6px; font-weight: 700; font-size: clamp(1.5rem, 1.2rem + .8vw, 2rem); line-height: 1.2; }
.kpi__label { display: block; margin-block-start: 4px; color: var(--text-2); font-size: 1.0625rem; }
.s-spend__list { padding-inline-start: 40px; }
.list-cap { margin: 0 0 10px; color: var(--text-2); font-weight: 500; font-size: .9375rem; }
.plat-list { margin: 0; padding: 8px 20px; list-style: none; border-radius: 20px; background: rgba(255, 255, 255, .62); border: 1px solid var(--edge); }
.plat-list li { display: flex; align-items: center; gap: 12px; padding-block: 12px; border-block-end: 1px solid rgba(7, 59, 115, .07); }
.plat-list li:last-child { border-block-end: 0; }
.plat-ic { flex: none; inline-size: 24px; block-size: 24px; border-radius: 6px; object-fit: contain; }
.plat-name { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 1rem; }
.plat-val { font-weight: 700; font-size: 1.625rem; color: var(--text); line-height: 1.2; }

/* المشهد ٢ */
.s-sales { text-align: center; }
.sales-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.sales-grid li { display: grid; justify-items: center; gap: 4px; padding: 20px 12px; border-radius: 20px; background: rgba(255, 255, 255, .62); border: 1px solid var(--edge); }
.sales-head { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 1rem; }
.sales-head .plat-ic { inline-size: 26px; block-size: 26px; }
.sales-val { font-weight: 700; font-size: clamp(2.25rem, 1.6rem + 1.6vw, 2.75rem); line-height: 1.15; color: var(--deep); margin-block-start: 6px; }
.sales-unit { display: inline-flex; align-items: center; gap: .3em; font-weight: 700; font-size: 1.25rem; color: var(--deep); }
.scene__note { margin: 16px 0 0; color: var(--text-2); font-size: .9375rem; }

/* المشهد ٣ */
.s-budget { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.scene__sub { margin: 12px 0 0; color: var(--deep); font-weight: 600; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.6; text-wrap: balance; }
.s-budget__copy .scene__lead { margin-block-start: 12px; }
.explain-toggle { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 16px; padding: 10px 0; min-block-size: 44px; border: 0; background: none; color: var(--brand); font: 500 1.0625rem/1.4 var(--font); cursor: pointer; }
.explain-toggle svg { inline-size: 1rem; block-size: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.explain-toggle[aria-expanded="true"] svg { transform: rotate(-90deg); }
.explain { margin-block-start: 8px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(0, 129, 198, .18); color: var(--text); font-size: .9375rem; line-height: 1.8; }
.explain p { margin: 0; }
.explain__close { margin-block-start: 8px; padding: 6px 0; border: 0; background: none; color: var(--deep); font: 500 .875rem/1.4 var(--font); text-decoration: underline; cursor: pointer; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; }
.flow__sources { display: grid; gap: 16px; }
.flow-card { display: grid; justify-items: center; gap: 8px; padding: 18px 12px; border-radius: 18px; background: rgba(255, 255, 255, .78); border: 1px solid var(--edge); box-shadow: 0 6px 18px rgba(7, 59, 115, .06); font-weight: 700; font-size: 1.0625rem; color: var(--text); text-align: center; }
.flow-card svg { inline-size: 32px; block-size: 32px; color: var(--brand); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow-card--decision { padding-block: 28px; border: 1.5px solid rgba(0, 129, 198, .45); box-shadow: 0 10px 26px rgba(7, 59, 115, .10); }
.flow-card--decision svg { inline-size: 40px; block-size: 40px; }
.flow__link { inline-size: 100%; block-size: 100%; overflow: visible; }
.flow__link path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 220; }
.flow__link--v { display: none; }

/* التنقّل: تبويبات بأسماء المشاهد + أسهم */
.slider__nav { display: flex; justify-content: center; margin-block-start: 28px; }
.tabs { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--edge); }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 44px; padding-inline: 22px; border: 0; border-radius: 999px; background: none; color: var(--text); font: 500 .9375rem/1.3 var(--font); cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--deep); color: #fff; }
.tab[aria-selected="true"]::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--lime); }
.tab:not([aria-selected="true"]):hover { background: rgba(0, 129, 198, .07); }
.arrow { position: absolute; inset-block-start: calc(50% - 22px - 36px); display: grid; place-items: center; inline-size: 44px; block-size: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--edge); background: #fff; color: var(--brand); box-shadow: 0 6px 16px rgba(7, 59, 115, .10); cursor: pointer; }
.arrow:disabled { opacity: .4; cursor: default; }
.arrow svg { inline-size: 1.1rem; block-size: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow--prev { inset-inline-start: 0; }
.arrow--next { inset-inline-end: 0; }
[dir="rtl"] .arrow svg { transform: scaleX(-1); }
.num-source { margin: 14px 0 0; text-align: center; color: var(--text-2); font-size: .875rem; }
.num-source[data-off] { display: none; }

/* ===== نبدأ من حيث أنت ===== */
.solutions { padding: var(--box-pad); }
.solutions::before {
  content: ""; position: absolute; z-index: -1; inset-block-end: -25%; inset-inline-end: -10%;
  inline-size: 55%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(66, 185, 238, .20), transparent);
}
/* 1168 = 560 نص + 48 + 560 مكان التكوين (14:11) */
.solutions__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.sol-tabs { display: inline-grid; grid-template-columns: repeat(2, auto); gap: 4px; margin-block-start: 20px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--edge); }
.sol-panels { margin-block-start: 24px; }
.sol-list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.sol-list h3 { margin: 0; color: var(--deep); font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1.5; }
.sol-list p { margin: 4px 0 0; color: var(--text-2); font-size: 1.0625rem; line-height: 1.7; }
.sol-visual { inline-size: 100%; max-inline-size: 560px; justify-self: end; }
.sol-visual .asset-slot { aspect-ratio: 14 / 11; }
@media (prefers-reduced-motion: no-preference) {
  .sol-panel.is-in .sol-list li { animation: rise-t .35s var(--ease) backwards; }
  .sol-panel.is-in .sol-list li:nth-child(2) { animation-delay: .05s; }
  .sol-panel.is-in .sol-list li:nth-child(3) { animation-delay: .1s; }
}

/* ===== المنصات: حاوية مدمجة، خلفية هادئة للشعارات ===== */
.platforms { padding: 32px var(--box-pad) 28px; }
.plat-rows { display: grid; gap: 12px; margin-block-start: 20px; }
.plat-row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95); }
.plat-row__label { justify-self: start; padding: 6px 14px; border-radius: 999px; background: rgba(7, 59, 115, .06); color: var(--deep); font-weight: 500; font-size: .875rem; white-space: nowrap; }
.plat-row ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.plat-row li { display: flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 52px; padding-inline: 8px; border-inline-start: 1px solid rgba(7, 59, 115, .08); color: var(--text); font-weight: 500; font-size: 1.125rem; white-space: nowrap; }
.plat-row li:first-child { border-inline-start: 0; }
.plat-row .plat-sub { font-size: 1rem; }
/* Woo كلمة ثقيلة وعريضة: ارتفاع أقل يوازن حجمها البصري مع باقي الشعارات بنفس النسب */

/* الأقسام تحت الهيدر اللاصق عند الانتقال بالروابط */
main.frame > section { scroll-margin-block-start: 104px; }

/* ===== الأعمال: نموذجان متساويان ===== */
.works { padding: var(--box-pad); }
.works__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0 0; padding: 0; list-style: none; }
.work { display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, .72); border: 1px solid var(--edge); box-shadow: 0 8px 24px rgba(12, 74, 140, .07); }
.work .asset-slot { aspect-ratio: 16 / 9; border-radius: 0; border-width: 0 0 2px; }
.work__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 16px 20px; }
.work__client { color: var(--text); font-weight: 700; font-size: 1.0625rem; }
.work__type { color: var(--text-2); font-size: .9375rem; }
.work__link { margin-inline-start: auto; color: var(--text-2); font-weight: 500; font-size: .9375rem; display: inline-flex; align-items: center; gap: 4px; }
.work__link svg { inline-size: .9rem; block-size: .9rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.is-placeholder { border-radius: 6px; background: repeating-linear-gradient(135deg, rgba(0, 129, 198, .06) 0 6px, transparent 6px 12px); padding-inline: 6px; }
.works__more { display: flex; justify-content: center; margin-block-start: 24px; }
.btn[aria-disabled="true"] { cursor: default; }

/* ===== التواصل: الحاوية الكحلية ===== */
.contact { padding: var(--box-pad); color: #fff; border-color: rgba(255, 255, 255, .18);
  background: radial-gradient(80% 90% at 100% 0%, rgba(66, 185, 238, .30), rgba(66, 185, 238, 0) 60%), linear-gradient(140deg, #0A4787 0%, #073B73 45%, #052C57 100%); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.contact .sec-title { color: #fff; }
.contact__lead { margin: 12px 0 0; color: rgba(255, 255, 255, .86); font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); line-height: 1.8; max-inline-size: 30em; }
.contact__grid { align-items: stretch; }
.contact__copy { display: flex; flex-direction: column; justify-content: flex-start; padding-block-start: 32px; }
/* مكان مجسّم التواصل (home-contact-composition): شريط عريض 4:1 بانتظار أصل المصمم */
.contact__visual { margin-block: auto calc(-1 * var(--box-pad)); margin-inline-start: calc(-1 * var(--box-pad)); padding-block-start: 24px; }
.asset-slot--dark { aspect-ratio: 4 / 1; border-radius: 0; border-start-end-radius: 20px; border: 2px dashed rgba(255, 255, 255, .45); border-inline-start: 0; border-block-end: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 12px, rgba(255, 255, 255, 0) 12px 24px); color: rgba(255, 255, 255, .85); }
.asset-slot--dark strong { color: #fff; }
.form { padding: 28px; border-radius: 24px; background: rgba(255, 255, 255, .94); color: var(--text); box-shadow: 0 16px 40px rgba(2, 20, 45, .25); }
.field { display: grid; gap: 6px; margin-block-end: 16px; }
.field label, .field legend { font-weight: 500; font-size: .9375rem; color: var(--text); }
.field input[type="text"], .field input[type="tel"], .field input[type="url"] {
  inline-size: 100%; min-block-size: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(7, 59, 115, .22);
  background: #fff; color: var(--text); font: 400 1rem/1.4 var(--font);
}
.field input:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field input[aria-invalid="true"] { border-color: #B42318; }
.field .err { color: #B42318; font-size: .875rem; }
.field .err:empty { display: none; }
.choice { border: 0; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; font-weight: 500; cursor: pointer; }
.choice input { inline-size: 20px; block-size: 20px; accent-color: var(--deep); margin: 0; }
.btn--lime { inline-size: 100%; background: var(--lime); color: var(--text); font-weight: 700; box-shadow: 0 6px 16px rgba(2, 20, 45, .18); }
.btn--lime:hover { background: #B9E12B; }
.form__status { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(82, 97, 107, .45); color: var(--text-2); font-size: .875rem; }
.form__status:empty { display: none; }

/* ===== الفوتر: لوح زجاجي بأربعة أعمدة (مرجع «من نحن» design/refs/about/Mitrone-About-Preview.webp، 2026-11-24) ===== */
.site-foot { padding-block: 0 32px; }
.foot-panel {
  border-radius: 28px; border: 1px solid var(--edge); padding: 40px 48px 0;
  background: radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, rgba(244, 249, 255, .82), rgba(234, 244, 253, .72));
  box-shadow: 0 14px 34px rgba(12, 74, 140, .08), inset 0 1px 0 rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, .95fr) minmax(0, 1.1fr); padding-block-end: 34px; }
.foot-col { min-inline-size: 0; padding-inline: 40px; }
.foot-col:first-child { padding-inline-start: 0; }
.foot-col:last-child { padding-inline-end: 0; }
.foot-col + .foot-col { border-inline-start: 1px solid rgba(0, 129, 198, .2); }
.foot-brand { display: grid; align-content: start; gap: 18px; }
.foot-brand img { inline-size: 176px; block-size: auto; }
.foot-brand p { margin: 0; max-inline-size: 22em; color: var(--text-2); font-size: 1.0625rem; line-height: 1.75; }
.foot-title { margin: 0 0 12px; color: var(--deep); font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.4; }
.foot-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.foot-list a, .foot-list .is-pending { display: inline-block; padding-block: 5px; color: var(--text-2); font-size: 1rem; line-height: 1.5; text-decoration: none; }
.foot-list a:hover { color: var(--deep); }
.foot-list .is-pending { opacity: .7; cursor: default; }
.foot-list a[aria-current="page"] { color: var(--deep); font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-skip-ink: none; }
.foot-social ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.foot-social a { display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 12px; color: #0B1F38; }
.foot-social a:hover { color: var(--brand); background: rgba(0, 129, 198, .08); }
.foot-social svg { inline-size: 24px; block-size: 24px; }
.s-mask { display: block; inline-size: 24px; block-size: 24px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.foot-copy { margin: 0; padding-block: 18px 20px; border-block-start: 1px solid rgba(0, 129, 198, .18); color: var(--text-2); font-size: .9375rem; text-align: center; }

@media (max-width: 1180px) {
  .foot-panel { padding-inline: 36px; }
  .foot-col { padding-inline: 26px; }
  .foot-social ul { gap: 4px 2px; }
  .foot-social a { inline-size: 40px; block-size: 40px; }
}
@media (max-width: 1000px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .foot-brand, .foot-social { grid-column: 1 / -1; }
  .foot-col, .foot-col:first-child, .foot-col:last-child { padding-inline: 0; }
  .foot-col + .foot-col { border-inline-start: 0; }
  .foot-grid > nav + nav { border-inline-start: 1px solid rgba(0, 129, 198, .2); padding-inline-start: 28px; }
  .foot-social { padding-block-start: 24px; border-block-start: 1px solid rgba(0, 129, 198, .18); }
  .foot-social ul { gap: 6px 10px; }
  .foot-social a { inline-size: 44px; block-size: 44px; }
  .foot-brand { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; }
}
@media (max-width: 640px) {
  .site-foot { padding-block-end: 20px; }
  .foot-panel { padding: 28px 20px 0; border-radius: 22px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-block-end: 20px; }
  .foot-brand { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block-end: 22px; }
  .foot-brand img { inline-size: 148px; }
  .foot-brand p { font-size: 1rem; }
  .foot-grid > nav, .foot-grid > nav + nav, .foot-social { padding: 20px 0; border-inline-start: 0; border-block-start: 1px solid rgba(0, 129, 198, .18); }
  .foot-title { font-size: 1.125rem; margin-block-end: 6px; }
  .foot-list a, .foot-list .is-pending { display: flex; align-items: center; min-block-size: 40px; padding-block: 6px; }
  .foot-social { padding-block-end: 4px; }
  .foot-social ul { gap: 6px; }
  .foot-copy { font-size: .875rem; padding-block: 16px; }
}

/* ===== مطابقة قسم الأرقام للمرجع (2026-11-18) ===== */
.scene__title { font-size: clamp(1.5rem, 1.05rem + 1.35vw, 2.375rem); }
.kpi__unit { font-size: clamp(1.5rem, 1.15rem + 1vw, 2.25rem); }
.kpi__label { font-size: clamp(1rem, .9rem + .35vw, 1.25rem); }
.list-cap { font-size: 1rem; margin-block-end: 12px; }
.plat-list { padding: 10px 24px; border-radius: 22px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9); }
.plat-list li { justify-content: space-between; gap: 16px; padding-block: 14px; border-block-end: 0; }
.plat-val { font-size: 1.875rem; color: var(--text); }
.s-sales .scene__lead { font-size: clamp(1rem, .92rem + .3vw, 1.1875rem); }
.sales-grid li { padding: 22px 12px 20px; gap: 2px; border-radius: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 18px rgba(12, 74, 140, .06); }
.sales-val { font-size: clamp(2.25rem, 1.5rem + 1.9vw, 3rem); color: var(--text); }
.sales-unit { font-size: 1.5rem; color: var(--text); }
.tab + .tab { position: relative; }
.tab + .tab::after { content: ""; position: absolute; inset-block: 12px; inset-inline-start: -3px; inline-size: 1px; background: rgba(7, 59, 115, .14); }
.tab[aria-selected="true"]::after, .tab[aria-selected="true"] + .tab::after { display: none; }
.tabs .tab { min-inline-size: 200px; }
.explain-toggle { font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ===== أماكن الشعارات الموحّدة: الاسم ظاهر لحد ما الملف الرسمي يتضاف في LOGOS (JS) ===== */
.plogo { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; white-space: nowrap; }
.plogo img { display: block; flex: none; block-size: calc(var(--logo-h, 26px) * var(--s, 1)); inline-size: auto; max-inline-size: 150px; object-fit: contain; }
.plogo--icon img { border-radius: 7px; }
.plogo--chip img { inline-size: calc(var(--logo-h, 26px) * var(--s, 1)); aspect-ratio: 1; padding: calc(var(--logo-h, 26px) * var(--s, 1) * .17); /* % في padding يُحسب من عرض الأب، لذا نحسبه من ارتفاع الأيقونة */ border-radius: 7px; background: var(--chip, #073B73); }
/* خلفية كل مربع بلون المنصة نفسها (مثل أيقونة تطبيقها) */
[data-logo^="salla"] { --chip: #004956; }
.plogo--wordmark.has-img:not(.plogo--keep-name) .plogo__name { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.plogo--keep-name.has-img .plogo__name { font-size: 1rem; }
.plat-list .plogo { font-size: 1.0625rem; --logo-h: 30px; }
.sales-head .plogo { font-size: 1.0625rem; --logo-h: 26px; }
.plat-row .plogo { font-size: 1.125rem; --logo-h: 28px; }

/* ===== المشهد ٣: ثلاثة كروت زجاجية (مرجع التكوين فقط) ===== */
.deck { position: relative; inline-size: 100%; max-inline-size: 560px; aspect-ratio: 4 / 3; justify-self: end; }
.deck__card {
  position: absolute; padding: 18px 20px; border-radius: 22px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .72), rgba(232, 244, 254, .55));
  border: 1px solid rgba(255, 255, 255, .92); box-shadow: 0 18px 40px rgba(12, 74, 140, .12), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.deck__title { margin: 0 0 12px; color: var(--deep); font-weight: 700; font-size: 1.125rem; line-height: 1.4; }
.deck__card--src { left: 0; inline-size: 47%; }
.deck__card--campaigns { top: 3%; transform: perspective(900px) rotateY(-10deg) rotateZ(-1.5deg); }
.deck__card--orders { top: 50%; transform: perspective(900px) rotateY(-10deg) rotateZ(1.5deg); }
.deck__card--decision { left: 54%; top: 22%; inline-size: 46%; z-index: 2; padding: 22px; background: linear-gradient(150deg, rgba(255, 255, 255, .86), rgba(226, 242, 254, .74));
  border-color: rgba(120, 200, 245, .65); box-shadow: 0 24px 50px rgba(12, 74, 140, .16), 0 0 0 4px rgba(66, 185, 238, .10), inset 0 1px 0 #fff; }
.deck__rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.deck__rows li { display: flex; align-items: center; gap: 10px; }
.deck__rows--check li { padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .55); }
.deck__rows i { flex: none; inline-size: 20px; block-size: 20px; border-radius: 6px; background: rgba(0, 129, 198, .16); }
.deck__rows b { display: block; block-size: 9px; inline-size: var(--w); border-radius: 99px; background: linear-gradient(90deg, rgba(66, 185, 238, .75), rgba(0, 129, 198, .55)); }
.deck__rows s { flex: none; margin-inline-start: auto; inline-size: 18px; block-size: 18px; border-radius: 6px; background: rgba(0, 129, 198, .12)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230081C6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.deck__choices { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.deck__choices li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .88); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 4px 12px rgba(12, 74, 140, .06); font-weight: 500; font-size: 1rem; color: var(--text); }
.deck__choices .dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(199, 239, 54, .25); }
.deck__links { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; z-index: 1; }
.deck__links path { fill: none; stroke: rgba(66, 185, 238, .85); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 220; filter: drop-shadow(0 0 4px rgba(66, 185, 238, .5)); }
@keyframes deck-in { from { translate: -14px 0; } }
@keyframes deck-pop { from { translate: 0 10px; scale: .97; } }
@media (prefers-reduced-motion: no-preference) {
  .scene.is-in .deck__card--campaigns { animation: deck-in .4s var(--ease) backwards .05s; }
  .scene.is-in .deck__card--orders { animation: deck-in .4s var(--ease) backwards .15s; }
  .scene.is-in .deck__links path { animation: draw .6s var(--ease) backwards .35s; }
  .scene.is-in .deck__card--decision { animation: deck-pop .4s var(--ease) backwards .6s; }
}

/* ===== Motion: دخول قصير مرة واحدة، النص يتحرك بالموضع فقط ===== */
@keyframes rise-t { from { transform: translateY(12px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes card-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise-t .42s var(--ease) backwards; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .12s; }
  .hero__copy > :nth-child(4) { animation-delay: .18s; }
  /* المجسّم نفسه بيتحرك طبقة طبقة (قسم «التكوينات المتحركة» تحت)، والكارت بعد ما التكوين يكمل */
  .order-card { animation: card-in .4s var(--ease) backwards 1.05s; }
  /* السلايدر: الحركة تبدأ لما المشهد يبقى نشط وظاهر على الشاشة؛ النص والأرقام بالموضع فقط */
  .scene.is-in .a-rt { animation: rise-t .4s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 1ms); }
  .scene.is-in .flow__link path { animation: draw .7s var(--ease) backwards .25s; }
  .scene.is-in .flow-card--decision { animation: pop-t .4s var(--ease) backwards .7s; }
}
@keyframes pop-t { from { transform: translateY(8px) scale(.96); } }
@keyframes draw { from { stroke-dashoffset: 220; } }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  :root { --page-gap: 40px; --box-pad: 44px; }
  .nav { gap: 20px; } .nav ul { gap: 18px; }
}
/* القائمة تتحول لزر قبل أن تزدحم الروابط الستة */
@media (max-width: 1060px) {
  .head-bar { min-block-size: 64px; padding-inline: 16px 12px; }
  .logo img { inline-size: 118px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: .5rem; margin-inline-start: auto; min-block-size: 44px; min-inline-size: 44px; padding-inline: .9rem;
    border: 1px solid rgba(7, 59, 115, .14); border-radius: 12px; background: #fff; color: var(--text); font: 500 .9375rem/1 var(--font); cursor: pointer;
  }
  .menu-btn svg { inline-size: 1.15rem; block-size: 1.15rem; }
  .nav {
    display: none; position: absolute; inset-inline: 0; inset-block-start: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 8px; margin: 0; padding: 12px 16px 16px;
    border-radius: 20px; background: #fff; border: 1px solid var(--edge); box-shadow: 0 16px 40px rgba(7, 59, 115, .14);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { padding: 12px 8px; border-radius: 10px; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: rgba(0, 129, 198, .08); }
  .nav .btn { min-block-size: 48px; }
  .nav { max-block-size: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; }
  .has-sub__row { justify-content: space-between; }
  .has-sub__row > a, .has-sub__row > span { flex: 1; }
  .sub-btn { inline-size: 44px; block-size: 44px; margin: 0; }
  .nav .subnav { padding-inline-start: 14px; margin-block-end: 4px; border-inline-start: 2px solid rgba(0, 129, 198, .14); margin-inline-start: 8px; }
  .nav .has-sub.is-open > .subnav { display: flex; }
  .nav .subnav a:not(.btn) { padding: 11px 10px; white-space: normal; }
}
/* 768: النص أولًا ثم المجسّم */
@media (max-width: 900px) {
  :root { --page-gap: 24px; --box-pad: 40px; --stack: 20px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero__copy { max-inline-size: 36rem; }
  .hero__visual { justify-self: center; max-inline-size: 480px; }
}
@media (max-width: 600px) {
  :root { --page-gap: 12px; --box-pad: 20px; --box-radius: 24px; --stack: 16px; }
  .site-head { inset-block-start: 8px; margin-block-start: 8px; }
  .hero { padding-block: 28px 24px; }
  .hero__grid { gap: 16px; } /* المسافة المرئية بين «اطّلع على أعمالنا» ومكان المجسّم ≈ 24–32px */
  .hero__actions { gap: 8px 12px; margin-block-start: 24px; }
  .hero__actions .btn--primary { flex: 1 1 100%; }
  .hero__actions .btn--text { margin-inline: auto; }
  .asset-slot { border-radius: 18px; font-size: .8125rem; padding: 16px; }
  .order-card { inset-block-start: 5%; inset-inline-start: 5%; padding: 8px 12px 8px 10px; font-size: .875rem; }
  .hero__kicker { margin-block-end: 14px; padding: 6px 14px 6px 6px; font-size: .875rem; gap: 8px; }
  .hero__kicker-ic { inline-size: 26px; block-size: 26px; }
}
@media (max-width: 360px) {
  :root { --box-pad: 16px; }
}

/* ===== العملاء والأرقام: التجاوب ===== */
@media (max-width: 1180px) {
}
@media (max-width: 900px) {
  .slider { padding-inline: 0; }
  .s-spend { grid-template-columns: minmax(0, 1fr); }
  .s-spend__main { padding: 0 0 24px; border-inline-end: 0; border-block-end: 1px solid rgba(7, 59, 115, .10); }
  .s-spend__list { padding: 24px 0 0; }
  .sales-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-budget { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .slider__nav { align-items: center; gap: 12px; }
  .arrow { position: static; flex: none; }
  .arrow--prev { order: -1; }
}
@media (max-width: 600px) {
  .clients { padding: 20px var(--box-pad) 22px; }
  .clients__head .sec-title { font-size: 1.5rem; }
  .marquee__viewport { margin-block-start: 12px; }
  .marquee__set { gap: 36px; padding: 0 0 0 36px; }
  .marquee__set li { block-size: 52px; }
  .marquee__set img { block-size: 36px; max-inline-size: 120px; }
  .marquee__set li.on-dark { block-size: 44px; }
  .marquee__set li.on-dark img { block-size: 24px; }
  .numbers { padding: 28px var(--box-pad) 24px; }
  .slider { margin-block-start: 16px; }
  .kpi__label, .scene__lead { font-size: 1rem; }
  .plat-list { padding: 4px 16px; }
  .plat-list li { padding-block: 10px; }
  .plat-val { font-size: 1.5rem; }
  .sales-grid { gap: 12px; margin-block-start: 18px; }
  .sales-grid li { padding: 16px 8px; }
  .sales-val { font-size: 2.25rem; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__sources { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .flow__link--h { display: none; }
  .flow__link--v { display: block; block-size: 44px; }
  .flow-card { padding: 14px 8px; font-size: 1rem; }
  .flow-card--decision { justify-self: center; inline-size: min(100%, 220px); padding-block: 18px; }
  /* التبويبات بعرض الحاوية، والأسهم مستغنى عنها لأن التبويبات نفسها 44px */
  .slider__nav { margin-block-start: 22px; }
  .arrow { display: none; }
  .tabs { display: grid; inline-size: 100%; }
  .tab { padding-inline: 8px; font-size: .875rem; gap: 6px; }
  .tab[aria-selected="true"]::before { inline-size: 6px; block-size: 6px; }
}
@media (max-width: 360px) {
  .tab { font-size: .8125rem; padding-inline: 6px; }
  .tab[aria-selected="true"]::before { display: none; }
}
/* ===== الحلول والمنصات: التجاوب ===== */
@media (max-width: 1060px) {
  .plat-row li { font-size: 1rem; }
  .plat-row li.has-sub { flex-direction: column; gap: 2px; }
  .plat-row .plat-sub { font-size: .8125rem; color: var(--text-2); line-height: 1.2; }
}
@media (max-width: 900px) {
  .solutions__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sol-visual { justify-self: center; max-inline-size: 480px; }
  .plat-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; }
}
@media (max-width: 600px) {
  .solutions { padding-block: 28px; }
  .sol-tabs { display: grid; inline-size: 100%; grid-template-columns: 1fr 1fr; }
  .sol-tabs .tab { padding-inline: 6px; font-size: .875rem; white-space: normal; text-align: center; line-height: 1.35; min-block-size: 48px; }
  .sol-list { gap: 16px; }
  .sol-list h3 { font-size: 1.1875rem; }
  .sol-list p { font-size: 1rem; }
  .platforms { padding: 24px var(--box-pad) 20px; }
  .plat-row ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plat-row li { min-block-size: 48px; font-size: 1rem; }
  .plat-row li:nth-child(odd) { border-inline-start: 0; }
  .plat-row li:nth-child(n+3) { border-block-start: 1px solid rgba(7, 59, 115, .08); }
  .plat-rows { gap: 10px; margin-block-start: 16px; }
  .plat-row { padding: 8px 10px; gap: 4px; }
  .plat-row li { min-block-size: 44px; padding-block: 4px; }
}

/* ===== الأعمال والتواصل والفوتر: التجاوب ===== */
@media (max-width: 900px) {
  .works__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .contact__copy { padding-block-start: 0; }
  .contact__visual { margin-block: 20px 0; margin-inline: calc(-1 * var(--box-pad)); padding-block-start: 0; }
  .asset-slot--dark { border-start-end-radius: 0; border-inline: 0; border-block-end: 2px dashed rgba(255, 255, 255, .45); }
}
@media (max-width: 600px) {
  .works { padding-block: 28px; }
  .work__meta { padding: 14px 16px; }
  .work__link { margin-inline-start: 0; }
  .contact { padding-block: 28px; }
  .asset-slot--dark { font-size: .75rem; padding: 8px; line-height: 1.5; }
  .form { padding: 20px 16px; }
}

/* ===== المشهد ٣ والشعارات: التجاوب ===== */
@media (max-width: 1180px) { .tabs .tab { min-inline-size: 0; } }
@media (max-width: 1060px) {
  .plogo--keep-name.has-img { flex-direction: column; gap: 2px; }
  .plogo--keep-name.has-img .plogo__name { font-size: .8125rem; color: var(--text-2); }
}
@media (max-width: 900px) {
  .deck { justify-self: center; max-inline-size: 520px; }
}
@media (max-width: 600px) {
  .plat-list { padding: 4px 16px; }
  .plat-list li { padding-block: 10px; }
  .plat-val { font-size: 1.625rem; }
  .plat-list .plogo { --logo-h: 26px; font-size: 1rem; }
  .sales-val { font-size: 2.25rem; }
  .sales-unit { font-size: 1.25rem; }
  .plat-row .plogo { --logo-h: 22px; font-size: 1rem; }
  .plogo--keep-name.has-img { flex-direction: column; gap: 2px; }
  .plogo--keep-name.has-img .plogo__name { font-size: .8125rem; color: var(--text-2); }
  /* الكروت تحت بعض بوضوح: المصدران جنب بعض، وبعدهم قرار الميزانية */
  .deck { aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-inline-size: none; }
  .deck__card { position: relative; left: auto; top: auto; inline-size: auto; transform: none; padding: 14px; }
  .deck__card--decision { grid-column: 1 / -1; margin-block-start: 22px; }
  .deck__card--decision::before { content: ""; position: absolute; inset-block-start: -24px; inset-inline-start: 50%; inline-size: 2px; block-size: 22px; background: rgba(66, 185, 238, .85); border-radius: 2px; }
  .deck__links { display: none; }
  .deck__title { font-size: 1rem; margin-block-end: 10px; }
  .deck__rows { gap: 8px; }
  .deck__rows i { inline-size: 16px; block-size: 16px; }
  .deck__rows li:nth-child(3) { display: none; } /* زخرفة فقط: سطران يكفيان على الموبايل */
  .deck__card--decision { padding: 14px; }
  .deck__choices li { padding: 10px 12px; }
}

@media (max-width: 360px) {
  .plat-list li { gap: 8px; }
  .plat-list .plogo, .sales-head .plogo { --logo-h: 22px; gap: 6px; }
  .sales-grid li { padding-inline: 6px; }
}

/* ===== مطابقة حاوية «خبرتنا بالأرقام» للصورة المعتمدة (تجربة على هذه الحاوية فقط، قيد المراجعة 2026-11-18) =====
   قيم مقيسة من المرجع: داخل الحاوية ≈ #EEF6FE مع إضاءة بيضاء أعلى اليمين، حد رمادي-أزرق رفيع ≈ #D8E3EE،
   ظل سفلي خفيف، وقائمة المنصات على لوح شبه غير مرئي. */
.box.numbers {
  background:
    radial-gradient(70% 60% at 82% 0%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #F1F8FE 0%, #EEF6FE 55%, #ECF5FE 100%);
  border: 1px solid #CFDCE9;
  box-shadow: 0 12px 30px rgba(60, 110, 170, .10), 0 2px 6px rgba(60, 110, 170, .06), inset 0 1px 0 rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.box.numbers::before { display: none; }
.numbers .plat-list { background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)); box-shadow: none; border: 0; }
.numbers .s-spend__main { border-inline-end-color: rgba(120, 150, 185, .22); }


/* ===== حاوية الأرقام: الكثافة على نسب المرجع (ديسكتوب وتابلت فقط) + اللمعة والإضاءة — قيد المراجعة ===== */
@media (min-width: 901px) {
  .numbers { padding: 36px var(--box-pad) 26px; }
  .numbers .sec-title { font-size: clamp(2.25rem, 1.6rem + 1.1vw, 2.875rem); }
  .numbers .slider { margin-block-start: 8px; padding-inline: 64px; }
  .numbers .scene__title { font-size: clamp(2rem, 1.3rem + 1.25vw, 2.75rem); line-height: 1.35; }
  .s-spend { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .s-spend__main { padding-inline-end: 36px; }
  .s-spend__list { padding-inline-start: 36px; }
  .kpi { margin-block-start: 6px; }
  .kpi__num { font-size: clamp(5.5rem, 3.6rem + 4.6vw, 7.75rem); line-height: .95; }
  .kpi__unit { font-size: clamp(2rem, 1.5rem + .9vw, 2.5rem); margin-block-start: 4px; }
  .kpi__label { font-size: clamp(1.25rem, 1rem + .45vw, 1.5rem); margin-block-start: 2px; }
  .list-cap { font-size: 1.25rem; margin-block-end: 6px; }
  .plat-list { padding: 6px 20px; }
  .plat-list li { padding-block: 7px; }
  .plat-list .plogo { font-size: 1.25rem; --logo-h: 36px; }
  .plat-val { font-size: 2.125rem; }
  .sales-val { font-size: clamp(2.75rem, 2rem + 1.4vw, 3.5rem); }
  .sales-head .plogo { font-size: 1.1875rem; --logo-h: 30px; }
  .sales-unit { font-size: 1.75rem; }
  .numbers .slider__nav { margin-block-start: 22px; }
  .numbers .tabs { padding: 5px; }
  .numbers .tab { min-block-size: 54px; font-size: 1.1875rem; padding-inline: 28px; }
  .numbers .tabs .tab { min-inline-size: 250px; }
  .numbers .num-source { margin-block-start: 12px; font-size: 1rem; }
  .numbers .arrow { inline-size: 52px; block-size: 52px; color: var(--brand); box-shadow: 0 8px 20px rgba(12, 74, 140, .14); }
}
@media (min-width: 901px) and (max-width: 1180px) { .numbers .tabs .tab { min-inline-size: 0; } }
/* اللمعة: حافة بيضاء داخلية فوق الحد الرمادي-الأزرق، وهالة زرقاء ناعمة للخارج، وإضاءة بيضاء هادئة داخل الحاوية */
.box.numbers {
  box-shadow: 0 16px 36px rgba(60, 120, 190, .13), 0 2px 6px rgba(60, 110, 170, .06), 0 0 0 5px rgba(255, 255, 255, .28),
              inset 0 0 0 1.5px rgba(255, 255, 255, .85), inset 0 2px 0 rgba(255, 255, 255, .95);
}
.box.numbers::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(48% 70% at 4% 78%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
    radial-gradient(40% 55% at 12% 18%, rgba(214, 234, 252, .55), rgba(214, 234, 252, 0) 72%),
    linear-gradient(118deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, .32) 27%, rgba(255, 255, 255, 0) 38%);
}


/* ===== حاوية الأرقام: تقليل الفراغ الرأسي، توسيع التبويبات، وتماسك مجموعة الرقم (قيد المراجعة) =====
   رمز الريال يسار القيمة المكتوبة («مليون») حسب دليل ساما، صفحة ١٦–١٧. */
.kpi__unit { margin-block-start: 0; line-height: 1.15; }
.kpi__label { margin-block-start: 0; line-height: 1.4; }
@media (min-width: 901px) {
  .numbers { padding: 28px var(--box-pad) 22px; }
  .numbers .slider { margin-block-start: 0; }
  .numbers .scene__title { line-height: 1.3; }
  .kpi { margin-block-start: 2px; }
  .kpi__num { line-height: .9; }
  .kpi__unit { margin-block-start: -2px; font-size: clamp(2.25rem, 1.4rem + 1.5vw, 2.875rem); }
  .kpi__label { font-size: clamp(1.375rem, .8rem + 1vw, 1.75rem); }
  /* الكروت المؤقتة للمشهد ٣ (لحين الأصل B1) لا تحدد ارتفاع الحاوية */
  .numbers .deck { max-inline-size: 480px; }
  .numbers .slider__nav { margin-block-start: 14px; }
  .numbers .num-source { margin-block-start: 8px; }
  /* شريط التبويبات ≈ ثلاثة أرباع عرض الحاوية مثل المرجع */
  .numbers .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); inline-size: min(100%, 940px); }
  .numbers .tabs .tab { min-inline-size: 0; }
}

/* ===== حاوية الأرقام: خامة الإضاءة الداخلية G1 (طبقة) + لون الأساس المقيس من المرجع ===== */
/* لون الأساس: أعلى ≈ #F1F8FE، الوسط ≈ #EDF6FE، أسفل اليسار ≈ #EAF3FE، مع إضاءة بيضاء هادئة أعلى اليمين */
.box.numbers {
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #F1F8FE 0%, #EDF6FE 55%, #EAF3FE 100%);
}
/* الطبقة: بنسب الملف الأصلية (aspect-ratio من الملف)، بلا تمديد لملء الحاوية؛ الحاوية تقصّ الزائد */
.inner-light {
  display: none; position: absolute; z-index: -1; pointer-events: none;
  inset-inline-end: -6%; inset-block-start: 50%; translate: 0 -50%;
  inline-size: 78%; aspect-ratio: var(--ar, 2.17);
  background: var(--src) center / contain no-repeat; opacity: .95;
}
.inner-light.is-ready { display: block; }
/* عند وصول الخامة تحل محل اللمعة المؤقتة المرسومة بالكود */
.numbers.has-inner-light::after { display: none; }
@media (max-width: 900px) {
  .inner-light { inline-size: 130%; inset-inline-end: -30%; inset-block-start: 0; translate: 0 -12%; opacity: .75; }
}
@media (max-width: 600px) {
  .inner-light { inline-size: 170%; inset-inline-end: -55%; translate: 0 -8%; opacity: .6; }
}


/* ===== إضافات WordPress ===== */
/* شريط الأدمن: الهيدر اللاصق ينزل تحته */
.admin-bar .site-head { inset-block-start: 48px; }
@media (max-width: 782px) { .admin-bar .site-head { inset-block-start: 54px; } }
@media (max-width: 600px) { .admin-bar .site-head { inset-block-start: 8px; } }
/* أصل المصمم بعد وصوله: بيحل محل المكان المحجوز بنسبته الطبيعية */
.asset-img { display: block; inline-size: 100%; block-size: auto; }
.work .asset-img { aspect-ratio: 16 / 9; object-fit: cover; }
/* عنصر من غير وجهة (رابط لسه مش جاهز) */
span.is-pending { cursor: default; }
.nav span.is-pending { display: block; padding-block: 10px; font-weight: 500; font-size: .9375rem; white-space: nowrap; }
@media (max-width: 1060px) { .nav span.is-pending { padding: 12px 8px; } }

/* ===== خبرتنا بالأرقام: المشهد ٢ «نتائج من حساباتنا» (2026-11-21) ===== */
.res-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end; }
.res-head__side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 16px; }
/* اختيار الحساب: مجموعة مستقلة عن تبويبات السلايدر. المختار: لبني خفيف + حد كحلي (الكحلي الممتلئ للتبويب الرئيسي بس) */
.acct-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--edge); }
.acct-btn { min-block-size: 40px; padding-inline: 22px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--text); font: 500 .9375rem/1.3 var(--font); cursor: pointer; white-space: nowrap; }
.acct-btn[aria-pressed="true"] { background: rgba(0, 129, 198, .10); border-color: var(--deep); color: var(--deep); font-weight: 700; }
.acct-btn:not([aria-pressed="true"]):hover { background: rgba(0, 129, 198, .06); }
.res-total { margin: 0; padding: 8px 14px; border-inline-start: 3px solid var(--lime); border-radius: 10px; background: rgba(255, 255, 255, .55); color: var(--text); font-weight: 500; font-size: .9375rem; line-height: 1.5; }
.res-total .amt { font-weight: 700; color: var(--deep); }
.amt { display: inline-flex; align-items: center; gap: .25em; white-space: nowrap; }
.amt .sar { inline-size: .85em; block-size: .95em; }

.acct { margin-block-start: 20px; }
.acct.is-swap .rc { animation: rc-swap .22s var(--ease); }
@keyframes rc-swap { from { translate: 0 6px; } }
.res-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.rc { display: flex; flex-direction: column; align-items: center; padding: 18px 18px 14px; border-radius: 20px; background: rgba(255, 255, 255, .62); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 18px rgba(12, 74, 140, .06); text-align: center; }
.rc__head .plogo { --logo-h: 26px; font-size: 1.0625rem; font-weight: 700; }
.rc__roas { margin: 8px 0 0; color: var(--deep); font-weight: 700; font-size: clamp(2.25rem, 1.6rem + 1.2vw, 2.875rem); line-height: 1.05; }
.rc__x { margin-inline-start: .04em; font-size: .8em; }
.rc__label { position: relative; margin: 4px 0 0; padding-block-end: 10px; color: var(--text-2); font-weight: 500; font-size: .9375rem; }
.rc__label::after { content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 50%; translate: 50% 0; inline-size: 28px; block-size: 3px; border-radius: 3px; background: var(--lime); }
[dir="ltr"] .rc__label::after { translate: -50% 0; }
.rc__rows { display: grid; gap: 2px; inline-size: 100%; margin: 12px 0 0; padding-block-start: 10px; border-block-start: 1px solid rgba(7, 59, 115, .08); }
.rc__rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-block: 4px; }
.rc__rows dt { color: var(--text-2); font-size: .875rem; text-align: start; }
.rc__rows dd { margin: 0; color: var(--text); font-weight: 700; font-size: .9375rem; }

.res-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; margin-block-start: 14px; }
.res-meta__notes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.res-meta .explain-toggle { margin-block-start: 0; font-size: .9375rem; }
.res-note, .res-date { margin: 0; color: var(--text-2); font-size: .875rem; }
.s-results .explain { margin-block-start: 4px; }
.explain__list { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: 4px; }
.res-preview { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; border: 1px dashed rgba(82, 97, 107, .35); color: var(--text-2); font-size: .8125rem; line-height: 1.6; }

@media (min-width: 901px) {
  .numbers .s-results .scene__title { font-size: clamp(1.75rem, 1.2rem + 1vw, 2.375rem); }
}
@media (max-width: 1100px) {
  .res-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .res-head__side { justify-content: flex-start; }
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .res-head__side { flex-direction: column; align-items: stretch; }
  .acct-switch { display: grid; grid-template-columns: 1fr 1fr; }
  .acct-btn { padding-inline: 8px; min-block-size: 44px; }
  .res-total { font-size: .875rem; }
  .acct { margin-block-start: 16px; }
  .res-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rc { padding: 14px 16px 10px; }
  .rc__roas { font-size: 2.25rem; }
  .res-meta { align-items: flex-start; }
  /* تبويبات السلايدر: أسماء أطول، فتلتف بدل ما تتقص */
  .numbers .tab { white-space: normal; text-align: center; line-height: 1.3; min-block-size: 48px; }
}

/* عنصر مخفي بالـhidden يفضل مخفي حتى لو كلاسه بيحدد display */
.numbers [hidden] { display: none !important; }

/* معنى ROAS جوّه الكارت */
.rc__hint { margin: 8px 0 0; max-inline-size: 22ch; color: var(--text-2); font-size: .8125rem; line-height: 1.55; text-wrap: balance; }
.rc__hint .num { font-weight: 700; color: var(--deep); }
/* العدّ التصاعدي: الرقم بيتعرض جوّه نفس الصندوق من غير ما يغيّر حجمه */
.kpi__num[data-count] { white-space: nowrap; }

/* ===== قسم التواصل المشترك على الموبايل: مساحة أوسع للنموذج (2026-11-22) =====
   تقليل الحشو المتداخل (الحاوية + الكارت) من غير تغيير الديسكتوب أو مقاس خط الحقول. */
@media (max-width: 600px) {
  .contact { padding: 24px 14px 16px; }
  .contact__grid { gap: 18px; }
  .contact .sec-title { font-size: 1.5rem; line-height: 1.45; }
  .contact__lead { margin-block-start: 8px; line-height: 1.75; }
  .form { padding: 18px 14px 14px; border-radius: 18px; }
  .field { margin-block-end: 12px; }
  .field input[type="text"], .field input[type="tel"], .field input[type="url"] { min-block-size: 48px; }
  .choice { margin-block-end: 14px; }
  .form .btn { inline-size: 100%; }
}
@media (max-width: 360px) {
  .contact { padding-inline: 12px; }
  .form { padding-inline: 12px; }
}


/* ===== التكوينات المتحركة (H1 / B1 / S1 — أصول المصمم 2026-11-24) =====
   كل طبقة WebP مقصوصة على حدودها، ومكانها نسب من صندوق الرسم (--x/--y/--w من data/home-v2.php).
   الرسم ثابت الاتجاه (الأصل مش بيتعكس)، فصندوق الرسم direction: ltr علشان inset-inline-start = يسار الأصل في العربي والإنجليزي.
   الحركة: مرة واحدة، transform وopacity بس، من غير دوران أو حركة مستمرة. مع reduced-motion أو من غير JS: التكوين كامل وثابت. */
.comp { position: relative; inline-size: 100%; container-type: inline-size; }
.comp__art { position: relative; inline-size: 100%; direction: ltr; }
.comp__l { position: absolute; inset-inline-start: var(--x); inset-block-start: var(--y); inline-size: var(--w); block-size: auto; max-inline-size: none; }
.comp__out { position: absolute; inset: 0; }

.hero__visual .comp { max-inline-size: 560px; margin-inline: auto; }
/* كارت «طلب جديد»: في الركن الفاضي فوق شمال الأصل (فوق ركن النافذة) */
.hero__visual .order-card { inset-block-start: 3%; inset-inline-start: auto; inset-inline-end: 0; }

.sol-visual .comp { max-inline-size: 520px; margin-inline: auto; }

/* B1: الكروت بتطلع من جوّه الملف — الغلاف مقصوص عند حافة الملف الأمامية (اتقاست من القص الأصلي لكارت «قرار الميزانية») */
.s-budget .comp--budget { inline-size: 100%; max-inline-size: 440px; justify-self: end; }
.comp--budget .comp__out { clip-path: polygon(0% 0%, 100% 0%, 100% 61.05%, 94.21% 61.05%, 73.55% 63.4%, 42.56% 66.9%, 38.43% 65.4%, 34.3% 62.45%, 32.23% 61.8%, 0% 61.8%); }
.comp--budget .comp__l--orders { --from: 32% 121%; }
.comp--budget .comp__l--campaigns { --from: -38% 127%; }
.comp--budget .comp__l--decision { --from: 0% 87%; }

/* الاختياران فوق خانتي «قرار الميزانية» (الخانة اليمين = أين نزيد الإنفاق)، وتحت الرسم لما التكوين يصغر */
.comp__choices { list-style: none; margin: 0; padding: 0; }
@container (min-width: 300px) {
  .comp--budget .comp__choices { position: absolute; inset: 0; direction: ltr; pointer-events: none; }
  .comp--budget .comp__choices li {
    position: absolute; inline-size: 18.5%; block-size: 10.5%; display: grid; place-items: center; text-align: center;
    transform: translate(-50%, -50%) rotate(2.6deg); /* نفس ميل الخانات في الأصل */
    color: var(--deep); font-weight: 600; font-size: clamp(.75rem, 2.95cqi, .875rem); line-height: 1.45; text-wrap: balance;
  }
  .comp--budget .comp__choices li:nth-child(1) { inset-inline-start: 59.7%; inset-block-start: 55.6%; }
  .comp--budget .comp__choices li:nth-child(2) { inset-inline-start: 36.4%; inset-block-start: 54.4%; }
}
@container (max-width: 299.98px) {
  .comp--budget .comp__choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block-start: 4px; }
  .comp--budget .comp__choices li {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .72); border: 1px solid var(--edge); color: var(--deep); font-weight: 600; font-size: .875rem; line-height: 1.4;
  }
  .comp--budget .comp__choices li::before { content: ""; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--brand); }
}

@keyframes comp-up { from { opacity: 0; transform: translateY(5%); } }
@keyframes comp-in { from { opacity: 0; translate: var(--from, 0 0); scale: var(--s, .9); } }
@keyframes comp-out { from { translate: var(--from); scale: .92; } }
@keyframes comp-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  /* H1: عند التحميل (فوق الطيّة، من غير انتظار JS) */
  .comp--hero .comp__l--screen { animation: comp-up .6s var(--ease) backwards .1s; }
  .comp--hero .comp__l--window { --from: -7% 7%; --s: .94; animation: comp-in .55s var(--ease) backwards .35s; }
  .comp--hero .comp__l--basket { --from: 0 -12%; --s: .96; animation: comp-in .55s cubic-bezier(.2, .9, .3, 1.15) backwards .55s; }
  .comp--hero .comp__l--badge { --from: 8% -4%; --s: .7; animation: comp-in .45s cubic-bezier(.2, .9, .3, 1.2) backwards .78s; }

  /* B1: لما المشهد يتفتح (نفس .is-in بتاع نصوص المشهد، و settle() بيكمّل أي حركة متعطلة) */
  .scene.is-in .comp--budget .comp__l--folder { animation: comp-up .4s var(--ease) backwards; }
  .scene.is-in .comp--budget .comp__l--orders { animation: comp-out .65s cubic-bezier(.2, .8, .2, 1) backwards .15s; }
  .scene.is-in .comp--budget .comp__l--campaigns { animation: comp-out .65s cubic-bezier(.2, .8, .2, 1) backwards .3s; }
  .scene.is-in .comp--budget .comp__l--decision { animation: comp-out .55s cubic-bezier(.2, .8, .2, 1) backwards .58s; }
  .scene.is-in .comp--budget .comp__choices li { animation: comp-fade .35s var(--ease) backwards 1.05s; }

  /* S1: لما يظهر على الشاشة (home-v2.js بيضيف is-play مرة واحدة). من غير JS: ثابت */
  .js .comp--system:not(.is-play) .comp__l:not(.comp__l--target) { opacity: 0; }
  .comp--system.is-play .comp__l--target { --from: 0 0; --s: .94; animation: comp-in .55s var(--ease) backwards; }
  .comp--system.is-play .comp__l--growth { --from: 45% 45%; --s: .6; animation: comp-in .5s cubic-bezier(.2, .9, .3, 1.15) backwards .3s; }
  .comp--system.is-play .comp__l--loyalty { --from: 45% -40%; --s: .6; animation: comp-in .5s cubic-bezier(.2, .9, .3, 1.15) backwards .42s; }
  .comp--system.is-play .comp__l--ads { --from: -45% -45%; --s: .6; animation: comp-in .5s cubic-bezier(.2, .9, .3, 1.15) backwards .54s; }
}
@media (max-width: 900px) {
  .s-budget .comp--budget { justify-self: center; }
}

/* ======================================================================
   0.19.2 — من المرجع: تسميات وأسهم فوق تكويني الافتتاحية و«نبدأ من حيث أنت».
   كله جوّه .comp__art (اتجاه ltr ونسبة ثابتة)، فالأماكن نسب مئوية من صندوق التكوين، والخط بوحدات cqi.
   ====================================================================== */
.hv-tags, .sys-tags { position: absolute; inset: 0; pointer-events: none; direction: rtl; }
.hv-arrows, .sys-ring { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; }
.hv-arrow, .sys-arc { fill: none; stroke-linecap: round; }

/* الافتتاحية */
.hero__visual > .order-card { display: none; } /* الكارت القديم (لو موجود) */
.hv-arrow--note { stroke: var(--deep); stroke-width: 3.2; }
.hv-arrow--visit { stroke: #3FA34D; stroke-width: 12; }
.hv-note { position: absolute; left: 3%; top: 0; margin: 0; display: grid; justify-items: center; transform: rotate(-5deg);
  color: var(--deep); font: 700 max(11px, 2.9cqi)/1.35 var(--display); white-space: nowrap; }
.hv-note span:last-child { background: linear-gradient(transparent 72%, rgba(199, 239, 54, .85) 72%, rgba(199, 239, 54, .85) 92%, transparent 92%); }
.hv-chip, .sys-chip, .sys-thanks { position: absolute; display: inline-flex; align-items: center; gap: .45em; padding: .45em 1em; border-radius: 999px;
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 8px 20px rgba(7, 59, 115, .16);
  color: var(--deep); font: 700 max(11px, 2.9cqi)/1.2 var(--display); white-space: nowrap; }
.hv-chip--visit { left: 34%; top: 56%; }
.hv-chip svg { inline-size: 1.15em; block-size: 1.15em; fill: var(--brand); }
.hv-cursor { position: absolute; left: 52%; top: 63%; inline-size: 7.5%; block-size: auto; fill: #fff; stroke: var(--brand); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 4px 8px rgba(7, 59, 115, .3)); }
.hero__visual .hv-order.order-card { position: absolute; inset: auto; left: 47%; top: 30%; padding: .45em .6em .45em 1em; gap: .5em;
  font: 700 max(11px, 2.9cqi)/1.2 var(--display); border-radius: 999px; }
.hv-order .ok { inline-size: 1.5em; block-size: 1.5em; }
.hv-order .ok svg { inline-size: .9em; block-size: .9em; }

/* نبدأ من حيث أنت */
.comp__disc { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff 0 18%, rgba(214, 236, 252, .95) 55%, rgba(150, 204, 243, .9) 100%);
  border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 18px 34px rgba(12, 74, 140, .22), inset 0 -10px 22px rgba(0, 129, 198, .18), inset 0 6px 14px rgba(255, 255, 255, .9); }
.comp__disc img { inline-size: 58%; block-size: auto; }
.sys-arc { stroke: #A6D63C; stroke-width: 9; }
.sys-chip { transform: translate(-50%, -50%); }
.sys-chip--ads { left: 19.4%; top: 33%; }
.sys-chip--cart { left: 71%; top: 92%; }
.sys-chip--loyalty { left: 19.7%; top: 95%; }
.sys-thanks { left: -2%; top: 60%; transform: rotate(-6deg); flex-direction: row-reverse; white-space: normal; inline-size: 7.2em; justify-content: center; text-align: center;
  font-size: max(10px, 2.4cqi); padding: .5em .8em; border-radius: 14px; }
.sys-thanks svg { flex: none; inline-size: 1.2em; block-size: 1.2em; fill: #8CC63F; }

@media (prefers-reduced-motion: no-preference) {
  .hv-note, .hv-chip, .hv-cursor, .hv-order { animation: comp-fade .4s var(--ease) backwards 1.05s; }
  .hv-order { animation-name: card-in; animation-delay: 1.35s; }
  .hv-cursor { animation-delay: 1.2s; }
  .hv-arrow { stroke-dasharray: 1; animation: hv-draw .55s var(--ease) backwards 1.25s; }
  @keyframes hv-draw { from { stroke-dashoffset: 1; opacity: 0; } 2% { opacity: 1; } to { stroke-dashoffset: 0; } }
  .js .comp--system:not(.is-play) .sys-tags { opacity: 0; }
  .comp--system.is-play .comp__l--ads { --from: 45% 45%; --s: .6; animation: comp-in .5s cubic-bezier(.2, .9, .3, 1.15) backwards .3s; }
  .comp--system.is-play .comp__l--cart { --from: -45% -45%; --s: .6; animation: comp-in .5s cubic-bezier(.2, .9, .3, 1.15) backwards .54s; }
  .comp--system.is-play .sys-arc { stroke-dasharray: 1; animation: hv-draw .5s var(--ease) backwards; }
  .comp--system.is-play .sys-arc:nth-of-type(1) { animation-delay: .8s; }
  .comp--system.is-play .sys-arc:nth-of-type(2) { animation-delay: 1.05s; }
  .comp--system.is-play .sys-arc:nth-of-type(3) { animation-delay: 1.3s; }
  .comp--system.is-play .sys-chip, .comp--system.is-play .sys-thanks { animation: comp-fade .4s var(--ease) backwards .9s; }
  .comp--system.is-play .sys-thanks { animation-delay: 1.6s; }
}
/* 0.19.3: واتساب اتضاف للأيقونات (6) — على الشاشات الضيقة جدًا يفضلوا في سطر واحد */
@media (max-width: 360px) { .foot-social ul { gap: 4px 0; } .foot-social a { inline-size: 40px; block-size: 40px; } }
/* الديسكتوب (العمود ضيق): 6 أيقونات = صفّين × 3 بدل 5 + 1 */
@media (min-width: 1001px) { .foot-social ul { display: grid; grid-template-columns: repeat(3, max-content); } }
