/* ==========================================================================
   مصنع النافذة الحديثة · KOMA — الواجهة العامة
   نظام موحّد: ألوان الهوية، مقاسات ثابتة للصور (4:3)، أيقونات 20/24px،
   خصائص منطقية (logical) لتعمل بالعربية والإنجليزية.
   ========================================================================== */
:root {
  --ink: #0b2530;
  --ink-2: #123542;
  --ink-3: #1a4554;
  --teal: #1a7ca1;
  --teal-d: #11607f;
  --sun: #fdd13a;
  --sun-d: #f2c214;
  --rose: #e0294d;
  --koma-y: #ffc536;
  --koma-r: #e52b29;
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --card: #ffffff;
  --text: #15242b;
  --muted: #5b6b72;
  --line: rgba(11, 37, 48, .12);
  --line-light: rgba(255, 255, 255, .14);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --sh: 0 1px 2px rgba(11, 37, 48, .05), 0 10px 30px -12px rgba(11, 37, 48, .18);
  --sh-lg: 0 2px 4px rgba(11, 37, 48, .06), 0 24px 60px -20px rgba(11, 37, 48, .35);
  --font: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  --display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.75; color: var(--text); background: var(--paper); overflow-x: clip; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-d); }
button { font: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(32px, 4.6vw, 60px); }
h2 { font-size: clamp(26px, 3vw, 42px); }
h3 { font-size: clamp(18px, 1.6vw, 21px); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.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; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip:focus { top: 8px; color: #fff; }

.i { flex: none; }
[dir="rtl"] .i-arrow, [dir="rtl"] .i-chevron { transform: scaleX(-1); }
.hero-prev .i-chevron, .lb-prev .i-chevron { transform: scaleX(-1); }
[dir="rtl"] .hero-prev .i-chevron, [dir="rtl"] .lb-prev .i-chevron { transform: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: clamp(17px, 1.45vw, 19.5px); color: var(--muted); max-width: 720px; }
.display { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.25; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--teal); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--rose); }
.eb-num { order: -1; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .06em; }
.eyebrow:has(.eb-num)::before { order: 0; }

/* ---------- الأزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 10px 26px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; font-size: 15.5px; line-height: 1.2; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--ink-3); border-color: var(--ink-3); color: #fff; transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 6px 20px; font-size: 14.5px; }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--sun-d); border-color: var(--sun-d); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(253, 209, 58, .8); }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(11, 37, 48, .25); }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-glass:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-dark { background: #111; border-color: #111; }
.btn-koma { background: var(--koma-y); border-color: var(--koma-y); color: #111; }
.btn-koma:hover { background: #fff; border-color: #fff; color: #111; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); background: #fff; transition: .2s; }
.icon-btn:hover { background: var(--ink); color: #fff; }
.icon-btn.wa { color: #12a150; }
.icon-btn.wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; color: var(--ink); white-space: nowrap; padding-bottom: 4px; border-bottom: 2px solid var(--sun); }
.link-arrow:hover { color: var(--teal); }
.link-arrow .i { transition: transform .2s; }

/* ---------- الشريط العلوي ---------- */
.util { background: var(--ink); color: #bcd2da; font-size: 13.5px; position: relative; z-index: 60; }
.util-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.util a, .util summary { color: #e4eef1; display: inline-flex; align-items: center; gap: 7px; }
.util a:hover, .util summary:hover { color: var(--sun); }
.util-contact, .util-tools { display: flex; align-items: center; gap: 22px; }
.staff { position: relative; }
.staff summary { list-style: none; cursor: pointer; padding: 6px 0; }
.staff summary::-webkit-details-marker { display: none; }
.staff[open] summary { color: var(--sun); }
.staff-menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; width: 290px; background: #fff; border-radius: var(--r); box-shadow: var(--sh-lg); padding: 8px; display: grid; gap: 2px; }
.staff-menu a { color: var(--ink) !important; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-family: var(--display); font-weight: 500; }
.staff-menu a:hover { background: var(--paper); }
.staff-menu .ext { margin-inline-start: auto; color: var(--muted); }
.staff-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--paper); color: var(--teal); }
.lang-switch { font-family: var(--display); font-weight: 500; }

/* ---------- الرأس ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand img { width: 190px; }
.main-nav { margin-inline-start: auto; }
.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav > ul > li > a { position: relative; display: block; padding: 10px 13px; color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 15px; border-radius: 10px; }
.main-nav > ul > li > a::after { content: ""; position: absolute; inset-inline: 13px; bottom: 4px; height: 2px; background: var(--rose); transform: scaleX(0); transition: transform .25s; transform-origin: center; }
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a.active::after { transform: scaleX(1); }
.main-nav > ul > li > a.active { color: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-mobile-extra { display: none; }
.has-mega { position: static; }
.mega { position: absolute; inset-inline: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(11, 37, 48, .35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px 32px; }
.mega-col { display: flex; flex-direction: column; gap: 3px; }
.mega-col a { color: var(--muted); font-size: 14.5px; padding: 3px 0; }
.mega-col a:hover { color: var(--teal); }
.mega-col .mega-title { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 15.5px; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 2px solid var(--sun); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 13px 12px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- الأقسام العامة ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section.tight { padding-block: clamp(36px, 4vw, 56px); }
.section.alt, .product-group.alt { background: var(--paper-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(28px, 3.5vw, 48px); flex-wrap: wrap; }
.sec-head > div { max-width: 760px; }
.sec-head h2 { margin-bottom: .35em; }
.sec-head .lead { margin: 0; }
.h-sub { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 2vw, 28px); margin-bottom: 24px; }
.count { font-family: var(--font); font-size: 13px; font-weight: 600; background: var(--card); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }

/* ---------- السلايدر ---------- */
.hero { position: relative; background: var(--ink); color: #fff; }
.hero-stage { position: relative; overflow: hidden; aspect-ratio: 1920 / 820; min-height: 500px; max-height: 820px; }
.hero-track, .slide, .slide picture, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide { opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { object-fit: cover; }
.slide--photo img { transform: scale(1.06); transition: transform 8s ease-out; }
.slide--photo.is-active img { transform: scale(1); }
.slide--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 26, 34, .75) 0%, rgba(8, 26, 34, .15) 45%, rgba(8, 26, 34, 0) 70%), linear-gradient(to left, rgba(8, 26, 34, .55), rgba(8, 26, 34, 0) 60%); pointer-events: none; }
[dir="ltr"] .slide--photo::after { background: linear-gradient(to top, rgba(8, 26, 34, .75) 0%, rgba(8, 26, 34, .15) 45%, rgba(8, 26, 34, 0) 70%), linear-gradient(to right, rgba(8, 26, 34, .55), rgba(8, 26, 34, 0) 60%); }
.slide-link { position: absolute; inset: 0; z-index: 2; }
.slide-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; padding-bottom: clamp(32px, 4vw, 64px); }
.slide-card { position: relative; max-width: 640px; padding: clamp(24px, 3vw, 40px); background: rgba(11, 37, 48, .55); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-lg); backdrop-filter: blur(10px); transform: translateY(16px); opacity: 0; transition: transform .8s .25s ease, opacity .8s .25s ease; }
.slide.is-active .slide-card { transform: none; opacity: 1; }
.slide-brackets { position: absolute; top: -14px; inset-inline-start: -14px; width: 46px; height: 46px; pointer-events: none; }
.slide-brackets::before, .slide-brackets::after { content: ""; position: absolute; border: 5px solid var(--rose); border-bottom: 0; border-inline-end: 0; border-radius: 10px 0 0 0; }
[dir="rtl"] .slide-brackets::before, [dir="rtl"] .slide-brackets::after { border-radius: 0 10px 0 0; }
.slide-brackets::before { inset: 0; }
.slide-brackets::after { inset: 12px -12px -12px 12px; border-color: var(--sun); }
[dir="rtl"] .slide-brackets::after { inset: 12px 12px -12px -12px; }
.slide-kicker { font-family: var(--display); font-size: 13.5px; color: var(--sun); margin-bottom: 10px; letter-spacing: .02em; }
.slide-title { color: #fff; font-size: clamp(28px, 3.8vw, 52px); margin-bottom: 12px; }
.slide-sub { color: rgba(255, 255, 255, .86); font-size: clamp(15.5px, 1.3vw, 18px); margin-bottom: 22px; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-ui { background: var(--ink); border-bottom: 1px solid var(--line-light); }
.hero-ui-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.hero-count { font-family: var(--display); font-size: 14px; color: rgba(255, 255, 255, .7); min-width: 64px; }
.hero-count b { color: #fff; font-size: 20px; }
.hero-bars { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.hero-bars button { flex: 1; height: 18px; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.hero-bars i { display: block; height: 3px; background: rgba(255, 255, 255, .3); border-radius: 2px; overflow: hidden; position: relative; }
.hero-bars i::after { content: ""; position: absolute; inset: 0; background: var(--sun); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .hero-bars i::after { transform-origin: left; }
.hero-bars .is-done i::after { transform: scaleX(1); }
.hero-bars .is-active i::after { animation: bar var(--slide-ms, 6500ms) linear forwards; }
.hero.paused .hero-bars .is-active i::after { animation-play-state: paused; }
@keyframes bar { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 8px; margin-inline-start: auto; }
.hero-arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: .2s; }
.hero-arrows button:hover { background: #fff; color: var(--ink); }

/* ---------- الأرقام ---------- */
.stats { position: relative; z-index: 4; margin-top: -1px; background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { display: flex; align-items: center; gap: 16px; padding: 28px 22px; border-inline-start: 1px solid var(--line-light); }
.stats-grid > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stats strong { font-family: var(--display); font-size: clamp(38px, 4vw, 56px); line-height: 1; color: var(--sun); font-weight: 700; }
.stats span { font-size: 14.5px; color: #c4d6dd; line-height: 1.55; }

/* ---------- المقدمة ---------- */
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.intro-media { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / .92; }
.intro-media .im { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); box-shadow: var(--sh); }
.intro-media .im img { width: 100%; height: 100%; object-fit: cover; }
.intro-media .im-0 { grid-row: span 2; }
.frame-mark { position: absolute; width: 96px; height: 96px; top: -22px; inset-inline-end: -22px; pointer-events: none; }
.frame-mark::before, .frame-mark::after { content: ""; position: absolute; border: 9px solid var(--rose); border-bottom: 0; border-inline-start: 0; border-radius: 0 18px 0 0; }
[dir="rtl"] .frame-mark::before, [dir="rtl"] .frame-mark::after { border-radius: 18px 0 0 0; }
.frame-mark::before { inset: 0; }
.frame-mark::after { inset: 26px 26px -26px -26px; }
[dir="rtl"] .frame-mark::after { inset: 26px -26px -26px 26px; }

/* ---------- البنتو (الحلول) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, minmax(220px, 1fr)); grid-template-areas: "a a b b" "a a c d" "e e f f"; gap: 16px; }
.bento-tile { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; color: #fff; background: var(--ink); min-height: 220px; isolation: isolate; }
.bento-tile.t0 { grid-area: a; } .bento-tile.t1 { grid-area: b; } .bento-tile.t2 { grid-area: c; }
.bento-tile.t3 { grid-area: d; } .bento-tile.t4 { grid-area: e; } .bento-tile.t5 { grid-area: f; }
.bento-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s ease; }
.bento-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 26, 34, .92) 0%, rgba(8, 26, 34, .35) 50%, rgba(8, 26, 34, .05) 100%); transition: background .3s; }
.bento-tile.is-koma::after { background: linear-gradient(to top, rgba(10, 10, 10, .9) 0%, rgba(10, 10, 10, .3) 55%, rgba(10, 10, 10, 0) 100%); }
.bento-tile:hover img { transform: scale(1.06); }
.bento-tile:hover { color: #fff; }
.bento-body { position: absolute; inset: auto 0 0 0; padding: clamp(18px, 2vw, 28px); display: flex; flex-direction: column; gap: 6px; }
.bento-body strong { font-family: var(--display); font-size: clamp(19px, 1.8vw, 26px); font-weight: 600; line-height: 1.3; }
.t0 .bento-body strong { font-size: clamp(24px, 2.6vw, 36px); }
.bento-sub { font-size: 14.5px; color: rgba(255, 255, 255, .8); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 520px; }
.bento-tile:not(.t0):not(.t4):not(.t5):not(.t1) .bento-sub { display: none; }
.bento-go { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-family: var(--display); color: var(--sun); margin-top: 4px; }
.bento-tile:hover .bento-go .i { transform: translateX(4px); }
[dir="rtl"] .bento-tile:hover .bento-go .i { transform: scaleX(-1) translateX(4px); }
.badge { align-self: flex-start; display: inline-flex; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 3px 9px; border-radius: 6px; line-height: 1.3; }
.badge.koma { background: #111; color: var(--koma-y); }

/* ---------- العلامتان ---------- */
.brands-duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 96px) var(--gutter); color: #fff; }
.duo-inner { max-width: 560px; margin-inline: auto; position: relative; z-index: 1; }
.duo h2 { color: #fff; font-size: clamp(24px, 2.4vw, 34px); margin: 24px 0 20px; }
.duo-logo { width: 210px; }
.duo-logo.koma { width: 190px; }
.duo-mw { background: radial-gradient(circle at 15% 110%, rgba(253, 209, 58, .16), transparent 40%), linear-gradient(135deg, var(--teal-d), var(--ink)); }
.duo-mw::before, .duo-mw::after { content: ""; position: absolute; border: 34px solid rgba(255, 255, 255, .06); border-bottom: 0; border-inline-start: 0; border-radius: 0 50px 0 0; }
[dir="rtl"] .duo-mw::before, [dir="rtl"] .duo-mw::after { border-radius: 50px 0 0 0; }
.duo-mw::before { width: 300px; height: 300px; top: 40px; inset-inline-end: -80px; }
.duo-mw::after { width: 300px; height: 300px; top: 120px; inset-inline-end: 0; }
.duo-koma { background: #121212; }
.duo-koma::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--koma-r); opacity: .14; bottom: -90px; inset-inline-end: -60px; }
.duo-koma::after { content: ""; position: absolute; width: 0; height: 0; border-inline: 110px solid transparent; border-bottom: 180px solid var(--koma-y); opacity: .08; bottom: -40px; inset-inline-start: 6%; }
.duo-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.duo-list a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 14.5px; transition: .2s; }
.duo-list a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.duo-koma .duo-list a:hover { background: var(--koma-y); color: #111; border-color: var(--koma-y); }

/* ---------- المميزات ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 4px 16px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.feature:hover { border-color: transparent; box-shadow: var(--sh); transform: translateY(-2px); }
.feature-ic { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff7d3; color: var(--ink); }
.feature b { font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--ink); }
.feature span:last-child { font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* ---------- شريط الأعمال ---------- */
.works { overflow: hidden; }
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 20px; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
@media (min-width: 1280px) { .rail { padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }
.rail-item { position: relative; flex: none; width: clamp(240px, 26vw, 340px); aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start; background: var(--paper-2); }
.rail-item:nth-child(3n+2) { aspect-ratio: 4 / 5; align-self: flex-end; }
.rail-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.rail-item:hover img { transform: scale(1.05); }
.rail-item span { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: 14px; font-family: var(--display); }

/* ---------- الخطوات ---------- */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step-list li { position: relative; background: var(--card); border-radius: var(--r); padding: 26px 24px 28px; border-top: 4px solid var(--teal); box-shadow: var(--sh); }
.step-list li:nth-child(2) { border-color: var(--sun); }
.step-list li:nth-child(3) { border-color: var(--rose); }
.step-list li:nth-child(4) { border-color: var(--ink); }
.step-n { display: block; font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ink-3); margin-bottom: 14px; }
.step-list b { display: block; font-family: var(--display); font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.step-list li > span:last-child { font-size: 14.5px; color: var(--muted); }

/* ---------- الآراء ---------- */
.testimonials { background: var(--ink); }
.testimonials h2 { color: #fff; }
.testimonials .eyebrow { color: var(--sun); }
.testimonials .eb-num { color: #8fb0bb; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { margin: 0; background: var(--ink-2); border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: 30px; color: #e3eef2; display: flex; flex-direction: column; }
.quote .i { color: var(--sun); margin-bottom: 14px; }
.quote p { font-size: 16.5px; flex: 1; }
.quote cite { font-style: normal; font-family: var(--display); color: #fff; font-weight: 600; font-size: 15px; padding-top: 14px; border-top: 1px solid var(--line-light); }

/* ---------- الكتالوجات ---------- */
.catalogs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.catalog { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); transition: .2s; }
.catalog:hover { border-color: var(--ink); box-shadow: var(--sh); color: var(--ink); }
.catalog-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--teal); color: #fff; flex: none; }
.catalog.is-koma .catalog-ic { background: #111; color: var(--koma-y); }
.catalog-t { display: flex; flex-direction: column; font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.4; flex: 1; }
.catalog-t small { font-family: var(--font); font-weight: 500; font-size: 12.5px; color: var(--muted); }
.catalog-dl { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-family: var(--display); color: var(--teal); white-space: nowrap; }
.downloads-inline { margin-top: 32px; }

/* ---------- الشركاء ---------- */
.partners-strip { padding-block: 40px; border-block: 1px solid var(--line); }
.partners-strip .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.partners-strip .eyebrow { margin: 0; }
.partner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; flex: 1; }
.partner-list li { font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.4vw, 19px); color: #8b979c; letter-spacing: .02em; }

/* ---------- المواقع ---------- */
.locations { display: grid; grid-template-columns: 380px 1fr; gap: 16px; background: var(--card); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--sh); }
.loc-list { display: flex; flex-direction: column; gap: 8px; }
.loc-item { border-radius: var(--r); border: 1px solid var(--line); transition: .2s; }
.loc-item.is-active { background: var(--ink); border-color: var(--ink); }
.loc-tab { display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: start; padding: 16px 16px 8px; background: none; border: 0; cursor: pointer; color: var(--ink); }
.loc-item.is-active .loc-tab { color: #fff; }
.loc-n { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--rose); padding-top: 2px; }
.loc-item.is-active .loc-n { color: var(--sun); }
.loc-t { display: flex; flex-direction: column; gap: 2px; }
.loc-t b { font-family: var(--display); font-size: 16px; font-weight: 600; }
.loc-t small { font-size: 13.5px; opacity: .75; line-height: 1.55; }
.loc-open { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 0 16px 14px 16px; margin-inline-start: 38px; color: var(--teal); font-family: var(--display); }
.loc-item.is-active .loc-open { color: var(--sun); }
.loc-map { border-radius: var(--r); overflow: hidden; min-height: 380px; background: var(--paper-2); }
.loc-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- الدعوة ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--teal-d) 0%, var(--ink) 70%); color: #fff; padding-block: clamp(48px, 6vw, 72px); }
.cta-band::after { content: ""; position: absolute; width: 170px; height: 170px; border: 26px solid rgba(253, 209, 58, .22); border-bottom: 0; border-inline-start: 0; border-radius: 0 40px 0 0; inset-inline-end: 4%; top: 28px; }
[dir="rtl"] .cta-band::after { border-radius: 40px 0 0 0; }
.cta-band.koma { background: var(--koma-y); color: #111; }
.cta-band.koma::after { border-color: rgba(229, 43, 41, .35); }
.cta-band h2 { color: inherit; margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: .88; }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- رؤوس الصفحات ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-block: clamp(56px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.page-hero::before, .page-hero::after { content: ""; position: absolute; border-style: solid; border-bottom: 0; border-inline-start: 0; border-radius: 0 44px 0 0; pointer-events: none; }
[dir="rtl"] .page-hero::before, [dir="rtl"] .page-hero::after { border-radius: 44px 0 0 0; }
.page-hero::before { width: 260px; height: 260px; border-width: 34px; border-color: rgba(224, 41, 77, .35); top: 40px; inset-inline-end: 4%; }
.page-hero::after { width: 260px; height: 260px; border-width: 34px; border-color: rgba(253, 209, 58, .22); top: 110px; inset-inline-end: calc(4% + 70px); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 900px; }
.page-hero .lead { color: #c4d6dd; }
.page-hero .eyebrow { color: var(--sun); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jump a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-light); color: #fff; font-size: 14px; }
.jump a:hover { background: #fff; color: var(--ink); }

.cat-hero { position: relative; overflow: hidden; color: #fff; background: var(--ink); min-height: clamp(320px, 36vw, 460px); display: flex; align-items: flex-end; }
.cat-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 26, 34, .92) 5%, rgba(8, 26, 34, .45) 60%, rgba(8, 26, 34, .25)); }
.cat-hero.is-koma::after { background: linear-gradient(to top, rgba(10, 10, 10, .92) 5%, rgba(10, 10, 10, .45) 60%, rgba(10, 10, 10, .2)); }
.cat-hero-in { position: relative; z-index: 1; padding-block: 48px 40px; }
.cat-hero h1 { color: #fff; margin-bottom: 10px; }
.cat-hero .lead { color: rgba(255, 255, 255, .86); }
.cat-hero-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; }
.cat-hero-meta > span { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .8); }
.mini-koma { width: 96px; margin-bottom: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; margin-bottom: 16px; color: rgba(255, 255, 255, .7); }
.crumbs a { color: rgba(255, 255, 255, .88); }
.crumbs a:hover { color: var(--sun); }
.crumbs a::after { content: "/"; margin-inline-start: 6px; opacity: .45; }

.chips-bar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.sub { padding-top: 18px; flex-wrap: wrap; }
.chip { flex: none; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 14.5px; white-space: nowrap; transition: .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.small { font-size: 13.5px; padding: 6px 14px; }

/* ---------- البطاقات ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cat-grid.compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat-card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; color: var(--text); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; color: var(--text); }
.cat-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat-card:hover .cat-img img { transform: scale(1.05); }
.cat-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; flex: 1; }
.cat-meta { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.cat-count { font-size: 12.5px; color: var(--muted); }
.cat-body strong { font-family: var(--display); font-size: 17.5px; font-weight: 600; color: var(--ink); line-height: 1.4; padding-inline-end: 40px; }
.cat-sum { font-size: 14px; color: var(--muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-body { position: relative; }
.cat-go { position: absolute; top: 18px; inset-inline-end: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); color: var(--ink); transition: .2s; }
.cat-card:hover .cat-go { background: var(--sun); }

/* ---------- التفاصيل ---------- */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.prose p { font-size: 17.5px; line-height: 1.9; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.video { position: relative; margin-top: 32px; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: var(--sh); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.is-file { aspect-ratio: auto; max-width: 420px; }
.video video { display: block; width: 100%; max-height: 640px; background: #000; }
.feature-box { position: sticky; top: calc(var(--header-h) + 76px); background: var(--card); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh); border-top: 5px solid var(--sun); }
.feature-box h2 { font-size: 21px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-inline-start: 32px; line-height: 1.7; }
.checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 20px; height: 20px; border-radius: 6px; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.checklist.two { grid-template-columns: 1fr 1fr; gap: 14px 28px; }

/* ---------- معرض الصور ---------- */
.masonry { columns: 4 250px; column-gap: 14px; }
.tile { display: block; position: relative; margin-bottom: 14px; break-inside: avoid; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.tile img { width: 100%; height: auto; object-fit: cover; transition: transform .5s, filter .3s; }
.tile:hover img { transform: scale(1.04); filter: brightness(.88); }
.tile-cap { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; font-size: 13.5px; opacity: 0; transition: opacity .3s; }
.tile-zoom { position: absolute; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); opacity: 0; transform: scale(.8); transition: .25s; }
.tile:hover .tile-cap, .tile:focus .tile-cap, .tile:hover .tile-zoom { opacity: 1; transform: none; }
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-strip .tile { margin: 0; aspect-ratio: 4 / 3; }
.photo-strip .tile img { height: 100%; }
.empty { color: var(--muted); padding: 48px; text-align: center; background: var(--card); border-radius: var(--r); border: 1px dashed var(--line); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-family: var(--display); }
.pager a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5, 18, 24, .96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; width: auto; margin: auto; border-radius: 10px; }
.lightbox figcaption { color: #e5eef1; margin-top: 14px; font-size: 15px; }
.lightbox button { position: absolute; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; transition: .2s; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 20px; inset-inline-end: 20px; }
.lb-prev { inset-inline-start: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- من نحن ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); background: #fff; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-photo figcaption { padding: 12px 18px; font-size: 14px; color: var(--muted); }
.vmv { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 16px; }
.vmv article { background: var(--card); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh); }
.vmv-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff7d3; color: var(--ink); margin-bottom: 16px; }
.vmv h3 { color: var(--ink); }
.vmv p { color: var(--muted); font-size: 15.5px; margin: 0; }
.guarantees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guarantees div { display: flex; gap: 20px; align-items: center; background: var(--card); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh); }
.guarantees strong { font-family: var(--display); font-size: 58px; line-height: 1; color: var(--teal); min-width: 64px; text-align: center; }
.guarantees span { color: var(--muted); font-size: 15px; line-height: 1.6; }
.koma-band { background: #fff6dc; }
.koma-logo { width: 180px; margin-bottom: 22px; }
.koma-about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

/* ---------- صفحة كوما ---------- */
.koma-hero { position: relative; overflow: hidden; background: #0f0f0f; color: #fff; padding-block: clamp(80px, 10vw, 140px); }
.koma-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.koma-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 15, 15, .2), rgba(15, 15, 15, .9)); }
[dir="ltr"] .koma-hero::after { background: linear-gradient(270deg, rgba(15, 15, 15, .2), rgba(15, 15, 15, .9)); }
.koma-hero-in { position: relative; z-index: 2; }
.koma-hero-logo { width: clamp(200px, 22vw, 300px); margin-bottom: 30px; }
.koma-hero h1 { color: #fff; max-width: 820px; font-size: clamp(28px, 3.8vw, 50px); }
.koma-hero .lead { color: rgba(255, 255, 255, .82); }
.koma-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.koma-soc { display: flex; gap: 10px; margin-top: 28px; }
.koma-soc a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.koma-soc a:hover { background: var(--koma-y); color: #111; border-color: var(--koma-y); }
.koma-shapes { position: absolute; z-index: 1; inset-inline-end: 4%; bottom: 40px; display: flex; gap: 10px; opacity: .9; direction: ltr; }
.koma-shapes i { width: 46px; height: 46px; }
.koma-shapes i:nth-child(1) { background: var(--koma-y); clip-path: polygon(0 0, 70% 0, 28% 50%, 70% 100%, 0 100%); }
.koma-shapes i:nth-child(2) { background: var(--koma-r); border-radius: 50%; }
.koma-shapes i:nth-child(3) { background: var(--koma-y); clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%); }
.koma-shapes i:nth-child(4) { background: var(--koma-r); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.koma-row { margin-bottom: 48px; }
.koma-row-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--koma-y); }
.koma-row-head h3 { margin: 0; font-size: 23px; }
.koma-row-head h3 a { color: var(--ink); }
.koma-row-head p { margin: 0; color: var(--muted); font-size: 15px; }
.why-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }

/* ---------- المواصفات والجداول ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh); border: 1px solid var(--line); }
.spec-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 15px; }
.spec-table th, .spec-table td { padding: 14px 20px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.spec-table tbody tr:last-child > * { border-bottom: 0; }
.spec-table tbody tr:nth-child(even) > * { background: #faf8f4; }
.spec-table thead th { background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; font-size: 15px; position: sticky; top: 0; }
.spec-table thead th.hl { background: var(--teal); }
.spec-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; position: sticky; inset-inline-start: 0; background: var(--card); z-index: 1; }
.spec-table tbody tr:nth-child(even) th { background: #faf8f4; }
.spec-table td.hl { background: rgba(26, 124, 161, .07) !important; font-weight: 600; color: var(--teal-d); }
.spec-table td { color: var(--text); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 9px; vertical-align: middle; }
.lv3 .dot { background: #1f9d63; }
.lv2 .dot { background: #e8a917; }
.lv1 .dot { background: var(--rose); }
.legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; }
.systems { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.systems article { background: var(--card); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh); }
.sys-img { display: grid; place-items: center; height: 220px; border-radius: var(--r); background: #f4f2ed; margin-bottom: 18px; overflow: hidden; }
.sys-img.dark { background: #000; }
.sys-img img { max-height: 200px; width: auto; }
.systems p { color: var(--muted); font-size: 15px; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.spec-imgs { display: grid; gap: 12px; margin-bottom: 16px; padding: 12px; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); }
.spec-imgs img { border-radius: 10px; margin-inline: auto; }
.spec-imgs.dark { background: #000; border-color: #000; }

/* ---------- تواصل ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.contact-form { background: var(--card); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 40px); box-shadow: var(--sh); }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 7px; font-weight: 500; font-size: 15px; color: var(--ink); }
.form input, .form textarea, .form select { width: 100%; font: inherit; font-size: 16px; padding: 13px 15px; border: 1px solid #cfd6d8; border-radius: 12px; background: #fbfaf7; color: var(--text); transition: .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(26, 124, 161, .14); background: #fff; }
.form .btn { justify-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.alert { padding: 14px 18px; border-radius: 12px; margin: 0 0 14px; }
.alert.ok { background: #e3f4ec; color: #145a39; }
.alert.err { background: #fde9ed; color: #9b1638; }
.contact-info { background: var(--ink); color: #d5e3e8; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.contact-info h2 { color: #fff; font-size: 22px; }
.contact-info h3 { color: #fff; font-size: 17px; margin-top: 28px; }
.ci-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ci-list li { display: flex; align-items: center; gap: 12px; }
.ci-list a { color: #fff; font-size: 16px; font-family: var(--display); }
.ci-list small { color: #8fb0bb; font-size: 12.5px; }
.ci-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink-2); color: var(--sun); flex: none; }
.ci-ic.wa { color: #4ade80; }
.ci-soc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ci-soc a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--ink-2); color: #fff; font-size: 14px; }
.ci-soc a:hover { background: var(--ink-3); color: #fff; }
.ci-soc small { margin-inline-start: auto; color: #8fb0bb; font-size: 11.5px; }

/* ---------- التذييل ---------- */
.site-footer { background: #071b23; color: #9fb6be; font-size: 15px; padding-top: clamp(56px, 6vw, 80px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer h3.mt { margin-top: 28px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #d3e2e7; }
.site-footer a:hover { color: var(--sun); }
.f-brand img { width: 190px; margin-bottom: 18px; }
.f-brand p { max-width: 360px; }
.f-socials { display: grid; gap: 10px; margin-top: 22px; }
.f-soc-row { display: flex; align-items: center; gap: 6px; }
.f-soc-label { font-family: var(--display); font-size: 12.5px; color: #8fb0bb; min-width: 112px; }
.f-soc-label.koma { color: var(--koma-y); }
.f-soc-row a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); }
.f-soc-row a:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.f-contact a, .f-dl a, .f-loc a { display: inline-flex; align-items: flex-start; gap: 8px; }
.f-contact .i, .f-dl .i, .f-loc .i { margin-top: 5px; color: var(--sun); }
.f-loc { margin-top: 18px !important; }
.f-loc span { display: flex; flex-direction: column; font-size: 13.5px; color: #9fb6be; }
.f-loc b { color: #fff; font-family: var(--display); font-weight: 500; font-size: 14.5px; }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding-block: 22px; font-size: 13.5px; }
.f-staff { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; }
.f-staff a { color: #9fb6be; }

.wa-float { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -6px rgba(0, 0, 0, .35); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.big-404 { font-family: var(--display); font-size: 120px; font-weight: 700; color: var(--sun); line-height: 1; margin: 0; }

/* ==========================================================================
   الشاشات المتوسطة والصغيرة
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav > ul > li > a { padding-inline: 9px; font-size: 14.5px; }
  .brand img { width: 170px; }
}
@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .main-nav { position: fixed; inset: calc(var(--header-h) + 40px) 0 0 0; background: #fff; padding: 12px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; }
  [dir="ltr"] .main-nav { transform: translateX(-100%); }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; }
  .main-nav > ul > li > a { font-size: 18px; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav > ul > li > a::after { display: none; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; }
  .mega-grid { padding: 8px 0 12px; grid-template-columns: 1fr 1fr; gap: 16px; }
  .nav-mobile-extra { display: block; padding-top: 18px; }
  .nav-mobile-extra .lang-switch { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 16px; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-template-areas: "a a" "b c" "d e" "f f"; grid-auto-rows: 240px; }
  .bento-tile.t0 { min-height: 380px; }
  .brands-duo { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .locations { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr 1fr; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hide-sm { display: none !important; }
  .frame-mark { inset-inline-end: 6px; top: -14px; transform: scale(.7); transform-origin: top; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > div { padding: 20px 14px; }
  .stats-grid > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .stats-grid > div:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .intro-grid, .detail-grid, .about-grid, .koma-about, .contact-grid, .two-col, .why-grid { grid-template-columns: 1fr; }
  .feature-grid, .quotes, .vmv, .guarantees, .systems { grid-template-columns: 1fr; }
  .feature-box { position: static; }
  .sec-head { align-items: flex-start; }
}
@media (max-width: 700px) {
  .hero-stage { aspect-ratio: 4 / 5; min-height: 0; max-height: none; }
  .slide-content { padding-bottom: 20px; }
  .slide-card { padding: 20px; }
  .slide-sub { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .slide-actions .btn-glass { display: none; }
  .hero-ui-row { min-height: 52px; }
  .hero-arrows { display: none; }
  .hero-bars { max-width: none; }
}
@media (max-width: 600px) {
  .util-row { min-height: 38px; }
  .util-contact { gap: 12px; }
  .staff-menu { inset-inline-end: -60px; width: min(290px, 92vw); }
  .brand img { width: 148px; }
  .icon-btn { width: 40px; height: 40px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b b" "c d" "e f"; grid-auto-rows: 200px; gap: 12px; }
  .bento-tile.t0 { min-height: 300px; }
  .bento-sub { display: none !important; }
  .bento-body { padding: 14px; }
  .bento-body strong { font-size: 16px; }
  .cat-grid, .cat-grid.compact { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-body { padding: 12px 12px 14px; }
  .cat-body strong { font-size: 15px; padding-inline-end: 0; }
  .cat-sum, .cat-go { display: none; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
  .row2, .checklist.two, .footer-top, .ci-soc { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; }
  .spec-table th, .spec-table td { padding: 11px 12px; font-size: 14px; }
  .guarantees strong { font-size: 44px; min-width: 50px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .f-soc-label { min-width: 96px; }
  .loc-map, .loc-map iframe { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
