﻿:root { --paper: #F2F1ED; --card: #F8F7F3; --alt: #EFEDE7; --ink: #2E2A25; --mute: #6c665c; --line: #b9b2a5; --red: #B8442E; --redbg: #F6E6E0;
  --diy: #5E7D3A; --try: #C98A1B; --ok: #4E7FA6; --r: 14px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif; color: var(--ink); font-size: 18px; line-height: 1.85;
  background-color: var(--paper); background-image: linear-gradient(#e3dfd6 1px, transparent 1px), linear-gradient(90deg, #e3dfd6 1px, transparent 1px); background-size: 48px 48px; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.art { max-width: 780px; }
.muted { color: var(--mute); } .small { font-size: 14px; } .red { color: var(--red); } .center { text-align: center; }
.kick { display: inline-block; color: var(--red); font-weight: 700; font-size: 15px; }

/* header / footer */
.top { background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 9; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 10px; border-radius: 99px; }
.top nav a.on { background: var(--ink); color: var(--paper); }
.foot { margin-top: 60px; border-top: 2px solid var(--ink); background: var(--card); padding: 28px 0; font-size: 15px; }
.foot nav { display: flex; gap: 16px; } .foot p { margin: 6px 0; }

/* buttons */
.btn { display: inline-block; background: var(--red); color: #fff !important; font-weight: 700; text-decoration: none; padding: 10px 22px; border-radius: 99px;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn.sm { padding: 5px 14px; font-size: 15px; box-shadow: 2px 2px 0 var(--ink); }
.btn.lg { padding: 13px 28px; font-size: 19px; }
.btn.ghost { background: var(--card); color: var(--ink) !important; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 44px; padding-bottom: 20px; }
.hero h1 { font-size: 44px; line-height: 1.3; margin: 6px 0 12px; }
.hero h1 em { font-style: normal; color: var(--red); }
.lead { font-size: 19px; color: #4a453d; font-weight: 500; }
.hi { position: relative; justify-self: center; max-width: 340px; }
.hi img { border: 2px solid var(--ink); border-radius: 6px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(-2deg); }
.stamp { display: none;  position: absolute; left: -18px; bottom: 24px; width: 96px; height: 96px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-content: center; text-align: center;
  font-weight: 700; line-height: 1.1; transform: rotate(-10deg); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ink); font-size: 14px; }
.stamp b { font-size: 30px; display: block; }
.checks { list-style: none; padding: 0; margin: 14px 0; }
.checks li { padding-right: 30px; position: relative; margin: 6px 0; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; right: 0; top: 0; color: #fff; background: var(--diy); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; margin-top: 6px; }
.price { margin: 12px 0; font-weight: 600; } .price b { font-size: 30px; color: var(--red); margin-left: 4px; }

/* section heads */
h2 { font-size: 30px; line-height: 1.35; margin: 46px 0 14px; display: flex; align-items: center; gap: 12px; }
h2::before { content: ""; width: 13px; height: 13px; background: var(--red); transform: rotate(45deg); flex: none; }
h2.center { justify-content: center; }
.shead { display: flex; justify-content: space-between; align-items: center; } .shead a { font-weight: 700; }
.phead { padding-top: 34px; } .phead h1 { font-size: 40px; margin: 4px 0; line-height: 1.3; }

/* cards grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.acard { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.acard:hover { transform: translateY(-3px); box-shadow: 5px 5px 0 var(--ink); }
.acard .th { aspect-ratio: 16/9; overflow: hidden; border-bottom: 2px solid var(--ink); }
.acard .th img { width: 100%; height: 100%; object-fit: cover; }
.acard .ct { padding: 12px 16px 16px; }
.acard h3 { font-size: 19px; line-height: 1.5; margin: 2px 0 6px; }
.acard p { font-size: 15px; color: var(--mute); margin: 0; line-height: 1.6; }

/* book box */
.book { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 18px; margin: 34px 0; box-shadow: 5px 5px 0 var(--red); }
.book img { border: 1.5px solid var(--ink); border-radius: 4px; transform: rotate(-3deg); }
.book h3 { font-size: 24px; margin: 0 0 4px; line-height: 1.35; }
.book p { margin: 0 0 4px; font-size: 16px; }
.book .price { margin: 6px 0 10px; }
.book .more { display: inline-block; margin-right: 14px; font-weight: 700; font-size: 15px; }
.book.big { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--red); }
.book.big .kick { color: #f0a08e; } .book.big .price b { color: #fff; } .book.big .more { color: #f0a08e; } .book.big img { border-color: var(--paper); }

/* article */
.crumbs { font-size: 14px; color: var(--mute); padding-top: 22px; } .crumbs a { color: var(--mute); }
.ahead h1 { font-size: 38px; line-height: 1.35; margin: 4px 0 10px; }
.meta { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 15px; font-weight: 600; }
.art p { margin: 0 0 16px; }
.intro { font-size: 20px; font-weight: 500; border-right: 4px solid var(--red); padding-right: 16px; }
.toc { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 14px 20px; margin: 22px 0; }
.toc ol { margin: 6px 0 0; padding-right: 22px; columns: 2; column-gap: 30px; font-size: 16px; }
.toc a { color: var(--ink); text-decoration: none; } .toc a:hover { color: var(--red); }
h3.sub { font-size: 22px; margin: 28px 0 8px; line-height: 1.5; }
.fig { margin: 22px 0 12px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.fig .im { position: relative; }
.fig .im img { width: 100%; height: auto; }
.fig figcaption { border-top: 1.5px solid var(--ink); padding: 8px 14px; font-size: 15px; font-weight: 600; color: var(--mute); }
.heroimg { margin-top: 20px; }
.heroimg .im img { width: auto; max-width: 100%; max-height: 420px; margin: 0 auto; }
.fig.tall .im { width: min(100%, 520px); margin: 0 auto; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--ink), 0 2px 4px rgba(0,0,0,.3); display: grid; place-items: center; font-weight: 700; font-size: 14px; line-height: 1; }
.legend { list-style: none; counter-reset: l; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; font-size: 16px; line-height: 1.5; }
.legend li { counter-increment: l; display: flex; flex-direction: column; padding-right: 36px; position: relative; }
.legend li::before { content: counter(l, arabic-indic); position: absolute; right: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.legend small { color: var(--mute); font-size: 14px; }
.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 14px 20px; margin: 18px 0; }
.nums { margin: 6px 0 0; padding-right: 22px; } .nums li { margin-bottom: 6px; } .nums li::marker { color: var(--red); font-weight: 700; }
.tip { background: #E6EEF3; border: 2px solid var(--ok); border-radius: var(--r); padding: 12px 18px; margin: 18px 0; }
.tip b { color: var(--ok); }
.tag { display: inline-block; border-radius: 99px; padding: 1px 12px; font-weight: 700; font-size: 14px; white-space: nowrap; color: #fff; line-height: 1.7; }
.ok { background: var(--ok); } .diy { background: var(--diy); } .try { background: var(--try); } .tech { background: var(--red); }
.sounds { list-style: none; padding: 0; margin: 0; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); }
.sounds li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px dashed var(--line); }
.sounds li:last-child { border: 0; } .sounds p { margin: 0 !important; font-size: 16px; color: #4a453d; line-height: 1.6; }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 14px; }
.faults { display: grid; gap: 10px; }
.fault { background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; padding: 12px 16px; }
.fault .fh { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.fault p { margin: 0 !important; font-size: 16px; line-height: 1.65; } .fault .cost { font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.step { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.step .im { position: relative; aspect-ratio: 1500/920; overflow: hidden; border-bottom: 2px solid var(--ink); }
.step .im img { width: 100%; height: 100%; object-fit: cover; }
.step .tx { padding: 10px 16px 14px; }
.step h3 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 0 0 4px; line-height: 1.4; }
.step h3 span { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 14px; flex: none; }
.step p { margin: 0 !important; font-size: 16px; line-height: 1.7; }
.im .lab { position: absolute; transform: translate(-50%, -50%); background: var(--red); color: #fff; font-weight: 700; font-size: 15px; border-radius: 99px; padding: 0 12px; border: 2px solid #fff; }
.danger { border: 3px solid var(--red); background: var(--redbg); border-radius: var(--r); padding: 14px 20px; }
.danger > b { color: var(--red); font-size: 20px; } .danger ul { margin: 6px 0 0; padding-right: 22px; } .danger li { margin-bottom: 6px; }
.cheat { display: grid; gap: 10px; }
.cheat div { background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; padding: 12px 16px; }
.cheat b { color: var(--red); font-size: 18px; } .cheat p { margin: 2px 0 0 !important; font-size: 16px; line-height: 1.7; }
.sched { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sched div { background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; padding: 12px 14px; }
.sched b { color: var(--red); } .sched p { margin: 2px 0 0 !important; font-size: 15px; line-height: 1.6; }
.art .grid { grid-template-columns: repeat(3, 1fr); } .art .acard h3 { font-size: 16px; } .art .acard p { display: none; }

/* kitab page */
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat div { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px 18px; }
.feat .em { font-size: 30px; display: block; } .feat b { font-size: 19px; } .feat p { margin: 4px 0 0; font-size: 16px; color: #4a453d; line-height: 1.7; }
.pages { display: flex; gap: 16px; overflow-x: auto; padding: 6px 4px 16px; scroll-snap-type: x mandatory; }
.pages a { flex: 0 0 auto; width: 280px; scroll-snap-align: start; }
.pages img { border: 2px solid var(--ink); border-radius: 6px; box-shadow: 4px 4px 0 var(--ink); }
.chaps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.chaps a { background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); }
.chaps img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.chaps span { display: flex; align-items: center; gap: 6px; padding: 6px 8px; font-weight: 700; font-size: 14px; line-height: 1.4; border-top: 1.5px solid var(--ink); }
.chaps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 12px; flex: none; }
.orderbox { background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 22px 26px; margin-top: 40px; text-align: center; box-shadow: 6px 6px 0 var(--red); }
.orderbox h2 { justify-content: center; margin-top: 0; } .orderbox .price b { color: #fff; } .orderbox a:not(.btn) { color: #f0a08e; }
.faq details { background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px 18px; margin: 10px auto; max-width: 780px; }
.faq summary { font-weight: 700; cursor: pointer; } .faq p { margin: 6px 0 0; }

/* phones */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 26px; }
  .hero .hi { order: -1; max-width: 220px; }
  .hero h1 { font-size: 31px; }
  .grid, .art .grid { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; }
  .chaps { grid-template-columns: repeat(3, 1fr); }
  .sched { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  h2 { font-size: 25px; } .ahead h1, .phead h1 { font-size: 29px; }
  .book { grid-template-columns: 90px 1fr; gap: 14px; padding: 14px; } .book h3 { font-size: 20px; }
  .toc ol { columns: 1; }
  .legend { grid-template-columns: 1fr; }
  .sounds li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .top nav a:not(.btn) { padding: 6px 7px; font-size: 15px; }
  .brand { font-size: 19px; }
  .pin { width: 24px; height: 24px; font-size: 12px; }
  .art .acard .th { aspect-ratio: 16/8; }
}
@media (max-width: 380px) { .top nav a.btn { display: none; } }


/* منتجات العرسان */
.gtabs { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.gtabs a { border: 2px solid var(--ink); border-radius: 99px; padding: 4px 18px; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--card); }
.gtabs a.on { background: var(--ink); color: var(--paper); }
.gch { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gch li { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 16px; line-height: 1.4; }
.gch i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 14px; flex: none; }
.bundle { grid-template-columns: 230px 1fr; }
.bpair { position: relative; height: 200px; }
.bpair img { position: absolute; width: 130px; top: 0; }
.bpair img:first-child { right: 0; transform: rotate(4deg); z-index: 1; }
.bpair img:last-child { right: 90px; top: 30px; transform: rotate(-5deg); }
.gpair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gcard { flex-direction: row; align-items: center; gap: 14px; padding: 14px; }
.gcard img { width: 120px; border: 1.5px solid var(--ink); border-radius: 4px; transform: rotate(-2deg); flex: none; }
.gcard .ct { padding: 0; }
.gcard h3 { font-size: 23px; }
@media (max-width: 860px) {
  .gch { grid-template-columns: 1fr; }
  .gpair { grid-template-columns: 1fr; }
  .gcard img { width: 96px; }
  .bundle { grid-template-columns: 1fr; }
  .bpair { height: 170px; width: 220px; margin: 0 auto; }
  .bpair img { width: 110px; } .bpair img:last-child { right: 80px; }
}
@media (max-width: 520px) { .top nav a:not(.btn) { padding: 6px 5px; font-size: 14px; } .top nav { gap: 0; } .brand span { display: none; } }

/* رسومات المقالات الجديدة (نفس ستايل اللعبة) */
.dr svg { display: block; width: 100%; height: auto; }
.fig.dr .im { background: var(--card); padding: 10px 0; }
.acard .th.dr { display: grid; place-items: center; background: var(--card); padding: 8px; }
.acard .th.dr svg { height: 100%; width: auto; }
.dr .k { fill: #F8F7F3; stroke: #2E2A25; stroke-width: 3; stroke-linejoin: round; }
.dr .g { fill: #E6E2D9; stroke: #2E2A25; stroke-width: 2.5; }
.dr .m { fill: #CFCAC0; stroke: #2E2A25; stroke-width: 2.5; }
.dr .w { fill: #fff; stroke: #2E2A25; stroke-width: 2.5; }
.dr .d { fill: #2E2A25; }
.dr .r { fill: #B8442E; stroke: #2E2A25; stroke-width: 2; }
.dr .b { fill: #C9E0EC; stroke: #2E2A25; stroke-width: 2; }
.dr .y { fill: #EFE5C4; stroke: #2E2A25; stroke-width: 2; }
.dr .o { fill: #E9A23B; stroke: #2E2A25; stroke-width: 2; }
.dr .gr { fill: #8FB06A; stroke: #2E2A25; stroke-width: 2; }
.dr .cu { fill: #D9956A; stroke: #2E2A25; stroke-width: 2.5; }
.dr .bn { fill: #7A5A3A; opacity: .85; }
.dr .fl { fill: #5B8FD6; }
.dr .ln { fill: none; stroke: #2E2A25; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dr .lt { fill: none; stroke: #2E2A25; stroke-width: 2; stroke-linecap: round; }
.dr .pipe { fill: none; stroke: #8E8A82; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.dr .hose { fill: none; stroke: #2E2A25; stroke-width: 10; stroke-linecap: round; }
.dr .handle { fill: none; stroke: #2E2A25; stroke-width: 14; stroke-linecap: round; }
.dr .heat { fill: none; stroke: #E07A3A; stroke-width: 5; stroke-linecap: round; }
.dr .grid { fill: none; stroke: #2E2A25; stroke-width: 3; }
.dr .xr { fill: rgba(184, 68, 46, .07); stroke: #B8442E; stroke-width: 2.5; stroke-dasharray: 7 5; }
.dr .dash { fill: none; stroke: #8a8378; stroke-width: 2; stroke-dasharray: 7 6; }
.dr .tx { fill: #6c665c; font: 600 15px 'IBM Plex Sans Arabic', sans-serif; text-anchor: middle; }
.dr .pn circle { fill: #B8442E; stroke: #fff; stroke-width: 3; }
.dr .pn text { fill: #fff; font: 700 15px 'IBM Plex Sans Arabic', sans-serif; text-anchor: middle; }
.tsteps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tsteps li { display: flex; gap: 12px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 12px 14px; }
.tsteps .em { font-size: 34px; line-height: 1.2; flex: none; }
.tsteps h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 4px; line-height: 1.4; }
.tsteps h3 i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 13px; flex: none; }
.tsteps p { margin: 0 !important; font-size: 16px; line-height: 1.7; }
@media (max-width: 860px) { .tsteps { grid-template-columns: 1fr; } }

/* اعلن معانا */
.adstrip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 2px dashed var(--ink); border-radius: var(--r); padding: 16px 20px; margin-top: 40px; background: var(--card); }
.adstrip p { margin: 2px 0 0; color: var(--mute); font-size: 16px; }
.adf { display: grid; gap: 12px; max-width: 520px; margin: 0 auto; text-align: right; }
.adf label { display: grid; gap: 4px; font-weight: 700; font-size: 16px; }
.adf input, .adf select, .adf textarea { font: 500 17px 'IBM Plex Sans Arabic', sans-serif; padding: 8px 12px; border: 2px solid var(--paper); border-radius: 10px; background: #fff; color: var(--ink); }
.adf button { justify-self: center; cursor: pointer; font-family: inherit; }

/* هيدر الموبايل: روابط أكتر */
@media (max-width: 600px) {
  .row { gap: 6px; }
  .top nav { gap: 0; overflow-x: auto; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a:not(.btn) { padding: 6px 6px; font-size: 14px; white-space: nowrap; }
  .top nav a.btn { display: none; }
  .brand span { font-size: 17px; }
  .brand svg { width: 28px; height: 28px; }
}
@media (max-width: 600px) { .top .brand { flex: none; } .top nav { min-width: 0; } }
