:root {
  --navy: #16233F;
  --navy-soft: #3A4A68;
  --sand: #EFE6D8;
  --sand-light: #F8F4EC;
  --amber: #E2A63B;
  --ink: #1E2433;
  --muted: #6B6F7A;
  --line: #E3DDD0;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Vazirmatn, "IRANSans", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: #fff;
  direction: rtl;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── header ── */
header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand img { height: 44px; display: block; }
.menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; color: var(--navy-soft); font-size: 15px; }
.menu a:hover, .menu a.active { color: var(--navy); font-weight: 600; }
.nav-btn {
  background: var(--amber);
  color: var(--navy);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.burger { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--navy); }

/* ── hero ── */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 72px 0 64px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.4;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero p { font-size: 19px; max-width: 640px; margin: 0 0 30px; color: var(--sand); }
.cta {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-weight: 800;
  padding: 15px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 17px;
}
.cta:hover { filter: brightness(1.06); }
.hero .hint { display: block; margin-top: 14px; font-size: 14px; color: #B8C1D6; }

/* ── sections ── */
section { padding: 60px 0; }
section.alt { background: var(--sand-light); }
h2 { font-size: 28px; margin: 0 0 24px; color: var(--navy); }
h3 { font-size: 19px; margin: 0 0 8px; color: var(--navy); }
.lead { font-size: 18px; max-width: 720px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.card .bead {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--amber); display: inline-block; margin-left: 8px;
  vertical-align: middle;
}

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 0; right: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--amber);
  font-weight: 800; display: grid; place-items: center;
}

/* ── notice ── */
.notice {
  border-right: 4px solid var(--amber);
  background: var(--sand-light);
  padding: 18px 22px;
  border-radius: 8px;
  max-width: 760px;
}

/* ── faq ── */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: inline-block; width: 24px; color: var(--amber); font-weight: 800; }
details[open] summary::before { content: "–"; }
details p { margin: 10px 24px 0 0; color: var(--ink); }

/* ── page header ── */
.page-head { background: var(--sand-light); padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 32px; margin: 0 0 8px; color: var(--navy); }
.page-head p { margin: 0; color: var(--muted); }

/* ── footer ── */
footer { background: var(--navy); color: #B8C1D6; padding: 40px 0 28px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 24px; }
footer a { color: var(--sand); text-decoration: none; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer .legal { border-top: 1px solid #2A3652; padding-top: 18px; font-size: 13px; }

/* ── responsive ── */
@media (max-width: 820px) {
  .menu { display: none; position: absolute; top: 72px; right: 0; left: 0; background: #fff;
          flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .menu li { padding: 14px 20px; border-top: 1px solid var(--line); }
  .burger { display: block; }
  .nav-btn { display: none; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 17px; }
  .grid3, .steps { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}

/* ═══════ نسخه ۲ — اجزای جدید ═══════ */

/* پنل نرخ در هیرو */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.rate-panel {
  background: #fff;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.rate-panel h3 {
  font-size: 16px; margin: 0 0 4px; color: var(--navy);
}
.rate-panel .stamp { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.rate-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.rate-row:last-of-type { border-bottom: 0; }
.rate-row .label { font-size: 14.5px; color: var(--ink); }
.rate-row .label i { font-style: normal; font-size: 12px; color: var(--muted); display: block; }
.rate-row .val { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; }
.rate-row.up .val { color: #1F7A4D; }
.rate-row.down .val { color: #B3462F; }
.rate-foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted); line-height: 1.7;
}

/* نوار آمار */
.stats { background: var(--sand-light); border-bottom: 1px solid var(--line); padding: 26px 0; }
.stats .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stats b { display: block; font-size: 25px; color: var(--navy); font-weight: 800; }
.stats span { font-size: 13.5px; color: var(--muted); }

/* جدول مقایسه */
.cmp { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.cmp th { background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.cmp th:first-child { border-radius: 0 10px 0 0; }
.cmp th:last-child { border-radius: 10px 0 0 0; }
.cmp tr.best td { background: #FBF4E4; font-weight: 700; }
.cmp .tag {
  background: var(--amber); color: var(--navy); font-size: 11.5px;
  padding: 3px 9px; border-radius: 20px; font-weight: 800; margin-right: 6px;
}
.tbl-wrap { overflow-x: auto; }
.tbl-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* مراحل عمودی شماره‌دار */
.flow { margin: 0; padding: 0; list-style: none; counter-reset: f; max-width: 780px; }
.flow li {
  counter-increment: f; position: relative;
  padding: 0 60px 26px 0; border-right: 2px solid var(--line); margin-right: 19px;
}
.flow li:last-child { border-right-color: transparent; padding-bottom: 0; }
.flow li::before {
  content: counter(f); position: absolute; right: -20px; top: -4px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--amber);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.flow h3 { margin: 0 0 4px; font-size: 17px; }
.flow p { margin: 0; color: var(--muted); font-size: 15px; }

/* کارت تأکید */
.highlight {
  background: var(--navy); color: #fff; border-radius: 14px;
  padding: 30px 32px; max-width: 800px;
}
.highlight h3 { color: var(--amber); margin: 0 0 10px; font-size: 20px; }
.highlight p { margin: 0; color: var(--sand); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats .row { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .flow li { padding-left: 0; }
  .rate-row .val { font-size: 19px; }
}
