:root {
  color-scheme: light dark;
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --fg: #0E1116;
  --fg2: #5B6270;
  --line: #E4E7EC;
  --accent: #1C6FB0;
  --accent-soft: #EAF2FA;
  --radius: 20px;
  --font-ar: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-en: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08090C;
    --surface: #121419;
    --fg: #EEF0F4;
    --fg2: #9AA1AE;
    --line: #1E2129;
    --accent: #7FC0F2;
    --accent-soft: #13263A;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.75;
}

[lang="en"] {
  font-family: var(--font-en);
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

@media (min-width: 600px) {
  .wrap { padding: 40px 24px 80px; }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img { width: 44px; height: 44px; border-radius: 10px; }

.brand-name { font-size: 22px; font-weight: 700; line-height: 1.2; }
.brand-name span { font-family: var(--font-en); color: var(--fg2); font-weight: 600; }

.lang-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

h1 { font-size: 32px; line-height: 1.3; margin: 0 0 8px; }
h2 { font-size: 21px; line-height: 1.4; margin: 32px 0 8px; }
h3 { font-size: 17px; margin: 20px 0 4px; }

p, ul { margin: 0 0 12px; }
ul { padding-inline-start: 22px; }
li { margin-bottom: 6px; }

.meta { color: var(--fg2); font-size: 15px; margin-bottom: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}

@media (min-width: 600px) {
  .card { padding: 28px; }
}

.summary li { font-weight: 600; }

.lang-section + .lang-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 24px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

details:last-child { border-bottom: 0; }

summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 24px;
  list-style-position: inside;
}

details p { margin: 8px 0 0; color: var(--fg); }

.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--fg2);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a { color: var(--fg2); }

.home {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.home img { width: 112px; height: 112px; border-radius: 25px; }
.home .tagline { color: var(--fg2); max-width: 460px; }
.home nav { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

@media (prefers-reduced-motion: no-preference) {
  a, .lang-jump, .contact { transition: opacity 150ms ease; }
}
