/* ============================================================
   کوییزینو — صفحهٔ اصلی به سبک «ماز» (biomaze.ir)
   بازنویسی دقیق زبان بصری صفحهٔ اصلی ماز:
     • توکن‌های رنگ Maz (primary/neutral/gold/green/error/info)
     • نوار بالای آبی، هدر سفید چسبان با گوشه‌های گرد
     • کارت‌های محصول با تصویر + قیمت سبز + دکمهٔ «ثبت‌نام» سبز
     • بخش «کتاب معتبر» آبی با نشان سبز
     • خبرنامه با گرادیان طلایی
     • فوتر سفید با گوشه‌های گرد بالا
   ============================================================ */

:root {
  /* --- آبی برند ماز --- */
  --mzh-primary-2:  #EBF8FF;
  --mzh-primary-4:  #E1F2FF;
  --mzh-primary-6:  #D7EBFF;
  --mzh-primary-8:  #CDEDFF;
  --mzh-primary-10: #C3DEFF;
  --mzh-primary-20: #8FBDFF;
  --mzh-primary-30: #5D9CFF;
  --mzh-primary-40: #2B7BFF;
  --mzh-primary-50: #055AFF;
  --mzh-primary-60: #0048CC;
  --mzh-primary-70: #003699;
  --mzh-primary-80: #022466;
  --mzh-primary-90: #001233;

  /* --- خنثی‌ها --- */
  --mzh-n-0:  #FFFFFF;
  --mzh-n-2:  #FAFAFB;
  --mzh-n-4:  #F6F6F6;
  --mzh-n-6:  #F1F1F2;
  --mzh-n-8:  #EDEDEE;
  --mzh-n-10: #E8E8E9;
  --mzh-n-20: #D2D2D4;
  --mzh-n-30: #BBBBBE;
  --mzh-n-40: #A5A5A9;
  --mzh-n-50: #8E8E93;
  --mzh-n-60: #727276;
  --mzh-n-70: #555558;
  --mzh-n-80: #39393B;
  --mzh-n-90: #1C1C1D;

  /* --- طلایی --- */
  --mzh-gold-20: #F9E59B;
  --mzh-gold-30: #F5D968;
  --mzh-gold-40: #F2CC36;
  --mzh-gold-50: #EFBF04;

  /* --- سبز (دکمهٔ ثبت‌نام ماز) --- */
  --mzh-green-6:  #E1FAE9;
  --mzh-green-50: #03D54A;
  --mzh-green-60: #26A746;
  --mzh-green-70: #1D7D35;
  --mzh-green-80: #155024;

  /* --- خطا / اطلاعات --- */
  --mzh-error-50:  #FF2400;
  --mzh-error-4:   #FEE7E3;
  --mzh-info-50:   #018FE1;
  --mzh-info-4:    #E8F6FD;

  /* --- گوشه‌ها --- */
  --mzh-r-sm: 8px;
  --mzh-r:    12px;
  --mzh-r-lg: 16px;
  --mzh-r-xl: 24px;
  --mzh-r-pill: 9999px;

  /* --- سایه‌های ماز --- */
  --mzh-shadow-smooth:  0 1px 3px rgba(0,0,0,.08), 0 6px 20px -6px rgba(16,24,40,.10);
  --mzh-shadow-content: 0 1px 2px rgba(16,24,40,.05), 0 10px 28px -10px rgba(16,24,40,.12);
  --mzh-shadow-footer:  0 -1px 3px rgba(0,0,0,.05), 0 -8px 24px -12px rgba(16,24,40,.08);
  --mzh-shadow-brand:   0 1px 2px rgba(16,24,40,.06), 0 10px 24px -8px rgba(5,90,255,.45);

  --mzh-font: var(--font, "Vazirmatn", "IranSansX", Tahoma, sans-serif);
}

* { box-sizing: border-box; }

body.mz-home {
  margin: 0;
  font-family: var(--mzh-font);
  background: var(--mzh-n-6);
  color: var(--mzh-n-90);
  direction: rtl;
  line-height: 1.85;
  overflow-x: hidden;
}

.mz-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   ۱) نوار بالای صفحه (announcement) — آبی ماز
   ============================================================ */
.mz-topbar {
  background: var(--mzh-primary-50);
  color: #fff;
  font-size: 13px;
}
.mz-topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 40px; padding: 6px 0;
}
.mz-topbar-msg { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.mz-topbar-msg i { opacity: .9; flex-shrink: 0; }
.mz-topbar-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.16); color: #fff;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: var(--mzh-r-sm); padding: 5px 14px;
  font-size: 12.5px; font-weight: 700; text-decoration: none;
  transition: background .18s;
}
.mz-topbar-cta:hover { background: rgba(255,255,255,.28); }

/* ============================================================
   ۲) هدر — سفید چسبان با گوشه‌های گرد پایین
   ============================================================ */
.mz-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--mzh-n-0);
  border-bottom-left-radius: var(--mzh-r-xl);
  border-bottom-right-radius: var(--mzh-r-xl);
  box-shadow: var(--mzh-shadow-smooth);
}
.mz-header-in {
  display: flex; align-items: center; gap: 18px;
  min-height: 76px;
}
.mz-brand {
  display: flex; align-items: center; gap: 11px; text-decoration: none;
  flex-shrink: 0;
}
.mz-brand-mark {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mz-brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mz-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.mz-brand-text b { font-size: 19px; color: var(--mzh-n-90); font-weight: 800; letter-spacing: -.2px; }
.mz-brand-text span { font-size: 10px; color: var(--mzh-primary-50); font-weight: 700; letter-spacing: 2px; }

.mz-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.mz-nav a {
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; color: var(--mzh-n-70);
  font-size: 14.5px; font-weight: 600;
  padding: 9px 14px; border-radius: var(--mzh-r-sm);
  transition: all .16s;
}
.mz-nav a:hover { background: var(--mzh-primary-4); color: var(--mzh-primary-60); }
.mz-nav a.is-active { color: var(--mzh-primary-50); }

.mz-header-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* دکمه‌های ماز */
.mz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  padding: 10px 20px; border-radius: var(--mzh-r-sm);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: all .18s; white-space: nowrap;
}
.mz-btn-primary { background: var(--mzh-primary-50); color: #fff; border-color: var(--mzh-primary-50); box-shadow: var(--mzh-shadow-brand); }
.mz-btn-primary:hover { background: var(--mzh-primary-60); border-color: var(--mzh-primary-60); }
.mz-btn-green { background: var(--mzh-green-60); color: #fff; border-color: var(--mzh-green-60); }
.mz-btn-green:hover { background: var(--mzh-green-80); border-color: var(--mzh-green-80); }
.mz-btn-gold { background: var(--mzh-gold-40); color: var(--mzh-n-90); border-color: var(--mzh-gold-40); }
.mz-btn-gold:hover { background: var(--mzh-gold-30); border-color: var(--mzh-gold-30); }
.mz-btn-ghost { background: var(--mzh-n-0); color: var(--mzh-n-80); border-color: var(--mzh-n-20); }
.mz-btn-ghost:hover { background: var(--mzh-n-6); border-color: var(--mzh-n-30); color: var(--mzh-n-90); }
.mz-btn-lg { padding: 13px 28px; font-size: 15.5px; border-radius: var(--mzh-r); }

/* همبرگری موبایل */
.mz-burger {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: var(--mzh-n-0); border: 1px solid var(--mzh-primary-50);
  color: var(--mzh-primary-50); border-radius: var(--mzh-r-sm);
  cursor: pointer; font-size: 16px;
}

/* ============================================================
   ۳) هیرو — بنر اصلی
   ============================================================ */
.mz-hero {
  background: var(--mzh-n-0);
  border-radius: var(--mzh-r-xl);
  margin: 24px auto 0;
  overflow: hidden;
  box-shadow: var(--mzh-shadow-content);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
  align-items: center;
  padding: 52px 48px;
}
.mz-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mzh-primary-4); color: var(--mzh-primary-60);
  border: 1px solid var(--mzh-primary-10);
  border-radius: var(--mzh-r-pill); padding: 7px 16px;
  font-size: 13px; font-weight: 700; margin-bottom: 20px;
}
.mz-hero h1 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.4; margin: 0 0 18px;
  color: var(--mzh-n-90); font-weight: 800; letter-spacing: -.5px;
}
.mz-hero h1 em { font-style: normal; color: var(--mzh-primary-50); }
.mz-hero p { font-size: 16.5px; color: var(--mzh-n-60); margin: 0 0 28px; max-width: 560px; }
.mz-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.mz-hero-trust { display: flex; gap: 24px; flex-wrap: wrap; }
.mz-hero-trust span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mzh-n-60); }
.mz-hero-trust i { color: var(--mzh-primary-50); font-size: 15px; }

/* موکاپ آزمون در هیرو */
.mz-mock {
  background: var(--mzh-n-2);
  border: 1px solid var(--mzh-n-6);
  border-radius: var(--mzh-r-lg);
  padding: 20px;
}
.mz-mock-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.mz-mock-dots { display: flex; gap: 5px; }
.mz-mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--mzh-n-20); display: block; }
.mz-mock-dots i:first-child { background: var(--mzh-error-50); }
.mz-mock-title { font-size: 13px; font-weight: 700; color: var(--mzh-n-70); margin-inline-start: auto; }
.mz-mock-q { font-size: 14.5px; font-weight: 700; color: var(--mzh-n-90); margin-bottom: 14px; }
.mz-mock-opt {
  display: flex; align-items: center; gap: 10px;
  background: var(--mzh-n-0); border: 1px solid var(--mzh-n-6);
  border-radius: var(--mzh-r); padding: 11px 14px;
  font-size: 13.5px; color: var(--mzh-n-70); margin-bottom: 9px;
}
.mz-mock-opt span {
  width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--mzh-n-6); color: var(--mzh-n-60);
  border-radius: var(--mzh-r-sm); font-size: 12.5px; font-weight: 700;
}
.mz-mock-opt.ok { border-color: var(--mzh-green-60); background: var(--mzh-green-6); color: var(--mzh-green-80); }
.mz-mock-opt.ok span { background: var(--mzh-green-60); color: #fff; }
.mz-mock-bar { margin-top: 16px; }
.mz-mock-bar small { font-size: 12px; color: var(--mzh-n-50); }
.mz-mock-track { height: 8px; background: var(--mzh-n-8); border-radius: var(--mzh-r-pill); margin-top: 7px; overflow: hidden; }
.mz-mock-fill { height: 100%; width: 78%; background: var(--mzh-primary-50); border-radius: var(--mzh-r-pill); }

/* ============================================================
   ۴) سرصفحهٔ بخش — سبک «پیشنهادات ویژه» ماز
   ============================================================ */
.mz-sec { margin-top: 56px; }
.mz-sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.mz-sec-title { display: flex; align-items: flex-end; gap: 6px; }
.mz-sec-title h2 {
  margin: 0; padding-bottom: 8px; font-size: 20px; font-weight: 800;
}
.mz-sec-title h2.t-primary { color: var(--mzh-primary-50); border-bottom: 2px solid var(--mzh-primary-50); }
.mz-sec-title h2.t-plain { color: var(--mzh-n-90); border-bottom: 2px solid var(--mzh-n-90); }
.mz-sec-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--mzh-primary-50); font-size: 14px; font-weight: 600;
  text-decoration: none; padding: 8px 12px; border-radius: var(--mzh-r-sm);
  transition: background .16s;
}
.mz-sec-more:hover { background: var(--mzh-primary-4); }

/* ============================================================
   ۵) کارت محصول/پلان — دقیقاً مثل کارت‌های ماز
   ============================================================ */
.mz-grid { display: grid; gap: 20px; }
.mz-grid-4 { grid-template-columns: repeat(4, 1fr); }
.mz-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mz-grid-2 { grid-template-columns: repeat(2, 1fr); }

.mz-card {
  background: var(--mzh-n-0);
  border: 1px solid var(--mzh-n-6);
  border-radius: var(--mzh-r-lg);
  box-shadow: var(--mzh-shadow-content);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.mz-card:hover { box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 18px 40px -14px rgba(16,24,40,.18); transform: translateY(-3px); }
.mz-card.is-popular { border-color: var(--mzh-primary-50); box-shadow: var(--mzh-shadow-brand); }

.mz-card-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--mzh-primary-50); color: #fff;
  font-size: 11.5px; font-weight: 700;
  padding: 4px 12px; border-radius: var(--mzh-r-pill);
}
.mz-card-thumb {
  height: 116px; border-radius: var(--mzh-r);
  background: linear-gradient(135deg, var(--mzh-primary-4), var(--mzh-primary-10));
  display: flex; align-items: center; justify-content: center;
  color: var(--mzh-primary-50); font-size: 34px;
}
.mz-card-name { font-size: 17px; font-weight: 800; color: var(--mzh-n-80); margin: 0; }
.mz-card-desc { font-size: 13px; color: var(--mzh-n-50); margin: 0; }
.mz-card-meta {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--mzh-n-50);
}
.mz-card-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.mz-card-feats li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--mzh-n-70); }
.mz-card-feats li i { color: var(--mzh-green-60); font-size: 13px; }

.mz-card-foot {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--mzh-n-6);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.mz-price { display: flex; flex-direction: column; gap: 2px; }
.mz-price-row { display: flex; align-items: center; gap: 8px; }
.mz-price-off { color: var(--mzh-error-50); font-size: 14px; font-weight: 700; direction: ltr; }
.mz-price-now { color: var(--mzh-n-90); font-size: 17px; font-weight: 800; }
.mz-price-old { color: var(--mzh-n-40); font-size: 12px; text-decoration: line-through; }
.mz-price-free { color: var(--mzh-green-60); font-size: 18px; font-weight: 800; }

/* ============================================================
   ۶) نوار آمار
   ============================================================ */
.mz-stats {
  background: var(--mzh-n-0); border-radius: var(--mzh-r-xl);
  box-shadow: var(--mzh-shadow-content);
  padding: 34px 24px; margin-top: 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.mz-stat b { display: block; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; color: var(--mzh-primary-50); letter-spacing: -.5px; }
.mz-stat span { font-size: 13.5px; color: var(--mzh-n-60); }

/* ============================================================
   ۷) کارت ویژگی
   ============================================================ */
.mz-feat {
  background: var(--mzh-n-0); border: 1px solid var(--mzh-n-6);
  border-radius: var(--mzh-r-lg); padding: 24px 22px;
  box-shadow: var(--mzh-shadow-content);
  transition: transform .2s, box-shadow .2s;
}
.mz-feat:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 18px 40px -14px rgba(16,24,40,.18); }
.mz-feat-ico {
  width: 54px; height: 54px; border-radius: var(--mzh-r);
  background: var(--mzh-primary-4); color: var(--mzh-primary-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.mz-feat h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 800; color: var(--mzh-n-90); }
.mz-feat p { margin: 0; font-size: 13.5px; color: var(--mzh-n-60); line-height: 1.9; }

/* ============================================================
   ۸) گام‌ها
   ============================================================ */
.mz-step { text-align: center; padding: 8px; }
.mz-step-num {
  width: 60px; height: 60px; margin: 0 auto 14px;
  border-radius: var(--mzh-r-lg);
  background: var(--mzh-primary-50); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  box-shadow: var(--mzh-shadow-brand);
}
.mz-step h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: var(--mzh-n-90); }
.mz-step p { margin: 0; font-size: 13px; color: var(--mzh-n-60); }

/* ============================================================
   ۹) بخش «کتاب معتبر» — آبی با نشان سبز (سبک ماز)
   ============================================================ */
.mz-book {
  background: var(--mzh-primary-50);
  border-radius: var(--mzh-r-xl);
  padding: 44px 40px; margin-top: 56px;
  position: relative; overflow: hidden;
}
.mz-book-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.mz-book-badge {
  background: var(--mzh-green-60); color: var(--mzh-green-6);
  border-radius: var(--mzh-r); padding: 16px 26px; text-align: center;
}
.mz-book-badge b { display: block; font-size: 44px; font-weight: 800; line-height: 1; }
.mz-book-badge span { font-size: 16px; font-weight: 700; }
.mz-book-title { color: #fff; font-size: 20px; font-weight: 800; margin: 22px 0 0; }
.mz-book-desc { color: rgba(255,255,255,.9); font-size: 14.5px; margin: 12px 0 0; max-width: 720px; line-height: 2; }
.mz-book-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.mz-book-card {
  background: var(--mzh-n-0); border-radius: var(--mzh-r);
  padding: 30px 18px 20px; text-align: center;
}
.mz-book-card .ico { font-size: 40px; color: var(--mzh-primary-50); margin-bottom: 14px; }
.mz-book-card h4 { margin: 0 0 6px; font-size: 14.5px; font-weight: 800; color: var(--mzh-n-90); }
.mz-book-card span { font-size: 12px; color: var(--mzh-green-60); font-weight: 700; }

/* ============================================================
   ۱۰) سؤالات متداول
   ============================================================ */
.mz-faq { display: flex; flex-direction: column; gap: 12px; }
.mz-faq-item {
  background: var(--mzh-n-0); border: 1px solid var(--mzh-n-6);
  border-radius: var(--mzh-r); overflow: hidden;
  box-shadow: var(--mzh-shadow-content);
}
.mz-faq-q {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: none; border: none; cursor: pointer;
  padding: 17px 20px; font-family: inherit; font-size: 15px;
  font-weight: 700; color: var(--mzh-n-90); text-align: right;
}
.mz-faq-q i.q { color: var(--mzh-primary-50); font-size: 15px; }
.mz-faq-q i.arw { margin-inline-start: auto; color: var(--mzh-n-40); font-size: 13px; transition: transform .25s; }
.mz-faq-item.open .mz-faq-q i.arw { transform: rotate(180deg); }
.mz-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mz-faq-a p { margin: 0; padding: 0 20px 18px 52px; font-size: 14px; color: var(--mzh-n-60); line-height: 2; }

/* ============================================================
   ۱۱) خبرنامه — گرادیان طلایی (سبک ماز)
   ============================================================ */
.mz-news {
  background: linear-gradient(90deg, var(--mzh-gold-30), var(--mzh-gold-20));
  border-radius: var(--mzh-r-lg);
  padding: 28px 30px; margin-top: 56px;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.mz-news-text { flex: 1 1 260px; }
.mz-news-text h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: var(--mzh-n-90); }
.mz-news-text p { margin: 0; font-size: 14px; color: var(--mzh-n-70); }
.mz-news-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 2 1 420px; }
.mz-news-form input,
.mz-news-form select {
  flex: 1 1 150px; font-family: inherit; font-size: 14px;
  padding: 11px 14px; border: 1px solid var(--mzh-n-20);
  border-radius: var(--mzh-r-sm); background: var(--mzh-n-0); color: var(--mzh-n-90);
}
.mz-news-form input:focus,
.mz-news-form select:focus { outline: none; border-color: var(--mzh-primary-50); box-shadow: 0 0 0 3px rgba(5,90,255,.14); }

/* ============================================================
   ۱۲) فوتر — سفید با گوشه‌های گرد بالا (سبک ماز)
   ============================================================ */
.mz-foot {
  background: var(--mzh-n-0);
  border-top-left-radius: var(--mzh-r-xl);
  border-top-right-radius: var(--mzh-r-xl);
  box-shadow: var(--mzh-shadow-footer);
  margin-top: 56px; padding: 48px 0 26px;
}
.mz-foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px;
}
.mz-foot h4 { margin: 0 0 16px; font-size: 16px; font-weight: 800; color: var(--mzh-n-90); }
.mz-foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mz-foot-brand .mark { width: 40px; height: 40px; flex-shrink: 0; }
.mz-foot-brand .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mz-foot-brand b { font-size: 18px; color: var(--mzh-n-90); font-weight: 800; }
.mz-foot-about { font-size: 13.5px; color: var(--mzh-n-60); line-height: 2; margin: 0; }
.mz-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.mz-foot ul a { color: var(--mzh-n-60); text-decoration: none; font-size: 13.5px; transition: color .16s; }
.mz-foot ul a:hover { color: var(--mzh-primary-50); }
.mz-foot-contact li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--mzh-n-60); }
.mz-foot-contact i { color: var(--mzh-primary-50); font-size: 14px; }
.mz-foot-bottom {
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid var(--mzh-n-6);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--mzh-n-50);
}
.mz-foot-bottom b { color: var(--mzh-primary-60); }

/* ============================================================
   واکنش‌گرایی
   ============================================================ */
@media (max-width: 1080px) {
  .mz-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mz-book-cards { grid-template-columns: repeat(2, 1fr); }
  .mz-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* هدر: فقط برند + همبرگری (دکمه‌های ورود/ثبت‌نام به منوی کناری می‌روند) */
  .mz-header-cta .mz-btn { display: none; }
  .mz-header-in { min-height: 64px; gap: 12px; }
  .mz-brand { min-width: 0; }
  .mz-brand-text b { font-size: 17px; }

  /* منوی کناری کشویی از سمت راست — دقیقاً مثل منوی ماز */
  .mz-nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 300px; max-width: 84vw;
    background: var(--mzh-n-0);
    margin: 0; padding: 18px 14px 24px;
    gap: 6px; border-radius: 20px 0 0 20px;
    box-shadow: -20px 0 50px -14px rgba(15,23,42,.28);
    z-index: 1000; overflow-y: auto;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s;
  }
  .mz-nav.is-open { transform: translateX(0); visibility: visible; }
  .mz-nav a { padding: 13px 16px; border-radius: 10px; font-size: 15px; justify-content: flex-start; }
  .mz-nav a:hover { background: var(--mzh-primary-4); }
  .mz-burger { display: inline-flex; margin-inline-start: auto; }

  /* دکمه‌های ورود/ثبت‌نام داخل منوی کشویی */
  .mz-nav .mz-nav-cta { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--mzh-n-10); }
  .mz-nav .mz-nav-cta .mz-btn { width: 100%; }
  .mz-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--mzh-n-10); }
  .mz-nav-head b { font-size: 16px; color: var(--mzh-n-90); font-weight: 800; }
  .mz-nav-close { width: 38px; height: 38px; border: 1px solid var(--mzh-n-20); background: var(--mzh-n-0); color: var(--mzh-n-70); border-radius: 10px; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

  /* پردهٔ تاریک پشت منو */
  .mz-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,.55);
    backdrop-filter: blur(2px); z-index: 999;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .mz-backdrop.is-open { opacity: 1; visibility: visible; }

  .mz-hero { grid-template-columns: 1fr; padding: 36px 26px; gap: 30px; }
  .mz-stats { grid-template-columns: repeat(2, 1fr); }
  .mz-grid-3 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) {
  .mz-nav-head, .mz-nav .mz-nav-cta, .mz-backdrop { display: none !important; }
}
@media (max-width: 640px) {
  .mz-container { padding: 0 16px; }
  .mz-grid-4, .mz-grid-2, .mz-book-cards { grid-template-columns: 1fr; }
  .mz-foot-grid { grid-template-columns: 1fr; }
  .mz-hero { padding: 28px 20px; border-radius: var(--mzh-r-lg); }
  .mz-book { padding: 30px 22px; }
  .mz-news { padding: 22px 18px; }
  .mz-topbar-msg { font-size: 12px; }
  /* ⚠️ نوار اعلان در موبایل دو خطی می‌شد و «است» تنها به خط دوم می‌افتاد.
     متن کوتاه می‌شود + جلوگیری از شکست زشت. */
  .mz-topbar-in { gap: 8px; }
  .mz-topbar-msg {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: 11.5px; gap: 5px;
  }
  .mz-topbar-msg .mz-topbar-msg-long { display: none; }
  /* ⚠️ حداقل ناحیهٔ لمس ۴۴px — در موبایل واقعی همبرگر ۳۸px و
     دکمهٔ ثبت‌نام ۳۱px بود (زیر استاندارد WCAG 2.5.5). */
  .mz-topbar-cta { padding: 0 14px; font-size: 11.5px; min-height: 44px; }

  /* هدر: ناحیهٔ لمس دکمه‌ها و همبرگر */
  .mz-burger { min-width: 44px; min-height: 44px; }
  .mz-nav-close { width: 44px; height: 44px; }
  .mz-topbar-msg { font-size: 12px; }
  .mz-card-foot { flex-direction: column; align-items: stretch; }
}

/* ══════════════════════════════════════════════════════════════
   ناحیهٔ لمس ⚠️ دکمه‌های هدر در موبایل زیر ۴۴px بودند:
   همبرگر ۳۸×۳۸ و دکمهٔ ثبت‌نام ۳۱px ارتفاع.
   راهنمای دسترسی‌پذیری (WCAG 2.5.5) حداقل ۴۴×۴۴ را می‌خواهد.
   ══════════════════════════════════════════════════════════════ */
@media (pointer: coarse) {
  .mz-burger { min-width: 44px; min-height: 44px; }
  .mz-nav-close { width: 44px; height: 44px; }
  .mz-topbar-cta { min-height: 40px; padding: 0 14px; }
}
