
:root {
  --lavender: #9b8be1;
  --lavender-dark: #836fd2;
  --lavender-soft: #f5f2ff;
  --ink: #1c1a25;
  --muted: #6f6b7d;
  --line: #e7e1f4;
  --white: #ffffff;
  --shadow: 0 16px 36px rgba(64, 47, 119, 0.08);
}

* { box-sizing: border-box; }
@font-face {
    font-family: "Vazirmatn";
    src: url("/static/fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fbfafc;
  font-family: "Vazirmatn", Arial, sans-serif;
  line-height: 1.8;
  direction: rtl;
}

a { color: inherit; text-decoration: none; }

.page-shell {
  min-height: 100vh;
  padding: 32px 24px 0px;
}

.topbar {
  width: min(1180px, 100%);
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--lavender);
  box-shadow: 0 8px 18px rgba(155, 139, 225, 0.32);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.topbar nav a { transition: color 180ms ease; }
.topbar nav a:hover, .topbar nav a[aria-current='page'] { color: var(--lavender-dark); }

.content-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns:  minmax(0, 1.65fr) minmax(260px, 0.75fr);
  gap: 32px;
  align-items: start;
}

.intro-panel {
  min-height: 520px;
  padding: 48px 36px;
  border-radius: 30px;
  color: var(--white);
  background: var(--lavender);
  position: sticky;
  top: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(112, 92, 190, 0.18);
}

.intro-panel::after {
  content: '';
  position: absolute;
  width: 230px;
  height: 230px;
  border: 34px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  right: -96px;
  bottom: -96px;
}

.intro-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
/*.intro-panel  .black_p{color: black}*/

.intro-panel p {
  max-width: 280px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
}

.intro-illustration {
  width: 100%;
  min-height: 235px;
  margin-top: 56px;
  display: grid;
  place-items: center;
  position: relative;
}

.route {
  width: 82%;
  height: 95px;
  border: 18px solid #32556d;
  border-top-color: transparent;
  border-left-color: #527d9a;
  border-radius: 30% 60% 55% 50%;
  transform: rotate(11deg);
  opacity: 0.95;
}

.pin {
  width: 40px;
  height: 48px;
  position: absolute;
  border-radius: 50% 50% 50% 0;
  background: #c57cf2;
  transform: rotate(-45deg);
  box-shadow: 0 8px 14px rgba(45, 30, 94, 0.16);
}

.pin::after {
  content: '';
  width: 15px;
  height: 15px;
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 50%;
  background: #f8defd;
}

.pin-one { left: 12%; top: 43%; }
.pin-two { right: 20%; top: 10%; transform: rotate(-45deg) scale(0.8); }
.pin-three { right: 32%; bottom: 2%; transform: rotate(-45deg) scale(0.92); }

.cloud {
  position: absolute;
  width: 82px;
  height: 27px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
}

.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  bottom: 8px;
  border-radius: 50%;
  background: inherit;
}

.cloud::before { width: 38px; height: 38px; left: 14px; }
.cloud::after { width: 30px; height: 30px; right: 12px; }
.cloud-one { left: 7%; top: 14%; }
.cloud-two { right: 7%; bottom: 14%; transform: scale(0.85); }

.document-card {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(231, 225, 244, 0.82);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.document-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--lavender-dark);
  font-size: 0.82rem;
  font-weight: 600;
}

.document-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.35;
}

.updated { margin: 0; color: var(--muted); font-size: 0.82rem; }

.document-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.document-section:last-child { border-bottom: 0; padding-bottom: 0; }
.document-section h3 { margin: 0 0 10px; font-size: 1.05rem; }
.document-section p { margin: 0; color: #514d5c; font-size: 0.94rem; }
.document-section ul { margin: 12px 0 0; padding: 0 22px 0 0; color: #514d5c; }
.document-section li { margin: 7px 0; font-size: 0.92rem; }

.contact-box {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--lavender-soft);
}

.contact-box strong { display: block; margin-bottom: 4px; }
.contact-box a { color: var(--lavender-dark); font-weight: 600; }

.footer {
  width: min(1180px, 100%);
  margin: 22px auto 0;
  color: white;
  text-align: center;
  font-size: 0.82rem;
}

@media (max-width: 820px) {
  .page-shell { padding: 20px 16px 0px; }
  .topbar { margin-bottom: 20px; }
  .topbar nav { gap: 14px; }
  .content-layout { grid-template-columns: 1fr; gap: 20px; }
  .intro-panel { min-height: 300px; padding: 30px 26px; position: relative; top: auto; }
  .intro-illustration { min-height: 150px; margin-top: 22px; }
  .document-card { padding: 26px 20px; border-radius: 22px; }
}

@media (max-width: 480px) {
  .topbar { align-items: flex-start; }
  .topbar nav { font-size: 0.78rem; gap: 10px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .intro-panel { border-radius: 24px; }
  .intro-panel h1 { font-size: 1.7rem; }
  .document-heading h2 { font-size: 1.5rem; }
}
