:root {
  --bg: #f4f6fa; --panel: #ffffff; --text: #0f172a; --muted: #5b6b7f; --line: #e4e9f0;
  --accent: #0b7a4b; --accent-2: #0d5db8; --accent-soft: #e8f5ee; --accent-2-soft: #e8f0fb;
  --ok: #117a3d; --no: #b42318; --warn: #9a5b00; --warn-soft: #fff4d6;
  --radius: 16px; --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -12px rgba(15,23,42,.18);
}
* { box-sizing: border-box }
html { font-size: 17px; scroll-behavior: smooth }
body { margin: 0; font-family: "Tajawal", "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif; line-height: 1.85; background: var(--bg); color: var(--text) }
h1, h2, h3, .logo, .hero h1 { font-family: "Cairo", "Tajawal", "Segoe UI", sans-serif }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px }
a { color: var(--accent-2); text-decoration: none } a:hover { text-decoration: underline }
img { max-width: 100%; height: auto; display: block }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line) }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 20px }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.2rem; line-height: 1.1 }
.logo img { width: 38px; height: 38px; border-radius: 10px }
.logo span { display: block; font-family: "Tajawal", sans-serif; font-size: .72rem; color: var(--muted); font-weight: 500 }
.menu { display: flex; gap: 2px; flex-wrap: wrap }
.menu a { padding: 7px 11px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .92rem }
.menu a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none }

main { padding: 22px 0 48px }
h1 { font-size: 1.9rem; line-height: 1.3; margin: 10px 0 14px; letter-spacing: -.01em }
h2 { font-size: 1.32rem; margin: 34px 0 12px; padding-top: 14px; border-top: 1px solid var(--line) }
h3 { font-size: 1.05rem; margin: 18px 0 8px }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 8px; display: flex; gap: 6px; flex-wrap: wrap; font-size: .84rem; color: var(--muted) }
.crumbs li + li::before { content: "›"; margin-left: 6px; color: #9aa7b8 }

/* page head with image */
.pagehead { display: grid; grid-template-columns: 1fr 240px; gap: 22px; align-items: start; margin-bottom: 8px }
.pagehead .art { width: 100%; border-radius: 18px; box-shadow: var(--shadow) }
.pagehead .art.small { width: 160px; margin-right: auto }
@media (max-width: 760px) { .pagehead { grid-template-columns: 1fr } .pagehead .art { width: 220px } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: .84rem; color: var(--muted) }
.chip.ok { background: #e6f6ec; color: var(--ok); border-color: #bfe6cc } .chip.no { background: #fdeaea; color: var(--no); border-color: #f3c2c2 } .chip.warn { background: var(--warn-soft); color: var(--warn); border-color: #efd9a0 }

/* answer box */
.answer { position: relative; background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft)); border: 1px solid #d5e8dd; border-radius: var(--radius); padding: 18px 22px; margin: 14px 0 22px }
.answer::before { content: "الجواب المختصر"; position: absolute; top: -11px; right: 16px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; padding: 2px 10px; border-radius: 999px }
.answer .lead { font-size: 1.1rem; margin: 6px 0 0; line-height: 1.8 }
.answer .meta, .meta { font-size: .84rem; color: var(--muted); margin: 10px 0 0 }

/* tables */
.tablewrap { overflow-x: auto; margin: 12px 0; border-radius: 14px; box-shadow: var(--shadow) }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .95rem }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top }
th { background: #f3f6fa; font-weight: 700; font-size: .86rem; color: #334155 }
tr:last-child td { border-bottom: 0 }
tbody tr:hover td { background: #fafcff }
.ok { color: var(--ok); font-weight: 700 } .no { color: var(--no); font-weight: 700 } .warn { color: var(--warn); font-weight: 700 }
.ok::before { content: "✓ "; } .no::before { content: "✕ "; }

/* lists */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 10px 0 }
.steps li { counter-increment: s; position: relative; padding: 10px 52px 10px 14px; margin: 8px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px }
.steps li::before { content: counter(s); position: absolute; right: 12px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .85rem }
ul.brands, ul.index { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px }
ul.brands li, ul.index li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow) }
ul.plain { padding-right: 20px } ul.plain li { margin: 6px 0 }
.tag { display: inline-block; font-size: .74rem; background: var(--warn-soft); color: #7a4b00; border-radius: 999px; padding: 1px 9px; margin-right: 6px; vertical-align: middle }
.pending { background: var(--warn-soft); border: 1px solid #f1dfae; border-radius: 12px; padding: 12px 16px }

/* cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 14px 0 }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -16px rgba(15,23,42,.3); text-decoration: none }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover }
.card .body { padding: 12px 14px 14px; color: var(--text) }
.card .title { font-weight: 800; font-family: "Cairo", sans-serif; font-size: 1.02rem; margin-bottom: 4px }
.card .sub { font-size: .86rem; color: var(--muted); line-height: 1.6 }
.card .status { margin-top: 8px }
a.card { color: inherit }

/* hero (home) */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: center; background: linear-gradient(135deg, #0b7a4b, #0d5db8); color: #fff; border-radius: 24px; padding: 34px 34px; margin: 6px 0 28px; box-shadow: var(--shadow) }
.hero h1 { color: #fff; font-size: 2.1rem; margin: 0 0 12px }
.hero p { font-size: 1.05rem; opacity: .95; margin: 0 0 18px }
.hero .btns { display: flex; gap: 10px; flex-wrap: wrap }
.hero .btns a { background: #fff; color: #0b3b2a; font-weight: 700; padding: 10px 18px; border-radius: 12px }
.hero .btns a.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4) }
.hero img { width: 100%; border-radius: 18px }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; padding: 24px } .hero img { max-width: 360px } }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px }
.section-title a { font-size: .9rem }

/* faq, pros/cons, cta */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; margin: 8px 0 }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-left: 26px }
.faq summary::after { content: "+"; position: absolute; left: 4px; top: 0; color: var(--accent); font-weight: 800 }
.faq details[open] summary::after { content: "–" }
.faq details div { padding-top: 6px; color: #2a3542 }
.prosandcons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px } @media (max-width: 700px) { .prosandcons { grid-template-columns: 1fr } }
.prosandcons > div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px 12px }
.prosandcons h3 { margin-top: 10px }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 } @media (max-width: 700px) { .facts { grid-template-columns: 1fr } }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px }
.fact b { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 2px }
.rating { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-family: "Cairo", sans-serif }
.rating .stars { color: #e3a008; letter-spacing: 2px; font-size: .95rem }
.cta a { display: inline-block; background: var(--accent); color: #fff; padding: 12px 26px; border-radius: 12px; font-weight: 800; box-shadow: var(--shadow) }
.cta a:hover { background: #09653d; text-decoration: none }
.cta small { display: block; color: var(--muted); margin-top: 6px }
.updated, .related { font-size: .9rem; color: var(--muted); margin-top: 30px }
.foot { background: #0f172a; color: #c6d0dc; font-size: .86rem; padding: 26px 0 } .foot a { color: #e2e8f0 } .foot strong { color: #ffd27a }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr; gap: 24px } @media (max-width: 700px) { .foot .cols { grid-template-columns: 1fr } }

/* плитки настоящих логотипов */
.logo-tile { display: flex; align-items: center; justify-content: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; min-height: 130px; box-shadow: var(--shadow) }
.logo-tile img, .card .logo-tile img { width: auto; height: auto; max-height: 72px; max-width: 46%; aspect-ratio: auto; object-fit: contain; display: block }
.logo-tile.dark { background: #0f172a; border-color: #0f172a }
.logo-tile.small { min-height: 96px; padding: 14px; max-width: 220px; margin-right: auto } .logo-tile.small img { max-height: 56px }
.pagehead .logo-tile { width: 100% }
.card .logo-tile { border: 0; border-radius: 0; box-shadow: none; min-height: 0; aspect-ratio: 16/9; padding: 22px 28px; background: #f8fafc; width: 100% }
.card .logo-tile.dark { background: #0f172a }
.card .logo-tile img { max-height: 70%; max-width: 70% }
.card .logo-tile img + img { max-width: 40% }
.card .logo-tile img:first-child:not(:last-child) { max-width: 40% }
