/* ============================================================
   هدر+بنر+هیروِ آکادمی (ph-*) — فقط در چیدمانِ آکادمی
   طراحی از Claude Design. کلاس‌های .ph-* منحصربه‌فردند (بدون تداخل).
   globalهای :root/html/body/* حذف و --ph-* از --bm-* نگاشت شده‌اند.
   ============================================================ */
:root{
  --ph-font: var(--bm-font, "Vazirmatn", Tahoma, Arial, sans-serif);
  --ph-page: var(--bm-bg);
  --ph-header: color-mix(in srgb, var(--bm-surface) 88%, transparent);
  --ph-surface: var(--bm-surface);
  --ph-surface-2: var(--bm-surface-2);
  --ph-text: var(--bm-text);
  --ph-muted: var(--bm-text-sub);
  --ph-border: var(--bm-border);
  --ph-primary: var(--bm-primary);
  --ph-primary-rgb: 86, 89, 245;
  --ph-primary-2: var(--bm-secondary, #149bda);
  --ph-primary-soft: var(--bm-primary-soft);
  --ph-green: #159b70;
  --ph-amber: #f2a616;
  --ph-player: #11182b;
  --ph-player-2: #182138;
  --ph-shadow: var(--bm-shadow-lg, 0 22px 62px rgba(28,39,74,.11));
  --ph-shadow-soft: var(--bm-shadow-md, 0 10px 30px rgba(28,39,74,.07));
}
:root[data-theme="dark"]{
  --ph-primary-rgb: 124, 124, 255;
  --ph-player: #0b1020;
  --ph-player-2: #151d32;
}
.ph-hero, .ph-header, .ph-search-panel, .ph-mobile-menu, .ph-mega-layer{ font-family: var(--ph-font); color: var(--ph-text); }
.ph-hero *, .ph-hero *::before, .ph-hero *::after,
.ph-header *, .ph-header *::before, .ph-header *::after,
.ph-search-panel *, .ph-mobile-menu *, .ph-mega-layer *{ box-sizing: border-box; }
.ph-hero button, .ph-hero input, .ph-hero a,
.ph-header button, .ph-header input, .ph-header a,
.ph-search-panel button, .ph-search-panel input, .ph-search-panel a,
.ph-mobile-menu button, .ph-mobile-menu input, .ph-mobile-menu a,
.ph-mega-layer a, .ph-mega-layer button{ font: inherit; }
body.is-locked{ overflow: hidden; }

    .ph-site-shell { min-height: 100vh; background: var(--ph-page); }

    .ph-header {
      position: sticky;
      z-index: 50;
      top: 0;
      background: var(--ph-header);
      border-bottom: 1px solid var(--ph-border);
      backdrop-filter: blur(18px) saturate(145%);
    }

    .ph-container { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }

    .ph-nav-row {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      min-height: 82px;
      align-items: center;
      gap: 28px;
    }

    .ph-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ph-text); text-decoration: none; }

    .ph-logo {
      position: relative;
      display: grid;
      width: 46px;
      height: 46px;
      place-items: center;
      color: #fff;
      background: var(--ph-primary);
      border-radius: 14px;
      box-shadow: 0 10px 24px rgba(var(--ph-primary-rgb), .27);
      transform: rotate(5deg);
    }

    .ph-logo::before { position: absolute; width: 19px; height: 19px; content: ""; border: 2px solid currentColor; border-radius: 6px; transform: rotate(40deg); }
    .ph-logo::after { width: 6px; height: 6px; content: ""; background: #ffd45b; border-radius: 50%; }
    .ph-logo-img { display: block; width: auto; height: 42px; max-width: 168px; object-fit: contain; }
    .ph-logo-dark { display: none; }
    :root[data-theme="dark"] .ph-logo-light { display: none; }
    :root[data-theme="dark"] .ph-logo-dark { display: block; }
    .ph-brand-copy strong { display: block; font-size: 21px; font-weight: 900; line-height: 1.15; }
    .ph-brand-copy small { display: block; margin-top: 3px; color: var(--ph-muted); font-size: 8px; font-weight: 700; }

    .ph-desktop-nav { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px; background: var(--ph-surface-2); border: 1px solid var(--ph-border); border-radius: 17px; }
    .ph-desktop-nav > a,
    .ph-nav-trigger { position: relative; display: inline-flex; min-height: 42px; align-items: center; gap: 6px; padding: 0 14px; color: var(--ph-muted); background: transparent; border: 0; border-radius: 11px; font-size: 12.5px; font-weight: 850; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .2s ease, background-color .2s ease, box-shadow .2s ease; }
    .ph-desktop-nav > a:hover,
    .ph-desktop-nav > a.is-active,
    .ph-nav-trigger:hover,
    .ph-nav-trigger[aria-expanded="true"] { color: var(--ph-primary); background: var(--ph-surface); box-shadow: 0 5px 15px rgba(28,39,74,.07); }
    .ph-desktop-nav > a.is-active::after { position: absolute; inset: auto 50% 3px auto; width: 4px; height: 4px; content: ""; background: var(--ph-primary); border-radius: 50%; transform: translateX(50%); }
    .ph-nav-chevron { width: 15px; height: 15px; transition: transform .22s ease; }
    .ph-nav-trigger[aria-expanded="true"] .ph-nav-chevron { transform: rotate(180deg); }

    .ph-mega-layer { position: absolute; z-index: 70; top: 130px; right: 0; left: 0; pointer-events: none; transition: top .35s ease; }
    .ph-header.has-no-announcement .ph-mega-layer { top: 82px; }
    .ph-mega-menu {
      position: absolute;
      top: 12px;
      left: 50%;
      display: grid;
      width: min(1120px, calc(100vw - 32px));
      margin-inline: auto;
      padding: 18px;
      color: var(--ph-text);
      background: color-mix(in srgb, var(--ph-surface) 96%, transparent);
      border: 1px solid var(--ph-border);
      border-radius: 25px;
      box-shadow: 0 26px 70px rgba(16,23,42,.18);
      backdrop-filter: blur(22px) saturate(145%);
      opacity: 0;
      visibility: hidden;
      transform: translate(-50%, -10px) scale(.985);
      transform-origin: top center;
      pointer-events: none;
      transition: opacity .2s ease, visibility .2s ease, transform .24s ease;
    }
    [data-theme="dark"] .ph-mega-menu { box-shadow: 0 28px 75px rgba(0,0,0,.42); }
    .ph-mega-menu.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
    .ph-mega-courses { grid-template-columns: 1.05fr 1.6fr 1fr; gap: 15px; }
    .ph-mega-teachers { grid-template-columns: .9fr 1.65fr; gap: 15px; }
    .ph-mega-panel { min-width: 0; padding: 20px; background: var(--ph-surface-2); border: 1px solid var(--ph-border); border-radius: 19px; }
    .ph-mega-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--ph-primary); font-size: 10px; font-weight: 900; }
    .ph-mega-kicker i { width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
    .ph-mega-title { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.65; }
    .ph-mega-text { margin: 7px 0 16px; color: var(--ph-muted); font-size: 11px; line-height: 1.95; }
    .ph-mega-all { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 0 14px; color: #fff; background: var(--ph-primary); border-radius: 12px; font-size: 10px; font-weight: 900; text-decoration: none; box-shadow: 0 8px 18px rgba(var(--ph-primary-rgb),.2); }
    .ph-mega-all svg { width: 16px; height: 16px; }
    .ph-mega-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
    .ph-mega-section-head strong { font-size: 11px; font-weight: 900; }
    .ph-mega-section-head span { color: var(--ph-muted); font-size: 8.5px; }
    .ph-mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
    .ph-mega-link { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 10px; min-height: 69px; padding: 10px; color: var(--ph-text); background: var(--ph-surface); border: 1px solid var(--ph-border); border-radius: 14px; text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
    .ph-mega-link:hover { border-color: color-mix(in srgb, var(--ph-primary) 45%, var(--ph-border)); box-shadow: 0 8px 20px rgba(28,39,74,.07); transform: translateY(-2px); }
    .ph-mega-icon { display: grid; width: 42px; height: 42px; place-items: center; color: var(--tile, var(--ph-primary)); background: color-mix(in srgb, var(--tile, var(--ph-primary)) 11%, var(--ph-surface)); border-radius: 12px; }
    .ph-mega-icon svg { width: 20px; height: 20px; }
    .ph-mega-link strong { display: block; font-size: 11px; font-weight: 900; }
    .ph-mega-link small { display: block; margin-top: 3px; color: var(--ph-muted); font-size: 8.5px; }
    .ph-trend-list { display: grid; gap: 9px; }
    .ph-trend-card { display: flex; align-items: center; gap: 11px; min-height: 66px; padding: 10px; color: var(--ph-text); background: var(--ph-surface); border: 1px solid var(--ph-border); border-radius: 14px; text-decoration: none; }
    .ph-trend-no { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; color: var(--ph-primary); background: var(--ph-primary-soft); border-radius: 11px; font-size: 10px; font-weight: 900; }
    .ph-trend-card strong { display: block; font-size: 10.5px; font-weight: 900; }
    .ph-trend-card small { display: block; margin-top: 3px; color: var(--ph-muted); font-size: 8px; }
    .ph-teacher-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
    .ph-teacher-card { padding: 15px 11px; color: var(--ph-text); background: var(--ph-surface); border: 1px solid var(--ph-border); border-radius: 15px; text-align: center; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
    .ph-teacher-card:hover { border-color: color-mix(in srgb, var(--ph-primary) 45%, var(--ph-border)); transform: translateY(-2px); }
    .ph-teacher-avatar { display: grid; width: 48px; height: 48px; margin: 0 auto 9px; place-items: center; color: #fff; background: var(--avatar-a); border: 3px solid var(--ph-surface-2); border-radius: 50%; box-shadow: 0 0 0 1px var(--ph-border); font-size: 11px; font-weight: 900; }
    .ph-teacher-card strong { display: block; font-size: 10.5px; font-weight: 900; }
    .ph-teacher-card small { display: block; margin-top: 4px; color: var(--ph-muted); font-size: 8px; }
    .ph-mega-mini-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
    .ph-mega-mini-links a { padding: 9px 11px; color: var(--ph-muted); background: var(--ph-surface); border: 1px solid var(--ph-border); border-radius: 10px; font-size: 9px; font-weight: 800; text-decoration: none; }

    .ph-nav-actions { display: flex; align-items: center; gap: 8px; }

    .ph-icon-button,
    .ph-menu-toggle {
      display: grid;
      width: 44px;
      height: 44px;
      padding: 0;
      place-items: center;
      color: var(--ph-text);
      background: var(--ph-surface);
      border: 1px solid var(--ph-border);
      border-radius: 13px;
      cursor: pointer;
      transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
    }

    .ph-icon-button:hover,
    .ph-menu-toggle:hover { color: #fff; background: var(--ph-primary); border-color: var(--ph-primary); transform: translateY(-2px); }
    .ph-icon-button svg, .ph-menu-toggle svg { width: 19px; height: 19px; }
    .ph-icon-button .ph-moon { display: none; }
    [data-theme="dark"] .ph-icon-button .ph-sun { display: none; }
    [data-theme="dark"] .ph-icon-button .ph-moon { display: block; }

    .ph-dashboard {
      display: inline-flex;
      min-height: 44px;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 17px;
      color: #fff;
      background: var(--ph-primary);
      border: 1px solid var(--ph-primary);
      border-radius: 13px;
      box-shadow: 0 10px 24px rgba(var(--ph-primary-rgb), .24);
      font-size: 11px;
      font-weight: 900;
      text-decoration: none;
      transition: transform .2s ease, box-shadow .2s ease;
    }

    .ph-dashboard:hover { box-shadow: 0 13px 29px rgba(var(--ph-primary-rgb), .32); transform: translateY(-2px); }
    .ph-dashboard svg { width: 17px; height: 17px; }
    .ph-menu-toggle { display: none; }

    .ph-announcement {
      position: relative;
      overflow: hidden;
      max-height: 64px;
      color: #fff;
      background: linear-gradient(100deg, #554ff1, #287eea 55%, #17ace2);
      transition: max-height .35s ease, opacity .25s ease;
    }

    .ph-announcement.is-hidden { max-height: 0; opacity: 0; }
    .ph-announcement-inner { display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 12px; padding: 7px 48px; text-align: center; }
    .ph-announcement p { margin: 0; font-size: 15.5px; font-weight: 900; }
    .ph-announcement a { display: inline-flex; min-height: 33px; align-items: center; padding: 0 13px; color: var(--ph-primary); background: #fff; border-radius: 999px; font-size: 12px; font-weight: 900; text-decoration: none; }
    .ph-announcement-close { position: absolute; inset: 50% auto auto max(18px, calc((100vw - 1240px) / 2)); display: grid; width: 28px; height: 28px; padding: 0; place-items: center; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); border-radius: 9px; cursor: pointer; transform: translateY(-50%); }
    .ph-announcement-close svg { width: 15px; height: 15px; }

    .ph-search-panel {
      position: fixed;
      z-index: 80;
      inset: 0;
      display: grid;
      padding: 18vh 20px 20px;
      align-items: start;
      background: rgba(4, 9, 18, .63);
      backdrop-filter: blur(14px);
      opacity: 0;
      visibility: hidden;
      transition: opacity .25s ease, visibility .25s ease;
    }

    .ph-search-panel.is-open { opacity: 1; visibility: visible; }
    .ph-search-box { width: min(680px, 100%); margin-inline: auto; padding: 16px; background: var(--ph-surface); border: 1px solid var(--ph-border); border-radius: 21px; box-shadow: var(--ph-shadow); transform: translateY(-14px); transition: transform .25s ease; }
    .ph-search-panel.is-open .ph-search-box { transform: translateY(0); }
    .ph-search-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
    .ph-search-head strong { font-size: 13px; font-weight: 900; }
    .ph-search-close { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; color: var(--ph-muted); background: var(--ph-surface-2); border: 1px solid var(--ph-border); border-radius: 10px; cursor: pointer; }
    .ph-search-close svg { width: 16px; height: 16px; }
    .ph-search-input-wrap { position: relative; }
    .ph-search-input-wrap svg { position: absolute; inset: 50% 15px auto auto; width: 20px; height: 20px; color: var(--ph-muted); transform: translateY(-50%); }
    .ph-search-input { width: 100%; min-height: 54px; padding: 0 46px 0 15px; color: var(--ph-text); background: var(--ph-surface-2); border: 1px solid var(--ph-border); border-radius: 14px; outline: none; font-size: 12px; }
    .ph-search-input:focus { border-color: var(--ph-primary); box-shadow: 0 0 0 4px rgba(var(--ph-primary-rgb), .1); }
    .ph-search-hints { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
    .ph-search-hints a { padding: 6px 9px; color: var(--ph-muted); background: var(--ph-surface-2); border: 1px solid var(--ph-border); border-radius: 9px; font-size: 8px; font-weight: 700; text-decoration: none; }

    .ph-mobile-menu { display: none; }

    .ph-hero {
      --rx: 0deg;
      --ry: 0deg;
      position: relative;
      overflow: hidden;
      /* سقفِ ۸۲۰px: در زومِ کم‌تر از ۱۰۰٪ یا مانیتورهای ۲K/۴K ارتفاعِ پنجره خیلی زیاد می‌شود و
         هیرو (با محتوای ثابتِ ~۷۰۰px) فضای خالیِ بزرگی زیرِ محتوا می‌ساخت. تا ارتفاعِ پنجرهٔ ۹۵۰px هیچ تغییری نیست. */
      min-height: min(calc(100vh - 130px), 820px);
      padding: clamp(58px, 7vw, 96px) 0;
      background: var(--ph-page);
      isolation: isolate;
    }

    .ph-network-canvas { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; pointer-events: none; }

    .ph-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(470px, .96fr); align-items: center; gap: clamp(45px, 7vw, 100px); }
    .ph-copy { min-width: 0; }

    .ph-badge { display: inline-flex; min-height: 36px; align-items: center; gap: 9px; margin-bottom: 17px; padding: 6px 12px; color: var(--ph-muted); background: var(--ph-surface); border: 1px solid var(--ph-border); border-radius: 999px; box-shadow: var(--ph-shadow-soft); font-size: 10px; font-weight: 800; }
    .ph-badge i { width: 8px; height: 8px; background: #27c486; border: 2px solid color-mix(in srgb, #27c486 25%, var(--ph-surface)); border-radius: 50%; box-shadow: 0 0 0 4px rgba(39,196,134,.1); }

    .ph-title { max-width: 690px; margin: 0; font-size: clamp(41px, 5.8vw, 76px); font-weight: 900; line-height: 1.24; letter-spacing: -.055em; }
    .ph-title-row { display: block; }
    .ph-rotator { position: relative; display: inline-block; min-width: 3.2em; color: var(--ph-primary); text-align: center; transition: opacity .22s ease, transform .22s ease; }
    .ph-rotator.is-changing { opacity: 0; transform: translateY(8px); }
    .ph-rotator::after { position: absolute; inset: auto 3% -5px; height: 4px; content: ""; background: var(--ph-amber); border-radius: 50%; transform: rotate(-1.5deg) scaleX(.88); }

    .ph-lead { max-width: 650px; margin: 19px 0 0; color: var(--ph-muted); font-size: clamp(13px, 1.4vw, 17px); font-weight: 500; line-height: 2.05; }
    .ph-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

    .ph-primary-cta,
    .ph-video-cta {
      display: inline-flex;
      min-height: 53px;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 0 19px;
      border-radius: 15px;
      font-size: 12px;
      font-weight: 900;
      text-decoration: none;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .ph-primary-cta { color: #fff; background: var(--ph-primary); border: 1px solid var(--ph-primary); box-shadow: 0 13px 28px rgba(var(--ph-primary-rgb), .26); }
    .ph-video-cta { color: var(--ph-text); background: var(--ph-surface); border: 1px solid var(--ph-border); cursor: pointer; }
    .ph-primary-cta:hover, .ph-video-cta:hover { transform: translateY(-3px); }
    .ph-primary-cta:hover { box-shadow: 0 17px 34px rgba(var(--ph-primary-rgb), .34); }
    .ph-video-cta:hover { border-color: var(--ph-primary); }
    .ph-primary-cta svg, .ph-video-cta svg { width: 18px; height: 18px; }
    .ph-video-cta .ph-mini-play { display: grid; width: 30px; height: 30px; place-items: center; color: var(--ph-primary); background: var(--ph-primary-soft); border-radius: 50%; }
    .ph-video-cta .ph-mini-play svg { width: 14px; height: 14px; }

    .ph-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; margin-top: 29px; }
    .ph-avatars { display: flex; align-items: center; direction: ltr; }
    .ph-avatar { display: grid; width: 38px; height: 38px; margin-left: -9px; place-items: center; color: #fff; background: var(--avatar); border: 3px solid var(--ph-page); border-radius: 50%; font-size: 7px; font-weight: 900; }
    .ph-avatar-count { color: var(--ph-text); background: var(--ph-surface); border-color: var(--ph-border); direction: rtl; }
    .ph-rating strong { display: block; font-size: 11px; font-weight: 900; }
    .ph-stars { color: var(--ph-amber); letter-spacing: 1px; direction: ltr; }
    .ph-rating small { display: block; margin-top: 3px; color: var(--ph-muted); font-size: 8px; font-weight: 600; }
    .ph-proof-divider { width: 1px; height: 36px; background: var(--ph-border); }
    .ph-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--ph-muted); font-size: 9px; font-weight: 900; }
    .ph-platforms img { height: 22px; width: auto; max-width: 92px; object-fit: contain; opacity: .9; filter: grayscale(.15); transition: opacity .2s; }
    .ph-platforms img:hover { opacity: 1; }
    /* لوگوهای برندها (دیجی‌کالا، اسنپ، …) فقط در دسکتاپ؛ در موبایل و تبلت پنهان (با loading=lazy دانلود هم نمی‌شوند) */
    @media (max-width: 1024px) {
      .ph-proof .ph-platforms, .ph-proof .ph-proof-divider { display: none !important; }
    }

    .ph-visual-stage { position: relative; min-height: 510px; perspective: 1400px; }
    .ph-aura { display: none; }

    .ph-course-window {
      position: absolute;
      z-index: 2;
      width: min(540px, 94%);
      inset: 50% 50% auto auto;
      overflow: hidden;
      background: var(--ph-surface);
      border: 1px solid var(--ph-border);
      border-radius: 24px;
      box-shadow: var(--ph-shadow);
      transform: translate(50%, -50%) rotateX(var(--rx)) rotateY(var(--ry));
      transform-style: preserve-3d;
      transition: transform .15s ease-out;
    }

    .ph-window-bar { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 15px; padding: 0 17px; color: var(--ph-muted); background: var(--ph-surface-2); border-bottom: 1px solid var(--ph-border); font-size: 8px; font-weight: 700; }
    .ph-window-dots { display: flex; gap: 6px; direction: ltr; }
    .ph-window-dots i { width: 9px; height: 9px; border-radius: 50%; }

    .ph-player {
      position: relative;
      min-height: 305px;
      overflow: hidden;
      color: #eaf0ff;
      background:
        radial-gradient(circle at 82% 18%, rgba(var(--ph-primary-rgb), .3), transparent 30%),
        linear-gradient(135deg, var(--ph-player), var(--ph-player-2));
      direction: ltr;
    }

    .ph-player::before { position: absolute; inset: 0; content: ""; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, #000, transparent); }
    .ph-live { position: absolute; z-index: 4; inset: 15px auto auto 15px; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 9px; color: #fff; background: rgba(15,20,34,.68); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; backdrop-filter: blur(8px); font-size: 8px; font-weight: 900; }
    .ph-live i { width: 7px; height: 7px; background: #f24f68; border-radius: 50%; animation: ph-pulse 1.7s ease-in-out infinite; }
    @keyframes ph-pulse { 50% { opacity: .35; transform: scale(.72); } }

    .ph-editor { position: absolute; inset: 34px 30px 55px; display: grid; grid-template-columns: 1fr 55px; gap: 14px; align-items: center; }
    .ph-editor-cover { position: absolute; inset: 0; z-index: 3; background-size: cover; background-position: center; background-repeat: no-repeat; border-radius: 15px; box-shadow: 0 18px 45px rgba(0,0,0,.22); }
    .ph-editor.has-cover .ph-code, .ph-editor.has-cover .ph-editor-side { opacity: 0; }
    .ph-code { padding: 17px; background: rgba(8,13,26,.68); border: 1px solid rgba(255,255,255,.09); border-radius: 15px; box-shadow: 0 18px 45px rgba(0,0,0,.18); }
    .ph-code-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: rgba(255,255,255,.46); font-size: 7px; }
    .ph-code-lines { display: grid; gap: 8px; }
    .ph-line { height: 7px; background: rgba(255,255,255,.14); border-radius: 99px; }
    .ph-line:nth-child(1) { width: 67%; background: #7c7cff; }
    .ph-line:nth-child(2) { width: 88%; }
    .ph-line:nth-child(3) { width: 74%; background: rgba(38,183,236,.52); }
    .ph-line:nth-child(4) { width: 54%; }
    .ph-line:nth-child(5) { width: 81%; background: rgba(86,214,166,.45); }
    .ph-line:nth-child(6) { width: 61%; }
    .ph-editor-side { display: grid; gap: 9px; }
    .ph-side-tile { display: grid; height: 48px; place-items: center; color: rgba(255,255,255,.7); background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
    .ph-side-tile svg { width: 18px; height: 18px; }

    .ph-play {
      position: absolute;
      z-index: 6;
      inset: 50% 50% auto auto;
      display: grid;
      width: 66px;
      height: 66px;
      padding: 0;
      place-items: center;
      color: var(--ph-primary);
      background: rgba(255,255,255,.94);
      border: 7px solid rgba(255,255,255,.22);
      border-radius: 50%;
      box-shadow: 0 14px 34px rgba(0,0,0,.25);
      cursor: pointer;
      transform: translate(50%, -50%);
      background-clip: padding-box;
      transition: transform .2s ease;
    }

    .ph-play:hover { transform: translate(50%, -50%) scale(1.08); }
    .ph-play svg { width: 22px; height: 22px; }
    .ph-play .ph-pause-icon { display: none; }
    .ph-player.is-playing .ph-play .ph-play-icon { display: none; }
    .ph-player.is-playing .ph-play .ph-pause-icon { display: block; }
    .ph-player.is-playing .ph-play { animation: ph-playing 1.6s ease-in-out infinite; }
    @keyframes ph-playing { 50% { box-shadow: 0 0 0 11px rgba(255,255,255,.08), 0 14px 34px rgba(0,0,0,.25); } }

    .ph-lesson-label { position: absolute; z-index: 4; inset: auto 18px 45px auto; max-width: calc(100% - 36px); padding: 9px 13px; color: #fff; background: rgba(7,10,20,.78); border: 1px solid rgba(255,255,255,.14); border-radius: 11px; box-shadow: 0 8px 22px rgba(0,0,0,.18); backdrop-filter: blur(9px); font-size: 11.5px; font-weight: 900; line-height: 1.7; direction: rtl; }
    .ph-progress-track { position: absolute; z-index: 4; inset: auto 18px 20px; height: 5px; overflow: hidden; background: rgba(255,255,255,.18); border-radius: 99px; }
    .ph-progress-track span { display: block; width: 42%; height: 100%; background: #fff; border-radius: inherit; transition: width .24s linear; }
    .ph-player-time { position: absolute; z-index: 4; inset: auto 18px 7px auto; color: rgba(255,255,255,.72); font-size: 7px; font-weight: 800; direction: ltr; }

    .ph-course-info { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 75px; padding: 12px 16px; }
    .ph-course-icon { display: grid; width: 43px; height: 43px; place-items: center; color: #fff; background: var(--ph-primary); border-radius: 13px; font-size: 10px; font-weight: 900; }
    .ph-course-copy { min-width: 0; }
    .ph-course-copy strong { display: block; overflow: hidden; font-size: 11px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
    .ph-course-copy small { display: block; margin-top: 4px; color: var(--ph-muted); font-size: 8px; font-weight: 600; }
    .ph-course-status { padding: 6px 9px; color: var(--ph-green); background: color-mix(in srgb, var(--ph-green) 10%, var(--ph-surface)); border: 1px solid color-mix(in srgb, var(--ph-green) 20%, var(--ph-border)); border-radius: 9px; font-size: 7px; font-weight: 900; }

    @media (max-width: 1040px) {
      .ph-nav-row { gap: 20px; }
      .ph-desktop-nav > a, .ph-nav-trigger { padding-inline: 9px; font-size: 11.5px; }
      .ph-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(410px, .9fr); gap: 38px; }
      .ph-title { font-size: 54px; }
      .ph-visual-stage { min-height: 475px; }
    }

    @media (max-width: 850px) {
      .ph-container { width: min(100% - 28px, 720px); }
      .ph-nav-row { min-height: 72px; grid-template-columns: auto 1fr auto; }
      .ph-desktop-nav, .ph-dashboard { display: none; }
      .ph-nav-actions { justify-self: end; }
      .ph-menu-toggle { display: grid; }
      .ph-mega-layer { display: none; }
      .ph-mobile-menu { display: block; max-height: 0; overflow: hidden; background: var(--ph-surface); border-top: 1px solid transparent; box-shadow: 0 18px 42px rgba(16,23,42,.08); transition: max-height .38s ease, border-color .35s ease; }
      .ph-mobile-menu.is-open { max-height: calc(100vh - 72px); overflow-y: auto; border-color: var(--ph-border); }
      .ph-mobile-menu-inner { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; width: min(100% - 28px, 720px); margin-inline: auto; padding: 15px 0 19px; }
      .ph-mobile-menu-inner::before { grid-column: 1 / -1; content: "دسترسی سریع"; padding: 0 4px 2px; color: var(--ph-muted); font-size: 9px; font-weight: 800; }
      .ph-mobile-menu a,
      .ph-mobile-subtrigger { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 15px; color: var(--ph-muted); background: var(--ph-surface-2); border: 1px solid var(--ph-border); border-radius: 14px; font-size: 12px; font-weight: 850; text-decoration: none; }
      .ph-mobile-menu a.is-active { color: var(--ph-primary); border-color: color-mix(in srgb, var(--ph-primary) 25%, var(--ph-border)); }
      .ph-mobile-group { overflow: hidden; background: var(--ph-surface-2); border: 1px solid var(--ph-border); border-radius: 14px; }
      .ph-mobile-subtrigger { width: 100%; background: transparent; border: 0; cursor: pointer; }
      .ph-mobile-subtrigger svg { width: 17px; height: 17px; transition: transform .22s ease; }
      .ph-mobile-subtrigger[aria-expanded="true"] { color: var(--ph-primary); }
      .ph-mobile-subtrigger[aria-expanded="true"] svg { transform: rotate(180deg); }
      .ph-mobile-submenu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; max-height: 0; padding: 0 8px; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .25s ease, padding .3s ease; }
      .ph-mobile-group.is-open .ph-mobile-submenu { max-height: 220px; padding: 0 8px 8px; opacity: 1; }
      .ph-mobile-submenu a { min-height: 42px; padding-inline: 10px; background: var(--ph-surface); border-radius: 10px; font-size: 9.5px; }
      .ph-mobile-submenu a span { display: grid; width: 28px; height: 28px; place-items: center; color: var(--ph-primary); background: var(--ph-primary-soft); border-radius: 8px; font-size: 7.5px; }
      .ph-mobile-menu .ph-mobile-dashboard { grid-column: 1 / -1; justify-content: center; color: #fff; background: var(--ph-primary); border-color: var(--ph-primary); text-align: center; box-shadow: 0 8px 20px rgba(var(--ph-primary-rgb),.2); }
      .ph-hero { min-height: auto; padding: 55px 0 60px; }
      .ph-hero-grid { grid-template-columns: 1fr; gap: 46px; }
      .ph-copy { text-align: center; }
      .ph-badge { margin-inline: auto; }
      .ph-title, .ph-lead { margin-inline: auto; }
      .ph-cta-row, .ph-proof { justify-content: center; }
      .ph-visual-stage { min-height: 500px; }
      .ph-course-window { width: min(540px, 92%); }
    }

    @media (max-width: 560px) {
      .ph-container { width: calc(100% - 24px); }
      .ph-nav-row { min-height: 62px; gap: 10px; }
      .ph-mobile-menu.is-open { max-height: calc(100vh - 62px); }
      .ph-mobile-menu-inner { grid-template-columns: 1fr; width: calc(100% - 20px); gap: 8px; padding-block: 12px 16px; }
      .ph-mobile-menu-inner::before { grid-column: 1; font-size: 8.5px; }
      .ph-mobile-menu a, .ph-mobile-subtrigger { min-height: 48px; padding-inline: 14px; font-size: 11.5px; }
      .ph-mobile-menu .ph-mobile-dashboard { grid-column: 1; }
      .ph-logo { width: 38px; height: 38px; border-radius: 12px; }
      .ph-brand-copy strong { font-size: 17px; }
      .ph-brand-copy small { display: none; }
      .ph-icon-button, .ph-menu-toggle { width: 38px; height: 38px; border-radius: 11px; }
      .ph-nav-actions { gap: 6px; }
      .ph-announcement-inner { min-height: 54px; gap: 7px; padding: 7px 42px; }
      .ph-announcement p { max-width: 260px; font-size: 13.5px; line-height: 1.7; }
      .ph-announcement a { min-height: 30px; padding-inline: 11px; font-size: 11px; }
      .ph-announcement-close { right: auto; left: 9px; }
      .ph-hero { padding: 45px 0 48px; }
      .ph-badge { min-height: 33px; margin-bottom: 13px; font-size: 8.5px; }
      .ph-title { font-size: clamp(36px, 12vw, 49px); line-height: 1.3; }
      .ph-lead { margin-top: 14px; font-size: 12px; line-height: 1.95; }
      .ph-cta-row { gap: 8px; margin-top: 22px; }
      .ph-primary-cta, .ph-video-cta { min-height: 47px; padding-inline: 13px; border-radius: 13px; font-size: 10px; }
      .ph-proof { gap: 12px; margin-top: 23px; }
      .ph-avatar { width: 34px; height: 34px; }
      .ph-rating strong { font-size: 9px; }
      .ph-rating small { font-size: 7px; }
      .ph-proof-divider { display: none; }
      .ph-platforms { width: 100%; justify-content: center; font-size: 8px; }
      .ph-visual-stage { min-height: 405px; }
      .ph-course-window { width: 96%; border-radius: 19px; }
      .ph-window-bar { min-height: 40px; padding-inline: 12px; }
      .ph-player { min-height: 225px; }
      .ph-editor { inset: 27px 15px 48px; grid-template-columns: 1fr 42px; gap: 8px; }
      .ph-code { padding: 12px; }
      .ph-code-lines { gap: 6px; }
      .ph-line { height: 5px; }
      .ph-side-tile { height: 37px; border-radius: 9px; }
      .ph-play { width: 55px; height: 55px; border-width: 6px; }
      .ph-lesson-label { inset: auto 12px 38px auto; max-width: calc(100% - 24px); padding: 7px 10px; border-radius: 9px; font-size: 9.5px; line-height: 1.65; }
      .ph-progress-track { inset: auto 12px 16px; }
      .ph-player-time { inset: auto 12px 4px auto; }
      .ph-course-info { min-height: 63px; gap: 8px; padding: 9px 10px; }
      .ph-course-icon { width: 37px; height: 37px; border-radius: 11px; }
      .ph-course-copy strong { font-size: 9px; }
      .ph-course-copy small { font-size: 7px; }
      .ph-search-panel { padding: 12vh 13px 15px; }
    }

    @media (max-width: 360px) {
      .ph-search-trigger { display: none; }
      .ph-title { font-size: 34px; }
      .ph-primary-cta, .ph-video-cta { width: 100%; }
      .ph-visual-stage { min-height: 380px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .ph-hero *, .ph-header *, .ph-search-panel *, .ph-mobile-menu *, .ph-mega-layer * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
      .ph-course-window { transform: translate(50%, -50%) !important; }
    }

/* ============================================================
   ۳.۷.۲۸ — مقیاسِ تایپوگرافیِ متن‌های هیرو در دسکتاپ (≥۸۵۱px)
   عنوان از ۷۶px به حداکثر ۴۸px (هم‌ردهٔ تیترهای بخش‌ها، کمی بزرگ‌تر) و بقیهٔ متن‌ها روی یک مقیاسِ
   هماهنگ (۱۲٫۵ / ۱۴ / ۱۵ / ۱۶ / ۴۸). پلیر و اندازهٔ ستون‌ها دست‌نخورده‌اند؛ تبلت و موبایل هم.
   (اگر در «فونت و رنگِ صفحهٔ نخست» اندازهٔ عنوانِ هیرو تعیین شود، همان اولویت دارد.)
   ============================================================ */
@media (min-width: 851px) {
  .ph-badge { min-height: 34px; gap: 8px; margin-bottom: 18px; padding: 5px 14px; font-size: 12.5px; }
  .ph-title { max-width: 620px; font-size: clamp(36px, 3.35vw, 48px); line-height: 1.38; letter-spacing: -.035em; }
  .ph-rotator::after { bottom: -4px; height: 3px; }
  .ph-lead { max-width: 580px; margin-top: 16px; font-size: clamp(15px, 1.15vw, 16.5px); line-height: 1.95; }
  .ph-cta-row { gap: 12px; margin-top: 26px; }
  .ph-hero .ph-primary-cta,
  .ph-hero .ph-video-cta { min-height: 50px; padding: 0 22px; border-radius: 14px; font-size: 15px; font-weight: 800; } /* ‌.ph-hero a{font:inherit} را هم می‌پوشاند */
  .ph-hero .ph-video-cta { padding-inline-start: 10px; }
  .ph-primary-cta svg, .ph-video-cta svg { width: 18px; height: 18px; }
  .ph-video-cta .ph-mini-play { width: 32px; height: 32px; }
  .ph-proof { gap: 18px; margin-top: 28px; }
  .ph-avatar { width: 38px; height: 38px; font-size: 10px; }
  .ph-rating strong { font-size: 14px; }
  .ph-rating small { margin-top: 2px; font-size: 12px; }
  .ph-platforms { gap: 16px; font-size: 12px; }
  .ph-platforms img { height: 24px; }
}

/* ============================================================
   ۳.۷.۳۶ — فاصلهٔ هیرو تا هدر در دسکتاپ (≥۸۵۱px)
   پیش‌تر: پدینگِ بالا ۹۶px + حداقل‌ارتفاعِ وابسته به ارتفاعِ پنجره (تا ۸۲۰px) + قابِ ۵۱۰pxیِ پلیر
   (پلیرِ ۴۳۰px وسطِ آن، یعنی ۴۰px فضای خالیِ اضافه بالا) → متن و ویدیو خیلی پایینِ هدر می‌نشستند.
   اکنون: پدینگِ جمع‌وجور، ارتفاعِ هیرو به‌اندازهٔ محتوا، قابِ پلیر هم‌اندازهٔ پلیر.
   اندازهٔ خودِ پلیر و ستون‌ها دست‌نخورده است؛ تبلت و موبایل هم.
   ============================================================ */
@media (min-width: 851px) {
  .ph-hero { min-height: 0; padding: clamp(28px, 2.6vw, 40px) 0 clamp(44px, 4vw, 64px); }
  .ph-visual-stage { min-height: 450px; }
}
