/* ==========================================================================
   פלג הדדי — עיצוב האתר
   Mobile first: כל מה שמחוץ ל-@media הוא הטלפון. המחשב בנוי בסוף הקובץ,
   ושם הפריסה משתנה לגמרי (הירו רוחבי, עמודות, כרטיסים זה לצד זה).
   כל הצבעים, הגדלים והמרווחים יושבים ב-:root למטה.
   ========================================================================== */

/* ---------- פונט ---------- */
/* Heebo · SIL Open Font License 1.1 · מאוחסן מקומית, בלי בקשות לצד שלישי */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/heebo-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/heebo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- משתני עיצוב ---------- */
:root {
  /* צבעים */
  --ink:        #0E0E0F;   /* רקע ראשי */
  --ink-2:      #141416;   /* רקע סקשן מתחלף */
  --ink-3:      #1A1A1D;   /* כרטיסים */
  --line:       #29292E;   /* קווים מפרידים */
  --line-soft:  #202024;
  --text:       #F2F0EC;   /* טקסט ראשי */
  --soft:       #D8D5CF;   /* טקסט משני על תמונה */
  --muted:      #9C9993;   /* טקסט משני */
  --faint:      #85827C;   /* placeholder, זכויות יוצרים */

  /* המבטא מפוצל בכוונה: */
  --accent:      #C4532A;  /* כרקע כפתור — טקסט לבן עליו עובר WCAG AA */
  --accent-press:#A8461F;  /* אותו כפתור בהובר/לחיצה */
  --accent-text: #D35F34;  /* אותו מבטא כשהוא טקסט או קו על רקע כהה */
  --accent-hot:  #E0703F;  /* מבטא בכותרות ובמספרים גדולים, ובהובר */

  --wa:         #188842;   /* ירוק וואטסאפ — מכהה מספיק ללבן עליו */
  --wa-press:   #136B35;
  --ok:         #4BA36B;
  --bad:        #D9584B;

  --line-input: #666669;   /* גבול פקדים — 3:1, נדרש ב-WCAG 1.4.11 */

  /* טיפוגרפיה. המינימום הוא הטלפון, המקסימום הוא מסך רחב. */
  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --fs-h1:    clamp(2.9rem, 6vw + 1.6rem, 5rem);
  --fs-h2:    clamp(2.3rem, 2.4vw + 1.5rem, 3.4rem);
  --fs-body:  1rem;
  --fs-small: 0.875rem;

  /* מרווחים. כל סקשן בטלפון מכוון לגובה של מסך אחד בערך — לא יותר. */
  --gutter:  1.25rem;
  --sec-pad: clamp(3.5rem, 6vw, 6.5rem);
  --maxw:    1180px;
  --maxw-narrow: 680px;

  --radius:    18px;       /* כרטיסים ותמונות */
  --radius-sm: 12px;       /* שדות ותמונות קטנות */
  --hdr-h:     4rem;
}

/* ---------- איפוס ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.skip:focus { inset-inline-start: 0; }

/* ---------- מבנה ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}
.wrap--narrow { max-width: var(--maxw-narrow); }

.sec { padding-block: var(--sec-pad); }
.sec--alt { background: var(--ink-2); }

/* ---------- טיפוגרפיה ---------- */
.h1, .h2 { text-wrap: balance; font-weight: 900; }

.h1 {
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: -.025em;
  margin-bottom: 1.25rem;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}

/* החלק השני של כל כותרת בכתום — אותו דפוס בכל האתר */
.h1 em, .h2 em { font-style: normal; color: var(--accent-hot); }

/* בטלפון ובטאבלט כותרות הסקשנים (והשורה שמתחתן) באמצע המסך.
   במחשב הן חוזרות לצד, כי שם הן יושבות בעמודה ליד התוכן. */
.h2, .track__head, .guides__sub, .lead__head { text-align: center; }

/* בפתיח: השם גדול, והתפקיד מתחתיו בכתום, בשורה אחת גם בטלפון */
.h1__sub {
  display: block;
  margin-top: .4rem;
  font-size: clamp(1.45rem, 1.6vw + 1rem, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--accent-hot);
}

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.4rem;
  padding: .75rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  cursor: pointer;
  text-align: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-press); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-input);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--text); }

.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-press); }

.btn--sm { min-height: 2.5rem; padding: .4rem 1.1rem; font-size: var(--fs-small); }
.btn--block { display: flex; width: 100%; }
/* כפתור הוואטסאפ ביצירת קשר — הדרך היחידה לפנות, אז הוא גדול */
.btn--xl { min-height: 4.5rem; font-size: 1.5rem; font-weight: 900; gap: .7rem; }

.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }

.ico { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* קישור טקסט עם חץ — בעמוד התודה */
.arrow-link {
  font-weight: 700;
  color: var(--accent-text);
  transition: color .18s ease;
}
.arrow-link:hover { color: var(--accent-hot); }

/* ---------- כותרת עליונה ---------- */
/* שקופה ויושבת מעל ההירו: המרווח השלילי מושך את ההירו למעלה מתחתיה.
   בטלפון היא נגללת עם העמוד (יש סרגל תחתון); במחשב היא נדבקת — ראה בסוף. */
.hdr {
  position: relative;
  z-index: 60;
  height: var(--hdr-h);
  margin-bottom: calc(var(--hdr-h) * -1);
  transition: background-color .2s ease, border-color .2s ease;
  border-bottom: 1px solid transparent;
}
.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.mark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  min-height: 2.75rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.mark__name {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.mark__role {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--soft);
  text-transform: uppercase;
  direction: ltr;
  text-align: right;
}

.hdr__nav { display: none; }
.hdr__cta { display: none; }


/* ---------- HERO ---------- */
/* הרקע (תמונה ואז סרטון) מתחת, שכבת כהות באמצע, הטקסט למעלה בתחתית המסך. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 22%;
  transition: opacity 1s ease;
}
/* כשהסרטון מתנגן התמונה יורדת, וכשהוא נעצר או מתחיל לולאה מחדש היא חוזרת —
   מעבר רך בין השניים במקום קפיצה. */
.hero.has-video .hero__bg img { opacity: 0; }

/* קליפ הפתיח — קובץ מקומי, מושתק ובלולאה, מצולם לאורך (4:5). שקוף עד שהוא
   באמת מתנגן. בטלפון הוא תופס את החלק העליון של המסך ונמוג לתוך השחור שמתחת
   לטקסט. בטאבלט ובמחשב הוא עומד במידות שלו והשוליים נמוגים (ראה בסוף הקובץ). */
.hero__vid {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 64%;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__vid.is-playing .hero__video { opacity: 1; }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(14,14,15,.55) 0%,
    rgba(14,14,15,0) 16%,
    rgba(14,14,15,.3) 40%,
    rgba(14,14,15,.9) 66%,
    var(--ink) 100%);
}

.hero__in {
  padding-top: calc(var(--hdr-h) + 2rem);
  padding-bottom: 1.25rem;
}



/* שני המסלולים — נגישים ישר מהמסך הראשון, כל אחד קופץ לכרטיס שלו */
.hero__paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-bottom: .65rem;
}
.hpath {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 3.6rem;
  padding: .6rem .8rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(22,22,24,.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .18s ease, background-color .18s ease;
}
.hpath:hover { border-color: var(--accent-hot); background: rgba(22,22,24,.85); }
.hpath__i {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  fill: none;
  stroke: var(--accent-hot);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hpath__t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.hpath__t b { font-weight: 800; font-size: .98rem; }
.hpath__t small { font-size: .78rem; color: var(--muted); }
/* טלפונים צרים מאוד (320px): בלי זה כל שורה בכרטיס נשברת לשתיים */
@media (max-width: 359px) {
  .hero__paths { gap: .5rem; }
  .hpath { gap: .4rem; padding: .55rem .6rem; }
  .hpath__i { width: 1.3rem; height: 1.3rem; }
  .hpath__t b { font-size: .9rem; }
  .hpath__t small { font-size: .72rem; }
}


/* עצירת סרטון הרקע (WCAG 2.2.2 - כל תנועה שמתחילה לבד). לוחצים על הסרטון עצמו
   כדי לעצור. בזמן ניגון לא רואים כלום; כשהוא עצור מופיע משולש play באמצע
   הסרטון, ולחיצה עליו (או שוב על הסרטון) ממשיכה. במקלדת הכפתור מופיע בפוקוס.
   המיקום = מרכז .hero__vid: בטלפון ובטאבלט הקליפ תופס 64% מהגובה למעלה. */
.hero.has-video { cursor: pointer; }
.hero__pause {
  position: absolute;
  z-index: 3;
  top: 32%;
  left: 50%;
  width: 4.25rem;
  height: 4.25rem;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(14,14,15,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.85);
  transition: opacity .2s ease, transform .2s ease;
}
.hero__pause[hidden] { display: none; }
.hero__pause.is-paused,
.hero__pause:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}
.hero__pause svg { width: 1.6rem; height: 1.6rem; fill: #fff; }
/* בפוקוס מקלדת בזמן ניגון - סימן עצירה; כשעצור - משולש play */
.hero__play-i, .hero__pause.is-paused .hero__pause-i { display: none; }
.hero__pause.is-paused .hero__play-i { display: block; }

/* ---------- מסגרת נגן משותפת (כרטיסי מסלול ומדריכים) ---------- */
/* שום דבר לא נטען מיוטיוב עד שלוחצים Play. מה שרואים כאן הוא תמונה
   מקומית; ה-iframe נוצר בלחיצה בלבד (assets/js/site.js). */
.vplay {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--ink-3);
}
.vplay img, .way img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.vplay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 50%);
}

.vplay__btn {
  position: absolute;
  inset: 0;
  margin: auto;              /* מרכוז ללא תלות בכיוון הכתיבה */
  z-index: 2;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 92%, transparent);
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  transition: background-color .18s ease, transform .18s ease;
}
.vplay__btn svg { width: 42%; height: 42%; fill: #fff; margin-inline-start: 8%; }

.vplay__time {
  position: absolute;
  z-index: 2;
  top: .5rem;
  inset-inline-end: .5rem;
  padding: .05rem .4rem;
  border-radius: 4px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.vplay:hover img, .vcard:focus-visible img,
.way__media:hover img, .way__media:focus-within img { transform: scale(1.04); }
.vcard:hover .vplay__btn, .way__go:hover .vplay__btn,
.way__go:focus-visible .vplay__btn { background: var(--accent-press); transform: scale(1.08); }

/* ---------- אימון אישי / ליווי אונליין — סקשן לכל מסלול ---------- */
.track__in { display: grid; gap: 1.25rem; }
.track__head .h2 { margin-bottom: .5rem; }
.track__sub { color: var(--muted); }

.way { position: relative; }
.way__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}
.way__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.18);
  pointer-events: none;
}
/* כל הכרטיס לחיץ. בלי JS זה קישור ליוטיוב; עם JS הסרטון מתנגן כאן (site.js) */
.way__go { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.way__go:focus-visible { outline-offset: -4px; }
.way .vplay__btn { width: 4rem; height: 4rem; }

/* מנגן: הסרטון חוזר לצורה המלאה שלו — כמו בהמלצה של שחר */
.way.is-on .way__media { aspect-ratio: 16 / 9; }
.way.is-on .way__go,
.way.is-on .way__media::after { display: none; }
.way__frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity .3s ease;
}
.way.is-live .way__frame { opacity: 1; }
/* עד שיוטיוב נטען — סימן טעינה על התמונה, שלא ייראה שהלחיצה לא נקלטה */
.way.is-on:not(.is-live) .way__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  margin: auto;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- מדריכים ---------- */
/* ערוץ תוכן: רשת צפופה, בלי קרוסלה ובלי פסקאות. */
.guides__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: .3rem;
}
.guides__head .h2 { margin-bottom: 0; }
/* הכותרת במרכז, הקישור לערוץ נשאר בקצה השורה.
   בטלפון אין לו מקום והוא מסתיר את הכותרת — מופיע רק מטאבלט ומעלה. */
.guides__head .guides__ch { position: absolute; inset-inline-end: 0; display: none; }

.guides__ch {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.5rem;
  padding: .35rem 1rem;
  border: 1px solid var(--line-input);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  transition: border-color .18s ease;
}
.guides__ch:hover { border-color: var(--text); }
.guides__ch .ico { color: var(--accent-hot); }

.guides__sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }

.guides__grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem .75rem;
}
.vcard { display: grid; gap: .4rem; align-content: start; }
.vcard .vplay__btn { width: 2.1rem; height: 2.1rem; }
.vcard__t {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .18s ease;
}
.vcard:hover .vcard__t { color: var(--accent-hot); }

/* במרכז כמו הכותרת (במחשב חוזר לצד). הריפוד = שטח לחיצה של 44px */
.guides__more {
  display: block;
  width: fit-content;
  margin: .6rem auto 0;
  padding-block: .65rem;
  font-weight: 700;
  color: var(--accent-hot);
}
.guides__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- חלון הנגן ---------- */
.vlight {
  width: min(95vw, 1080px);
  max-width: none;
  max-height: none;
  /* האיפוס הגלובלי (`* { margin: 0 }`) מבטל את מרכוז ברירת המחדל של <dialog>.
     בלי השורה הבאה החלון נצמד לפינה העליונה. */
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.vlight::backdrop { background: rgba(6, 6, 7, .94); }

.vlight__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .6rem;
}
.vlight__t {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}
.vlight__x {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-input);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.vlight__x:hover { background: var(--ink-3); border-color: var(--text); }
.vlight__x svg { width: .85rem; height: .85rem; fill: currentColor; }

.vlight__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}
.vlight__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vlight__fine {
  margin-top: .6rem;
  font-size: .76rem;
  color: var(--faint);
  text-align: center;
}
.vlight__fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.vlight__fine a:hover { color: var(--accent-hot); }

/* ---------- המלצות ---------- */
/* רק המלצות וידאו: אחת מתחת לשנייה בטלפון, זו לצד זו ממסך בינוני */
.res__vids { display: grid; gap: 2.5rem; }
.vtest { position: relative; }

/* בלי aspect-ratio קבוע: בלי JS הפרופורציה נלקחת מ-width/height שעל ה-<video>. */
.vtest__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}
.vtest__video { display: block; width: 100%; height: auto; }

/* כפתור ה-Play של האתר, מעל הפוסטר. מוצג רק כש-JS רץ (ראה site.js) */
.vtest__play {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.35) 38%, rgba(0,0,0,0) 60%);
  cursor: pointer;
}
.vtest__play[hidden] { display: none; }
.vtest__play .vplay__btn { inset: 0 0 32% 0; width: 3.6rem; height: 3.6rem; }
.vtest__play:hover .vplay__btn,
.vtest__play:focus-visible .vplay__btn { background: var(--accent-press); transform: scale(1.08); }
.vtest__play:focus-visible { outline-offset: -4px; }

.vtest__cap { margin-top: 1rem; }
.vtest__pull {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.vtest__pull::before, .vtest__pull::after { content: '״'; color: var(--accent-hot); }
.vtest__who { margin-top: .5rem; color: var(--soft); font-size: .92rem; }

/* עם JS: הפוסטר נחתך ל-4:5 והציטוט יושב עליו. ברגע שמנגנים — הסרטון
   חוזר לצורה המלאה שלו (הכתוביות הצרובות בתחתית לא נחתכות) והציטוט יורד מתחתיו. */
.vtest.is-ready:not(.is-playing) .vtest__media { aspect-ratio: 4 / 5; }
.vtest.is-ready:not(.is-playing) .vtest__video { height: 100%; object-fit: cover; object-position: 50% 22%; }
.vtest.is-ready:not(.is-playing) .vtest__cap {
  position: absolute;
  z-index: 3;
  inset-inline: 1.25rem;
  bottom: 1.25rem;
  margin: 0;
  pointer-events: none;
}

/* ---------- שלבים ---------- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-3);
}
.step__i {
  flex: 0 0 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.step__i svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: var(--accent-hot);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step__t { font-size: 1.12rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: .9rem; line-height: 1.45; }

/* ---------- שאלות ---------- */
.h2.faq__h { text-align: center; } /* גובר על ה-inherit של .h2 במחשב */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding-block: 1.05rem;
  padding-inline-end: 2rem;
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.45;
  position: relative;
  transition: color .18s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-hot); }
.qa summary::after {
  content: '+';
  position: absolute;
  inset-inline-end: .2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-hot);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease;
}
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa__a { padding-bottom: 1.2rem; }
.qa__a p { color: var(--muted); line-height: 1.7; max-width: 62ch; }

/* ---------- יצירת קשר ---------- */
.lead {
  scroll-margin-top: 0;
  background:
    radial-gradient(110% 55% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--ink);
}
.lead__head { margin-bottom: 1.25rem; }
.lead__head .h2 { margin-bottom: .6rem; }
.lead__sub { color: var(--soft); font-size: 1.05rem; }

/* דרך אחת: וואטסאפ */
.contact { display: grid; max-width: 30rem; margin-inline: auto; }

.lead__yt {
  margin-top: 1.75rem;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  text-wrap: balance;
}
/* הקישור בשורה משלו בטלפון, כדי שלא יישבר באמצע */
.lead__yt a { display: block; padding-block: .6rem; color: var(--accent-hot); font-weight: 700; }
.lead__yt a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* מסך הודעה — עמוד 404 */
.done {
  text-align: center;
  padding: clamp(2rem, 8vw, 3.5rem) 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-3);
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.done__t { font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
.done p { color: var(--muted); max-width: 40ch; }
.done .arrow-link { margin-top: 1.5rem; }

/* ---------- כותרת תחתונה ---------- */
.ftr {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem calc(2.5rem + 4.5rem);   /* מקום לסרגל התחתון */
  background: var(--ink-2);
}
.ftr__in { display: grid; gap: 1.5rem; }
.ftr__brand p { color: var(--muted); font-size: var(--fs-small); margin-top: .35rem; max-width: 34ch; }
.ftr__links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-weight: 500; font-size: .95rem; }
.ftr__links a { color: var(--muted); padding-block: .5rem; transition: color .18s ease; }
.ftr__links a:hover { color: var(--accent-hot); }
.ftr__legal { font-size: .78rem; color: var(--faint); }

/* ---------- סרגל וואטסאפ צף במובייל ---------- */
/* מוסתר כברירת מחדל. site.js מציג אותו רק כשהפתיח (שיש בו כבר כפתורים)
   וסקשן יצירת הקשר לא על המסך. */
.dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(120%);
  transition: transform .25s ease;
}
.dock.is-on { transform: none; }
.dock__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 3.1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .98rem;
  transition: background-color .18s ease, border-color .18s ease;
}
.dock__btn--wa { background: var(--wa); color: #fff; }
.dock__btn--wa:hover { background: var(--wa-press); }

/* ---------- עמודים פשוטים (תודה, 404) ---------- */
.page--plain .hdr {
  margin-bottom: 0;
  border-bottom-color: var(--line-soft);
}
.page--plain .mark { text-shadow: none; }

/* ==========================================================================
   טאבלט
   ========================================================================== */
@media (min-width: 720px) {
  .lead__yt a { display: inline; }   /* יש מקום — חוזר לאותה שורה */
  :root { --gutter: 2rem; }

  .hero__in > * { max-width: 34rem; }

  /* קליפ הפתיח: במסך רחב הוא לא נמתח לכל הרוחב (זה היה חותך ראש ורגליים) —
     הוא עומד במרכז ביחס 4:5 שלו, והצדדים נמוגים לשחור */
  .hero__vid {
    width: auto;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    -webkit-mask-image:
      linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent),
      linear-gradient(180deg, #000 55%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent),
      linear-gradient(180deg, #000 55%, transparent 100%);
            mask-composite: intersect;
  }

  .way__media { aspect-ratio: 16 / 9; }

  .guides__head .guides__ch { display: inline-flex; }
  .guides__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1rem; }

  .res__vids { grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }

  .ftr__in { grid-template-columns: 1fr auto; align-items: start; }
  .ftr__legal { grid-column: 1 / -1; }
}

/* ==========================================================================
   מחשב — פריסה אחרת לגמרי
   ========================================================================== */
@media (min-width: 1040px) {
  :root { --hdr-h: 4.5rem; }

  html { scroll-padding-top: 5rem; }

  .dock { display: none; }
  .ftr { padding-block: 3rem; }

  /* כותרת: נדבקת למעלה, מקבלת רקע אחרי שגוללים (site.js מוסיף is-solid) */
  .hdr { position: sticky; top: 0; }
  .hdr.is-solid {
    background: color-mix(in srgb, var(--ink) 90%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--line-soft);
  }
  .hdr__nav { display: flex; gap: 2rem; font-size: .95rem; font-weight: 600; }
  .hdr__nav a { color: var(--soft); transition: color .18s ease; }
  .hdr__nav a:hover { color: var(--accent-hot); }
  .hdr__cta { display: inline-flex; }
  .mark__name { font-size: 1.3rem; }

  /* הירו: הקליפ הרוחבי (hero-landscape.mp4) על כל הרוחב, הטקסט בצד ימין,
     השכבה הכהה מימין לשמאל. הקליפ ערוך כך שהמתאמן תמיד בחצי השמאלי. */
  .hero { min-height: min(100svh, 60rem); align-items: center; }
  .hero__bg img { object-position: 50% 28%; }
  .hero__vid {
    inset: 0;
    width: auto;
    height: auto;
    max-width: none;
    aspect-ratio: auto;
    transform: none;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero::after {
    background:
      linear-gradient(270deg, rgba(14,14,15,.94) 0%, rgba(14,14,15,.78) 30%, rgba(14,14,15,.2) 60%, rgba(14,14,15,.05) 100%),
      linear-gradient(0deg, var(--ink) 0%, rgba(14,14,15,0) 22%);
  }
  .hero__in { padding-top: calc(var(--hdr-h) + 3rem); padding-bottom: 4.5rem; }
  .hero__in > * { max-width: 36rem; }
  .hero__paths { gap: .8rem; margin-bottom: .8rem; }
  .hpath { min-height: 4.2rem; padding: .8rem 1rem; }
  .hpath__t b { font-size: 1.08rem; }
  .hpath__t small { font-size: .85rem; }
  .hero__pause { top: 50%; left: 25%; }   /* המתאמן בחצי השמאלי של הקליפ הרוחבי */

  .h2 { margin-bottom: 2rem; }
  .track__head, .guides__sub { text-align: start; }
  .h2 { text-align: inherit; } /* כך "מוכן להרים" נשאר במרכז, כמו ה-lead__head שלו */
  .guides__head { justify-content: space-between; }
  .guides__head .guides__ch { position: static; }

  /* המסלולים: כותרת בצד אחד, סרטון גדול בצד השני. באונליין הצדדים מתחלפים. */
  .track__in { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: center; }
  .track--flip .track__in { grid-template-columns: 7fr 5fr; }
  .track--flip .track__head { order: 2; }
  .track__sub { font-size: 1.15rem; }
  .way .vplay__btn { width: 4.75rem; height: 4.75rem; }

  /* מדריכים: שלוש עמודות, כותרת וקישור לערוץ באותה שורה */
  .guides__grid { gap: 2rem 1.5rem; }
  .vcard .vplay__btn { width: 3rem; height: 3rem; }
  .vcard__t { font-size: 1.05rem; }
  .guides__sub { margin-bottom: 2rem; font-size: 1.05rem; }
  .guides__more { margin-inline: 0; }

  /* המלצות: הכותרת מימין, שני הסרטונים משמאל */
  .res {
    display: grid;
    grid-template-columns: 1fr minmax(0, 46rem);
    gap: 0 4rem;
    align-items: start;
  }
  .vtest__pull { font-size: 1.6rem; }

  /* שלבים: כותרת וכפתור מימין, שלושה כרטיסים בשורה משמאל */
  .how {
    display: grid;
    grid-template-columns: minmax(0, 20rem) 1fr;
    grid-template-areas: "h steps" "cta steps";
    grid-template-rows: auto 1fr;
    gap: 0 4rem;
    align-items: start;
  }
  .how > .h2 { grid-area: h; }
  .steps { grid-area: steps; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; }
  .how__cta { grid-area: cta; width: auto; justify-self: start; }
  .step { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.75rem 1.5rem; height: 100%; }
  .step__i { flex-basis: auto; width: 3.5rem; height: 3.5rem; }
  .step__t { font-size: 1.3rem; margin-bottom: .35rem; }
  .step p { font-size: 1rem; }

  .qa summary { font-size: 1.15rem; padding-block: 1.3rem; }

  /* יצירת קשר: כפתור וואטסאפ אחד, במרכז */
  .lead__head { text-align: center; margin-bottom: 2.5rem; }
  .btn--xl { min-height: 5rem; font-size: 1.75rem; }
}

/* ==========================================================================
   העדפות משתמש
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .hdr, .dock, .skip, .hero__bg, .hero__pause { display: none !important; }
  body { background: #fff; color: #000; }
}
