:root {
  --green: #0f645f;
  --green-dark: #083f3b;
  --gold: #c39b45;
  --cream: #f8f4ea;
  --ink: #26221d;
  --muted: #716c63;
  --line: #e7dfcf;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f5ee 0, #ffffff 260px);
  font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif;
  line-height: 1.9;
}

a { color: var(--green); }

.site-header {
  background: radial-gradient(circle at 15% 20%, #19736d 0, var(--green-dark) 70%);
  color: var(--white);
  padding: 28px 20px 48px;
}

.nav {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand img { width: 54px; height: 54px; border-radius: 15px; object-fit: cover; border: 1px solid rgba(255,255,255,.25); }
.brand strong { font-size: 1.25rem; }
.brand span { display: block; color: #ead69e; font-size: .84rem; }

.nav-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.nav-links a { color: #f7f1e2; text-decoration: none; font-size: .93rem; }
.nav-links a:hover { color: #fff; text-decoration: underline; }

.hero { max-width: 980px; margin: 38px auto 0; }
.hero h1 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.35; }
.hero p { margin: 0; max-width: 700px; color: #e9e2d2; }

.container { max-width: 900px; margin: -24px auto 60px; padding: 0 18px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(31, 49, 43, .08);
  padding: clamp(22px, 5vw, 48px);
}

.meta { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.notice { background: var(--cream); border-right: 4px solid var(--gold); padding: 14px 18px; border-radius: 12px; }
.success { background: #edf7f4; border-right-color: var(--green); }

h2 { color: var(--green-dark); margin-top: 34px; margin-bottom: 10px; line-height: 1.45; }
h3 { color: var(--green); margin-top: 24px; margin-bottom: 8px; }
p { margin: 8px 0 16px; }
ul, ol { margin: 8px 0 20px; padding-right: 24px; }
li { margin-bottom: 7px; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; padding: 5px 56px 18px 0; min-height: 48px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  right: 0;
  top: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-weight: bold;
}

.button {
  display: inline-block;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 12px 22px;
  border-radius: 12px;
  margin: 8px 0 18px;
}
.button:hover { background: var(--green-dark); }

.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.link-card { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: #fff; }
.link-card strong { display: block; color: var(--green-dark); }
.link-card span { color: var(--muted); font-size: .88rem; }

footer { text-align: center; color: var(--muted); padding: 10px 18px 38px; font-size: .9rem; }

@media (max-width: 720px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .hero { margin-top: 28px; }
  .link-grid { grid-template-columns: 1fr; }
  .card { border-radius: 17px; }
}

@media print {
  .site-header { background: white; color: black; padding-bottom: 20px; }
  .nav-links, .link-grid { display: none; }
  .hero p, .brand span { color: #444; }
  .container { margin-top: 0; }
  .card { box-shadow: none; border: 0; }
}
