/* =====================================================================
   ALITA Robotics — Mobile-only design layer (<= 767px)
   ---------------------------------------------------------------------
   כל חוק ויזואלי בקובץ הזה חייב לשבת בתוך @media (max-width: 767px).
   דסקטופ/טאבלט (768px+) לא מושפעים מקובץ זה בשום צורה, למעט הסתרת
   אלמנטים שהוזרקו ע"י mobile.js (class am-mobile-only) — אלמנטים
   שקיימים רק בשביל מובייל וסמויים בכל רוחב אחר.
   רפרנסים: design-references/mobile/ref-01..ref-15.jpg
   ===================================================================== */

/* אלמנטים שהוזרקו ע"י mobile.js — לעולם לא מוצגים מעל 767px */
.am-mobile-only { display: none !important; }

@media (max-width: 767px) {

  /* =========================================================
     Header ראשי (ref-01, עדכון 2026-07-17) — nav[data-dc-tpl="46"]
     לוגו משמאל; מימין: המבורגר, כפתור "להשכרה" (ניווט לטופס
     הלידים #robot) וכפתור טלפון. קו כחול עדין בראש המסך בגלילה.
     אייקוני אינסטגרם/פייסבוק הוסרו מההדר לבקשת המשתמש —
     הם זמינים בפוטר (am-footer-social).
     ========================================================= */

  /* ה-nav יושב בקונטקסט RTL — הסידור הקיים כבר תואם לרפרנס:
     לוגו בשמאל, קבוצת הכפתורים בימין */
  nav[data-dc-tpl="46"] {
    padding: 10px 14px 10px 16px !important;
    gap: 12px !important;
  }

  /* הקו הכחול העדין בחלק העליון — נחשף בגלילה */
  nav[data-dc-tpl="46"]::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2f7dff, #4aa8ff);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  nav[data-dc-tpl="46"].am-scrolled::before { opacity: 1; }

  /* קבוצת הכפתורים (טלפון + "להשכרה" קיימים, המבורגר מוזרק).
     סדר (מימין לשמאל): המבורגר, להשכרה, טלפון —
     בקונטקסט RTL פריט עם order נמוך יושב ימני יותר */
  nav[data-dc-tpl="46"] div[data-dc-tpl="47"] { gap: 9px !important; }
  nav[data-dc-tpl="46"] button.am-burger { order: 1; }
  nav[data-dc-tpl="46"] a[data-dc-tpl="55"] { order: 2; }
  nav[data-dc-tpl="46"] a[data-dc-tpl="48"] { order: 3; }

  /* כפתור "להשכרה" של הבאנדל (href=#robot — טופס הלידים) מוצג
     בהדר המובייל (2026-07-17); מעט קומפקטי יותר מבדסקטופ */
  nav[data-dc-tpl="46"] a[data-dc-tpl="55"] { flex: 0 0 auto !important; }
  nav[data-dc-tpl="46"] a[data-dc-tpl="55"] span[data-dc-tpl="57"] {
    padding: 9px 16px !important;
    font-size: 13.5px !important;
  }

  /* לוגו — שורה אחת תמיד */
  nav[data-dc-tpl="46"] a[data-dc-tpl="58"] {
    font-size: 15px !important;
    gap: 7px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }
  nav[data-dc-tpl="46"] a[data-dc-tpl="58"] img { height: 25px !important; }

  /* כפתור הטלפון הקיים מקבל את מידות המובייל */
  nav[data-dc-tpl="46"] a[data-dc-tpl="48"] {
    width: 40px !important;
    height: 40px !important;
  }

  /* מסכים צרים במיוחד (≤374px): מכווצים מעט כדי שהלוגו לא ייחתך */
  @media (max-width: 374px) {
    nav[data-dc-tpl="46"] div[data-dc-tpl="47"] { gap: 7px !important; }
    nav[data-dc-tpl="46"] a[data-dc-tpl="48"] {
      width: 38px !important;
      height: 38px !important;
    }
    nav[data-dc-tpl="46"] a[data-dc-tpl="55"] span[data-dc-tpl="57"] {
      padding: 8px 13px !important;
      font-size: 12.5px !important;
    }
    nav[data-dc-tpl="46"] a[data-dc-tpl="58"] { font-size: 13.5px !important; }
    nav[data-dc-tpl="46"] a[data-dc-tpl="58"] img { height: 22px !important; }
  }

  /* המבורגר */
  button.am-burger.am-mobile-only {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
  }
  button.am-burger.am-mobile-only span {
    display: block;
    width: 30px;
    height: 3px;
    background: #f2f2f2;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  button.am-burger.am-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  button.am-burger.am-open span:nth-child(2) { opacity: 0; }
  button.am-burger.am-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  /* פאנל התפריט הנפתח */
  .am-menu.am-mobile-only {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    direction: rtl;
    background: rgba(10, 10, 10, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 20px 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .am-menu.am-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .am-menu-links {
    display: flex;
    flex-direction: column;
  }
  .am-menu-links a {
    color: #e8e8e8;
    text-decoration: none;
    font-family: 'Rubik', 'Heebo', sans-serif;
    font-weight: 600;
    font-size: 17px;
    padding: 15px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  /* =========================================================
     Hero (ref-01) — section[data-dc-tpl="6"]
     אותיות ALITA מאחורי הרובוט, תוכן צמוד לתחתית ברוחב מלא,
     כותרת ממורכזת, כפתורים בקצוות.
     ========================================================= */

  /* יצירת stacking context כדי שהאותיות יירדו מאחורי שכבת הווידאו */
  section[data-dc-tpl="6"] { isolation: isolate; }
  section[data-dc-tpl="6"] > header[data-dc-tpl="10"] {
    z-index: -1 !important;
    padding: 12px 0 0 !important;
    overflow: visible !important;
  }
  /* אותיות ALITA — עיצוב 2026-07: שלמות יותר (חיתוך מינימלי בקצוות
     בלבד), מעט בולטות יותר (0.77 → 0.85, ‏+10%), עדיין רקע מאופק */
  section[data-dc-tpl="6"] > header[data-dc-tpl="10"] svg {
    width: 112% !important;
    margin-left: -6%;
    opacity: 0.85 !important;
  }

  /* שכבת עומק מעל רקע ה-hero — עדינה למעלה (הרובוט ו-ALITA נשארים
     נוכחים), מתחזקת באזור ההוק ובתחתית לקונטרסט קריאות. יושבת בין
     שכבת הווידאו (z:0) לתוכן (z:10) */
  section[data-dc-tpl="6"]::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(5, 6, 8, 0.36) 0%,
      rgba(5, 6, 8, 0.16) 16%,
      rgba(5, 6, 8, 0.24) 38%,
      rgba(5, 6, 8, 0.55) 58%,
      rgba(5, 6, 8, 0.76) 78%,
      rgba(5, 6, 8, 0.87) 100%
    );
  }

  /* בלוק התוכן: נצמד לתחתית, שוליים רחבים כמו ברפרנס */
  section[data-dc-tpl="6"] div[data-dc-tpl="19"] {
    justify-content: flex-end !important;
    padding: 0 34px !important;
  }
  section[data-dc-tpl="6"] div[data-dc-tpl="20"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-top: 0 !important;
  }

  /* כותרת ראשית ממורכזת — הצללה עדינה וטבעית בלבד (הקונטרסט
     העיקרי מגיע משכבת העומק של הרקע) */
  h2[data-dc-tpl="21"] {
    text-align: center !important;
    font-size: 44px !important;
    line-height: 1.12 !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  }

  /* "היבואנית הראשונה" — עיצוב 2026-07: בלי כרטיס, טקסט לבן
     ממורכז ישירות על התמונה (מקבילת המובייל של השינוי בווב).
     כל החוקים תחומים ל-section[data-dc-tpl="6"] (ה-hero של דף
     הבית): בעמוד G1 מספרי ה-tpl מוקצים לאלמנטים אחרים לגמרי,
     ו-tpl=6 שם הוא nav — כך שהתיחום מבטל כל זליגה לעמוד G1. */
  section[data-dc-tpl="6"] div[data-dc-tpl="24"] {
    margin-top: 26px !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    justify-content: center !important;
  }
  /* שימור מצב G1 כפי שאושר (ref-10..15): החוק ההיסטורי הלא-תחום
     שנתן margin לאלמנט tpl=24 גם בעמוד G1. בדף הבית הוא נדרס
     ע"י החוק התחום (ספציפיות גבוהה יותר). לביטולו נדרש אישור
     מפורש כי הרפרנסים של G1 אושרו איתו. */
  div[data-dc-tpl="24"] { margin-top: 24px !important; }
  /* הנקודה הכחולה הזוהרת — מוסרת */
  section[data-dc-tpl="6"] span[data-dc-tpl="25"] { display: none !important; }
  section[data-dc-tpl="6"] span[data-dc-tpl="26"] { text-align: center !important; }
  section[data-dc-tpl="6"] span[data-dc-tpl="27"] {
    font-size: 14.5px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    letter-spacing: 0 !important;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
  }
  /* "אליטה רובוטיקס" מודגש — ה-span מוזרק בזמן ריצה (web.js) */
  section[data-dc-tpl="6"] span[data-dc-tpl="27"] .aw-bold { font-weight: 700 !important; }
  section[data-dc-tpl="6"] span[data-dc-tpl="28"] {
    font-size: 14.5px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    line-height: 1.5 !important;
    margin-top: 0 !important;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
  }
  /* "Unitree G1" מודגש */
  section[data-dc-tpl="6"] span[data-dc-tpl="29"] { font-weight: 700 !important; }

  /* "הרובוט ההומנואידי" — עיצוב 2026-07: בלי כרטיס בהיר,
     טקסט לבן ממורכז */
  section[data-dc-tpl="6"] p[data-dc-tpl="30"] {
    margin-top: 22px !important;
    font-size: 12.5px !important;
    text-align: center !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    line-height: 1.6 !important;
  }
  section[data-dc-tpl="6"] span[data-dc-tpl="31"] {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
  }
  section[data-dc-tpl="6"] span[data-dc-tpl="33"] {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 400 !important;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
  }

  /* שורת הכפתורים: להשכרה בימין, עוד על הרובוט בשמאל.
     הכפתור נשאר במלבן מעוגל (radius 10px) כמו ברפרנס — בלי pill.
     div[34] נשאר לא-תחום בכוונה — כמו div[24] למעלה, מצב G1
     המאושר כולל אותו (ראו הערת השימור). */
  div[data-dc-tpl="34"] {
    justify-content: center !important;
    margin-top: 26px !important;
    gap: 52px !important;
  }
  /* עיצוב 2026-07: ה-CTA נערם אנכית כמו בפורמט החדש — כפתור
     "להשכרה" רחב ובולט למעלה, "עוד על הרובוט" משני מתחתיו.
     (תחום לדף הבית — החוק הלא-תחום של div[34] למעלה משרת את G1) */
  section[data-dc-tpl="6"] div[data-dc-tpl="34"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    margin-top: 30px !important;
  }
  section[data-dc-tpl="6"] a[data-dc-tpl="35"] {
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    padding: 16px 28px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
  }
  a[data-dc-tpl="36"] { font-size: 14px !important; }

  /* =========================================================
     #usecases — "הרובוט שמושך את כל תשומת הלב" (ref-02)
     גריד 2×2, תמונות ריבועיות, כותרת ממורכזת.
     ========================================================= */

  #usecases { padding: 72px 16px 64px !important; }
  #usecases div[data-dc-tpl="62"] { margin-bottom: 42px !important; }
  #usecases h2.z-h {
    font-size: 34px !important;
    line-height: 1.18 !important;
  }
  #usecases p[data-dc-tpl="64"] {
    font-size: 14px !important;
    margin-top: 14px !important;
    max-width: 330px !important;
  }
  #usecases .z-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  #usecases .z-grid-4 img {
    aspect-ratio: 1 / 1 !important;
  }
  #usecases .z-grid-4 > div > div {
    padding: 14px 14px 18px !important;
  }
  #usecases .z-grid-4 h3 {
    font-size: 13.5px !important;
    margin-bottom: 5px !important;
  }
  #usecases .z-grid-4 p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  /* =========================================================
     #robot — "השכירו את ה‑Unitree G1" + טופס (ref-03)
     כותרת וציטוט ממורכזים, תמונת רובוט מעל הטופס (שיבוט
     mobile-only שחופף את הכרטיס), שדות בזוגות כמו ברפרנס.
     ========================================================= */

  /* עיצוב 2026-07 (הנכס המאושר alita-unitree-g1-form-overlay):
     הרובוט השקוף נשען על כרטיס הטופס. ה-img מוזרק ע"י mobile.js
     כילד ראשון של ה-form, כך שהכרטיס עצמו הוא ה-wrapper הממוקם
     (position:relative, overflow:visible) והרובוט הוא האלמנט
     היחיד ב-absolute. גאומטריית הנכס (1536×1024, יחס גובה 2/3):
       קו החיתוך הישר של הגוף  = 81.35% מגובה הקנבס
       => מרחק הקו מראש הקנבס = 0.8135 * (2/3) = 0.5423 מרוחב ה-img
       הגוף הנראה מתחיל ב-22% משמאל הקנבס ותופס 60% מרוחבו;
       הכפפות יורדות ~6.8% מרוחב ה-img אל תוך הכרטיס.
     top: -0.5423*W מצמיד את קו החיתוך בדיוק לקצה העליון של הכרטיס
     בכל רוחב מסך; הטופס עצמו — ללא שום שינוי לוגי. */
  #robot {
    padding: 26px 20px 32px !important;
    /* ניווט עוגן (#robot): שההדר הדביק לא יסתיר את הכותרת */
    scroll-margin-top: 72px;
    /* בקנבס של הנכס יש שוליים שקופים שגולשים שמאלה מחוץ למסך —
       ב-RTL גלישה שמאלה יוצרת גלילה אופקית; clip מבטל אותה בלי
       להשפיע על שום פיקסל נראה */
    overflow: clip;
  }
  #robot .z-robot { min-height: 0 !important; gap: 0 !important; }
  #robot h2.z-h {
    width: auto !important;
    height: auto !important;
    font-size: 31px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
  }
  #robot p[data-dc-tpl="90"] {
    font-size: 15px !important;
    text-align: center !important;
    margin-bottom: 0 !important;
  }
  /* עמודת התמונה המקורית מוסתרת במובייל — במקומה הרובוט הנשען */
  #robot div[data-dc-tpl="145"] { display: none !important; }
  #robot form[data-dc-tpl="93"] {
    position: relative;
    z-index: 1;
    overflow: visible !important;
    height: auto !important;
    padding: 24px 20px !important;
    border-radius: 26px !important;
    /* מקום לפלג הגוף שמעל הכרטיס: 0.494 * רוחב הרובוט + נשימה */
    margin-top: min(48.5vw, 227px) !important;
  }
  #robot img.robot-form-overlay.am-mobile-only {
    display: block !important;
    position: absolute;
    width: min(92vw, 430px);
    max-width: none;
    height: auto;
    object-fit: contain;
    top: calc(-0.5423 * min(92vw, 430px));
    /* היעד: שמאל הגוף הנראה ~26px מקצה המסך => שמאל הקנבס ב-‎-13vw‎
       מהמסך; ה-img ממוקם יחסית לכרטיס, שמוזח 20px מהמסך */
    left: calc(-13vw - 26px);
    z-index: 2;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
  }
  /* כותרת הטופס נשארת קריאה מימין, מפנה מקום לרובוט משמאל.
     רוחב קבוע כדי שהשבירה תהיה תמיד כמו ברפרנס:
     "השאירו פרטים" / "ונחזור אליכם" — בלי לגעת בכף היד */
  #robot [data-dc-tpl="95"] {
    font-size: 21px !important;
    max-width: 165px;
    margin-right: 0;
    margin-left: auto;
  }
  #robot div[data-dc-tpl="94"] { margin-bottom: 26px !important; }
  /* זוגות שדות נשארים זה לצד זה כמו ברפרנס (דורס את חוק ה-900px) */
  #robot form .z-grid-2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  #robot form input, #robot form select {
    padding: 12px 10px !important;
    font-size: 14.5px !important;
  }
  /* פלייסהולדר האימייל הארוך נכנס בשלמותו בשדה חצי-רוחב */
  #robot form input[type="email"] { font-size: 13px !important; }
  #robot button[data-dc-tpl="133"] span[data-dc-tpl="135"] {
    padding: 15px 30px !important;
    font-size: 17px !important;
  }

  /* =========================================================
     #gallery — "קצת על הרובוט" 4 סרטונים (ref-04)
     תמיד 2 בשורה במובייל.
     ========================================================= */

  #gallery { padding: 64px 0 120px !important; }
  #gallery h2.z-h { font-size: 28px !important; }
  #gallery div[data-dc-tpl="149"] { padding: 0 20px 48px !important; }
  #gallery .z-grid-2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 0 12px !important;
  }
  /* אריחי וידאו גבוהים יותר עם חיתוך cover, ופינות עדינות — כמו ברפרנס */
  #gallery .z-grid-2 > div {
    aspect-ratio: 1 / 0.9 !important;
    border-radius: 10px !important;
  }
  #gallery .z-grid-2 video { object-fit: cover !important; }

  /* =========================================================
     #about — "קצת עלינו" (ref-05)
     טקסט ממורכז, שלושה כרטיסים נערמים עם תוכן ממורכז.
     ========================================================= */

  #about { padding: 64px 28px !important; }
  #about h2.z-h { font-size: 34px !important; }
  /* בלוק הביוגרפיות — הסלקטור מבני (הדיב שאחרי הכותרת): מספרי
     data-dc-tpl אינם יציבים (הבאנדל ממספר מחדש בעת re-render) */
  #about h2.z-h + div {
    font-size: 13.5px !important;
    margin-top: 18px !important;
    line-height: 1.75 !important;
  }
  #about h2.z-h + div div { font-size: 13.5px !important; }
  #about .z-grid-3 { margin-top: 34px !important; gap: 10px !important; }
  #about .z-grid-3 > div {
    text-align: center !important;
    padding: 20px 18px !important;
  }
  #about .z-grid-3 h3 { font-size: 18px !important; margin-bottom: 7px !important; }
  #about .z-grid-3 p {
    font-size: 13.5px !important;
    max-width: 250px;
    margin: 0 auto !important;
  }

  /* =========================================================
     #robot-about — "על הרובוט" (ref-06)
     צ'קמארקים אנכיים, רובוט בתחתית משמאל, כפתורים בטור מימין
     לצד התמונה.
     ========================================================= */

  #robot-about { padding: 64px 22px 34px !important; }
  #robot-about h2.z-h { font-size: 34px !important; text-align: center !important; }
  /* סלקטורים מבניים (לא לפי data-dc-tpl — המספרים אינם יציבים):
     .z-robot > div ראשון = עמודת הטקסט (כותרת, פסקה, צ'קליסט,
     שורת כפתורים); div אחרון = עמודת התמונה. */
  #robot-about h2.z-h + p {
    font-size: 15px !important;
    margin-bottom: 26px !important;
  }
  #robot-about h2.z-h + p + div { gap: 16px !important; }
  #robot-about h2.z-h + p + div > div > span:last-child { font-size: 15.5px !important; }
  /* אזור הכפתורים: טור צמוד לימין (flex-start = ימין ב-RTL),
     מפנה את שמאל המסך לרובוט */
  #robot-about .z-robot > div:first-child > div:last-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 22px !important;
    margin-top: 30px !important;
    position: relative;
    z-index: 2;
    pointer-events: none;
  }
  #robot-about .z-robot > div:first-child > div:last-child a { pointer-events: auto; }
  #robot-about .z-robot > div:first-child > div:last-child > a:first-child {
    padding: 12px 26px !important;
    font-size: 15px !important;
  }
  #robot-about .z-robot > div:first-child > div:last-child > a:last-child { font-size: 15px !important; }
  /* עמודת התמונה: הרובוט נצמד לשמאל, ראשו עולה אל מול טור הכפתורים.
     במובייל תמונת הבאנדל (רקע סטודיו סגלגל) מוסתרת ובמקומה גזירה
     ללא רקע — img.am-robot-full שמוזרק ע"י mobile.js — כך שהרובוט
     יושב ישירות על שחור הסקשן (עיצוב 2026-07). */
  #robot-about .z-robot > div:last-child {
    width: 44% !important;
    flex: none !important;
    margin: -170px auto -6px 2px !important;
    justify-content: flex-start !important;
    z-index: 1;
  }
  #robot-about .z-robot > div:last-child img { display: none !important; }
  #robot-about .z-robot > div:last-child img.am-robot-full.am-mobile-only {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  /* =========================================================
     סרטונים ויראליים (ref-07) — section[data-dc-tpl="217"]
     2 בשורה; סדר הכרטיסים ממוקם מפורשות לפי הרפרנס.
     ========================================================= */

  section[data-screen-label="Featured videos"] { padding: 64px 12px !important; }
  section[data-screen-label="Featured videos"] h2.z-h {
    font-size: 28px !important;
    white-space: nowrap !important;
  }
  section[data-screen-label="Featured videos"] > div > div:first-child { margin-bottom: 34px !important; }
  section[data-screen-label="Featured videos"] .z-grid-3 {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  /* סדר לפי ref-07 (עמודה 1 = ימין ב-RTL):
     שורה 1: חימום | מופע ראווה
     שורה 2: קפיצה ונחיתה | תרגיל למידת תנועה
     שורה 3: בנוי לעבודה אמיתית | סלטות */
  section[data-screen-label="Featured videos"] .z-grid-3 > div:nth-child(1) { grid-area: 1 / 1; }
  section[data-screen-label="Featured videos"] .z-grid-3 > div:nth-child(2) { grid-area: 1 / 2; }
  section[data-screen-label="Featured videos"] .z-grid-3 > div:nth-child(3) { grid-area: 3 / 2; }
  section[data-screen-label="Featured videos"] .z-grid-3 > div:nth-child(4) { grid-area: 2 / 1; }
  section[data-screen-label="Featured videos"] .z-grid-3 > div:nth-child(5) { grid-area: 3 / 1; }
  section[data-screen-label="Featured videos"] .z-grid-3 > div:nth-child(6) { grid-area: 2 / 2; }
  section[data-screen-label="Featured videos"] div[data-vcard="1"] { height: 150px !important; }
  section[data-screen-label="Featured videos"] .z-grid-3 > div > div:last-child { padding: 13px 14px 16px !important; }
  section[data-screen-label="Featured videos"] .z-grid-3 h3 { font-size: 14px !important; margin-bottom: 4px !important; }
  section[data-screen-label="Featured videos"] .z-grid-3 > div > div:last-child p { font-size: 11.5px !important; }
  section[data-screen-label="Featured videos"] div[data-vcard="1"] button:not(.am-fs-btn) span { width: 48px !important; height: 48px !important; }

  /* =========================================================
     #faq — "לפני שמזמינים." (ref-08)
     ========================================================= */

  #faq { padding: 64px 20px 110px !important; }
  #faq h2.z-h { font-size: 30px !important; }
  /* סלקטורים מבניים: #faq > div = העטיפה; הילד הראשון = כותרת,
     האחרון = רשימת הפריטים; בכל פריט — שורת השאלה (h3 + span) ודיב
     התשובה. */
  #faq > div > div:first-child { margin-bottom: 32px !important; }
  #faq > div > div:last-child { gap: 10px !important; }
  #faq > div > div:last-child > div { padding: 27px 20px !important; }
  #faq h3, #faq h3 button { font-size: 16.5px !important; }
  #faq > div > div:last-child > div > div:last-child p {
    font-size: 14.5px !important;
    text-align: justify !important; /* יישור דו-צדדי כמו ברפרנס */
  }
  /* מצב פתוח מציג מינוס (−) כמו ברפרנס, במקום פלוס מסובב (×).
     (2026-07 נגישות: שורת השאלה היא h3 > button + span — הסלקטור עודכן) */
  #faq h3 > span { font-size: 0 !important; }
  #faq h3 > span::after {
    content: "+";
    font-size: 24px;
    font-weight: 300;
    display: block;
    line-height: 1;
  }
  #faq h3 > span[style*="rotate(45deg)"] { transform: none !important; }
  #faq h3 > span[style*="rotate(45deg)"]::after { content: "−"; }

  /* =========================================================
     #cta — "שריינו מוקדם. הצי שלנו מוגבל." (ref-09 עליון)
     ========================================================= */

  #cta { padding: 48px 24px !important; }
  #cta h2.z-h { font-size: 38px !important; }
  #cta p {
    font-size: 15.5px !important;
    margin: 16px auto 26px !important;
    max-width: 300px !important;
  }
  #cta a {
    font-size: 15px !important;
    padding: 14px 34px !important;
  }

  /* =========================================================
     #footer (ref-09 תחתון)
     הכול ממורכז; שורת הסושיאל המקורית מוסתרת — השיבוט יושב
     אחרי בלוק המותג בתוך הגריד.
     ========================================================= */

  #footer { padding: 56px 24px 32px !important; }
  /* שורת הסושיאל המקורית = הילד הראשון של הפוטר (סלקטור מבני) */
  #footer > div:first-child { display: none !important; }
  .am-footer-social.am-mobile-only {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 14px;
    direction: ltr;
    margin: 0 !important; /* דורס את שולי ה-48px שהגיעו מהשיבוט */
  }
  /* עיגולים שקופים עם מתאר אפור דק כמו ברפרנס */
  .am-footer-social.am-mobile-only a {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
  }
  #footer .z-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    text-align: center !important;
  }
  #footer .z-grid-4 p { margin: 0 auto !important; font-size: 13.5px !important; }
  /* בלוק המותג: תגית div = כותרת "Alita Robotics" (הלוגו הוא img
     וה-tagline הוא p — לא נתפסים) */
  #footer .z-grid-4 > div:first-child > div { margin-bottom: 8px !important; }
  /* כותרות העמודות (השכרה/מידע/קשר) */
  #footer .z-grid-4 > div:not(:first-child) > div:first-child {
    font-size: 14.5px !important;
    color: rgb(255, 255, 255) !important;
    margin-bottom: 8px !important;
  }
  /* מיכלי הקישורים בעמודות */
  #footer .z-grid-4 > div:not(:first-child) > div:last-child {
    font-size: 14px !important;
    gap: 6px !important;
  }
  /* שורת הזכויות התחתונה */
  #footer > div:last-child {
    justify-content: center !important;
    text-align: center !important;
    margin-top: 26px !important;
  }

  /* =====================================================================
     עמוד "על הרובוט" — Unitree-G1.dc.html (ref-10 עד ref-15)
     כל הסלקטורים מעוגנים במחלקות g1-* הקיימות רק בעמוד זה.
     ===================================================================== */

  /* --- עיצוב 2026-07: ההדר הייעודי (ref-10) הוחלף ב-header האחיד
     של האתר שמזריק g1-web.js (זהה לדף הבית — אותם data-dc-tpl,
     כך שכל חוקי ההדר והפוטר של דף הבית חלים עליו אוטומטית).
     ה-nav הישן מוסתר; חוקי ref-10 שאחריו נשארים ככבויים. --- */
  nav.g1-nav { display: none !important; }

  /* --- עיצוב 2026-07: סקשן "מוכנים לשכור את ה-G1?" —
     כמו בווב: בלי "חזרה לעמוד הראשי" ובלי החץ בכפתור "להשכרה".
     גיאומטריית הכפתור נשארת של המובייל (ref-15: פס רחב 72%
     ממורכז) — התאמה להקשר במקום העתקת padding מהדסקטופ;
     בלי hover — לא קיים במסך מגע. --- */
  section.g1-pad a[href="index.html"] { display: none !important; }
  section.g1-pad a[href="index.html#robot"] svg { display: none !important; }

  /* --- Header ייעודי (ref-10): חזרה בימין, לוגו במרכז, להשכרה בשמאל --- */
  nav.g1-nav { padding: 12px 16px !important; }
  /* לוגו וקישור החזרה בלבן מלא כמו ברפרנס (הכפתור הלבן לא מושפע) */
  nav.g1-nav > a:nth-child(1),
  nav.g1-nav > a:nth-child(2) { color: #ffffff !important; }
  nav.g1-nav > a:nth-child(2) { font-size: 14px !important; }
  nav.g1-nav > a:nth-child(2) img { height: 22px !important; }
  nav.g1-nav > a:nth-child(3) { padding: 8px 15px !important; font-size: 12.5px !important; }
  nav.g1-nav > a:nth-child(1) { font-size: 12.5px !important; }

  /* --- פתיחה (ref-10): כותרות ממורכזות, טקסט רץ מימין --- */
  section.g1-pad:nth-of-type(1) { padding: 26px 22px 36px !important; }
  section.g1-pad:nth-of-type(1) h1.g1-title {
    font-size: 38px !important;
    text-align: center !important;
  }
  section.g1-pad:nth-of-type(1) h2 {
    font-size: 15px !important;
    text-align: center !important;
  }
  section.g1-pad:nth-of-type(1) p { font-size: 13px !important; }
  section.g1-pad:nth-of-type(1) .g1-two { gap: 28px !important; }

  /* --- 6 נתוני מפתח (ref-10): גריד 2×3, זוגות מוחלפים לפי הרפרנס ---
     DOM: גובה, משקל, דרגות חופש, מהירות, זמן פעילות, מתקפל.
     ref (עמודה 1 = ימין): משקל|גובה, מהירות|דרגות, מתקפל|זמן. */
  section.g1-pad:nth-of-type(2) { padding: 0 22px 56px !important; }
  .g1-stats { gap: 12px !important; }
  .g1-stats > div:nth-child(1) { grid-area: 1 / 2; }
  .g1-stats > div:nth-child(2) { grid-area: 1 / 1; }
  .g1-stats > div:nth-child(3) { grid-area: 2 / 2; }
  .g1-stats > div:nth-child(4) { grid-area: 2 / 1; }
  .g1-stats > div:nth-child(5) { grid-area: 3 / 2; }
  .g1-stats > div:nth-child(6) { grid-area: 3 / 1; }
  .g1-stats > div { padding: 17px 14px !important; }
  .g1-stats > div > div.g1-h { font-size: 28px !important; }
  .g1-stats > div > div:last-child {
    margin-top: 4px !important;
    font-size: 12.5px !important;
  }
  /* סדר ויזואלי של מספר+יחידה כמו ברפרנס (בסיס LTR) — פרט לכרטיס הגובה */
  .g1-stats > div:not(:nth-child(1)) > div.g1-h { direction: ltr !important; }
  section.g1-pad:nth-of-type(2) > div > p { text-align: center; }

  /* --- הוא רואה, שומע ומדבר (ref-11 עליון, רקע לבן) --- */
  section.g1-pad:nth-of-type(3) { padding: 44px 22px 38px !important; }
  section.g1-pad:nth-of-type(3) h2 {
    font-size: 32px !important;
    margin-bottom: 24px !important;
  }
  section.g1-pad:nth-of-type(3) span[style*="font-size:18px"],
  section.g1-pad:nth-of-type(3) span[style*="font-size: 18px"] { font-size: 15.5px !important; }
  /* נקודת הבולט צמודה לטקסט כמו ברפרנס */
  section.g1-pad:nth-of-type(3) > div > div > div { gap: 8px !important; }

  /* --- כף יד + מתאמן (ref-11 תחתון, כרטיסים כהים נערמים) --- */
  section.g1-pad:nth-of-type(4) { padding: 30px 22px 44px !important; }
  section.g1-pad:nth-of-type(4) .g1-two { gap: 14px !important; }
  section.g1-pad:nth-of-type(4) .g1-two > div { padding: 26px 22px !important; }
  section.g1-pad:nth-of-type(4) h2 { font-size: 24px !important; }
  section.g1-pad:nth-of-type(4) p {
    font-size: 15px !important;
    color: #d0d0d0 !important; /* בהיר יותר, כמו ברפרנס */
  }

  /* --- יכולות + 2 סרטונים זה לצד זה (ref-12) --- */
  section.g1-pad:nth-of-type(5) { padding: 56px 22px 140px !important; }
  section.g1-pad:nth-of-type(5) h2 { font-size: 25px !important; }
  section.g1-pad:nth-of-type(5) .g1-two { gap: 40px !important; margin-top: 34px !important; }
  /* ריווח אוורירי בין הבולטים כמו ברפרנס */
  section.g1-pad:nth-of-type(5) .g1-two > div:first-child { gap: 22px !important; }
  /* סרטונים פורטרטיים יותר כמו ברפרנס */
  section.g1-pad:nth-of-type(5) video { aspect-ratio: 2 / 3 !important; object-fit: cover !important; }
  section.g1-pad:nth-of-type(5) .g1-two > div:last-child > div { border-radius: 10px !important; }
  section.g1-pad:nth-of-type(5) span[style*="font-size:18px"],
  section.g1-pad:nth-of-type(5) span[style*="font-size: 18px"] { font-size: 14px !important; }
  /* שורת הסרטונים כמעט מקצה לקצה כמו ברפרנס */
  section.g1-pad:nth-of-type(5) .g1-two > div:last-child {
    gap: 9px !important;
    margin: 0 -10px;
  }

  /* --- הנדסה שמרגישה אנושית (ref-13, רקע לבן) --- */
  section.g1-pad:nth-of-type(6) { padding: 56px 22px !important; }
  section.g1-pad:nth-of-type(6) h2 { font-size: 33px !important; }
  section.g1-pad:nth-of-type(6) p {
    font-size: 15.5px !important;
    line-height: 1.85 !important;
  }
  section.g1-pad:nth-of-type(6) span[style*="font-size:17px"],
  section.g1-pad:nth-of-type(6) span[style*="font-size: 17px"] {
    font-size: 15px !important;
    line-height: 1.8 !important;
  }
  section.g1-pad:nth-of-type(6) div[style*="gap"] > div { margin-bottom: 0 !important; }

  /* --- מה שחשוב לדעת לפני שמזמינים (ref-14): 3 כרטיסים נערמים --- */
  section.g1-pad:nth-of-type(7) { padding: 56px 22px !important; }
  section.g1-pad:nth-of-type(7) h2 {
    font-size: 22px !important;
    text-align: center !important;
    margin-bottom: 28px !important;
  }
  section.g1-pad:nth-of-type(7) .g1-two {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  section.g1-pad:nth-of-type(7) .g1-two > div { padding: 35px 22px 48px !important; }
  section.g1-pad:nth-of-type(7) h3 { font-size: 20px !important; margin-bottom: 18px !important; }
  section.g1-pad:nth-of-type(7) p { font-size: 15px !important; line-height: 1.8 !important; }

  /* --- מפרט טכני מלא (ref-15): שם הפרמטר למעלה, שני הערכים
         מתחתיו זה לצד זה עם תוויות G1 / G1 EDU (כחול) --- */
  section.g1-pad:nth-of-type(8) { padding: 48px 16px 64px !important; }
  section.g1-pad:nth-of-type(8) summary { padding: 20px 20px !important; }
  section.g1-pad:nth-of-type(8) summary span.g1-h { font-size: 22px !important; }
  section.g1-pad:nth-of-type(8) details > div {
    padding: 0 16px 20px !important;
    overflow-x: visible !important;
  }
  section.g1-pad:nth-of-type(8) table {
    min-width: 0 !important;
    width: 100% !important;
  }
  section.g1-pad:nth-of-type(8) thead { display: none !important; }
  section.g1-pad:nth-of-type(8) tbody tr {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  /* (2026-07 נגישות: תא הפרמטר הפך th scope=row — הסלקטורים כוללים גם th) */
  section.g1-pad:nth-of-type(8) tbody td,
  section.g1-pad:nth-of-type(8) tbody th {
    padding: 1px 2px !important;
    border: none !important;
  }
  /* ערכי G1 EDU בכחול כמו ברפרנס */
  section.g1-pad:nth-of-type(8) tbody td:nth-child(3) { color: #7cbaff !important; }
  section.g1-pad:nth-of-type(8) tbody th:first-child {
    grid-column: 1 / -1;
    font-weight: 700 !important;
    color: #ffffff !important;
    font-size: 14.5px !important;
    padding-bottom: 7px !important;
    text-align: right !important;
  }
  section.g1-pad:nth-of-type(8) tbody td:nth-child(2)::before {
    content: "G1";
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #8a8a8a;
    direction: ltr;
    text-align: right;
    margin-bottom: 3px;
  }
  section.g1-pad:nth-of-type(8) tbody td:nth-child(3)::before {
    content: "G1 EDU";
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #4aa8ff;
    direction: ltr;
    text-align: right;
    margin-bottom: 3px;
  }

  /* --- CTA סופי (ref-15 תחתון): כפתורים זה מתחת לזה --- */
  section.g1-pad:nth-of-type(9) { padding: 64px 24px 72px !important; }
  section.g1-pad:nth-of-type(9) h2 { font-size: 34px !important; }
  section.g1-pad:nth-of-type(9) p { font-size: 13.5px !important; margin-bottom: 28px !important; }
  section.g1-pad:nth-of-type(9) > div > div {
    flex-direction: column !important;
    gap: 30px !important;
  }
  section.g1-pad:nth-of-type(9) > div > div > a:first-child {
    padding: 15px 0 !important;
    width: 72%;
    font-size: 16px !important;
    justify-content: center !important;
  }

  /* =========================================================
     כפתור מסך-מלא ישיר על נגני וידאו (מוזרק ע"י mobile.js).
     בכרום-מובייל הכפתור המובנה נעלם/מנוטרל בנגנים צרים —
     כאן כפתור אמיתי, תמיד גלוי, בפינת הנגן.
     ========================================================= */
  button.am-fs-btn.am-mobile-only {
    display: flex !important;
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 6;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    padding: 0;
    cursor: pointer;
  }
  button.am-fs-btn.am-mobile-only svg {
    width: 19px;
    height: 19px;
    display: block;
  }

  /* מסך-מלא מדומה — fallback כשה-Fullscreen API חסום (iframe מוטמע) */
  .am-pseudo-fs {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    background: #000 !important;
  }
  .am-pseudo-fs video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  .am-pseudo-fs button.am-fs-btn.am-mobile-only {
    bottom: auto;
    top: 16px;
    left: 16px;
    z-index: 7;
  }

}

/* =========================================================
   מסכים צרים במיוחד (≤350px): הרובוט בסקשן הטופס מוקטן
   ומוסט מעט שמאלה כדי שכף היד לא תיגע בכותרת "השאירו פרטים".
   עדיין בתחום המובייל בלבד — לא נוגע ב-768px+.
   ========================================================= */
@media (max-width: 350px) {
  img.am-robot-img.am-mobile-only {
    width: 58%;
    margin: 4px auto -46px -10px;
  }
}
