/* v24 — dark flat + هيرو بعنوان راكب على الصورة */
:root,:root[data-t=dark],:root[data-t=light]{--bg:#0E0E10;--s1:#121214;--solid:#121214;--card:#121214}
html:root[data-k4l]{--bg:#F3F3F6;--s1:#fff;--s2:#ECECF1;--solid:#fff;--card:#fff;--inp:#F6F6F9;--line:#E2E2EA;--line2:#D2D2DD;--ink:#15151A;--mut:#63637A;--sec:#6246C9;color-scheme:light}
body,button,input,select,textarea{font-family:'Noto Kufi Arabic',Inter,Cairo,sans-serif}
.k4{display:none}
#v-home>h1{display:none}
.k4-hero{text-align:center;margin:44px 0 40px}
.k4-hero h2{position:relative;z-index:1;font-size:clamp(46px,13.500vw,88px);line-height:1.150;font-weight:900;color:var(--ink);margin-bottom:-.950em;text-shadow:0 4px 24px rgba(0,0,0,.35)}
html[data-k4l] .k4-hero h2{text-shadow:0 0 18px #fff}
.k4-art{min-height:330px;border-radius:16px;display:flex;align-items:flex-end;justify-content:center;padding:100px 22px 62px;background:linear-gradient(180deg,rgba(14,12,22,.15),rgba(14,12,22,.75)),url(/img/hero.webp) center/cover,#17141f}
.k4-art p{color:#fff;font-weight:800;font-size:14px;line-height:2;max-width:440px}
.k4-go{position:relative;display:inline-flex;align-items:center;gap:14px;margin-top:-48px;font-size:22px;color:#fff}
.k4-go i{width:48px;height:48px;border-radius:50%;background:#403B4B;display:grid;place-items:center}
html[dir=ltr] .k4-go i{transform:scaleX(-1)}
.k4-go svg{width:24px;height:24px;stroke:#fff;fill:none;stroke-width:1.800}
.k4-sec{text-align:center;padding:14px 6px 22px}
.k4-sec h2{font-size:clamp(28px,8vw,40px);font-weight:900;color:#BCAEDB}
html[data-k4l] .k4-sec h2{color:#6246C9}
.k4-line{width:108px;height:4px;border-radius:4px;background:#403B4B;margin:16px auto 22px;position:relative}
.k4-line::after{content:"";position:absolute;width:13px;height:13px;border-radius:50%;background:#403B4B;top:-4.500px;right:2px}
.k4-sec p{font-size:16px;line-height:2}
.k4-cats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:24px}
.k4-cat{aspect-ratio:3/4;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:14px 8px 28px;color:#fff;background:radial-gradient(circle at 50% 70%,#9B72FF,transparent 55%),linear-gradient(170deg,#4B3A9E,#241A55)}
.k4-cat.kz-c2{background:radial-gradient(circle at 50% 70%,#C46CF0,transparent 55%),linear-gradient(170deg,#63358F,#2A164A)}
.k4-cat.kz-c3{background:radial-gradient(circle at 50% 70%,#7D86FF,transparent 55%),linear-gradient(170deg,#38409A,#191C4E)}
.k4-cat.kz-c4{background:radial-gradient(circle at 50% 70%,#8A5BE8,transparent 55%),linear-gradient(170deg,#3A2A70,#150F30)}
.k4-cat b{font-size:17px;font-weight:800}
.k4-cat svg{width:56%;height:56%;stroke:#fff;fill:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 8px 14px rgba(0,0,0,.45))}
@media(min-width:900px){.k4-cats{grid-template-columns:repeat(4,minmax(0,1fr))}.k4-art{min-height:440px}}
.k4-dock{position:fixed;z-index:19;inset-inline:12px;bottom:calc(98px + env(safe-area-inset-bottom));max-width:560px;margin-inline:auto;pointer-events:none}
.k4-dock[hidden]{display:none}
.k4-bar,.k4-wa{pointer-events:auto}
.k4-bar{display:flex;align-items:center;gap:8px;background:#A86CF6;color:#fff;border-radius:10px;padding:10px 12px;font-weight:800;font-size:13px}
.k4-bar a{display:flex;align-items:center;justify-content:center;gap:10px;flex:1}
.k4-bar svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;flex:none}
.k4-wa{position:absolute;right:-4px;bottom:0;width:62px;height:62px;border-radius:50%;background:#5FD16F;display:grid;place-items:center}
.k4-wa img{width:34px;height:34px;filter:brightness(0) invert(1)}
.k4-bar:has(+.k4-wa){padding-right:64px}
@media(max-width:760px){
  header .in>:not(.k4){display:none!important}
  header{border-radius:14px;border-color:transparent;margin-inline:16px}
  header .in{padding:10px 14px;min-height:72px}
  .k4{display:flex;align-items:center;gap:12px;width:100%}.k4 .sp{flex:1}
  .k4>button{display:grid;place-items:center;flex:none;color:var(--mut)}
  .k4 svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
  .k4-logo b{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--ink);color:var(--bg);font-size:20px;font-weight:900}
  .k4>.k4-lang{background:#77777C;color:#111;border-radius:999px;padding:7px 18px;font-size:14px;white-space:pre}
  .k4>.k4-acc{width:40px;height:40px;border-radius:50%;border:1.500px solid var(--ink)}
  #tabs{border-radius:14px;border-color:transparent;inset-inline:16px}
  #tabs .nb[data-kc]{background:#403B4B;color:#fff;width:22px;height:22px;border-radius:50%;top:-8px;inset-inline-end:14px}
  .wrap{padding-bottom:calc(170px + env(safe-area-inset-bottom))}
}
