@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Noto+Kufi+Arabic:wght@500;600;700&display=swap');

:root {
  --ink: #082034;
  --ink-2: #143b54;
  --paper: #f4f6f7;
  --surface: #ffffff;
  --muted: #607483;
  --line: #d7e1e6;
  --red: #e3313d;
  --red-dark: #b91d2a;
  --gold: #f0c558;
  --blue: #0e6388;
  --max: 1120px;
  --shadow: 0 16px 42px rgba(5, 29, 46, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Cairo", system-ui, sans-serif; font-size: 16px; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin: auto; }
.topline { min-height: 38px; display: flex; align-items: center; color: #e6f1f5; background: var(--ink); font-size: .79rem; }
.topline .container { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.pulse { display: inline-block; width: 8px; height: 8px; margin-left: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(240, 197, 88, .16); }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(14px); }
.header-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { position: relative; display: grid; width: 41px; height: 41px; place-items: center; overflow: hidden; border-radius: 12px; color: #fff; background: var(--ink); font-family: "Noto Kufi Arabic", sans-serif; font-weight: 700; }
.brand-mark:after { content: ""; position: absolute; bottom: 8px; width: 23px; height: 3px; border-radius: 3px; background: var(--gold); }
.brand-copy { display: grid; gap: 1px; line-height: 1.15; }
.brand-copy b { font-family: "Noto Kufi Arabic", sans-serif; font-size: .82rem; }
.brand-copy span { color: var(--muted); font-size: .66rem; }
.nav { display: flex; align-items: center; justify-content: center; gap: 2px; flex-wrap: wrap; }
.nav a { padding: 7px 9px; border-radius: 8px; color: #334b5e; font-size: .78rem; font-weight: 700; }
.nav a:hover, .nav a:focus-visible { color: var(--red); background: #fff0f1; outline: none; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 6px; padding: 8px 15px; border: 1px solid transparent; border-radius: 9px; font-size: .82rem; font-weight: 800; cursor: pointer; transition: .2s ease; }
.button-primary { color: #fff; background: var(--red); box-shadow: 0 9px 20px rgba(227,49,61,.18); }
.button-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.button-secondary { color: var(--ink-2); border-color: var(--line); background: #fff; }
.button-secondary:hover { color: #fff; border-color: var(--ink-2); background: var(--ink-2); }
.header-cta { white-space: nowrap; }
.page-hero { padding: 48px 0 43px; color: #fff; background: radial-gradient(circle at 10% 5%, rgba(240,197,88,.2), transparent 28%), linear-gradient(135deg, #0c405a 0%, #071f31 62%, #133c52 100%); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 17px; color: #bed3dd; font-size: .77rem; }
.breadcrumbs a:hover { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; color: #082034; background: var(--gold); font-size: .73rem; font-weight: 800; }
h1, h2, h3, h4 { font-family: "Noto Kufi Arabic", "Cairo", sans-serif; letter-spacing: -.025em; }
h1 { max-width: 860px; margin: 14px 0 9px; font-size: clamp(1.5rem, 3.3vw, 2.55rem); line-height: 1.52; }
.hero-copy { max-width: 800px; margin: 0; color: #d7e8ee; font-size: .98rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 21px; }
.hero-actions .button-secondary { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.hero-actions .button-secondary:hover { background: rgba(255,255,255,.18); }
main { padding: 36px 0 58px; }
.service-layout { display: grid; grid-template-columns: 1.22fr .78fr; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 8px 24px rgba(10,37,54,.04); }
.panel-pad { padding: 25px; }
.panel h2, .panel h3 { margin: 0 0 8px; font-size: 1.04rem; }
.panel p { margin: 0; color: var(--muted); font-size: .87rem; }
.section-label { display: block; margin-bottom: 3px; color: var(--red); font-size: .75rem; font-weight: 800; }
.checklist { margin: 15px 0 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 9px 28px 9px 0; border-bottom: 1px solid #edf1f2; color: #3d5666; font-size: .85rem; }
.checklist li:last-child { border-bottom: 0; }
.checklist li:before { content: "✓"; position: absolute; right: 0; top: 10px; display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: var(--blue); background: #e8f5f6; font-size: .72rem; font-weight: 900; }
.callout { margin-top: 18px; padding: 15px; border-right: 3px solid var(--gold); border-radius: 10px; color: #405866; background: #fff9e8; font-size: .82rem; }
.aside-card { padding: 24px; border-radius: 17px; color: #eaf4f7; background: linear-gradient(145deg, #113e57, #082034); box-shadow: var(--shadow); }
.aside-card h2 { margin: 0 0 7px; color: #fff; font-size: 1.03rem; }
.aside-card p { margin: 0; color: #c5dbe3; font-size: .84rem; }
.aside-card .button { width: 100%; margin-top: 17px; }
.aside-card .button-secondary { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.aside-card .button-secondary:hover { background: rgba(255,255,255,.16); }
.status-list { margin: 16px 0 0; padding: 0; list-style: none; }
.status-list li { display: flex; gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #d8e7ec; font-size: .8rem; }
.status-list li:last-child { border-bottom: 0; }
.status-list b { color: var(--gold); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 36px 0 17px; }
.section-head h2 { margin: 4px 0 0; font-size: 1.31rem; }
.section-head p { max-width: 470px; margin: 0; color: var(--muted); font-size: .84rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { min-height: 160px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.step-num { display: grid; width: 28px; height: 28px; place-items: center; margin-bottom: 11px; border-radius: 8px; color: #fff; background: var(--ink-2); font-size: .73rem; font-weight: 800; direction: ltr; }
.step:nth-child(2) .step-num { background: var(--blue); }
.step:nth-child(3) .step-num { background: #c99213; }
.step:nth-child(4) .step-num { background: var(--red); }
.step h3 { margin: 0 0 5px; font-size: .87rem; }
.step p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.form-layout { display: grid; grid-template-columns: 1.18fr .82fr; gap: 20px; }
.form-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(10,37,54,.04); }
.form-card h2 { margin: 0 0 6px; font-size: 1.08rem; }
.form-card > p { margin: 0 0 18px; color: var(--muted); font-size: .85rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #29495c; font-size: .81rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 11px; border: 1px solid #cfdde3; border-radius: 9px; color: var(--ink); background: #fcfdfd; font-size: .88rem; outline: none; transition: .18s ease; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14,99,136,.11); }
.check-field { display: flex; gap: 8px; align-items: start; margin-top: 4px; color: #526a78; font-size: .78rem; }
.check-field input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--red); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 17px; }
.form-hint { color: var(--muted); font-size: .75rem; }
.result { display: none; margin-top: 18px; padding: 16px; border: 1px solid #b8d4da; border-radius: 11px; color: #244b57; background: #eaf6f7; }
.result.visible { display: block; }
.result h3 { margin: 0 0 5px; font-size: .92rem; }
.result p { margin: 0; font-size: .82rem; }
.reference { display: inline-block; margin: 8px 0; padding: 4px 8px; border-radius: 6px; color: #0b536e; background: #fff; direction: ltr; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .83rem; font-weight: 800; }
.result .button { margin-top: 10px; }
.privacy-note { padding: 18px; border-radius: 14px; color: #45616f; background: #fff9e7; border-right: 3px solid var(--gold); font-size: .83rem; }
.privacy-note strong { color: var(--ink); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust-card { padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.trust-card .mark { display: grid; width: 37px; height: 37px; place-items: center; margin-bottom: 13px; border-radius: 10px; color: var(--red); background: #fff0f1; font-size: 1.05rem; }
.trust-card:nth-child(2) .mark { color: var(--blue); background: #e8f4f8; }
.trust-card:nth-child(3) .mark { color: #a87800; background: #fff5db; }
.trust-card h2 { margin: 0 0 6px; font-size: .93rem; }
.trust-card p { margin: 0; color: var(--muted); font-size: .81rem; }
.library { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.library-card { display: flex; min-height: 215px; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.library-card .tag { color: var(--red); font-size: .71rem; font-weight: 800; }
.library-card h2 { margin: 8px 0; font-size: .94rem; line-height: 1.75; }
.library-card p { margin: 0; color: var(--muted); font-size: .79rem; }
.library-card a { margin-top: auto; padding-top: 13px; color: var(--red); font-size: .77rem; font-weight: 800; }
.news-list { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.news-row { display: grid; grid-template-columns: 85px 1fr; gap: 14px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.news-row:last-child { border-bottom: 0; }
.news-date { display: grid; height: 46px; place-items: center; color: var(--red); border-radius: 9px; background: #fff0f1; font-size: .71rem; font-weight: 800; line-height: 1.35; }
.news-row h2 { margin: 0; color: #18394d; font-size: .89rem; }
.news-row p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
footer { padding: 27px 0; color: #91a9b5; background: #061927; font-size: .75rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
footer strong { color: #fff; }
footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 10px; }
.footer-links a:hover { color: #fff; }

@media (max-width: 950px) {
  .header-inner { flex-wrap: wrap; padding: 11px 0; }
  .nav { order: 3; width: 100%; justify-content: space-between; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav a { white-space: nowrap; }
  .service-layout, .form-layout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .library { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--max)); }
  .topline .container { justify-content: center; }
  .topline .optional { display: none; }
  .header-cta { display: none; }
  .brand-copy span { display: none; }
  .page-hero { padding: 34px 0 31px; }
  h1 { font-size: 1.47rem; }
  .hero-copy { font-size: .88rem; }
  main { padding-top: 27px; }
  .panel-pad, .form-card { padding: 20px; }
  .section-head { display: block; margin-top: 30px; }
  .section-head p { margin-top: 7px; }
  .steps, .trust-grid, .library { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .news-row { grid-template-columns: 58px 1fr; gap: 10px; padding: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}
