/* ── Peyda — وزن 400 (WOFF2 + fallback TTF) ── */
@font-face {
  font-family: 'Peyda';
  src: url('/fonts/peyda-regular.woff2') format('woff2'),
       url('/fonts/peyda-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  font-synthesis: none;
}

/* ── Peyda — وزن‌های سنگین با Vazirmatn Bold واقعی ──
   فایل peyda-bold.ttf موجود نبود، پس وزن Bold از Vazirmatn (مجوز SIL OFL)
   تأمین می‌شود. این یک وزن ۷۰۰ اصیل است، نه ضخیم‌سازی مصنوعی مرورگر.
   اگر بعداً peyda-bold.ttf واقعی را گذاشتید، آن را به ابتدای src اضافه کنید. */
@font-face {
  font-family: 'Peyda';
  src: url('/fonts/vazirmatn-bold.woff2') format('woff2');
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
  font-synthesis: none;
}

/* ── Vazirmatn — خانوادهٔ کامل فارسی به‌عنوان جایگزین ── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  /* رفع faux bold: اجازهٔ ساخت وزن مصنوعی داده نمی‌شود */
  font-synthesis: none;
  font-synthesis-weight: none;
  --font-base: "Peyda", "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-main: #0c0e12;
  --bg-surface: #141820;
  --bg-surface-elevated: #1a202c;
  --bg-card: #161b24;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(220, 38, 38, 0.4);

  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-glow: rgba(220, 38, 38, 0.25);

  --text-head: #ffffff;
  --text-body: #94a3b8;
  --text-muted: #64748b;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-red: 0 4px 20px var(--red-glow);

  --container-max: 1200px;
}
/* ── ۲. ریست پایه ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ── ۳. ساختار و کانتینر ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ── ۴. دکمه‌ها (Buttons) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--red);
  color: var(--text-head);
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: var(--shadow-red);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-head);
}

.btn-outline:hover {
  border-color: var(--red);
  background: rgba(220, 38, 38, 0.08);
}

.btn-small {
  padding: 7px 16px;
  font-size: 0.85rem;
}

/* ── ۵. تایپوگرافی و برچسب‌ها ── */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 2rem;
  color: var(--text-head);
  margin-top: 10px;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-body);
  font-size: 1.05rem;
}

.section-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(220, 38, 38, 0.12);
  color: var(--red);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── ۶. هدر و منوی ناوبری ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 14, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-head);
}

.brand-badge {
  color: var(--red);
}

.header-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--text-head);
}

/* ── ۷. بخش هیرو (Hero) ── */
.hero {
  padding: 80px 0 60px;
  background: radial-gradient(circle at 50% 20%, rgba(220, 38, 38, 0.12) 0%, transparent 65%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--r-full);
  color: var(--text-head);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3rem;
  color: var(--text-head);
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--red);
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-body);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.feature-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  color: var(--text-head);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px 16px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── ۸. بخش ویژگی‌ها (Features) ── */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  padding: 32px 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--text-head);
  margin-bottom: 12px;
}

/* ── ۹. نوار دسته‌بندی‌ها ── */
.categories-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 28px 0;
}

.categories-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-pill strong {
  color: var(--red);
  font-size: 1.1rem;
}

.cat-pill span {
  color: var(--text-body);
  font-size: 0.95rem;
}

/* ── ۱۱. بخش منتورینگ (Mentoring) ── */
.mentoring {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.mentoring-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.mentoring-text h2 {
  font-size: 2rem;
  color: var(--text-head);
  margin: 12px 0 16px;
}

.mentoring-text p {
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.mentoring-text .btn {
  margin-top: 12px;
}

.mentoring-note {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-right: 4px solid var(--red);
  border-radius: var(--r-md);
  padding: 28px;
}

.mentoring-note h3 {
  font-size: 1.15rem;
  color: var(--text-head);
  margin-bottom: 16px;
}

.mentoring-note ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mentoring-note li {
  position: relative;
  padding-right: 20px;
  font-size: 0.92rem;
  color: var(--text-body);
}

.mentoring-note li::before {
  content: "•";
  color: var(--red);
  position: absolute;
  right: 0;
  font-size: 1.4rem;
  line-height: 1;
}

/* ── ۱۲. بخش مقالات (Blog) ── */
.blog {
  padding: 90px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-cat {
  color: var(--red);
  font-weight: 600;
}

.blog-card h3 {
  font-size: 1.15rem;
  color: var(--text-head);
  margin-bottom: 12px;
  line-height: 1.5;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  flex-grow: 1;
  margin-bottom: 20px;
}

.blog-link {
  color: var(--text-head);
  font-size: 0.88rem;
  font-weight: 600;
}

.blog-link:hover {
  color: var(--red);
}

/* ── ۱۳. بخش ارتباط و شبکه‌های اجتماعی (Contact) ── */
.contact {
  padding: 80px 0;
  background: var(--bg-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  fill: var(--red);
}

.contact-icon svg {
  width: 32px;
  height: 32px;
}

.contact-card h3 {
  font-size: 1.1rem;
  color: var(--text-head);
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contact-handle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  direction: ltr;
}

/* ── ۱۴. فوتر (Footer) ── */
.site-footer {
  background: var(--bg-main);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 16px;
  border: 2px solid var(--border-color);
}

.footer-about p {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 20px;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  fill: var(--text-body);
  transition: all 0.2s;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  fill: var(--text-head);
  border-color: var(--red);
  background: var(--red);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--text-head);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-body);
}

.footer-links a:hover {
  color: var(--red);
}

.footer-contact address {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-body);
}

.footer-contact a:hover {
  color: var(--text-head);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── ۱۵. استایل‌های ریسپانسیو (Responsive) ── */
@media (max-width: 992px) {
  .features-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mentoring-inner {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .features-grid,
  .blog-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ۱۶. صفحات داخلی — کامپوننت‌های مشترک
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── ۱۶.۱ دکمه منوی موبایل ── */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--r-sm);
  color: var(--text-head);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
  border-color: var(--red);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ── ۱۶.۲ لینک فعال منو ── */
.main-nav a.active {
  color: var(--text-head);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
}

/* ── ۱۶.۳ هدر صفحات داخلی ── */
.page-hero {
  padding: 60px 0 48px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(220, 38, 38, 0.14) 0%, transparent 62%);
  border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
  font-size: 2.3rem;
  color: var(--text-head);
  line-height: 1.35;
  margin: 12px 0 14px;
}

.page-hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.page-hero .hero-cta {
  margin: 28px 0 0;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.2);
}

/* ── ۱۶.۴ بخش‌های عمومی ── */
.page-section {
  padding: 72px 0;
}

.page-section.alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.media-frame {
  border-radius: var(--r-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 10px;
  box-shadow: var(--shadow-md);
}

.media-frame img {
  border-radius: var(--r-md);
  width: 100%;
}

.two-col h2 {
  font-size: 1.9rem;
  color: var(--text-head);
  line-height: 1.4;
  margin: 12px 0 16px;
}

.two-col p {
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.two-col .btn {
  margin-top: 10px;
}

/* ── ۱۶.۵ لیست نشانه‌دار ── */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-list li {
  position: relative;
  padding-right: 26px;
  font-size: 0.95rem;
  color: var(--text-body);
}

.info-list li::before {
  content: "✦";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--red);
  font-size: 0.9rem;
}

/* ── ۱۶.۶ کارت‌های مرحله‌ای ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  padding: 28px 22px;
  transition: transform 0.2s, border-color 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.15);
  color: var(--red);
  font-weight: 700;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.08rem;
  color: var(--text-head);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.9rem;
}

/* ── ۱۶.۷ کارت پلن‌ها ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 34px 26px 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
}

.plan-card.featured {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-red);
}

.plan-badge {
  position: absolute;
  top: -13px;
  right: 26px;
  padding: 4px 14px;
  background: var(--red);
  color: var(--text-head);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.plan-card h3 {
  font-size: 1.25rem;
  color: var(--text-head);
  margin-bottom: 8px;
}

.plan-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
  flex-grow: 1;
}

.plan-features li {
  position: relative;
  padding-right: 24px;
  font-size: 0.9rem;
  color: var(--text-body);
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--red);
  font-weight: 700;
}

/* ── ۱۶.۸ تایم‌لاین ── */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-right: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  right: -30px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

.timeline-item h3 {
  font-size: 1.1rem;
  color: var(--text-head);
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 0.93rem;
}

/* ── ۱۶.۹ جدول ── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  background: var(--bg-card);
}

table.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

table.data-table th,
table.data-table td {
  padding: 15px 18px;
  text-align: right;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

table.data-table th {
  background: var(--bg-surface);
  color: var(--text-head);
  font-weight: 600;
  white-space: nowrap;
}

table.data-table td {
  color: var(--text-body);
}

table.data-table tr:last-child td {
  border-bottom: 0;
}

table.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ── ۱۶.۱۰ متن مقالات (Prose) ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.prose {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 40px;
}

.prose h2 {
  font-size: 1.45rem;
  color: var(--text-head);
  line-height: 1.5;
  margin: 36px 0 14px;
  padding-right: 14px;
  border-right: 3px solid var(--red);
}

.prose h3 {
  font-size: 1.12rem;
  color: var(--text-head);
  margin: 26px 0 10px;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
  padding-right: 20px;
}

.prose ul {
  padding-right: 0;
}

.prose ul li {
  position: relative;
  padding-right: 20px;
  font-size: 0.98rem;
}

.prose ul li::before {
  content: "•";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--red);
  font-size: 1.3rem;
  line-height: 1.4;
}

.prose ol {
  list-style: decimal;
}

.prose ol li {
  font-size: 0.98rem;
}

.prose strong {
  color: var(--text-head);
}

.prose blockquote {
  background: var(--bg-surface);
  border-right: 4px solid var(--red);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 26px 0;
  color: var(--text-head);
  font-size: 0.98rem;
}

.prose img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border-color);
  margin: 26px 0;
}

.prose .note-box {
  background: rgba(220, 38, 38, 0.07);
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin: 26px 0;
}

.prose .note-box h3 {
  margin-top: 0;
}

/* ── ۱۶.۱۱ سایدبار ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  padding: 24px;
}

.sidebar-card h3 {
  font-size: 1.02rem;
  color: var(--text-head);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-card a {
  font-size: 0.9rem;
  color: var(--text-body);
  display: block;
  line-height: 1.6;
}

.sidebar-card a:hover {
  color: var(--red);
}

.sidebar-cta {
  background: linear-gradient(160deg, rgba(220, 38, 38, 0.16), transparent 70%), var(--bg-surface);
  text-align: center;
}

.sidebar-cta p {
  font-size: 0.9rem;
  margin-bottom: 18px;
}

/* ── ۱۶.۱۲ آکاردئون سوالات متداول ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: var(--border-color-hover);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: 0;
  color: var(--text-head);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
  cursor: pointer;
}

.faq-chev {
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--red);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chev {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a-inner {
  padding: 0 22px 22px;
  font-size: 0.95rem;
  color: var(--text-body);
}

/* ── ۱۶.۱۴ نوار دعوت به اقدام ── */
.cta-band {
  padding: 64px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.16), transparent 65%), var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cta-band h2 {
  font-size: 1.8rem;
  color: var(--text-head);
  margin-bottom: 12px;
}

.cta-band p {
  max-width: 640px;
  margin: 0 auto 28px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── ۱۶.۱۵ فرم تماس ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.88rem;
  color: var(--text-head);
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-head);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--text-head);
  font-size: 0.9rem;
}

.form-success.show {
  display: block;
}

/* ── ۱۶.۱۶ دکمه بازگشت به بالا ── */
.to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--text-head);
  cursor: pointer;
  box-shadow: var(--shadow-red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--red-dark);
}

.to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ── ۱۶.۱۸ لینک پرش به محتوا (دسترس‌پذیری) ── */
.skip-link {
  position: absolute;
  top: -60px;
  right: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--red);
  color: var(--text-head);
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ── ۱۶.۱۹ مسیر راهنما (Breadcrumbs) ── */
.breadcrumbs {
  margin: 0 0 24px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--red);
}

.breadcrumbs span[aria-current] {
  color: var(--text-head);
  font-weight: 600;
}

.breadcrumbs svg {
  fill: var(--text-muted);
  opacity: 0.6;
  flex: 0 0 auto;
}

/* ── ۱۶.۲۰ کارت مقاله ── */
.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color 0.25s, transform 0.25s;
}

.article-card:hover {
  border-color: rgba(224, 49, 49, 0.45);
  transform: translateY(-3px);
}

.article-card-media {
  display: block;
  /* نسبت ابعاد ثابت -> جلوگیری از CLS حتی قبل از بارگذاری تصویر */
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-surface);
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.article-card:hover .article-card-media img {
  transform: scale(1.04);
}

.article-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 10px;
  padding: 20px;
}

.article-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-card-tags li {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(224, 49, 49, 0.12);
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 600;
}

.article-card-title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
}

.article-card-title a {
  color: var(--text-head);
}

.article-card-title a:hover {
  color: var(--red);
}

.article-card-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--red);
  font-weight: 600;
}

.article-card-link svg {
  fill: currentColor;
  flex: 0 0 auto;
}

/* ── ۱۶.۲۱ صفحهٔ مقاله (BlogLayout) ── */
.article-page {
  padding: 48px 0 64px;
}

.article-header {
  margin-bottom: 28px;
}

.article-header h1 {
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-author {
  color: var(--red);
  font-weight: 600;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.article-tags a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  transition: border-color 0.2s, color 0.2s;
}

.article-tags a:hover {
  border-color: var(--red);
  color: var(--red);
}

.article-sidebar {
  margin-top: 44px;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.article-sidebar h2 {
  margin: 0 0 14px;
  font-size: 1.125rem;
}

.article-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-sidebar li + li {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.article-sidebar a {
  color: var(--text-muted);
  line-height: 1.7;
}

.article-sidebar a:hover {
  color: var(--red);
}

/* ── ۱۶.۲۳ آرشیو تگ ── */
.tag-archive-header {
  padding: 44px 0 28px;
}

.tag-count {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.tag-filter {
  margin-bottom: 32px;
}

/* ── ۱۶.۲۴ سوالات متداول با details/summary (بدون JS) ── */
details.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

details.faq-item > summary::-webkit-details-marker {
  display: none;
}

details.faq-item > summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--red);
  transition: transform 0.25s ease;
}

details.faq-item[open] > summary::after {
  transform: rotate(45deg);
}

details.faq-item[open] {
  border-color: var(--border-color-hover);
}

details.faq-item > summary h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-head);
}

details.faq-item > summary:hover h3 {
  color: var(--red);
}

details.faq-item > p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ── ۱۶.۲۵ صفحهٔ ۴۰۴ ── */
.error-page {
  text-align: center;
  padding: 80px 0;
}

.error-code {
  display: block;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  opacity: 0.85;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* ── ۱۶.۲۶ صفحهٔ نویسنده ── */
.author-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.author-role {
  color: var(--red);
  font-weight: 600;
}

.author-bio {
  max-width: 70ch;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ── ۱۶.۲۷ اطلاعیه ── */
.notice {
  max-width: 70ch;
  margin-top: 24px;
  padding: 16px 20px;
  border-right: 3px solid var(--red);
  border-radius: var(--r-sm);
  background: rgba(224, 49, 49, 0.08);
  color: var(--text-muted);
  line-height: 1.9;
}

.section-more {
  margin-top: 36px;
  text-align: center;
}

/* ── ۱۶.۲۹ فرم نظرسنجی / مشاوره (پرس‌لاین) ── */
.survey-embed {
  position: relative;
  min-height: 480px;
  max-width: 860px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  background: var(--bg-card);
  overflow: hidden;
}

/* پرس‌لاین iframe را داخل <div class="porsline_embed"> می‌گذارد،
   پس انتخابگر باید فرزند-نزدیک (descendant) باشد نه فرزند مستقیم.
   ذاتی iframe یک min-width:360px دارد که در موبایل باعث اسکرول افقی
   می‌شود؛ با min-width:0!important آزادش می‌کنیم. */
.survey-embed .porsline_embed,
.survey-embed iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

.survey-embed iframe {
  display: block;
  min-height: 480px;
  border: 0;
  border-radius: var(--r-sm);
  background: #fff;
}

.survey-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35px;
  height: 35px;
  margin: -17.5px 0 0 -17.5px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: survey-spin 1s linear infinite;
}

@keyframes survey-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .survey-embed {
    min-height: 620px;
    padding: 0;
    border-radius: var(--r-sm);
  }
}

/* ── ۱۶.۲۸ انیمیشن ورود ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ۱۸. بازطراحی ۱۴۰۵ — لایهٔ ظاهری (Design Refresh Layer)

   جهت طراحی: مینیمالیسم / سبک سوئیسی با لحن ادیتوریال
   منبع تصمیم: ui-ux-pro-max → style: minimalism-and-swiss-style
   اصول: فضای سفید بیشتر، شبکهٔ روشن، کنتراست بالا، شعاع گوشهٔ کم،
          بدون سایهٔ سنگین، تأکید روی تایپوگرافی و خطوط نازک.
   هویت برند حفظ شده: پس‌زمینهٔ تیره + اکسنت قرمز (#dc2626)

   این بخش عمداً در «انتهای» فایل است تا روی قواعد قبلی بنشیند.
   برای برگشت به طراحی قبل، فقط همین بخش را حذف کنید.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── مقیاس تایپوگرافی سیال ── */
  --t-xs: 0.75rem;
  --t-sm: 0.8125rem;
  --t-base: 1rem;
  --t-lg: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  --t-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --t-2xl: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
  --t-3xl: clamp(1.875rem, 1.5rem + 1.8vw, 2.75rem);
  --t-4xl: clamp(2.375rem, 1.7rem + 3.2vw, 3.75rem);

  /* ── مقیاس فاصله (ریتم ۴/۸ پیکسل) ── */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* ── عرض خواندن ── */
  --measure: 68ch;

  /* ── خطوط و کنتراست ── */
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  /* متن کم‌رنگ قبلی (#64748b) کنتراست ناکافی داشت؛ روشن‌تر شد */
  --text-muted: #8b97a8;

  /* ── شعاع گوشه: سوئیسی = گوشهٔ کم ── */
  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;
}

/* ── ۱۸.۱ تایپوگرافی پایه ── */
body {
  font-size: var(--t-base);
  line-height: 1.8;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--text-head);
}

h1 { font-size: var(--t-4xl); letter-spacing: -0.025em; line-height: 1.14; }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

p { max-width: 72ch; }

/* ── ۱۸.۲ هیرو: بزرگ، راست‌چین، بدون گرادیان ── */
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-8);
  /* گرادیان حذف شد؛ یک خط قرمز عمودی به‌جای آن (سبک ادیتوریال) */
  background: none;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  /* قبلاً 2 ستون بود ولی markup صفحهٔ اصلی فقط یک ستون دارد
     → نیمی از فضا خالی می‌ماند. تک‌ستونی اصلاح شد. */
  display: block;
  /* همراستا با عرض .container تا تیتر و کارت‌های پایین تراز باشند */
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-content {
  text-align: right;
}

.hero-content h1 {
  margin: var(--s-4) 0 var(--s-5);
  max-width: 24ch;
  color: var(--text-head);
}

.hero-content > p {
  font-size: var(--t-lg);
  color: var(--text-body);
  max-width: 58ch;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* نوار «اصول مسیر» — فضای خالی هیرو را با محتوای واقعی پر می‌کند */
.hero-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: var(--s-8) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.hero-principles li {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-4) var(--s-5) var(--s-4) 0;
  border-left: 1px solid var(--line);
  color: var(--text-body);
  font-size: var(--t-sm);
  line-height: 1.7;
}

.hero-principles li:first-child {
  padding-right: 0;
}

.hero-principles li:last-child {
  border-left: 0;
  padding-left: 0;
}

.hero-principles-label {
  color: var(--red);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-badge {
  border-radius: var(--r-sm);
}

/* برچسب بالای تیتر: خط قرمز کوچک + متن */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 3px 10px;
  border-radius: var(--r-sm);
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--red);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ── ۱۸.۳ سرِ بخش‌ها: راست‌چین با خط جداکننده ── */
.section-head,
.page-hero,
.tag-archive-header {
  text-align: right;
}

.section-head {
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: var(--s-2) 0 var(--s-3);
  font-size: var(--t-3xl);
}

.section-head p {
  font-size: var(--t-base);
  color: var(--text-body);
  margin-bottom: 0;
}

/* ── ۱۸.۴ دکمه‌ها ── */
.btn {
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: var(--t-base);
  padding: 12px 22px;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.btn-primary {
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-head);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(220, 38, 38, 0.06);
}

/* ── ۱۸.۵ کارت‌ها: تخت، خط‌دار، بدون سایهٔ سنگین ── */
.feature-card,
.article-card,
.contact-card,
.sidebar-card,
.plan-card,
.step-card {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: none;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}

.feature-card:hover,
.article-card:hover,
.contact-card:hover,
.plan-card:hover,
.step-card:hover {
  border-color: rgba(220, 38, 38, 0.45);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

.article-card-media {
  border-radius: 0;
}

/* ── ۱۸.۶ خوانایی متن مقاله ── */
.prose,
.article-body {
  max-width: var(--measure);
  line-height: 1.95;
  font-size: var(--t-lg);
}

/* چیدمان دو‌ستونی مقاله: متن + سایدبار
   (سایدبار در موبایل زیر متن می‌رود) */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--s-8);
  align-items: start;
  margin-top: var(--s-6);
}

.article-grid .article-body {
  max-width: none;
  min-width: 0;
}

.article-grid .article-sidebar {
  margin-top: 0;
  position: sticky;
  top: 96px;
  align-self: start;
}

@media (max-width: 992px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .article-grid .article-sidebar {
    position: static;
  }
}

.prose h2 {
  font-size: var(--t-2xl);
  margin: var(--s-7) 0 var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.prose h3 {
  margin: var(--s-6) 0 var(--s-3);
}

.prose p {
  margin-bottom: var(--s-4);
}

.prose blockquote {
  border-right: 3px solid var(--red);
  padding: var(--s-3) var(--s-5);
  margin: var(--s-5) 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r-sm);
  color: var(--text-head);
}

.prose ul li,
.prose ol li {
  margin-bottom: var(--s-2);
}

/* ── ۱۸.۷ جدول‌ها ── */
.data-table {
  font-size: var(--t-sm);
}

.data-table th {
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--line-strong);
}

.data-table td,
.data-table th {
  padding: 12px 14px;
}

/* ── ۱۸.۸ آکاردئون سوالات متداول ── */
details.faq-item {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

details.faq-item[open] {
  border-color: rgba(220, 38, 38, 0.4);
}

details.faq-item > summary {
  padding: var(--s-4) var(--s-5);
}

details.faq-item > p {
  padding: 0 var(--s-5) var(--s-5);
  line-height: 1.95;
}

/* ── ۱۸.۹ نوار دعوت به اقدام ── */
.cta-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ── ۱۸.۱۰ صفحهٔ داخلی ── */
.page-hero {
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 26ch;
}

.page-hero p {
  max-width: 62ch;
}

/* ── ۱۸.۱۱ مسیر راهنما ── */
.breadcrumbs {
  font-size: var(--t-sm);
}

.breadcrumbs a,
.breadcrumbs span {
  color: var(--text-muted);
}

/* ── ۱۸.۱۲ فوکوس قابل‌دیدن برای دسترس‌پذیری ── */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── ۱۸.۱۳ احترام به prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── ۱۸.۱۴ تنظیمات موبایل برای لایهٔ جدید ── */
@media (max-width: 768px) {
  .hero {
    padding: var(--s-8) 0 var(--s-7);
  }

  .hero-content h1 {
    max-width: none;
  }

  .section-head {
    margin-bottom: var(--s-6);
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-principles {
    grid-template-columns: 1fr;
    margin-top: var(--s-6);
  }

  .hero-principles li {
    padding: var(--s-3) 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-principles li:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 992px) {
  .two-col,
  .article-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .grid-3,
  .grid-4,
  .steps-grid,
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .header-inner {
    position: relative;
    justify-content: flex-start;
    gap: 10px;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: block;
    position: absolute;
    top: calc(100% + 16px);
    /* رفع اسکرول افقی موبایل:
       عنصر absolute نسبت به «padding box» والد (که خودش تمام عرض را دارد)
       موقعیت می‌گیرد، پس -20px باعث می‌شد منو ۲۰px از لبهٔ صفحه بیرون بزند
       و اسکرول افقی بسازد. با 0 دقیقاً هم‌عرض صفحه می‌شود. */
    left: 0;
    right: 0;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open {
    max-height: 520px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .main-nav a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .main-nav li:last-child a {
    border-bottom: 0;
  }

  .main-nav a.active {
    padding-bottom: 13px;
    border-bottom: 0;
    color: var(--red);
  }

  .page-hero {
    padding: 44px 0 36px;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .page-section {
    padding: 52px 0;
  }

  .two-col h2,
  .cta-band h2 {
    font-size: 1.5rem;
  }

  .prose {
    padding: 24px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .steps-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .header-actions .btn {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   ۱۹. عمق سه‌بعدی (Dimensional Layering) — فقط صفحهٔ اصلی
   منبع: ui-ux-pro-max / styles.csv → dimensional-layering
   performance cost: low | drivers: none
   قواعد: چهار سطح elevation، translateZ، backdrop-filter، پارالاکس
   ─────────────────────────────────────────────────────────────────────── */

:root {
  --elev-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --elev-2: 0 6px 16px -8px rgba(0, 0, 0, 0.6);
  --elev-3: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
  --elev-4: 0 28px 64px -22px rgba(0, 0, 0, 0.8);
  --elev-red: 0 18px 40px -18px rgba(220, 38, 38, 0.45);
}

/* ── ۱۹.۱ صحنهٔ سه‌بعدی هیرو ── */

.hero {
  /* صحنه نباید از هیرو بیرون بزند */
  overflow: hidden;
}

.hero-inner {
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-scene,
.hero-chips {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: -120px;
  width: 470px;
  height: 350px;
  pointer-events: none;
}

.hero-scene {
  opacity: 0.9;
  /* لبهٔ راست/پایین نرم محو می‌شود تا هرگز با تیتر تماس پیدا نکند */
  -webkit-mask-image:
    linear-gradient(to right, #000 0%, #000 42%, transparent 78%),
    linear-gradient(to bottom, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, #000 0%, #000 42%, transparent 78%),
    linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-composite: intersect;
}

.hs-glow {
  position: absolute;
  inset: 12% 8% 18% 8%;
  background: radial-gradient(circle at 45% 45%, rgba(220, 38, 38, 0.3), transparent 62%);
  filter: blur(26px);
}

/* ماسک فقط روی .hs-stage اعمال می‌شود (نه روی پنل‌ها)
   تا پنل‌های شیشه‌ای لبهٔ صحنه شفاف بمانند */
.hs-stage {
  position: absolute;
  inset: 0;
  /*
   * توجه: اینجا perspective/preserve-3d گذاشته نمی‌شود.
   * ترکیب preserve-3d با backdrop-filter در کروم باعث می‌شود
   * کل زیردرخت رندر نشود. هر المان perspective() مستقل خودش
   * را دارد — نتیجه یکسان است و در همه مرورگرها کار می‌کند.
   */
  opacity: 0.85;
  animation: hs-float 10s ease-in-out infinite;
}

@keyframes hs-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateX(0deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotateX(-1.6deg);
  }
}

/* پنل شیشه‌ای مایل: جسم اصلی سه‌بعدی (عقب‌ترین لایه) */
.hs-panel {
  position: absolute;
  inset: 4% 2% 14% 2%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background:
    linear-gradient(158deg, rgba(51, 65, 85, 0.62), rgba(15, 23, 42, 0.34) 62%),
    rgba(17, 24, 39, 0.55);
  box-shadow:
    var(--elev-4),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform: perspective(900px) rotateY(-15deg) rotateX(5deg);
  overflow: hidden;
}

/* درخشش نرم روی شیشه */
.hs-panel::after {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 70%;
  height: 120%;
  background: linear-gradient(200deg, rgba(255, 255, 255, 0.07), transparent 60%);
  transform: rotate(-14deg);
}

.hs-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hs-panel-dots {
  display: inline-flex;
  gap: 4px;
}

.hs-panel-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
}

.hs-panel-dots i:first-child {
  background: rgba(220, 38, 38, 0.8);
}

.hs-panel-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, rgba(148, 163, 184, 0.22), transparent);
}

/* کف شبکه‌ای که عمق صحنه را می‌سازد */
.hs-grid {
  position: absolute;
  inset: 46% -14% -16% -14%;
  transform: perspective(900px) rotateX(66deg) rotateZ(-18deg);
  transform-origin: 50% 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.26) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.26) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 22%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 22%, transparent 70%);
}

/* کندل‌ها: هر ستون در عمق کمی متفاوت */
.hs-bars {
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 22%;
  height: 56%;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  transform: perspective(900px) rotateX(11deg) rotateY(-15deg) translateZ(10px);
  transform-style: preserve-3d;
}

.hs-bar {
  position: relative;
  flex: 1 1 0;
  height: var(--h);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.55), rgba(100, 116, 139, 0.28));
  box-shadow:
    var(--elev-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateZ(calc(var(--i) * 5px));
  transform-origin: bottom center;
  animation: hs-rise 900ms cubic-bezier(0.22, 0.7, 0.3, 1) backwards;
  animation-delay: calc(var(--i) * 90ms);
}

/* فتیلهٔ کندل */
.hs-bar::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -13px;
  width: 1px;
  height: 13px;
  background: rgba(148, 163, 184, 0.5);
  transform: translateX(-50%);
}

/* سه کندل شاخص با رنگ برند */
.hs-bar.is-accent {
  background: linear-gradient(180deg, #ef4444, #991b1b);
  box-shadow:
    var(--elev-3),
    var(--elev-red),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hs-bar.is-accent::before {
  background: rgba(239, 68, 68, 0.7);
}

@keyframes hs-rise {
  from {
    transform: translateZ(calc(var(--i) * 5px)) scaleY(0.15);
    opacity: 0;
  }
  to {
    transform: translateZ(calc(var(--i) * 5px)) scaleY(1);
    opacity: 1;
  }
}

/* پنل‌های شیشه‌ای شناور — عمق با backdrop-filter و translateZ */
.hs-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-md);
  background: linear-gradient(158deg, rgba(51, 65, 85, 0.92), rgba(15, 23, 42, 0.95));
  box-shadow:
    var(--elev-4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--text-head);
  font-size: var(--t-xs);
  font-weight: 600;
  white-space: nowrap;
}

.hs-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.9);
}

.hs-chip--1 {
  top: 2%;
  right: 8%;
  transform: perspective(700px) rotateY(-12deg) translate3d(0, 0, 40px);
  animation: hs-drift 8s ease-in-out infinite;
}

.hs-chip--2 {
  bottom: 5%;
  left: 40%;
  transform: perspective(700px) rotateY(-12deg) translate3d(0, 0, 24px);
  animation: hs-drift 8s ease-in-out infinite;
  animation-delay: -3.5s;
}

@keyframes hs-drift {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -9px;
  }
}

/* ── ۱۹.۲ عمق کارت‌ها (تبدیل سه‌بعدی روی hover) ── */

.depth-grid {
  perspective: 1100px;
}

.depth-grid .feature-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface, rgba(17, 24, 39, 0.6));
  box-shadow: var(--elev-2);
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition:
    transform 0.35s cubic-bezier(0.22, 0.7, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .depth-grid .feature-card:hover {
    transform: perspective(900px) rotateX(3.5deg) rotateY(-4deg) translateZ(12px);
    box-shadow: var(--elev-4), var(--elev-red);
    border-color: rgba(220, 38, 38, 0.55);
  }
}

.depth-grid .feature-card:focus-within {
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: var(--elev-3);
}

/* ── ۱۹.۳ واکنش‌گرایی و دسترس‌پذیری ── */

@media (max-width: 1400px) {
  .hero-scene,
  .hero-chips {
    width: 420px;
    left: -130px;
  }

  .hero-scene {
    opacity: 0.75;
  }
}

@media (max-width: 1200px) {
  .hero-scene,
  .hero-chips {
    width: 360px;
    left: -140px;
  }

  .hero-scene {
    opacity: 0.6;
  }
}

@media (max-width: 1100px) {
  /* روی صفحهٔ باریک صحنه پنهان می‌شود تا خوانایی متن حفظ شود */
  .hero-scene,
  .hero-chips {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-stage,
  .hs-chip,
  .hs-bar {
    animation: none !important;
  }

  .depth-grid .feature-card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .depth-grid .feature-card:hover {
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   ۲۰. صفحهٔ دوره‌ها — مسیر ۵ مرحله‌ای
   ویدیو، تصاویر با کپشن، و تایم‌لاین مراحل با شرط عبور
   ─────────────────────────────────────────────────────────────────────── */

/* ── ۲۰.۱ جاسازی ویدیو (۱۶:۹ واکنش‌گرا، بدون CLS) ── */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-caption {
  margin-top: var(--s-4);
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.9;
  max-width: var(--measure);
}

/* ── ۲۰.۲ تصویر با توضیح ── */
.figure {
  margin: 0;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

.figure figcaption {
  margin-top: var(--s-3);
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.85;
}

/* تصویر وسط‌چین با عرض محدود (مثل اینفوگرافیک) */
.figure--center {
  max-width: 620px;
  margin: 0 auto var(--s-6);
}

.figure--center figcaption {
  text-align: center;
}

/* یادداشت پایانی یک بخش */
.section-note {
  margin-top: var(--s-5);
  max-width: var(--measure);
  font-size: var(--t-base);
  line-height: 1.9;
}

/* ── ۲۰.۳ تایم‌لاین ۵ مرحله ── */
.path-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.path-stage {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--s-4) var(--s-5);
  padding: var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.path-stage:hover {
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow: var(--elev-2);
}

/* عدد مرحله */
.path-stage-num {
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(220, 38, 38, 0.5);
  background: rgba(220, 38, 38, 0.12);
  color: var(--red);
  font-size: var(--t-xl);
  font-weight: 700;
  line-height: 1;
}

/* خط اتصال بین مراحل */
.path-stage:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(var(--s-5) + 25px);
  bottom: calc(var(--s-4) * -1 - 1px);
  width: 1px;
  height: var(--s-4);
  background: var(--line-strong);
}

.path-stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
}

.path-stage-head h3 {
  margin: 0;
  font-size: var(--t-xl);
  color: var(--text-head);
}

.path-stage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-stage-tags li {
  padding: 2px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: var(--t-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.path-stage-tags li.is-key {
  border-color: rgba(220, 38, 38, 0.5);
  color: var(--red);
}

.path-stage-body > p {
  margin: var(--s-3) 0 0;
  font-size: var(--t-base);
  line-height: 1.9;
  color: var(--text-body);
  max-width: var(--measure);
}

/* شرط عبور از مرحله */
.path-gate {
  margin-top: var(--s-4);
  padding: var(--s-4);
  border-right: 2px solid var(--red);
  background: rgba(220, 38, 38, 0.05);
  border-radius: var(--r-sm);
}

.path-gate-title {
  display: block;
  margin-bottom: var(--s-2);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--red);
}

.path-gate p {
  margin: 0;
  font-size: var(--t-sm);
  line-height: 1.9;
  color: var(--text-body);
  max-width: none;
}

/* مرحلهٔ دارای تصویر: دو ستون در دسکتاپ */
.path-stage--split .path-stage-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: var(--s-5);
  align-items: start;
}

.path-stage--split .path-stage-body > .figure {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: var(--s-3);
}

@media (max-width: 768px) {
  .path-stage {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: var(--s-3) var(--s-4);
    padding: var(--s-4);
  }

  .path-stage-num {
    width: 40px;
    height: 40px;
    font-size: var(--t-lg);
  }

  .path-stage:not(:last-child)::after {
    right: calc(var(--s-4) + 19px);
  }

  .path-stage--split .path-stage-body {
    grid-template-columns: 1fr;
  }

  .path-stage--split .path-stage-body > .figure {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ── ۲۰.۴ ردیف آمار ── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-6);
}

.stat-strip .stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-4);
  text-align: center;
}

.stat-strip .stat-number {
  font-size: var(--t-2xl);
  font-weight: 700;
  color: var(--text-head);
  line-height: 1.2;
  margin-bottom: var(--s-2);
}

.stat-strip .stat-number small {
  font-size: var(--t-sm);
  font-weight: 400;
  color: var(--text-muted);
}

.stat-strip .stat-label {
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }
}

/* ── ۲۰.۵ فراخوان میانی ── */
.mid-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-surface);
}

.mid-cta p {
  margin: 0;
  max-width: 60ch;
  font-size: var(--t-base);
  color: var(--text-body);
}


