/* ريفاي سكول — الموقع العام. الألوان تُحقن من الهوية (--pc الأساسي · --ac الكهرماني) */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Cairo,system-ui,Arial,sans-serif;color:#172026;background:#fbfcfc;line-height:1.75;font-size:15px;-webkit-font-smoothing:antialiased}
a{color:inherit}
.wrap{max-width:1140px;margin:0 auto;padding:0 18px}
.note{background:var(--ac);color:#1f1300;text-align:center;font-weight:700;font-size:13.5px;padding:8px 14px}
/* الهيدر */
.top{background:#fff;border-bottom:1px solid #e6eaee;position:sticky;top:0;z-index:50}
.top .wrap{display:flex;align-items:center;gap:18px;height:68px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}
.brand img{height:38px;max-width:120px;object-fit:contain}
.brand b{display:block;font-size:17px;line-height:1.2;color:var(--pc)}
.brand small{display:block;font-size:11px;color:#6b7a86}
.nav{display:flex;gap:4px;margin-inline-start:auto}
.nav a{text-decoration:none;font-weight:700;font-size:14px;padding:8px 12px;border-radius:10px;color:#3d4a55}
.nav a:hover,.nav a.on{background:var(--pcs);color:var(--pc)}
.line{display:flex;background:#eef1f4;border-radius:999px;padding:3px}
.line a{text-decoration:none;font-size:12px;font-weight:700;padding:5px 11px;border-radius:999px;color:#55636d}
.line a.on{background:#fff;color:var(--pc);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.cta{background:#25d366;color:#fff;text-decoration:none;font-weight:800;padding:10px 16px;border-radius:12px;white-space:nowrap;box-shadow:0 6px 16px rgba(37,211,102,.3)}
.burger{display:none;border:0;background:var(--pcs);color:var(--pc);width:42px;height:42px;border-radius:12px;font-size:20px;cursor:pointer}
/* أزرار */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-weight:800;padding:12px 22px;border-radius:14px;border:0;cursor:pointer;font-family:inherit;font-size:15px;transition:.15s}
.btn.wa{background:#25d366;color:#fff;box-shadow:0 8px 20px rgba(37,211,102,.3)}
.btn.wa:hover{background:#1ebe5b;transform:translateY(-1px)}
.btn.ghost{background:#fff;color:var(--pc);border:2px solid var(--pc)}
.btn.big{width:100%;padding:15px;font-size:16px}
/* الهيرو */
.hero{display:grid;grid-template-columns:1.15fr 1fr;gap:40px;align-items:center;padding:56px 0 40px}
.kicker{display:inline-block;background:var(--pcs);color:var(--pc);font-weight:700;font-size:13px;padding:5px 12px;border-radius:999px;margin-bottom:14px}
.hero h1{font-size:38px;line-height:1.3;font-weight:900;margin-bottom:14px}
.hero h1 em{font-style:normal;color:var(--pc);background:linear-gradient(transparent 60%,var(--acs) 60%)}
.hero p{font-size:16.5px;color:#3d4a55;margin-bottom:22px}
.btns{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.trust{display:flex;gap:14px;flex-wrap:wrap;font-size:12.5px;color:#55636d;font-weight:700}
.art{position:relative;min-height:300px}
.art .card{position:absolute;background:#fff;border-radius:18px;padding:16px 18px;box-shadow:0 16px 40px rgba(23,32,38,.12);width:250px;border-inline-start:5px solid var(--pc)}
.art .card b{font-family:monospace;color:var(--pc);font-size:13px;display:block}
.art .card span{display:block;font-weight:700;margin:2px 0 6px}
.art .card i{font-style:normal;font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px}
.art .card i.ok{background:#e5f6ee;color:#15803d}.art .card i.doing{background:#fdf3df;color:#b45309}.art .card i.new{background:#e8f3fb;color:#1d6fa5}
.art .c1{top:0;inset-inline-end:10px;transform:rotate(-2deg)}
.art .c2{top:110px;inset-inline-start:0;transform:rotate(2deg)}
.art .c3{top:220px;inset-inline-end:40px;transform:rotate(-1deg)}
/* الشرائح */
.segs{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:10px 0 40px}
.seg{background:#fff;border-radius:22px;padding:24px 22px;text-decoration:none;box-shadow:0 6px 24px rgba(23,32,38,.06);border:1px solid #eef1f4;display:flex;flex-direction:column;gap:6px;transition:.15s}
.seg:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(23,32,38,.12)}
.seg .ic{width:54px;height:54px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:26px;background:var(--pcs);margin-bottom:6px}
.seg.parents .ic{background:#efedfd}.seg.teachers .ic{background:#fdf3df}
.seg b{font-size:19px}
.seg p{color:#55636d;font-size:14px;flex:1}
.seg .more{color:var(--pc);font-weight:800;font-size:13.5px}
.h2{font-size:24px;font-weight:900;margin:34px 0 16px;display:flex;align-items:center;gap:10px}
.h2:after{content:'';flex:1;height:2px;background:linear-gradient(90deg,var(--pcs),transparent)}
/* بطاقات الخدمات */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.svc{background:#fff;border-radius:20px;padding:20px;border:1px solid #eef1f4;box-shadow:0 6px 20px rgba(23,32,38,.05);display:flex;flex-direction:column;gap:8px;position:relative}
.svc.hero{border-color:var(--ac);box-shadow:0 8px 26px rgba(245,158,11,.14)}
.svc .tag{position:absolute;top:-11px;inset-inline-start:16px;background:var(--ac);color:#1f1300;font-size:11px;font-weight:800;padding:2px 10px;border-radius:999px}
.svc h3{font-size:17px;font-weight:800}
.svc p{color:#55636d;font-size:13.5px;flex:1}
.svc .meta{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding-top:8px;border-top:1px dashed #e6eaee}
.svc .price{font-size:18px;font-weight:900;color:var(--pc)}
.svc .price small{font-size:11px;color:#6b7a86;font-weight:700}
.svc .time{font-size:12px;font-weight:700;color:#3d4a55;background:#f4f6f8;padding:3px 10px;border-radius:999px}
.svc .acts{display:flex;gap:8px;margin-top:4px}
.svc .acts a{flex:1;text-align:center;text-decoration:none;font-weight:800;font-size:13.5px;padding:10px;border-radius:12px}
.svc .acts .wa{background:#25d366;color:#fff}
.svc .acts .site{background:var(--pcs);color:var(--pc)}
/* كيف تطلب */
.how{margin-top:10px}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.steps div{background:#fff;border-radius:18px;padding:22px;border:1px solid #eef1f4;text-align:center}
.steps span{display:inline-flex;width:44px;height:44px;border-radius:50%;background:var(--pc);color:#fff;align-items:center;justify-content:center;font-weight:900;font-size:18px;margin-bottom:10px}
.steps b{display:block;font-size:16px;margin-bottom:4px}
.steps p{font-size:13.5px;color:#55636d}
/* لماذا نحن */
.why{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.why div{background:#fff;border-radius:16px;padding:18px;border:1px solid #eef1f4}
.why span{font-size:24px;display:block;margin-bottom:6px}
.why b{display:block;margin-bottom:3px}
.why p{font-size:13px;color:#55636d}
.cta-band{margin:44px 0 30px;background:linear-gradient(135deg,var(--pc),var(--pcd));color:#fff;border-radius:26px;padding:38px 30px;text-align:center}
.cta-band h2{font-size:26px;font-weight:900;margin-bottom:6px}
.cta-band p{opacity:.9;margin-bottom:18px}
/* صفحة الشريحة */
.seghead{display:flex;gap:18px;align-items:center;padding:36px 0 22px}
.seghead .ic{width:70px;height:70px;border-radius:20px;display:flex;align-items:center;justify-content:center;font-size:34px;background:var(--pcs);flex-shrink:0}
.seghead.parents .ic{background:#efedfd}.seghead.teachers .ic{background:#fdf3df}
.seghead h1{font-size:30px;font-weight:900}
.seghead p{color:#3d4a55;font-size:15.5px}
.note-in{margin-top:18px;background:var(--acs);border-radius:14px;padding:12px 16px;font-size:13.5px;font-weight:700;color:#5a4300}
.empty{background:#fff;border:2px dashed #e6eaee;border-radius:18px;padding:40px;text-align:center;color:#6b7a86;font-weight:700}
/* النماذج */
.formwrap{max-width:720px;margin:36px auto 30px;background:#fff;border-radius:24px;padding:34px 30px;box-shadow:0 10px 34px rgba(23,32,38,.08);border:1px solid #eef1f4}
.formwrap.narrow{max-width:560px}
.formwrap h1{font-size:26px;font-weight:900;margin-bottom:4px}
.formwrap .sub{color:#55636d;margin-bottom:18px}
.form label{display:block;font-size:13px;font-weight:800;color:#3d4a55;margin:12px 0 6px}
.form input,.form select,.form textarea{width:100%;padding:12px 14px;border:1.5px solid #e6eaee;border-radius:12px;font-family:inherit;font-size:15px;background:#fafbfc}
.form input:focus,.form select:focus,.form textarea:focus{outline:0;border-color:var(--pc);box-shadow:0 0 0 4px var(--pcs);background:#fff}
.form .two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form .chk{display:flex;align-items:center;gap:8px;font-weight:700;margin-top:10px}
.form .chk input{width:auto}
.form .btn{margin-top:18px}
.muted{color:#6b7a86;font-size:12.5px;margin-top:10px}
.err{background:#fef2f2;color:#b91c1c;border:1px solid #fbd5d5;border-radius:12px;padding:10px 14px;font-weight:700;margin-bottom:12px}
.done{max-width:620px;margin:50px auto;background:#fff;border-radius:26px;padding:40px 30px;text-align:center;box-shadow:0 10px 34px rgba(23,32,38,.08)}
.done .ic{font-size:54px}
.done h1{font-size:28px;font-weight:900;margin:8px 0}
.done .code{font-family:monospace;font-size:26px;color:var(--pc);background:var(--pcs);padding:4px 14px;border-radius:12px;display:inline-block}
.done .btn{margin:8px 4px 0}
/* التتبّع */
.track{max-width:720px;margin:0 auto 40px;background:#fff;border-radius:24px;padding:28px;border:1px solid #eef1f4;box-shadow:0 10px 34px rgba(23,32,38,.08)}
.track .head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.track .code{font-family:monospace;font-size:20px;color:var(--pc)}
.track .pill{margin-inline-start:auto;padding:4px 12px;border-radius:999px;font-weight:800;font-size:12.5px}
.steps-tl{list-style:none;display:grid;grid-template-columns:repeat(6,1fr);gap:4px;margin-bottom:18px}
.steps-tl li{text-align:center;font-size:12px;font-weight:700;color:#93a0aa;padding:10px 4px;border-radius:12px;background:#f4f6f8}
.steps-tl li span{display:block;font-size:20px;margin-bottom:2px;filter:grayscale(1);opacity:.5}
.steps-tl li.done{color:#15803d;background:#e5f6ee}.steps-tl li.done span{filter:none;opacity:1}
.steps-tl li.cur{color:#fff;background:var(--pc)}.steps-tl li.cur span{filter:none;opacity:1}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-bottom:16px}
.facts div{background:#f8fafb;border-radius:12px;padding:10px 14px;border-inline-end:3px solid var(--ac)}
.facts span{display:block;font-size:11px;color:#6b7a86;font-weight:700}
/* الفوتر */
.foot{background:#172026;color:#cfd8de;margin-top:40px;padding:36px 0 20px}
.foot .cols{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom:18px}
.foot b{color:#fff;display:block;margin-bottom:6px;font-size:15px}
.foot p{font-size:13.5px}
.foot a{color:#fff}
.foot .copy{border-top:1px solid #2b3742;padding-top:14px;font-size:12px;color:#93a0aa;text-align:center}
.fab{position:fixed;bottom:20px;inset-inline-start:20px;width:58px;height:58px;border-radius:50%;background:#25d366;color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;text-decoration:none;box-shadow:0 10px 26px rgba(37,211,102,.4);z-index:60}
/* الجوال */
@media(max-width:900px){
  .top .wrap{height:auto;padding:10px 14px;flex-wrap:wrap}
  .nav{display:none;order:5;width:100%;flex-direction:column;gap:2px;padding-top:8px;border-top:1px solid #eef1f4}
  body.menu .nav{display:flex}
  .line{order:4;margin-inline-start:auto}
  .cta{display:none}
  .burger{display:inline-flex;align-items:center;justify-content:center}
  .hero{grid-template-columns:1fr;padding:28px 0 10px;gap:20px}
  .hero h1{font-size:28px}
  .art{min-height:250px}.art .card{width:220px}.art .c3{top:170px}
  .segs,.steps,.why,.foot .cols{grid-template-columns:1fr}
  .why{grid-template-columns:1fr 1fr}
  .form .two{grid-template-columns:1fr}
  .formwrap{padding:24px 18px;margin-top:18px}
  .steps-tl{grid-template-columns:repeat(3,1fr)}
  .seghead{flex-direction:column;align-items:flex-start;padding-top:22px}
  .seghead h1{font-size:24px}
}
