@font-face {
  font-family: "Alexandria";
  src: url("/fonts/alexandria-arabic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Alexandria";
  src: url("/fonts/alexandria-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #20375a;
  --navy-deep: #14243d;
  --navy-50: #eef2f8;
  --navy-100: #d9e1ee;
  --orange: #d68f3d;
  --orange-soft: #fbf1e4;
  --ink: #1b2536;
  --muted: #5d6b80;
  --line: #e3e8f0;
  --bg: #f6f8fb;
  --ok: #1f8a5b;
  --ok-soft: #e5f5ed;
  --bad: #c2412d;
  --bad-soft: #fcebe8;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Alexandria", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--navy); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy-deep); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand svg { height: 26px; width: auto; }
.brand small { border-right: 1px solid rgba(255, 255, 255, .4); padding-right: 10px; font-size: 10px; line-height: 1.3; color: rgba(255, 255, 255, .85); }
.topbar nav a { color: #fff; text-decoration: none; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); }
.topbar nav a:hover { background: rgba(255, 255, 255, .08); }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 560px; height: 560px; border-radius: 50%;
  border: 70px solid rgba(214, 143, 61, .12); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-block: 56px 64px; }
.eyebrow { display: inline-block; font-size: 13px; color: var(--orange); background: rgba(214, 143, 61, .14); padding: 4px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.35; margin: 0 0 14px; font-weight: 700; }
.hero h1 span { color: var(--orange); }
.hero p.lead { font-size: 17px; color: rgba(255, 255, 255, .82); max-width: 620px; margin: 0 0 30px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.fact { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px 16px; }
.fact b { display: block; font-size: 28px; line-height: 1.2; color: #fff; }
.fact span { font-size: 13px; color: rgba(255, 255, 255, .75); }
.hero .cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; border-radius: 12px; padding: 12px 22px; transition: background .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #c47f30; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-line { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-line:hover { background: var(--navy-50); }
.btn-danger { background: #fff; color: var(--bad); border-color: #f0c7bf; }
.btn-danger:hover { background: var(--bad-soft); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- sections ---------- */
section.block { padding-block: 56px; }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 6px; color: var(--navy); }
.section-head p { margin: 0; color: var(--muted); }

.terms { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: term; }
.term { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 20px; position: relative; }
.term::before {
  counter-increment: term; content: counter(term);
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--navy-50); color: var(--navy); font-weight: 700; font-size: 14px; margin-bottom: 8px;
}
.term h3 { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.term p { margin: 0; color: var(--muted); font-size: 14.5px; }
.term.warn { border-color: #f0c7bf; background: #fffaf9; }
.term.warn::before { background: var(--bad-soft); color: var(--bad); }

.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; margin-top: 8px; }
.journey li { list-style: none; text-align: center; position: relative; padding-top: 50px; font-size: 14.5px; color: var(--navy); font-weight: 600; }
.journey li::before {
  content: attr(data-n); position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid var(--orange); color: var(--orange);
  display: grid; place-items: center; font-weight: 700; z-index: 1;
}
.journey li::after { content: ""; position: absolute; top: 18px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--navy-100); }
.journey li:last-child::after { display: none; }
.journey small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; padding-inline: 8px; }
.journey { padding: 0; }

/* ---------- form ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 36px); box-shadow: 0 10px 40px -24px rgba(20, 36, 61, .25); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.fieldset-title { grid-column: 1 / -1; font-size: 15px; font-weight: 700; color: var(--navy); padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 6px; }
.fieldset-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
label.field .req { color: var(--bad); }
label.field small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
input, select, textarea {
  font: inherit; font-size: 15px; color: var(--ink); width: 100%;
  border: 1px solid #cfd8e5; border-radius: 12px; padding: 11px 14px; background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(214, 143, 61, .45); border-color: var(--orange); }
input[type="tel"], input[inputmode="numeric"] { direction: ltr; text-align: right; }
.pay-box { background: var(--orange-soft); border: 1px solid #f1d6b4; border-radius: 14px; padding: 14px 16px; font-size: 14.5px; white-space: pre-line; }
.pay-box b { color: var(--navy); }
.upload {
  display: grid; place-items: center; text-align: center; gap: 6px; min-height: 150px; cursor: pointer;
  border: 2px dashed #cfd8e5; border-radius: 14px; padding: 18px; background: var(--bg); color: var(--muted); font-weight: 400;
}
.upload:hover { border-color: var(--orange); }
.upload img { max-height: 220px; border-radius: 10px; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--navy); flex: none; }
.alert { border-radius: 12px; padding: 12px 16px; font-size: 14.5px; }
.alert-error { background: var(--bad-soft); color: var(--bad); }
.alert-info { background: var(--navy-50); color: var(--navy); }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- thank you ---------- */
.thanks { text-align: center; padding-block: 10px; }
.thanks .badge-ok { width: 74px; height: 74px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.thanks h2 { color: var(--navy); margin: 0 0 6px; font-size: 26px; }
.thanks p { color: var(--muted); margin: 0 auto 18px; max-width: 520px; }
.code-box { display: inline-flex; align-items: center; gap: 14px; background: var(--navy-50); border-radius: 14px; padding: 12px 18px; margin-bottom: 8px; }
.code-box b { font-size: 30px; letter-spacing: 6px; color: var(--navy); }
.code-note { font-size: 13px; color: var(--bad) !important; }

/* ---------- tracking ---------- */
.track-shell { min-height: calc(100vh - 160px); padding-block: 40px; }
.track-card { max-width: 560px; margin-inline: auto; }
.track-form { display: grid; gap: 14px; }
.who { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.who h2 { margin: 0; font-size: 20px; color: var(--navy); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 44px 26px 0; min-height: 34px; }
.timeline li::before { content: ""; position: absolute; right: 13px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; right: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: #fff; }
.timeline .dot svg { width: 15px; height: 15px; }
.timeline .t { font-weight: 600; color: var(--ink); }
.timeline .d { font-size: 13.5px; color: var(--muted); }
.timeline li.done .dot { background: var(--navy); border-color: var(--navy); }
.timeline li.done::before { background: var(--navy); }
.timeline li.current .dot { border-color: var(--orange); box-shadow: 0 0 0 5px rgba(214, 143, 61, .18); }
.timeline li.current .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.timeline li.current .t { color: var(--orange); }
.timeline li.upcoming .t { color: #9aa6b8; font-weight: 400; }
.timeline li.exam .dot { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px rgba(214, 143, 61, .2); animation: pulse 1.8s infinite; }
.timeline li.exam .t { color: #fff; background: var(--orange); display: inline-block; padding: 2px 12px; border-radius: 8px; }
.timeline li.passed .dot { background: var(--ok); border-color: var(--ok); }
.timeline li.passed .d { color: var(--ok); font-weight: 600; }
.timeline li.failed .dot { background: var(--bad); border-color: var(--bad); }
.timeline li.failed .d { color: var(--bad); font-weight: 600; }
.timeline li.ended .dot { background: var(--bad); border-color: var(--bad); }
.timeline li.ended .t { color: var(--bad); }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(214, 143, 61, .05); } }
.verdict { border-radius: 14px; padding: 16px 18px; margin-top: 4px; }
.verdict.bad { background: var(--bad-soft); color: var(--bad); }
.verdict.bad strong { display: block; font-size: 16px; }
.verdict small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }

/* ---------- footer ---------- */
footer.site { background: var(--navy-deep); color: rgba(255, 255, 255, .7); font-size: 13px; }
footer.site .wrap { padding-block: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer.site a { color: #fff; }

@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fact { padding: 10px; }
  .fact b { font-size: 22px; }
  .terms, .form-grid { grid-template-columns: 1fr; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .journey li:nth-child(2)::after { display: none; }
  section.block { padding-block: 40px; }
  .hero .wrap { padding-block: 40px 48px; }
}
section.block.pt0 { padding-top: 0; }
.req { color: var(--bad); }
.upload-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.upload { position: relative; }
