/* STP — منصة التدريب التخصصي. تصميم بأسلوب صفحات Apple: مساحات واسعة، عناوين كبيرة، أقسام فاتحة وغامقة بالتناوب.
   لون المنصة (النبيذي) هو اللون الوحيد المميّز؛ الباقي أبيض وأسود ودرجات رمادي. */

:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --alt: #f5f5f7;
  --black: #000;
  --dark-card: #1c1c1e;
  --dark-card-2: #2c2c2e;
  --dark-text: #a1a1a6;
  --wine: #8A1538;
  --wine-d: #6E1230;
  --wine-l: #B4365C;
  --rose: #E07A93;
  --green: #1d8a5a;
  --grad: linear-gradient(90deg, #6E1230 0%, #A92A52 50%, #D9627F 100%);
  --grad-dark: linear-gradient(90deg, #FFB3C4 0%, #F07A98 45%, #C9406A 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Arabic", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: #fff;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; color: inherit; }
:focus-visible { outline: 2px solid var(--wine-l); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 44px); margin-inline: auto; }
.wrap.narrow { width: min(860px, 100% - 44px); }
.wrap-wide { width: min(1260px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 10px; }
.d-only { display: inline; }

/* ---------- الطباعة ---------- */
.h-hero { font-size: clamp(46px, 7.4vw, 96px); line-height: 1.12; }
.h-sec { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.16; }
.sub { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.55; color: var(--ink-2); font-weight: 500; }
.grad, .grad-dark { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.grad { background-image: var(--grad); }
.grad-dark { background-image: var(--grad-dark); }

/* ---------- أزرار وروابط ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px;
  border-radius: 980px; background: var(--wine); color: #fff; font-size: 17px; font-weight: 500; border: 0;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.pill:hover { background: var(--wine-d); }
.pill:active { transform: scale(.98); }
.pill-sm { min-height: 30px; padding: 0 14px; font-size: 13.5px; }
.pill-light { background: #fff; color: var(--ink); }
.pill-light:hover { background: #f0f0f2; }
.pill-block { width: 100%; min-height: 54px; font-size: 18px; }
.link { display: inline-flex; align-items: center; gap: 2px; color: var(--wine); font-size: clamp(17px, 1.5vw, 19px); font-weight: 500; }
.link svg { font-size: .9em; stroke-width: 2.2; transition: transform .3s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link:hover svg { transform: translateX(-3px); }
.link-light { color: #ff8fa9; }

/* ---------- شريط التنقل ---------- */
.gnav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(251, 251, 253, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.gnav.scrolled { border-color: rgba(0, 0, 0, .08); }
.gnav-in { width: min(1080px, 100% - 44px); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; flex: none; }
.brand img { width: 38px; }
.brand b { font-size: 19px; font-weight: 700; letter-spacing: .5px; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; }
.gnav-links { display: flex; justify-content: center; gap: clamp(18px, 3vw, 36px); flex: 1; }
.gnav-links a { font-size: 13.5px; color: rgba(29, 29, 31, .8); transition: color .2s; }
.gnav-links a:hover, .gnav-links a.active { color: var(--ink); }
.gnav-links .m-only { display: none; }
.burger { display: none; width: 40px; height: 40px; margin-inline-start: auto; border: 0; background: none; align-items: center; justify-content: center; color: var(--ink); }
.burger svg { font-size: 22px; stroke-width: 1.6; }

/* ---------- الواجهة ---------- */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero-name { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(17px, 1.7vw, 21px); font-weight: 600; color: var(--ink); margin-bottom: 18px; direction: ltr; }
.hero-name img { width: 44px; }
.hero-sub { max-width: 760px; margin: 22px auto 0; }
.ctas { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 30px; margin-top: 34px; }

.stage {
  --s: .9;
  position: relative; margin-top: clamp(48px, 6vw, 80px); height: clamp(380px, 50vw, 640px); border-radius: clamp(24px, 3vw, 40px);
  overflow: hidden; background: #000; isolation: isolate;
  transform: scale(var(--s)); transform-origin: 50% 0; will-change: transform;
}
.stage-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(42% 60% at 50% 42%, rgba(180, 54, 92, .55), transparent 70%),
    radial-gradient(70% 50% at 50% 110%, rgba(110, 18, 48, .9), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 23v10M23 28h10' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.stage-mark { position: absolute; left: 50%; top: 44%; width: clamp(200px, 30vw, 380px); transform: translate(-50%, -50%); filter: drop-shadow(0 20px 50px rgba(224, 122, 147, .35)); animation: float 7s ease-in-out infinite; }
.stage-ecg { position: absolute; inset-inline: 0; top: 58%; width: 100%; height: 18%; overflow: visible; }
.stage-ecg path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ecg-base { stroke: rgba(255, 255, 255, .1); }
.ecg-run { stroke: url(#ecgG); stroke-dasharray: 420 2600; stroke-dashoffset: 3020; animation: ecg 4.2s linear infinite; filter: drop-shadow(0 0 6px rgba(224, 122, 147, .7)); }
.stage-chips { position: absolute; bottom: clamp(20px, 3vw, 36px); left: 50%; transform: translateX(-50%); list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; white-space: nowrap; }
.stage-chips li { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 980px; font-size: 14.5px; color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.stage-chips svg { font-size: 17px; color: #ff9ab2; }

@keyframes ecg { to { stroke-dashoffset: 0; } }
@keyframes float { 50% { transform: translate(-50%, calc(-50% - 10px)); } }

/* ---------- الأقسام ---------- */
.sec { padding: clamp(88px, 11vw, 150px) 0; }
.sec.alt { background: var(--alt); }
.sec.dark { background: #000; color: #f5f5f7; }
.sec.dark .sub { color: var(--ink-3); }
.sec-head { max-width: 780px; margin-bottom: clamp(44px, 5vw, 68px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .sub { margin-top: 18px; }
.eyebrow-dark { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: #ff9ab2; margin-bottom: 14px; }

/* ---------- أبرز ما تقدّمه (شريط بطاقات) ---------- */
#highlights .h-sec { margin-bottom: clamp(36px, 4vw, 56px); }
.hl-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding-inline: max(22px, calc((100% - 1080px) / 2)); padding-block: 4px 8px; outline: none;
}
.hl-track::-webkit-scrollbar { display: none; }
.hl-card {
  position: relative; flex: none; width: clamp(280px, 30vw, 372px); aspect-ratio: 372 / 500; border-radius: 28px; padding: 32px 30px;
  scroll-snap-align: start; overflow: hidden; display: flex; flex-direction: column;
  scroll-margin-inline: max(22px, calc((100vw - 1080px) / 2));
}
.hl-cap { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; font-weight: 600; position: relative; z-index: 1; }
.hl-cap b { font-weight: 700; }
.hl-dark { background: #000; color: #f5f5f7; }
.hl-dark .hl-cap { color: var(--dark-text); }
.hl-dark .hl-cap b { color: #fff; }
.hl-light { background: #fff; }
.hl-light .hl-cap { color: var(--ink-2); }
.hl-light .hl-cap b { color: var(--ink); }
.hl-wine { background: linear-gradient(160deg, #A92A52, #4E0C21); }
.hl-wine .hl-cap { color: rgba(255, 255, 255, .72); }
.hl-wine .hl-cap b { color: #fff; }
.hl-art { flex: 1; display: grid; place-items: center; }
.orbit {
  width: clamp(120px, 12vw, 150px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font-size: clamp(52px, 5vw, 64px); background: linear-gradient(145deg, #D9627F, #8A1538 60%, #4E0C21);
  box-shadow: 0 0 0 22px rgba(180, 54, 92, .1), 0 0 0 46px rgba(180, 54, 92, .06), 0 30px 60px -20px rgba(110, 18, 48, .6);
}
.orbit svg { stroke-width: 1.5; }
.hl-dark .orbit { box-shadow: 0 0 0 22px rgba(224, 122, 147, .12), 0 0 0 46px rgba(224, 122, 147, .06), 0 0 80px rgba(180, 54, 92, .5); }
.hl-wine .orbit { background: #fff; color: var(--wine); box-shadow: 0 0 0 22px rgba(255, 255, 255, .12), 0 0 0 46px rgba(255, 255, 255, .06); }
.hl-ctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }
.dots { display: flex; gap: 10px; padding: 10px 16px; border-radius: 980px; background: rgba(0, 0, 0, .06); }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(0, 0, 0, .25); transition: width .4s var(--ease-out), background .3s; }
.dots button.on { width: 36px; background: var(--ink); }
.arrows { display: flex; gap: 12px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .07); color: var(--ink); display: grid; place-items: center; transition: background .2s, opacity .2s; }
.round:hover { background: rgba(0, 0, 0, .12); }
.round:disabled { opacity: .35; cursor: default; }
.round svg { font-size: 20px; stroke-width: 2.2; }

/* ---------- الفكرة (نص يضيء مع التمرير) ---------- */
.statement { background: #000; padding: clamp(110px, 14vw, 190px) 0; }
.state-eyebrow { font-size: 19px; font-weight: 600; color: #ff9ab2; margin-bottom: 22px; }
.state-text { font-size: clamp(30px, 4.3vw, 56px); line-height: 1.42; font-weight: 700; color: #f5f5f7; max-width: 980px; }
.js .state-text .w { color: #3a3a3c; transition: color .35s var(--ease); }
.js .state-text .w.lit { color: #f5f5f7; }
.js .state-text .w.lit.w-brand { background: var(--grad-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- الخدمات (شبكة بطاقات) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { border-radius: 28px; padding: clamp(30px, 3.4vw, 44px); display: flex; flex-direction: column; min-height: 340px; overflow: hidden; position: relative; }
.t-wide { grid-column: span 4; }
.t-stat { grid-column: span 2; justify-content: flex-end; }
.t-half { grid-column: span 3; }
.t-alt { background: var(--alt); }
.t-dark { background: #000; color: #f5f5f7; }
.t-wine { background: linear-gradient(155deg, #A92A52, #4E0C21); color: #fff; }
.tile h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; margin: 22px 0 12px; }
.tile p { font-size: 17px; color: var(--ink-2); max-width: 520px; }
.t-dark p { color: var(--dark-text); }
.t-wine p { color: rgba(255, 255, 255, .78); }
.tile .link { margin-top: auto; padding-top: 22px; }
.tile-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 32px; color: #fff; background: linear-gradient(145deg, #D9627F, #8A1538 65%, #4E0C21); }
.tile-ico svg { stroke-width: 1.6; }
.t-dark .tile-ico { background: #1c1c1e; color: #ff9ab2; }
.tile .stat { font-size: clamp(38px, 4.2vw, 56px); line-height: 1.15; font-weight: 700; margin-bottom: 14px; color: #fff; }
.tile .stat.grad-dark { color: transparent; }
.t-wide::after { content: ""; position: absolute; inset-inline-start: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 44px solid rgba(138, 21, 56, .05); }
.t-dark.t-wide::after { border-color: rgba(255, 255, 255, .04); }

/* ---------- البرامج ---------- */
.seg {
  position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 980px; background: rgba(0, 0, 0, .06);
  margin-bottom: 40px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 20px; border-radius: 980px; font-size: 15.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .3s; }
.seg button.is-on { color: var(--ink); }
.seg-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: var(--x, 4px); width: var(--w, 0); border-radius: 980px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08), 0 0 1px rgba(0, 0, 0, .1); transition: left .45s var(--ease-out), width .45s var(--ease-out); }
.seg-dark { background: rgba(255, 255, 255, .1); }
.seg-dark button { color: var(--ink-3); }
.seg-dark button.is-on { color: var(--ink); }
.seg-dark .seg-pill { background: #f5f5f7; }

.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prog {
  display: flex; flex-direction: column; background: #fff; border-radius: 24px; padding: 30px 28px 28px;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); animation: rise .6s var(--ease-out) both;
}
.prog:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .18); }
.prog-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.prog-kind { color: var(--wine); display: inline-flex; align-items: center; gap: 6px; }
.prog-kind svg { font-size: 17px; }
.price { font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 980px; }
.price.free { background: #e7f6ee; color: var(--green); }
.price.paid { background: #f7e9ee; color: var(--wine); }
.prog h3 { font-size: 22px; line-height: 1.45; margin: 16px 0 10px; }
.prog > p { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.meta { list-style: none; padding: 0; margin: 20px 0 22px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-3); }
.meta li { display: flex; align-items: center; gap: 5px; }
.meta svg { font-size: 15px; }
.prog .link { margin-top: auto; font-size: 17px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--ink-2); padding: 40px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.custom {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(32px, 4vw, 48px); border-radius: 28px; color: #fff; background: radial-gradient(70% 140% at 100% 0%, #8A1538, transparent 60%), #000;
}
.custom-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #ff9ab2; margin-bottom: 10px; }
.custom h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.custom p:not(.custom-eyebrow) { color: var(--dark-text); max-width: 560px; }

/* ---------- الخطوات ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; border-top: 1px solid var(--line); padding-top: 40px; }
.step-n { display: block; font-size: clamp(56px, 6vw, 80px); line-height: 1; font-weight: 700; margin-bottom: 22px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 16.5px; }

/* ---------- ركن المريض ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.panel { animation: rise .6s var(--ease-out) both; }
.dcard { background: var(--dark-card); border-radius: 24px; padding: 32px 30px; display: flex; flex-direction: column; gap: 12px; }
.dcard-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 25px; color: #fff; background: linear-gradient(145deg, #E07A93, #8A1538); margin-bottom: 8px; }
.dcard h3 { font-size: 21px; color: #f5f5f7; }
.dcard p { color: var(--dark-text); font-size: 16px; line-height: 1.75; }
.dtip { margin-top: auto !important; padding: 14px 16px; border-radius: 16px; background: var(--dark-card-2); color: #e5e5ea !important; font-size: 15px !important; }
.dtip b { display: block; font-size: 13px; color: #ff9ab2; margin-bottom: 4px; }
.myth-q { font-size: 20px !important; line-height: 1.6 !important; font-weight: 600; color: #f5f5f7 !important; flex: 1; }
.myth-btn { align-self: flex-start; border: 0; padding: 8px 18px; border-radius: 980px; background: rgba(255, 255, 255, .12); color: #f5f5f7; font-size: 15px; font-weight: 500; transition: background .2s; }
.myth-btn:hover { background: rgba(255, 255, 255, .2); }
.myth-a { border-radius: 16px; padding: 14px 16px; animation: rise .45s var(--ease-out) both; }
.myth-a b { display: inline-block; font-size: 14px; padding: 1px 12px; border-radius: 980px; margin-bottom: 6px; }
.myth-a p { font-size: 15.5px; color: #e5e5ea; }
.myth[data-verdict="false"] .myth-a { background: rgba(180, 54, 92, .18); }
.myth[data-verdict="false"] .myth-a b { background: #C9406A; color: #fff; }
.myth[data-verdict="true"] .myth-a { background: rgba(48, 209, 88, .12); }
.myth[data-verdict="true"] .myth-a b { background: #30d158; color: #000; }
.fineprint { display: flex; gap: 10px; align-items: flex-start; margin-top: 48px; font-size: 14px; color: var(--ink-3); max-width: 820px; }
.fineprint svg { font-size: 18px; margin-top: 4px; }

/* ---------- لمن المنصة ---------- */
.aud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aud-item { background: #fff; border-radius: 24px; padding: 34px 26px; text-align: center; }
.aud-ico { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: var(--wine); background: var(--alt); }
.aud-item h3 { font-size: 21px; margin-bottom: 10px; }
.aud-item p { font-size: 16px; color: var(--ink-2); line-height: 1.7; }

/* ---------- عن المنصة ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-art { background: var(--alt); border-radius: 32px; padding: clamp(36px, 5vw, 64px); }
.about-title { direction: ltr; text-align: end; font-size: clamp(32px, 4vw, 52px); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; letter-spacing: -.02em; margin-bottom: 20px; }
.values { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.values li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink-2); }
.values svg { font-size: 24px; color: var(--wine); margin-top: 3px; }
.values b { color: var(--ink); }

/* ---------- الأسئلة ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; font-size: clamp(19px, 1.9vw, 23px); font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; color: var(--ink-2); transition: transform .4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 28px; font-size: 18px; color: var(--ink-2); max-width: 720px; animation: rise .45s var(--ease-out) both; }

/* ---------- التسجيل ---------- */
.reg { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.reg-copy { position: sticky; top: calc(var(--nav-h) + 40px); }
.reg-copy .sub { margin-top: 20px; }
.contact { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; }
.contact a, .contact span.row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--alt); transition: background .2s; }
.contact a:hover { background: #ebebef; }
.contact svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #fff; color: var(--wine); }
.contact small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.contact b { font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.reg-form { background: var(--alt); border-radius: 32px; padding: clamp(28px, 4vw, 48px); display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { position: relative; }
.fld input, .fld select, .fld textarea {
  width: 100%; height: 60px; padding: 24px 18px 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  font-size: 17px; outline: none; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.fld textarea { height: auto; min-height: 120px; padding-top: 30px; resize: vertical; line-height: 1.6; }
.fld label { position: absolute; inset-inline-start: 19px; top: 19px; font-size: 17px; color: var(--ink-3); pointer-events: none; transition: top .2s var(--ease), font-size .2s var(--ease); }
.fld input:focus + label, .fld input:not(:placeholder-shown) + label,
.fld textarea:focus + label, .fld textarea:not(:placeholder-shown) + label,
.fld-select label { top: 8px; font-size: 12.5px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--wine-l); box-shadow: 0 0 0 4px rgba(180, 54, 92, .14); }
.fld select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2386868b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 18px center; padding-left: 42px; }
#f-phone { direction: ltr; text-align: right; }
.fld.bad input, .fld.bad select { border-color: #d70015; box-shadow: 0 0 0 4px rgba(215, 0, 21, .1); }
.form-msg:not(:empty) { padding: 14px 16px; border-radius: 14px; font-size: 15.5px; }
.form-msg.err { background: #fff0f1; color: #b3001b; }
.form-msg.ok { background: #e7f6ee; color: var(--green); }
.form-note { font-size: 13px; color: var(--ink-3); text-align: center; }

/* ---------- الفوتر ---------- */
.foot { background: var(--alt); color: var(--ink-2); font-size: 12.5px; line-height: 1.6; padding: 22px 0 26px; }
.foot-fine { padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.foot-crumb { display: flex; align-items: center; gap: 8px; padding: 16px 0; color: var(--ink); }
.foot-crumb img { width: 30px; }
.foot-crumb svg { font-size: 13px; color: var(--ink-3); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 10px 0 26px; }
.foot-cols h4 { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.foot-cols a { display: block; width: fit-content; margin-bottom: 7px; color: var(--ink-2); }
.foot-cols a:hover { color: var(--ink); text-decoration: underline; }
#footContact a { direction: ltr; unicode-bidi: isolate; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-3); }

/* ---------- الظهور مع التمرير ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- الشاشات المتوسطة والصغيرة ---------- */
@media (max-width: 1068px) {
  .programs, .cards3 { grid-template-columns: 1fr 1fr; }
  .aud { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
}
@media (max-width: 860px) {
  :root { --nav-h: 48px; }
  .gnav-cta { display: none; }
  .burger { display: inline-flex; }
  .gnav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; height: calc(100dvh - var(--nav-h)); flex-direction: column; justify-content: flex-start; gap: 0;
    padding: 20px 32px; background: #fbfbfd;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .gnav-links.open { opacity: 1; visibility: visible; }
  .gnav-links a { font-size: 28px; font-weight: 700; color: var(--ink); padding: 10px 0; opacity: 0; transform: translateY(-8px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
  .gnav-links.open a { opacity: 1; transform: none; }
  .gnav-links.open a:nth-child(2) { transition-delay: .03s; }
  .gnav-links.open a:nth-child(3) { transition-delay: .06s; }
  .gnav-links.open a:nth-child(4) { transition-delay: .09s; }
  .gnav-links.open a:nth-child(5) { transition-delay: .12s; }
  .gnav-links.open a:nth-child(6) { transition-delay: .15s; }
  .gnav-links .m-only { display: block; color: var(--wine); }
  body.menu-open { overflow: hidden; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-wide, .t-half { grid-column: span 2; }
  .t-stat { grid-column: span 1; min-height: 260px; }
  .about, .reg { grid-template-columns: 1fr; }
  .about-art { max-width: 460px; }
  .reg-copy { position: static; }
  .d-only { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .wrap.narrow, .gnav-in { width: calc(100% - 40px); }
  .wrap-wide { width: calc(100% - 24px); }
  .stage { height: 440px; }
  .stage-mark { width: 220px; top: 40%; }
  .stage-ecg { top: 54%; height: 14%; }
  .stage-chips { flex-direction: column; align-items: center; gap: 8px; bottom: 22px; }
  .stage-chips li { font-size: 13.5px; padding: 7px 14px; }
  .ctas { flex-direction: column; gap: 18px; }
  .hl-card { width: 82vw; padding: 28px 24px; }
  .hl-ctrl .arrows { display: none; }
  .hl-ctrl { justify-content: center; }
  .bento { grid-template-columns: 1fr; }
  .t-wide, .t-half, .t-stat { grid-column: auto; }
  .tile { min-height: 0; }
  .t-stat { min-height: 220px; }
  .programs, .cards3, .aud, .steps { grid-template-columns: 1fr; }
  .steps { gap: 32px; }
  .seg { display: flex; width: 100%; }
  .row2 { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .custom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .stage { --s: 1 !important; }
  .ecg-run { stroke-dasharray: none; }
  .js .state-text .w { color: #f5f5f7; }
}
