  :root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --ink: #1c1f24;
    --muted: #5d6470;
    --line: #e4e7ec;
    --brand: #e8c21a;       /* أصفر الشعار */
    --brand-ink: #2f2c27;   /* خلفية الشعار */
    --accent: #2b2925;
    --ok: #138a52;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.06);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

  /* الهيدر */
  header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(47,44,39,.96);
    backdrop-filter: blur(8px);
    color: #fff;
  }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
  .brand { display: flex; align-items: center; gap: 12px; }
  .brand img { width: 46px; height: 46px; border-radius: 10px; }
  .brand b { font-size: 1.15rem; display: block; line-height: 1.2; }
  .brand small { color: #c9c4b8; font-size: .82rem; }
  .nav-cta {
    background: var(--brand); color: var(--brand-ink);
    padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem;
    transition: transform .15s;
  }
  .nav-cta:hover { transform: translateY(-1px); }

  /* البطل */
  .hero {
    background: var(--brand-ink);
    color: #fff;
    padding: 64px 0 120px;
    position: relative; overflow: hidden;
  }
  .hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(232,194,26,.18) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, #000 30%, transparent);
  }
  .hero .wrap { position: relative; }
  .pill {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(232,194,26,.4); color: var(--brand);
    padding: 4px 14px; border-radius: 999px; font-size: .85rem; margin-bottom: 18px;
  }
  .hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.9rem); line-height: 1.35; font-weight: 700; max-width: 720px; }
  .hero h1 span { color: var(--brand); }
  .hero p { color: #d6d1c6; max-width: 600px; margin-top: 14px; font-size: 1.05rem; }
  .crumbs { font-size: .85rem; color: #a9a397; margin-bottom: 28px; }
  .crumbs a:hover { color: #fff; }

  /* المنتجات */
  .products { margin-top: -80px; position: relative; padding-bottom: 72px; }
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card {
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--line);
    display: flex; flex-direction: column; overflow: hidden;
    transition: transform .2s, box-shadow .2s;
  }
  .card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 18px 40px rgba(16,24,40,.12); }
  .card.featured { border: 2px solid var(--brand); }
  .thumb { aspect-ratio: 16/10; display: grid; place-items: center; position: relative; }
  .thumb svg { width: 62%; height: auto; }
  .t1 { background: linear-gradient(135deg, #fff7d6, #ffe58a); }
  .t2 { background: linear-gradient(135deg, #e9e3ff, #b9a6ff); }
  .t3 { background: linear-gradient(135deg, #dcf5ea, #93dcb9); }
  .badge {
    position: absolute; top: 14px; right: 14px;
    background: var(--brand-ink); color: var(--brand);
    font-size: .78rem; font-weight: 600; padding: 3px 12px; border-radius: 999px;
  }
  .body { padding: 22px 22px 8px; flex: 1; }
  .body h2 { font-size: 1.3rem; font-weight: 700; }
  .body .sub { color: var(--muted); font-size: .93rem; margin-top: 4px; }
  .feats { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
  .feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
  .feats svg { flex: none; margin-top: 5px; color: var(--ok); }
  .foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 22px 22px; border-top: 1px dashed var(--line); margin-top: 18px;
  }
  .price { line-height: 1.2; }
  .price small { color: var(--muted); font-size: .8rem; display: block; }
  .price b { font-size: 1.55rem; font-weight: 700; }
  .price b span { font-size: .95rem; font-weight: 500; color: var(--muted); margin-inline-start: 4px; }
  .buy {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: #fff;
    padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: .95rem;
    transition: background .15s;
    white-space: nowrap;
  }
  .buy:hover { background: #000; }
  .featured .buy { background: var(--brand); color: var(--brand-ink); }
  .featured .buy:hover { background: #d4af0e; }

  /* لماذا نحن */
  .why { padding: 8px 0 72px; }
  .why h3 { text-align: center; font-size: 1.5rem; margin-bottom: 28px; }
  .why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .why-item {
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 20px; text-align: center;
  }
  .why-item .ic {
    width: 46px; height: 46px; border-radius: 12px; margin: 0 auto 10px;
    background: #fff7d6; color: #8a6d00; display: grid; place-items: center;
  }
  .why-item b { display: block; }
  .why-item p { color: var(--muted); font-size: .88rem; }

  /* الفوتر */
  footer { background: var(--brand-ink); color: #d6d1c6; padding: 40px 0 28px; }
  .f-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
  .f-brand { display: flex; gap: 12px; align-items: center; }
  .f-brand img { width: 52px; height: 52px; border-radius: 10px; }
  .f-brand b { color: #fff; display: block; }
  .f-brand small { font-size: .85rem; }
  .sbc {
    display: flex; align-items: center; gap: 12px;
    background: #fff; color: var(--ink);
    padding: 10px 16px 10px 20px; border-radius: 14px;
    transition: transform .15s;
  }
  .sbc:hover { transform: translateY(-2px); }
  .sbc .seal { width: 44px; height: 44px; flex: none; }
  .sbc small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.3; }
  .sbc b { font-size: .92rem; line-height: 1.4; display: block; }
  .f-bottom {
    border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 20px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .86rem;
  }
  .secure { display: inline-flex; gap: 6px; align-items: center; }

  @media (max-width: 960px) {
    .grid { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .grid, .why-grid { grid-template-columns: 1fr; }
    .brand small { display: none; }
    .hero { padding: 40px 0 100px; }
    .f-top { flex-direction: column; align-items: flex-start; }
    .f-bottom { flex-direction: column; }
  }

  /* القائمة */
  .menu { display: flex; gap: 4px; }
  .menu a {
    padding: 8px 14px; border-radius: 999px; font-size: .93rem; color: #d6d1c6;
    transition: background .15s, color .15s;
  }
  .menu a:hover { color: #fff; background: rgba(255,255,255,.08); }
  .menu a[aria-current="page"] { background: var(--brand); color: var(--brand-ink); font-weight: 600; }

  /* بطل الصفحات الداخلية */
  .hero.sm { padding: 48px 0 104px; }

  /* أعمالنا */
  .works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .shot {
    display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in;
    aspect-ratio: 16/10; overflow: hidden; position: relative; background: #eef0f3;
    border-bottom: 1px solid var(--line);
  }
  .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; display: block; }
  .shot:hover img { transform: scale(1.04); }
  .shot .zoom {
    position: absolute; bottom: 12px; left: 12px;
    background: rgba(28,31,36,.78); color: #fff; font: inherit; font-size: .8rem;
    padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center;
  }
  .domain { direction: ltr; display: inline-block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
  .tag {
    display: inline-block; background: #fff7d6; color: #8a6d00;
    font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px;
  }
  .visit { justify-content: center; width: 100%; }

  /* نافذة التكبير */
  .lightbox {
    border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh;
    margin: auto;
  }
  .lightbox::backdrop { background: rgba(10,12,16,.82); backdrop-filter: blur(3px); }
  .lightbox img { display: block; max-width: 100%; max-height: 82vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
  .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; color: #fff; }
  .lb-bar a { color: var(--brand); font-weight: 600; }
  .lb-close {
    background: #fff; color: var(--ink); border: 0; font: inherit; font-weight: 600;
    padding: 7px 16px; border-radius: 999px; cursor: pointer;
  }

  /* نبذة عنا */
  .about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
  .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
  .panel h2 { font-size: 1.35rem; margin-bottom: 10px; }
  .panel p { color: #3b414b; }
  .panel p + p { margin-top: 10px; }
  .owner { display: flex; align-items: center; gap: 14px; margin: 20px 0 4px; padding: 16px; background: var(--bg); border-radius: 14px; }
  .avatar {
    width: 54px; height: 54px; border-radius: 50%; flex: none;
    background: var(--brand-ink); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem;
  }
  .owner small { color: var(--muted); display: block; font-size: .82rem; }
  .owner b { font-size: 1.05rem; }
  .contact-list { list-style: none; display: grid; gap: 12px; margin-top: 6px; }
  .contact-list a {
    display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px;
    border: 1px solid var(--line); transition: border-color .15s, background .15s;
  }
  .contact-list a:hover { border-color: var(--brand); background: #fffcef; }
  .contact-list .ic {
    width: 42px; height: 42px; border-radius: 12px; flex: none;
    background: #fff7d6; color: #8a6d00; display: grid; place-items: center;
  }
  .contact-list small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
  .contact-list b { direction: ltr; unicode-bidi: isolate; font-weight: 600; }
  .values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
  .values div { background: var(--bg); border-radius: 12px; padding: 14px; text-align: center; font-size: .9rem; }
  .values b { display: block; font-size: 1rem; }

  @media (max-width: 960px) {
    .works { grid-template-columns: 1fr 1fr; }
    .about { grid-template-columns: 1fr; }
  }
  @media (max-width: 640px) {
    .works { grid-template-columns: 1fr; }
    .menu a { padding: 7px 10px; font-size: .86rem; }
    .brand b { font-size: 1rem; }
    .brand img { width: 40px; height: 40px; }
    .values { grid-template-columns: 1fr; }
  }

  /* منع الصور الكبيرة من توسيع أعمدة الشبكة */
  .grid > *, .works > *, .about > * { min-width: 0; }
