/* ==========================================================================
   مسار | MASAR — ورقة الأنماط الرئيسية
   الفهرس:
   1) المتغيرات (الألوان والخطوط والمقاسات)  — عدّل هويتك من هنا
   2) الأساسيات
   3) الأزرار والروابط
   4) الترويسة والتذييل
   5) الصفحة الرئيسية (الهيرو، الشريط المتحرك، الأقسام)
   6) الصفحات الداخلية
   7) النموذج
   8) التجاوب مع الجوال
   ========================================================================== */

/* 1) المتغيرات ------------------------------------------------------------ */
:root {
  /* الأخضر الداكن (الهوية الأساسية) */
  --green-950: #0a1f18;
  --green-900: #0f2a22;
  --green-800: #16372d;
  --green-700: #1f4a3c;
  --green-600: #2c6652;

  /* الأبيض والرمادي */
  --paper: #f6f7f4;
  --paper-2: #eceeea;
  --white: #ffffff;
  --ink: #10201b;
  --grey-600: #55635d;
  --grey-500: #6b7873;
  --grey-300: #c5ccc8;
  --grey-200: #dde2df;

  /* الذهبي الهادئ (يُستخدم بحذر) */
  --gold: #b8975a;
  --gold-soft: #d8c397;
  --gold-ink: #85692f; /* ذهبي أغمق للنص على الخلفيات الفاتحة */

  /* حالات النموذج */
  --error: #a63a2b;
  --ok: #2c6652;

  /* الخطوط */
  --font-display: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* المقاسات */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;
}

/* 2) الأساسيات ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4.5rem); line-height: 1.22; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--dark { background: var(--green-900); color: var(--paper); }
.section--paper2 { background: var(--paper-2); }

.latin { font-family: var(--font-latin); direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  background: var(--gold);
  color: var(--green-950);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 3) الأزرار والروابط ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--gold { background: var(--gold); color: var(--green-950); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { border-color: rgba(246, 247, 244, .45); color: var(--paper); background: transparent; }
.btn--ghost:hover { border-color: var(--paper); background: rgba(246, 247, 244, .08); }
.btn--dark { background: var(--green-900); color: var(--paper); }
.btn--dark:hover { background: var(--green-700); }
.btn--outline { border-color: var(--green-900); color: var(--green-900); background: transparent; }
.btn--outline:hover { background: var(--green-900); color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn svg { width: 18px; height: 18px; flex: none; }
/* السهم يتجه لليسار في RTL (اتجاه القراءة) */
.btn .arrow { transform: scaleX(-1); }

.link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.link:hover { text-decoration-color: currentColor; }

/* 4) الترويسة والتذييل ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-950);
  color: var(--paper);
  border-bottom: 1px solid rgba(246, 247, 244, .08);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { background: rgba(10, 31, 24, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right center; }
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__ar { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.brand__en { font-family: var(--font-latin); font-weight: 700; font-size: .66rem; letter-spacing: .38em; color: var(--gold); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(246, 247, 244, .8);
  text-decoration: none;
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.5;
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--white); background: rgba(246, 247, 244, .07); }
.nav__link[aria-current="page"] { color: var(--gold-soft); }
.nav .btn { min-height: 42px; padding: 6px 20px; font-size: .95rem; margin-inline-start: 10px; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 12px;
  border: 1.5px solid rgba(246, 247, 244, .3);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-footer { background: var(--green-950); color: rgba(246, 247, 244, .78); overflow: hidden; }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(56px, 7vw, 88px) 40px;
}
.site-footer h3 { font-size: 1rem; color: var(--paper); margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer p { font-size: .98rem; }
.site-footer__legal { display: grid; gap: 4px; margin-top: 18px; font-size: .9rem; color: rgba(246, 247, 244, .6); }
.site-footer__word {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: clamp(4.5rem, 24vw, 19rem);
  line-height: .8;
  letter-spacing: .02em;
  color: var(--green-800);
  direction: ltr;
  text-align: center;
  user-select: none;
  margin-top: 8px;
  padding-bottom: .06em;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid rgba(246, 247, 244, .1);
  font-size: .9rem;
  color: rgba(246, 247, 244, .55);
}

/* 5) الصفحة الرئيسية ------------------------------------------------------ */
.hero {
  background: var(--green-900);
  color: var(--paper);
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(246, 247, 244, .78); margin-top: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__note {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 247, 244, .14);
  font-size: .95rem;
  color: rgba(246, 247, 244, .6);
  max-width: 52ch;
}


@keyframes appear { to { opacity: 1; } }

/* الشريط المتحرك */
.ticker { background: var(--green-950); color: var(--paper); border-block: 1px solid rgba(246, 247, 244, .08); overflow: hidden; direction: ltr; }
.ticker__track { display: flex; width: max-content; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 22px 28px 22px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  white-space: nowrap;
  direction: rtl;
}
.ticker__item svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 38s linear infinite; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* رأس القسم */
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 780px; }
.section-head p { color: var(--grey-600); font-size: 1.1rem; }
.section--dark .section-head p { color: rgba(246, 247, 244, .72); }
.kicker { font-size: .95rem; font-weight: 600; color: var(--gold-ink); }
.section--dark .kicker { color: var(--gold); }

/* الخدمات في الرئيسية: صفوف كبيرة بدل بطاقات متطابقة */
.svc-list { border-top: 1.5px solid var(--ink); }
.svc-row {
  display: grid;
  grid-template-columns: 72px 1fr 1.2fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding-block: 32px;
  border-bottom: 1px solid var(--grey-300);
  color: inherit;
  text-decoration: none;
  transition: background-color .25s ease;
}
.svc-row:hover { background: var(--white); }
.svc-row__icon { width: 56px; height: 56px; color: var(--green-700); }
.svc-row p { color: var(--grey-600); }
.svc-row__go {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--green-900);
  display: grid; place-items: center;
  color: var(--green-900);
  transition: background-color .2s, color .2s;
}
.svc-row:hover .svc-row__go { background: var(--green-900); color: var(--paper); }
.svc-row__go svg { width: 20px; height: 20px; transform: scaleX(-1); }

/* آلية العمل (تسلسل حقيقي، لذا الترقيم مبرر) */
.process { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.process__intro { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 22px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding-block: 28px;
  border-top: 1px solid rgba(246, 247, 244, .16);
}
.step:last-child { border-bottom: 1px solid rgba(246, 247, 244, .16); }
.step::before {
  content: counter(step);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: rgba(246, 247, 244, .72); }

/* لمن نخدم */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.panel { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); display: grid; gap: 18px; align-content: start; }
.panel--green { background: var(--green-800); border-color: var(--green-800); color: var(--paper); }
.panel--green p { color: rgba(246, 247, 244, .78); }
.panel h3 { font-size: 1.5rem; }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 34px; }
.checks li::before {
  content: "";
  position: absolute; inset-inline-start: 0; top: .5em;
  width: 20px; height: 10px;
  border-left: 2.5px solid var(--gold);
  border-bottom: 2.5px solid var(--gold);
  transform: rotate(-45deg) translateY(-3px);
}

/* الالتزامات (بدل شهادات العملاء) */
.pledges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.pledge { padding: 28px 24px 8px 24px; display: grid; gap: 12px; align-content: start; border-inline-start: 1px solid var(--grey-300); }
.pledge:first-child { border-inline-start: 0; padding-inline-start: 0; }
.pledge p { color: var(--grey-600); font-size: 1rem; }

/* شريط الدعوة للإجراء */
.cta-band { background: var(--green-800); color: var(--paper); border-radius: var(--radius); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band p { color: rgba(246, 247, 244, .78); margin-top: 14px; }

/* 6) الصفحات الداخلية ----------------------------------------------------- */
.page-hero { background: var(--green-900); color: var(--paper); padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.8rem); max-width: 18ch; }
.page-hero p { margin-top: 24px; color: rgba(246, 247, 244, .78); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.crumbs { font-size: .92rem; color: rgba(246, 247, 244, .55); margin-bottom: 22px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.svc-detail { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 88px); padding-block: clamp(40px, 6vw, 72px); border-top: 1.5px solid var(--ink); }
.svc-detail:first-of-type { border-top: 0; padding-top: 0; }
.svc-detail__head { display: grid; gap: 18px; align-content: start; }
.svc-detail__icon { width: 64px; height: 64px; color: var(--green-700); }
.svc-detail__body { display: grid; gap: 22px; align-content: start; }
.svc-detail__body h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: var(--green-700); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.facts div { border-top: 1px solid var(--grey-300); padding-top: 12px; }
.facts dt { font-weight: 600; font-size: .95rem; color: var(--ink); }
.facts dd { margin: 4px 0 0; color: var(--grey-600); font-size: .98rem; }

.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--grey-300); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding-block: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-latin); font-size: 1.6rem; color: var(--gold-ink); flex: none; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding-bottom: 24px; color: var(--grey-600); max-width: 70ch; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.value { padding-top: 22px; border-top: 1.5px solid var(--gold); display: grid; gap: 10px; align-content: start; }
.value p { color: var(--grey-600); font-size: 1rem; }

.prose { display: grid; gap: 20px; max-width: 66ch; }
.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 96px); align-items: start; }

.placeholder-note {
  border: 1.5px dashed var(--gold-ink);
  border-radius: var(--radius);
  padding: 22px 26px;
  color: var(--grey-600);
  background: rgba(184, 151, 90, .08);
  max-width: 62ch;
}
.placeholder-note strong { color: var(--gold-ink); }

/* 7) صفحة التواصل والنموذج ------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-grid > .form-card { order: 1; min-width: 0; }
.contact-grid > .contact-info { order: 2; min-width: 0; }
.contact-info { display: grid; gap: 28px; position: sticky; top: calc(var(--header-h) + 32px); }
.contact-info dl { margin: 0; display: grid; gap: 18px; }
.contact-info dt { font-size: .92rem; color: var(--grey-500); }
.contact-info dd { margin: 2px 0 0; font-weight: 600; }
.contact-info a { color: inherit; }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--grey-600); }

.form-card { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: clamp(22px, 4vw, 48px); }
.form-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.form-card > p { color: var(--grey-600); margin-top: 10px; }
.form { margin-top: 32px; display: grid; gap: 28px; }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
.fieldset legend { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--green-700); padding: 0; margin-bottom: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--grey-200); width: 100%; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: .98rem; line-height: 1.5; }
.req { color: var(--error); margin-inline-start: 2px; }
.hint { font-size: .88rem; color: var(--grey-500); line-height: 1.6; }
.input {
  width: 100%;
  min-height: 50px;
  padding: 11px 16px;
  border: 1.5px solid var(--grey-300);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .15s, background-color .15s;
}
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2355635d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: left 16px center; background-size: 12px; padding-inline-end: 16px; padding-inline-start: 40px; }
.input:hover { border-color: var(--grey-500); }
.input:focus { outline: none; border-color: var(--green-700); background: var(--white); box-shadow: 0 0 0 3px rgba(44, 102, 82, .22); }
.input[aria-invalid="true"] { border-color: var(--error); background: #fbf1ef; }
.input[dir="ltr"] { text-align: right; }
.error-msg { color: var(--error); font-size: .9rem; font-weight: 500; line-height: 1.6; min-height: 0; }
.error-msg:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--green-700); }
.check label { font-weight: 400; font-size: .98rem; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: grid; gap: 14px; justify-items: start; }
.form__foot .hint { max-width: 60ch; }
.status { border-radius: 12px; padding: 18px 22px; font-weight: 500; display: none; line-height: 1.7; }
.status[data-state] { display: block; }
.status[data-state="ok"] { background: #e6f0ec; color: #134235; border: 1px solid #b9d4c9; }
.status[data-state="error"] { background: #fbeceA; color: #7d281c; border: 1px solid #ebc2bb; }
.status .btn { margin-top: 12px; min-height: 40px; padding: 6px 18px; font-size: .92rem; }
.error-summary { border: 1.5px solid var(--error); border-radius: 12px; padding: 16px 22px; background: #fbf1ef; color: #7d281c; display: none; }
.error-summary[data-show] { display: block; }
.error-summary ul { margin: 8px 0 0; padding-inline-start: 20px; }
.error-summary a { color: inherit; font-weight: 600; }

/* 8) التجاوب مع الجوال ---------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid, .process, .two-col, .contact-grid, .svc-detail { grid-template-columns: 1fr; }
  .process__intro, .contact-info { position: static; }
  .svc-row { grid-template-columns: 56px 1fr auto; }
  .svc-row p { grid-column: 2 / 3; grid-row: 2; }
  .svc-row__go { grid-row: 1 / 3; grid-column: 3; }
  .pledges { grid-template-columns: 1fr 1fr; }
  .pledge:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .values { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--green-950);
    border-bottom: 1px solid rgba(246, 247, 244, .08);
    padding: 8px var(--gutter) 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    display: none;
  }
  .nav[data-open] { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { padding: 14px 10px; font-size: 1.05rem; border-radius: 10px; }
  .nav .btn { margin: 4px 0 0; min-height: 50px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .split, .row, .facts, .cta-band { grid-template-columns: 1fr; }
  .pledges { grid-template-columns: 1fr; }
  .pledge { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--grey-300); }
  .pledge:first-child { border-top: 0; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  .step::before { font-size: 1.8rem; }
  .site-footer__top { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta-band .btn { width: 100%; }
  .svc-row { grid-template-columns: 1fr auto; padding-block: 26px; }
  .svc-row__icon { display: none; }
  .svc-row h3 { grid-column: 1; }
  .svc-row p { grid-column: 1 / -1; grid-row: auto; }
  .svc-row__go { grid-row: 1; grid-column: 2; width: 42px; height: 42px; }
}

/* ==========================================================================
   9) المستوى الثاني: حركة وتفاعل وتفاصيل (الصفحة الرئيسية + مشاهد الخدمات)
   ========================================================================== */

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ظهور تدريجي (يُفعَّل من main.js فقط عند توفر المراقب وعدم تفضيل تقليل الحركة) */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .1, 1); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }

/* الهيرو: عنوان كبير ودخول سطر بسطر */
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); letter-spacing: -.01em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.hero__title .line > span { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .hero__title .line > span { transform: translateY(108%); animation: rise 1s cubic-bezier(.2, .7, .1, 1) forwards; }
  .hero__title .line:nth-child(2) > span { animation-delay: .14s; }
  .hero__lead, .hero__actions, .hero__note { opacity: 0; animation: fadein .9s .55s ease forwards; }
  .hero__actions { animation-delay: .7s; }
  .hero__note { animation-delay: .85s; }
}
@keyframes rise { to { transform: none; } }
@keyframes fadein { to { opacity: 1; } }

/* المقدمة والأرقام */
.intro { padding-bottom: clamp(56px, 7vw, 96px); }
.intro__text { max-width: 28ch; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 3.3rem); line-height: 1.5; text-wrap: balance; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 80px); border-top: 1.5px solid var(--ink); }
.stat { padding: 28px 24px 4px; border-inline-start: 1px solid var(--grey-300); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat__num { font-size: clamp(3.2rem, 6.4vw, 5.4rem); line-height: 1; font-weight: 500; color: var(--green-800); letter-spacing: -.03em; text-align: right; }
.stat__label { margin-top: 14px; color: var(--grey-600); font-size: 1rem; max-width: 22ch; line-height: 1.7; }

/* مشاهد الخدمات (ألوانها من المتغيرات، وتصلح للخلفيات الداكنة) */

/* عارض الخدمات: واحدة في كل مرة */
.show { background: var(--paper-2); }
.show__tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--ink); overflow-x: auto; scrollbar-width: none; }
.show__tabs::-webkit-scrollbar { display: none; }
.show__tab {
  flex: none;
  appearance: none; background: none; border: 0; cursor: pointer;
  padding: 16px 22px; margin-bottom: -1.5px;
  border-bottom: 3px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.4;
  color: var(--grey-500);
  display: inline-flex; align-items: baseline; gap: 10px;
  transition: color .2s, border-color .2s;
}
.show__tab .mono { font-size: .85rem; color: var(--gold-ink); }
.show__tab:hover { color: var(--ink); }
.show__tab.is-active { color: var(--ink); border-bottom-color: var(--gold); }
.show__stage { margin-top: clamp(32px, 5vw, 56px); }
.show__item { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.show__item + .show__item { margin-top: 56px; }
.show__text { display: grid; gap: 20px; align-content: center; }
.show__text p { color: var(--grey-600); font-size: 1.1rem; }
.js .show__item { display: none; margin-top: 0; }
.js .show__item.is-active { display: grid; animation: swap .55s cubic-bezier(.2, .7, .1, 1); }
@keyframes swap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* الرحلة المثبّتة مع التمرير */
.journey { background: var(--green-950); color: var(--paper); }
.journey__stage { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.journey__panel { display: grid; gap: 20px; align-content: center; min-width: 0; }
.journey__panel h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.journey .kicker { color: var(--gold); }
.jr-counter { display: flex; align-items: baseline; gap: 10px; color: var(--gold); }
.jr-counter b { font-weight: 500; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; }
.jr-counter span { color: rgba(246, 247, 244, .45); font-size: 1.1rem; }
.jr-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.jr-step { padding-block: 18px; border-top: 1px solid rgba(246, 247, 244, .16); }
.jr-step h3 { font-size: 1.3rem; margin-bottom: 6px; }
.jr-step p { color: rgba(246, 247, 244, .72); }
.jr-counter, .jr-ticks { display: none; }
.journey__visual { margin: 0; min-width: 0; }

.journey.is-live { height: 560vh; }
.journey.is-live .journey__stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); padding-block: 20px; }
.journey.is-live .jr-counter { display: flex; }
.journey.is-live .jr-ticks { display: flex; gap: 8px; }
.journey.is-live .jr-steps { min-height: 120px; }
.journey.is-live .jr-step { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; border: 0; padding: 0; pointer-events: none; }
.journey.is-live .jr-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.journey.is-live .journey__visual { height: 100%; display: grid; place-items: center; }
.jr-tick { position: relative; flex: 1; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(246, 247, 244, .16); cursor: pointer; transition: background-color .3s; }
.jr-tick::after { content: ""; position: absolute; inset: -12px 0; }
.jr-tick.is-active { background: var(--gold); }


/* أداة تصوّر المواقف */
.planner { background: var(--paper); }
.planner__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.planner__ctl { display: grid; gap: 28px; min-width: 0; }
.pl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pl-row label { font-weight: 600; }
.pl-row output { font-size: 2.4rem; line-height: 1; color: var(--green-800); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin-top: 14px; border-radius: 3px; background: var(--grey-300); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); border: 4px solid var(--green-900); cursor: grab; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 4px solid var(--green-900); cursor: grab; }
.range:focus-visible { outline-offset: 10px; }
.seg { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 12px; font-weight: 600; }
.seg label { display: inline-block; position: relative; margin: 0 0 8px 8px; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 9px 20px; border: 1.5px solid var(--grey-300); border-radius: 999px; background: var(--white); line-height: 1.5; transition: background-color .2s, color .2s, border-color .2s; }
.seg input:checked + span { background: var(--green-900); color: var(--paper); border-color: var(--green-900); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.seg label:hover span { border-color: var(--green-700); }
.planner__read { font-weight: 600; font-size: 1.15rem; }
.planner__view { margin: 0; min-width: 0; background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: clamp(14px, 2.4vw, 28px); }
.planner__view svg { width: 100%; height: auto; display: block; }
.planner__view figcaption { font-size: .88rem; color: var(--grey-500); margin-top: 12px; }
.pl-bay { fill: rgba(184, 151, 90, .18); stroke: var(--green-700); stroke-width: 1.5; }
.pl-t { font-family: var(--font-body); font-size: 14px; fill: var(--grey-600); }
.pl-l { text-anchor: end; } /* في الاتجاه RTL: النص يبدأ عند x ويمتد لليمين */
.pl-roof { fill: url(#pl-hatch); stroke: var(--gold-ink); stroke-width: 2; stroke-dasharray: 6 6; }
.pl-hatch { stroke: rgba(133, 105, 47, .3); stroke-width: 2; }
.pl-ground { fill: rgba(16, 32, 27, .08); stroke: var(--green-700); stroke-width: 2; }
.pl-ramp { fill: none; stroke: var(--gold-ink); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; }
.pl-ramp-fill { fill: rgba(184, 151, 90, .25); stroke: var(--gold-ink); stroke-width: 2; stroke-linejoin: round; }
.pl-in { fill: var(--gold-ink); }

/* صفحة الخدمات: مشهد لكل خدمة */
.prefill-note { font-size: .92rem; color: var(--ok); font-weight: 500; }

@media (max-width: 960px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--grey-300); margin-top: 28px; }
  .show__item, .planner__grid { grid-template-columns: 1fr; }
  .show__item .show__photo { order: -1; }
  .journey__stage { grid-template-columns: 1fr; }
  .journey.is-live .journey__stage { grid-template-rows: minmax(0, 42%) 1fr; gap: 8px; }
  .journey.is-live .journey__visual { order: -1; }
  .journey.is-live .journey__panel { gap: 12px; align-content: start; }
  .journey.is-live .journey__panel .kicker { display: none; }
  .journey.is-live .journey__panel h2 { font-size: 1.15rem; }
  .journey.is-live .jr-counter b { font-size: 2.4rem; }
  .journey.is-live .jr-steps { min-height: 96px; }
  .journey.is-live .jr-step h3 { font-size: 1.15rem; }
  .journey.is-live .jr-link { display: none; }
  .journey.is-live { height: 520vh; }
}
@media (max-width: 640px) {
  .stat__num { font-size: 3rem; }
  .show__tab { padding: 14px 16px; font-size: 1rem; }
}


@media print {
  .site-header, .ticker, .menu-toggle { display: none; }
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   10) الصور الحقيقية (هيرو، خدمات، معرض، رحلة، شريط ختامي)
   كل صورة هي <figure class="photo"> داخلها <img>. الملفات في assets/img/photos/
   - صورة ناقصة + photos.showPlaceholders=true  → مكان واضح فيه اسم الملف (is-empty)
   - صورة ناقصة + photos.showPlaceholders=false → تختفي بهدوء (is-missing)
   ========================================================================== */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--green-800); border-radius: var(--radius); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo__ph { display: none; }
.photo.is-empty img, .photo.is-missing img { display: none; }
.photo.is-missing { display: none; }
.photo.is-empty {
  background: repeating-linear-gradient(135deg, rgba(184, 151, 90, .12) 0 14px, transparent 14px 28px), var(--green-800);
  outline: 2px dashed rgba(184, 151, 90, .75);
  outline-offset: -10px;
}
.photo.is-empty .photo__ph {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 24px;
  text-align: center; color: rgba(246, 247, 244, .85); font-size: .95rem; line-height: 1.6;
}
.photo.is-empty .photo__ph code { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; color: var(--gold-soft); font-size: .85rem; }

/* الهيرو بصورة بعرض الشاشة */
.hero--photo { min-height: clamp(540px, 82vh, 860px); display: flex; align-items: center; padding-block: clamp(72px, 10vw, 128px); }
.hero__bg { position: absolute; inset: 0; border-radius: 0; z-index: 0; }
.hero__bg.is-empty { outline-offset: -14px; }
.hero__bg.is-empty .photo__ph { inset: auto; inset-inline-start: 28px; bottom: 28px; padding: 0; place-content: start; text-align: start; }
.hero__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to left, rgba(10, 31, 24, .93) 0%, rgba(10, 31, 24, .80) 40%, rgba(10, 31, 24, .30) 100%),
              linear-gradient(to top, rgba(10, 31, 24, .55), transparent 40%); }
.hero__content { position: relative; z-index: 2; width: 100%; }
.hero__content > * { max-width: 46rem; }

/* صور الخدمات */
.show__photo { aspect-ratio: 4 / 3; max-width: 100%; }
.show__item:has(> .photo.is-missing) { grid-template-columns: minmax(0, 680px); }

/* معرض أنواع المواقف: فسيفساء غير متماثلة */
.gallery__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: clamp(170px, 21vw, 290px); gap: 16px; }
.gal-item:nth-child(1) { grid-row: span 2; }
.gal-item:nth-child(4) { grid-column: 2 / span 2; }
.gal-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(10, 31, 24, .82), transparent);
  color: var(--paper); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.gallery.is-photoless { display: none; }

/* الرحلة: صورة لكل خطوة */
.jr-stack { position: relative; width: 100%; display: grid; gap: 16px; }
.jr-photo { aspect-ratio: 16 / 10; }
.jr-chip { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; padding: 5px 14px; border-radius: 999px;
  background: rgba(10, 31, 24, .78); color: var(--gold); font-size: .95rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.journey.is-live .jr-stack { display: block; height: 100%; align-self: stretch; justify-self: stretch; }
.journey.is-live .jr-photo { position: absolute; inset: 0; aspect-ratio: auto; opacity: 0; transform: scale(1.035); transition: opacity .7s ease, transform 1.1s cubic-bezier(.2, .7, .1, 1); }
.journey.is-live .jr-photo.is-active { opacity: 1; transform: none; z-index: 1; }
.journey.is-photoless .journey__visual { display: none; }
.journey.is-photoless .journey__stage { grid-template-columns: minmax(0, 640px); justify-content: center; }

/* الشريط الختامي بصورة خلفية */
.cta-band--photo { position: relative; overflow: hidden; isolation: isolate; min-height: 280px; }
.cta__bg { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.cta__bg.is-empty { outline-offset: -12px; }
.cta__bg.is-empty .photo__ph { inset: auto; inset-inline-start: 24px; bottom: 20px; padding: 0; place-content: start; text-align: start; }
.cta__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(10, 31, 24, .90), rgba(10, 31, 24, .55)); }

/* صور الصفحات الداخلية */
.svc-photo { aspect-ratio: 4 / 3; margin-top: 8px; }
.photo-wide { aspect-ratio: 21 / 9; }
.photo-wide.is-missing { display: none; }

@media (max-width: 960px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(150px, 34vw, 240px); }
  .gal-item:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
  .gal-item:nth-child(4) { grid-column: auto; }
  .hero__veil { background: linear-gradient(to top, rgba(10, 31, 24, .92) 0%, rgba(10, 31, 24, .72) 55%, rgba(10, 31, 24, .6) 100%); }
  .show__item:has(> .photo.is-missing) { grid-template-columns: 1fr; }
  .photo-wide { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .hero--photo { min-height: 0; }
  .cta__veil { background: rgba(10, 31, 24, .78); }
}

/* تحسينات بعد الاختبار */
/* أثناء التجهيز: أخفّ الغشاء الداكن كي تظهر لافتة اسم الملف، وضعها بعيداً عن النص */
.hero__bg.is-empty ~ .hero__veil { opacity: .3; }
.hero__bg.is-empty .photo__ph, .cta__bg.is-empty .photo__ph { inset-inline-start: auto; inset-inline-end: 28px; }
.cta__bg.is-empty ~ .cta__veil { opacity: .3; }
/* الرحلة: إطار الصورة بنسبة 4:3 يتّسع للشاشة ولا يُقصّ كأنه عمودي */
.journey.is-live .jr-stack {
  height: auto; aspect-ratio: 4 / 3; align-self: center; justify-self: center;
  width: min(100%, calc((100vh - var(--header-h) - 48px) * 1.3333));
  width: min(100%, calc((100svh - var(--header-h) - 48px) * 1.3333));
}

/* 11) الرئيسية بتخطيط Torque ------------------------------------------------
   أسود هادئ + برتقالي للتمييز + خطوط رفيعة بدل البطاقات الملوّنة + خط أحادي للقراءات.
   غيّر لون التمييز من --tq-accent (مثلاً إلى الذهبي #b8975a ليوافق هوية مسار). */
body.tq {
  --tq-bg: #0a0a0a;
  --tq-ink: #f4f4f4;
  --tq-mute: #9b9b9b;
  --tq-line: rgba(255, 255, 255, .14);
  --tq-accent: #ff9a3c;
  --tq-pad: clamp(20px, 2.6vw, 48px);
  --header-h: 84px;
  --font-wide: "Archivo", "Manrope", "Segoe UI", Arial, sans-serif;
  background: var(--tq-bg);
  color: var(--tq-ink);
  line-height: 1.7;
}
.tq .mono { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }
.tq-accent { color: var(--tq-accent); }

/* الترويسة */
.tq .site-header { background: var(--tq-bg); border-bottom: 1px solid var(--tq-line); }
.tq .site-header.is-scrolled { background: rgba(10, 10, 10, .9); box-shadow: none; }
.tq .site-header .container { max-width: none; padding-inline: var(--tq-pad); }
.tq .progress i { background: var(--tq-accent); }
.tq .brand__mark { width: 30px; height: 30px; }
.tq .brand__ar { display: none; }
.tq .brand__en { font-family: var(--font-wide); font-weight: 400; font-size: 1.3rem; letter-spacing: .16em; color: var(--tq-ink); margin: 0; }
.tq .nav__link { color: var(--tq-ink); font-size: .98rem; font-weight: 400; padding: 8px 18px; }
.tq .nav__link:hover { background: transparent; color: var(--tq-accent); }
.tq .nav__link[aria-current="page"] { color: var(--tq-accent); }
.tq .nav .btn { background: transparent; color: var(--tq-ink); border: 1px solid rgba(255, 255, 255, .4); min-height: 52px; padding: 0 28px; font-weight: 400; margin: 0; }
.tq .nav .btn:hover { background: var(--tq-ink); color: var(--tq-bg); }
@media (min-width: 861px) {
  .tq .site-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; }
  .tq .nav { display: contents; }
  .tq .nav__list { justify-self: center; }
  .tq .nav > .btn { justify-self: end; }
}
@media (max-width: 860px) {
  .tq .nav { background: var(--tq-bg); border-bottom-color: var(--tq-line); }
  .tq .menu-toggle { border-color: rgba(255, 255, 255, .35); }
}

/* عناصر مشتركة */
.tq-wide { width: 100%; max-width: 1800px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 96px); }
.tq-sec { padding-block: clamp(72px, 10vw, 150px); background: var(--tq-bg); }
.tq-center { text-align: center; }
.tq-eyebrow { font-size: .78rem; letter-spacing: .16em; color: var(--tq-mute); margin: 0; }
.tq-eyebrow b { font-weight: 400; color: var(--tq-ink); }
.tq-h2 { font-family: var(--font-body); font-weight: 300; font-size: clamp(2rem, 4.2vw, 3.8rem); line-height: 1.2; color: var(--tq-ink); margin: 0; text-wrap: balance; }
.tq-row-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.tq-head-c { display: grid; justify-items: center; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.tq-head-c p:not(.tq-eyebrow) { color: var(--tq-mute); font-size: 1.15rem; max-width: 46ch; }
.tq-pill { display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 30px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: var(--tq-ink); text-decoration: none; font-size: 1rem; line-height: 1; transition: background-color .25s, color .25s, border-color .25s; cursor: pointer; }
.tq-pill svg { width: 18px; height: 18px; transform: scaleX(-1); flex: none; }
.tq-pill:hover { background: var(--tq-ink); color: var(--tq-bg); border-color: var(--tq-ink); }
.tq-pill--solid { background: var(--tq-ink); color: var(--tq-bg); border-color: var(--tq-ink); font-weight: 500; }
.tq-pill--solid:hover { background: var(--tq-accent); border-color: var(--tq-accent); }
.tq-pill:focus-visible, .tq-sw:focus-visible, .tq-arrow:focus-visible, .tq-card:focus-visible { outline: 2px solid var(--tq-accent); outline-offset: 4px; }

/* 1) الهيرو */
.tq-hero { position: relative; height: 320vh; background: var(--tq-bg); }
.tq-hero.is-static { height: auto; }
.tq-hero__stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 560px; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
.tq-hero.is-static .tq-hero__stage { position: relative; }
.tq-hero__band { position: relative; border-bottom: 1px solid var(--tq-line); overflow: hidden; }
.tq-strips { position: absolute; inset-block: 0; inset-inline: 0; margin-inline: auto; width: 43%; display: flex; gap: clamp(8px, 1.2vw, 20px); }
.tq-strips i { flex: 1; background: #17181a; }
.tq-word { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-wide); font-weight: 200; font-stretch: 125%; font-size: min(23vw, 46svh); line-height: 1; letter-spacing: .02em; color: #ececec; direction: ltr; user-select: none; white-space: nowrap; }
.tq-hero__frames { position: absolute; top: 0; bottom: 0; left: 50%; width: min(52vw, 760px); transform: translateX(-50%) scale(calc(1 + var(--p, 0) * .08)); -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.tq-frame.photo { position: absolute; inset: 0; border-radius: 0; background: transparent; opacity: 0; transition: opacity .7s ease; }
.tq-frame.is-active { opacity: 1; }
.tq-frame.is-empty { background: rgba(255, 255, 255, .04); }
.tq-frame.is-empty .photo__ph { inset: auto; inset-inline-start: 24px; bottom: 24px; padding: 0; place-content: start; text-align: start; }
.tq-hud { position: absolute; z-index: 3; inset-inline-end: var(--tq-pad); bottom: 14px; margin: 0; font-size: .8rem; letter-spacing: .14em; color: var(--tq-accent); max-width: none; }
.tq-hud b { font-weight: 400; }
.tq-hero__bottom { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: end; padding: clamp(20px, 3.4vh, 40px) var(--tq-pad); }
.tq-hero__copy { display: grid; gap: 14px; justify-items: start; }
.tq-title { font-family: var(--font-body); font-weight: 300; font-size: clamp(1.9rem, 3.5vw, 3.2rem); line-height: 1.2; margin: 0; color: var(--tq-ink); max-width: none; }
.tq-lead { color: var(--tq-mute); font-size: clamp(1rem, 1.2vw, 1.15rem); margin: 0; max-width: 54ch; }
.tq-hero__copy .tq-pill { margin-top: 6px; }
.tq-stats { margin: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: end; gap: clamp(20px, 4vw, 56px); }
.tq-stats dt { font-size: .72rem; letter-spacing: .16em; color: var(--tq-mute); margin-bottom: 6px; }
.tq-stats dd { margin: 0; display: grid; gap: 2px; }
.tq-stats b { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 300; line-height: 1; color: var(--tq-ink); }
.tq-stats span { font-size: .85rem; color: var(--tq-mute); }
@media (prefers-reduced-motion: reduce) { .tq-frame.photo, .tq-slide, .tq-cfg-photo.photo { transition: none; } .tq-hero__frames { transform: translateX(-50%); } }

/* 2) العارض */
.tq-slider__meta { display: flex; justify-content: space-between; gap: 16px; font-size: .78rem; letter-spacing: .14em; color: var(--tq-mute); }
.tq-slider__meta b { font-weight: 400; }
.tq-slider__bar { height: 3px; width: min(720px, 62%); margin: 18px auto 44px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.tq-slider__bar i { display: block; height: 100%; width: 33.3334%; background: #fff; transform: translateX(calc(var(--i, 0) * -100%)); transition: transform .5s cubic-bezier(.2, .7, .1, 1); }
.tq-slides { display: grid; justify-items: center; }
.tq-slide { grid-area: 1 / 1; width: 100%; display: grid; justify-items: center; text-align: center; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.tq-slide.is-active { opacity: 1; visibility: visible; }
.tq-slide__photo.photo { width: min(640px, 100%); aspect-ratio: 1 / 1.02; border-radius: 0; border: 1px solid var(--tq-line); background: #111; }
.tq-name { position: relative; z-index: 2; margin: calc(-1 * clamp(1.6rem, 4.4vw, 4.4rem)) 0 0; font-family: var(--font-body); font-weight: 300; font-size: clamp(3rem, 9vw, 8rem); line-height: 1.15; color: var(--tq-ink); text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }
.tq-specs3 { width: min(900px, 100%); margin: 36px 0 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--tq-line); }
.tq-specs3 > div { padding: 18px 12px 0; display: grid; gap: 6px; }
.tq-specs3 dt { font-size: .72rem; letter-spacing: .16em; color: var(--tq-mute); }
.tq-specs3 dd { margin: 0; font-size: 1.05rem; }
.tq-slider-nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 44px; }
.tq-arrow { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: var(--tq-ink); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s; }
.tq-arrow svg { width: 20px; height: 20px; }
.tq-arrow--next svg { transform: scaleX(-1); }
.tq-arrow:hover { background: var(--tq-ink); color: var(--tq-bg); }
.tq-dots { display: flex; gap: 8px; }
.tq-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: width .3s, background-color .3s; }
.tq-dots i.is-active { width: 28px; border-radius: 999px; background: var(--tq-accent); }

/* 3) بطاقات الأنواع */
.tq-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.tq-card { display: block; border: 1px solid var(--tq-line); background: var(--tq-bg); color: inherit; text-decoration: none; overflow: hidden; transition: border-color .3s; }
.tq-card:nth-child(3n+2) { margin-top: 120px; }
.tq-card:hover { border-color: var(--tq-accent); }
.tq-card__photo.photo { aspect-ratio: 1 / 1.02; border-radius: 0; background: #111; }
.tq-card__photo img { transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.tq-card:hover .tq-card__photo img { transform: scale(1.04); }
.tq-card__body { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 20px 22px 24px; border-top: 1px solid var(--tq-line); }
.tq-card h3 { font-family: var(--font-body); font-weight: 400; font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.3; margin: 0; }
.tq-status { justify-self: end; align-self: center; font-size: .8rem; color: var(--tq-accent); white-space: nowrap; }
.tq-muted { font-size: .85rem; color: var(--tq-mute); }
.tq-muted:last-child { justify-self: end; }
.tq-card .tq-status, .tq-card .tq-muted { direction: rtl; unicode-bidi: normal; }
.tq-types:has(.is-photoless) { }
[data-photo-section].is-photoless .tq-card__photo { display: none; }
#details.is-photoless { display: none; }

/* 4) لوحة الأرقام */
.tq-dials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--tq-line); }
.tq-dial { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 44px 20px 40px; border-inline-start: 1px solid var(--tq-line); }
.tq-dial:first-child { border-inline-start: 0; }
.tq-gauge { position: relative; width: min(300px, 100%); aspect-ratio: 1; margin-bottom: 6px; }
.tq-gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tq-gauge__read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.tq-gauge__read b { font-size: clamp(2.8rem, 4.6vw, 4.4rem); font-weight: 300; line-height: 1; }
.tq-gauge__read small { font-size: .8rem; color: var(--tq-mute); direction: rtl; unicode-bidi: normal; }
.g-tick { stroke: rgba(255, 255, 255, .25); stroke-width: 2; }
.g-tick.on { stroke: var(--tq-accent); }
.g-track { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; }
.g-arc { fill: none; stroke: var(--tq-accent); stroke-width: 2.5; stroke-linecap: round; }
.g-needle { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.tq-dial__en { font-size: .75rem; letter-spacing: .16em; color: var(--tq-mute); }
.tq-dial__txt { color: var(--tq-ink); font-size: 1rem; }

/* 5) المهيّئ */
.tq-cfg__stage { position: relative; width: min(1100px, 100%); height: min(62vh, 640px); margin: 0 auto; }
.tq-cfg-photo.photo { position: absolute; inset: 0; border-radius: 0; background: #111; opacity: 0; transition: opacity .5s ease; }
.tq-cfg-photo.is-active { opacity: 1; }
.tq-ticks { position: absolute; width: 64px; height: 64px; pointer-events: none; z-index: 2; background: linear-gradient(45deg, transparent calc(50% - .75px), rgba(255, 255, 255, .45) 50%, transparent calc(50% + .75px)), linear-gradient(135deg, transparent calc(50% - .75px), rgba(255, 255, 255, .45) 50%, transparent calc(50% + .75px)); }
.tq-ticks--tl { top: -32px; inset-inline-start: -32px; }
.tq-ticks--tr { top: -32px; inset-inline-end: -32px; }
.tq-ticks--bl { bottom: -32px; inset-inline-start: -32px; }
.tq-ticks--br { bottom: -32px; inset-inline-end: -32px; }
.tq-swatches { list-style: none; margin: 56px 0 18px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }
.tq-sw { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: #1b1b1b; color: #cfcfcf; font-size: .78rem; cursor: pointer; display: grid; place-items: center; padding: 0; transition: border-color .2s, background-color .2s, color .2s; }
.tq-sw:hover { border-color: #fff; color: #fff; }
.tq-sw.is-active { outline: 1.5px solid var(--tq-accent); outline-offset: 4px; background: #2a2a2a; color: #fff; }
.tq-cfg__label { margin: 0 0 30px; font-size: .95rem; color: #fff; direction: rtl; unicode-bidi: normal; max-width: none; }
.tq-cfg__label i { font-style: normal; color: var(--tq-accent); }
.tq-cfg__label b { font-weight: 400; color: var(--tq-accent); font-family: var(--font-mono); }

/* 6) التفاصيل */
.tq-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tq-tile .photo { aspect-ratio: 3 / 4; border-radius: 0; background: #111; }
.tq-cap { margin: 14px 0 0; font-size: .85rem; color: var(--tq-mute); direction: rtl; unicode-bidi: normal; }

/* 7) بيان العمل */
.tq-statement-sec .tq-wide { display: grid; justify-items: start; gap: 26px; }
.tq-statement { font-size: clamp(1.9rem, 4.4vw, 4.2rem); line-height: 1.35; font-weight: 300; color: var(--tq-ink); max-width: 26em; margin: 0 0 20px; text-wrap: balance; }
.tq-statement .o { color: var(--tq-accent); }
.tq-statement.is-split .w { color: rgba(255, 255, 255, .2); transition: color .35s ease; }
.tq-statement.is-split .w.o { color: rgba(255, 154, 60, .25); }
.tq-statement.is-split .w.is-lit { color: var(--tq-ink); }
.tq-statement.is-split .w.o.is-lit { color: var(--tq-accent); }

/* 8) الحاسبة */
.tq-calc { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.tq-calc__intro { display: grid; gap: 22px; justify-items: start; position: sticky; top: calc(var(--header-h) + 32px); }
.tq-calc__intro p:not(.tq-eyebrow) { color: var(--tq-mute); font-size: 1.1rem; }
.tq-ctl { display: grid; gap: 14px; margin-bottom: 38px; }
.tq-ctl__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.tq-ctl label, .tq-term legend { font-size: .8rem; letter-spacing: .08em; color: var(--tq-mute); padding: 0; }
.tq-ctl output { color: #fff; font-size: 1.05rem; }
.tq-range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; }
.tq-range::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(to left, var(--tq-accent) var(--fill, 50%), rgba(255, 255, 255, .35) var(--fill, 50%)); }
.tq-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 12px; margin-top: -5.5px; background: #f4f4f4; border: 0; border-radius: 1px; }
.tq-range::-moz-range-track { height: 1px; background: rgba(255, 255, 255, .35); }
.tq-range::-moz-range-progress { height: 1px; background: var(--tq-accent); }
.tq-range::-moz-range-thumb { width: 28px; height: 12px; background: #f4f4f4; border: 0; border-radius: 1px; }
.tq-range:focus-visible { outline: 2px solid var(--tq-accent); outline-offset: 6px; }
.tq-line { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .35); border-radius: 0; padding: 6px 0 10px; font-size: 1.7rem; color: #fff; text-align: right; }
.tq-line::placeholder { color: rgba(255, 255, 255, .3); font-family: var(--font-body); font-size: 1.05rem; }
.tq-line:focus { outline: none; border-bottom-color: var(--tq-accent); }
.tq-hint2 { margin: 0; font-size: .85rem; color: var(--tq-mute); }
.tq-term { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.tq-term legend { grid-column: 1 / -1; margin-bottom: 14px; }
.tq-term label { margin: 0; display: block; position: relative; }
.tq-term span { display: block; padding: 18px 8px; text-align: center; border: 1px solid var(--tq-line); border-radius: 0; background: transparent; color: var(--tq-mute); margin-inline-start: -1px; font-size: .9rem; transition: background-color .2s, color .2s; }
.tq-term label:hover span { border-color: rgba(255, 255, 255, .4); }
.tq-term input:checked + span { background: #17181a; color: #fff; border-color: var(--tq-line); box-shadow: inset 0 2px 0 #fff; }
.tq-term input:focus-visible + span { outline: 2px solid var(--tq-accent); outline-offset: 2px; }
.tq-result { border-top: 1px solid var(--tq-line); margin-top: 28px; padding-top: 34px; }
.tq-big { margin: 0; max-width: none; line-height: 1; }
.tq-big b { font-size: clamp(3.4rem, 8vw, 7rem); font-weight: 300; }
.tq-big small { font-size: 1rem; color: var(--tq-mute); direction: rtl; unicode-bidi: normal; }
.tq-bar { display: block; width: 230px; max-width: 60%; height: 2px; background: var(--tq-accent); margin: 18px 0 26px; }
.tq-empty { margin: 0 0 20px; color: var(--tq-accent); }
.tq-empty[hidden] { display: none; }
.tq-out { margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.tq-out dt { font-size: .82rem; color: var(--tq-mute); margin-bottom: 4px; direction: rtl; unicode-bidi: normal; }
.tq-out dd { margin: 0; font-size: 1.6rem; }
.tq-out small { font-size: .85rem; color: var(--tq-mute); }
.tq-fine { margin: 0; font-size: .85rem; color: var(--tq-mute); line-height: 1.8; max-width: 62ch; }

/* 9) من الزيارة إلى التشغيل */
.tq-banner.photo { aspect-ratio: 21 / 8; border-radius: 0; background: #111; }
.tq-flowline { position: relative; height: 1px; background: var(--tq-line); margin: 52px 0 30px; }
.tq-flowline i { position: absolute; top: -1px; inset-inline-start: calc(var(--s, 0) * 33.3334%); width: 72px; height: 3px; background: var(--tq-accent); transition: inset-inline-start .5s cubic-bezier(.2, .7, .1, 1); }
.tq-own { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.tq-own li { display: grid; gap: 8px; align-content: start; opacity: .38; transition: opacity .4s; cursor: pointer; }
.tq-own li.is-active { opacity: 1; }
.tq-own b { color: var(--tq-accent); font-size: .85rem; font-weight: 400; }
.tq-own h3 { margin: 0; font-family: var(--font-body); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.9rem); }
.tq-own p { margin: 0; color: var(--tq-mute); }

/* 10) المكتب */
.tq-office { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.tq-office__main { display: grid; gap: 22px; justify-items: start; }
.tq-contact { margin: 6px 0 0; display: grid; gap: 18px; }
.tq-contact dt { font-size: .78rem; color: var(--tq-mute); margin-bottom: 2px; }
.tq-contact dd { margin: 0; font-size: 1.5rem; font-weight: 300; }
.tq-contact a { color: inherit; text-decoration: none; }
.tq-contact a:hover { color: var(--tq-accent); }
.tq-note { margin: 0; padding: 14px 16px; border: 1px dashed rgba(255, 154, 60, .6); color: var(--tq-accent); font-size: .92rem; max-width: 46ch; }
.tq-plan { margin: 0; }
.tq-plan__room { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); padding: clamp(40px, 7vw, 90px) clamp(36px, 6vw, 80px); border: 1px solid var(--tq-line); }
.tq-bay { position: relative; aspect-ratio: 1.62; padding: 14px 16px; background: #1b1c1f; border: 1px solid #33353a; display: flex; flex-direction: column; justify-content: space-between; }
.tq-bay::before { content: ""; position: absolute; top: -1px; inset-inline: 0; margin-inline: auto; width: 46%; height: 2px; background: #f4f4f4; }
.tq-bay span { font-size: .75rem; letter-spacing: .14em; color: var(--tq-accent); }
.tq-bay b { font-weight: 400; font-size: clamp(.95rem, 1.4vw, 1.2rem); }
.tq-plan__desk { position: absolute; top: 40%; inset-inline-end: -1px; width: clamp(28px, 3vw, 44px); height: 22%; border: 1px solid var(--tq-line); background: var(--tq-bg); font-size: .62rem; letter-spacing: .14em; color: var(--tq-mute); display: grid; place-items: center; writing-mode: vertical-rl; }
.tq-plan__door { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 50%); padding: 0 22px; background: var(--tq-bg); font-size: .72rem; letter-spacing: .2em; color: var(--tq-mute); }
.tq-plan figcaption { margin-top: 34px; font-size: .85rem; color: var(--tq-mute); }

/* 11) حجز معاينة */
.tq-book { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.tq-book:has(.tq-book__photo.is-missing) { grid-template-columns: minmax(0, 820px); justify-content: center; }
.tq-book__photo.photo { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; border-radius: 0; background: #111; }
.tq-book__form { display: grid; gap: 18px; min-width: 0; }
.tq-book__lead { margin: 0 0 8px; color: var(--tq-mute); font-size: 1.1rem; max-width: 52ch; }
.tq-book .form-card { background: transparent; border: 0; padding: 0; color: inherit; margin-top: 12px; }
.tq-book .fieldset legend { font-family: var(--font-mono); font-weight: 500; font-size: .8rem; letter-spacing: .1em; color: var(--tq-accent); border-bottom-color: var(--tq-line); }
.tq-book .field label, .tq-book .field .label { font-family: var(--font-mono); font-weight: 500; font-size: .78rem; color: var(--tq-mute); }
.tq-book .req { color: var(--tq-accent); }
.tq-book .input { background: #0d0d0d; color: var(--tq-ink); border: 1px solid rgba(255, 255, 255, .18); border-radius: 0; padding-block: 18px; }
.tq-book .input:hover { border-color: rgba(255, 255, 255, .42); background: #0d0d0d; }
.tq-book .input:focus { background: #0d0d0d; border-color: var(--tq-accent); box-shadow: none; }
.tq-book .input::placeholder { color: rgba(255, 255, 255, .32); }
.tq-book .input[aria-invalid="true"] { border-color: #ff8f7f; background: #170f0e; }
.tq-book select.input option { background: #0d0d0d; color: var(--tq-ink); }
.tq-book input[type="date"] { color-scheme: dark; }
.tq-book .hint { color: var(--tq-mute); }
.tq-book .error-msg { color: #ff8f7f; }
.tq-book .check input { accent-color: var(--tq-accent); }
.tq-book .prefill-note { color: var(--tq-accent); }
.tq-book .btn--dark { background: var(--tq-ink); color: var(--tq-bg); border-color: var(--tq-ink); min-height: 56px; padding-inline: 34px; font-weight: 500; }
.tq-book .btn--dark:hover { background: var(--tq-accent); border-color: var(--tq-accent); }
.tq-book .btn--outline { color: var(--tq-ink); border-color: rgba(255, 255, 255, .4); }
.tq-book .btn--outline:hover { background: var(--tq-ink); color: var(--tq-bg); }
.tq-book .status[data-state="ok"] { background: #11201a; color: #bfe6d3; border: 1px solid #2c6652; border-radius: 0; }
.tq-book .status[data-state="error"] { background: #231412; color: #ffc9c0; border: 1px solid #7d281c; border-radius: 0; }
.tq-book .error-summary { background: #231412; color: #ffc9c0; border-color: #ff8f7f; border-radius: 0; }

/* الفوتر على الرئيسية */
.tq .site-footer { background: var(--tq-bg); color: #cfcfcf; border-top: 1px solid var(--tq-line); }
.tq .site-footer .container { max-width: none; padding-inline: var(--tq-pad); }
.tq .site-footer h3 { font-family: var(--font-mono); font-weight: 500; font-size: .78rem; letter-spacing: .14em; color: var(--tq-accent); }
.tq .site-footer a:hover { color: var(--tq-accent); }
.tq .site-footer__word { font-family: var(--font-wide); font-weight: 200; font-stretch: 125%; font-size: clamp(4.4rem, 22vw, 24rem); letter-spacing: .02em; line-height: .8; color: #f2f2f2; white-space: nowrap; }
.tq .site-footer__bottom { border-top-color: var(--tq-line); color: var(--tq-mute); }
.to-top { color: inherit; text-decoration: none; opacity: .8; }
.to-top:hover { opacity: 1; }

/* الجوال */
@media (max-width: 1100px) {
  .tq-dials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tq-dial:nth-child(3) { border-inline-start: 0; }
  .tq-dial:nth-child(n+3) { border-top: 1px solid var(--tq-line); }
  .tq-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .tq-hero__bottom { grid-template-columns: 1fr; gap: 20px; }
  .tq-stats { justify-content: start; }
  .tq-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .tq-card:nth-child(3n+2) { margin-top: 0; }
  .tq-card:nth-child(2n) { margin-top: 60px; }
  .tq-calc, .tq-office, .tq-book { grid-template-columns: 1fr; }
  .tq-calc__intro { position: static; }
  .tq-book__photo.photo { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .tq-banner.photo { aspect-ratio: 16 / 8; }
}
@media (max-width: 640px) {
  .tq { --header-h: 72px; }
  .tq-hero { height: 280vh; }
  .tq-hero__stage { min-height: 520px; }
  .tq-hero__frames { width: 78vw; }
  .tq-strips { width: 70%; }
  .tq-word { font-size: min(24vw, 34svh); }
  .tq-hero__bottom { padding-block: 16px 20px; gap: 14px; }
  .tq-lead { font-size: .95rem; }
  .tq-stats { gap: 20px; }
  .tq-stats span { display: none; }
  .tq-stats b { font-size: 1.8rem; }
  .tq-hud { font-size: .68rem; bottom: 10px; }
  .tq-slider__meta { font-size: .68rem; }
  .tq-slider__bar { width: 80%; margin-bottom: 28px; }
  .tq-specs3 { grid-template-columns: 1fr; }
  .tq-specs3 > div { padding: 12px 0; border-bottom: 1px solid var(--tq-line); }
  .tq-types { grid-template-columns: 1fr; }
  .tq-card:nth-child(n) { margin-top: 0; }
  .tq-dial { padding: 28px 8px; }
  .tq-cfg__stage { height: 300px; }
  .tq-ticks { display: none; }
  .tq-swatches { gap: 12px; margin-top: 36px; }
  .tq-sw { width: 40px; height: 40px; }
  .tq-details { grid-template-columns: 1fr 1fr; gap: 14px; }
  .tq-out { grid-template-columns: 1fr 1fr; gap: 18px; }
  .tq-term span { padding: 14px 2px; font-size: .78rem; }
  .tq-own { grid-template-columns: 1fr; gap: 26px; }
  .tq-flowline { display: none; }
  .tq-own li { opacity: 1; }
  .tq-plan__room { padding: 34px 28px; gap: 10px; }
  .tq-bay { padding: 8px 10px; }
  .tq-bay span { font-size: .6rem; }
  .tq-plan__desk { display: none; }
  .tq .site-footer__top { grid-template-columns: 1fr; }
}

/* نصوص عربية داخل عناصر أحادية الخط: نستعمل خط النص كي تتصل الحروف */
.tq-status, .tq-muted, .tq-cap, .tq-gauge__read small, .tq-big small, .tq-out dt, .tq-out small, .tq-term span, .tq-ctl label, .tq-term legend, .tq-cfg__label, .tq-hint2 { font-family: var(--font-body); letter-spacing: 0; }
.tq-ctl output, .tq-out dd, .tq-gauge__read b { font-family: var(--font-mono); }
.tq-eyebrow { direction: rtl; unicode-bidi: normal; max-width: none; }
.tq-book .fieldset legend, .tq-book .field label, .tq-book .field .label { font-family: var(--font-body); letter-spacing: 0; font-size: .9rem; }
.tq-book .fieldset legend { font-weight: 500; font-size: .95rem; }
.tq-book .field label, .tq-book .field .label { font-weight: 400; }

.tq-hero__frames { width: min(84vw, 1180px); }
.row { align-items: start; }
.field { align-content: start; }

.tq-bay { overflow: hidden; isolation: isolate; }
.tq-bay__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.tq-bay::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .05) 55%, rgba(0, 0, 0, .35)); }
.tq-bay:hover .tq-bay__img { transform: scale(1.06); }
.tq-bay b { text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
