/* ============ דף הגברים: תוספות על העיצוב של דף הנשים ============
   כל העיצוב, הצבעים, הרווחים והתנועות מגיעים מקבצי ה CSS של fital.co.il.
   כאן יש רק מה שחסר בגרסת הגברים, או מה שמועלם ביקש לשנות. */

/* 1. תמונת הפתיח: טל עם המשקולות, שלמה ובלי חיתוך */
.hero__tal.men-hero { aspect-ratio: auto; height: auto; object-fit: contain; }
@media (min-width: 1200px) {
  .hero__tal.men-hero { width: auto; height: 660px; max-width: calc((100% - 3 * var(--margin)) * .58); }
}
@media (max-width: 1199px) {
  .hero__tal.men-hero { width: 100%; height: auto; }
}

/* 2. לפני ואחרי: לגברים שתי תמונות בכל שורה, בלי "שנה אחרי". התמונות שלמות, בלי חיתוך */
.men-s14 .s14__shot .ph { aspect-ratio: auto; background: none; }
.men-s14 .s14__shot .ph img { height: auto; object-fit: contain; }

/* טל עם המשקולות (טולום), אחרי "וגם להגיע לגוף שאתה חולם" */
.men-tal { width: 100%; max-width: 420px; margin: 8px auto 0; border-radius: var(--r-media); overflow: hidden; }
.men-tal img { width: 100%; height: auto; display: block; }

/* האוכל: התמונה כמו שהיא, בלי ריבוע אפור מסביב */
.s10__grid img { aspect-ratio: auto; background: none; height: auto; object-fit: contain; }

/* צילומי ההודעות: שלמים, בלי חיתוך */
.s06b__card { aspect-ratio: auto; background: none; }
.s06b__card img { height: auto; object-fit: contain; }
/* הפוסט של ליאב: התמונה מהפוסט, ומתחתיה הטקסט שלו כטקסט אמיתי, כדי שיהיה קריא בטלפון */
.men-ig { background: #000; color: #f5f5f5; border-radius: var(--r-media); }
.men-ig__cap { padding: 16px 18px 20px; text-align: right; font-family: var(--f-body); font-size: 17px; line-height: 27px; }
.men-ig__cap p { margin: 0; }
.men-ig__who { font-weight: 700; color: #fff; margin-bottom: 8px !important; }
.men-ig__tag { color: #8fb4ff; direction: ltr; unicode-bidi: isolate; }

/* הסרטונים: שורה אחת שגוללים בה לרוחב, כמו רילס */
.men-reels .s14b__rail { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding: 4px 2px 14px; gap: 14px; }
.men-reels .s14b__card { flex: 0 0 240px; scroll-snap-align: start; }
@media (max-width: 1199px) {
  .men-reels .s14b__rail { margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); scroll-padding-inline: var(--margin); }
  .men-reels .s14b__card { flex: 0 0 62%; flex-basis: min(62vw, 240px); }
}
.men-reels__hint { margin: 10px 0 0; text-align: center; font-family: var(--f-body); font-size: 17px; color: var(--sky-tint); }

/* כפתור צף בתחתית המסך */
.men-float { position: fixed; inset-inline: 0; bottom: 0; z-index: 880; display: flex; justify-content: center; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(241,240,235,.96) 60%, rgba(241,240,235,0)); transform: translateY(110%); transition: transform .35s var(--ease-out); pointer-events: none; }
.men-float.is-on { transform: none; pointer-events: auto; }
.men-float .cta { width: min(100%, 420px); }
@media (prefers-reduced-motion: reduce) { .men-float { transition: none; } }

/* סרטונים: אם תמונת הדרייב לא נטענה, רקע כהה עם כפתור הפעלה במקום ריבוע שבור */
.s14b__play.is-broken { background: linear-gradient(160deg, var(--sky-deep), #0b1020); }
.s14b__play.is-broken img { visibility: hidden; }

/* 3. עוד הצלחות: 4, ואז "תראה לי עוד הצלחות" (מועלם) */
.men-s02 .proof__grid > li:nth-child(n+5) { display: none; }
.men-s02 .proof__grid.is-open > li { display: block; }
@media (min-width: 1200px) { .men-s02 .proof__grid { grid-template-columns: repeat(4, 1fr); } }

/* 4. השינוי שלי: התמונות של טל בלי לחתוך את הפנים */
.s11__before, .s11__after { height: auto !important; }
.s11__before img, .s11__after img { height: auto !important; object-fit: contain !important; }

/* 4א. השטח הריק מעל הטופס: בדף הנשים המקטע הזה בגובה מסך מלא והתוכן נדחף לתחתית.
       אצלנו התוכן נמוך יותר, ונשאר חור. המקטע בגובה התוכן שלו */
.s16 { min-height: 0; }

/* 4ב. "מה עובר לך בראש": הגובה בדף הנשים בנוי ל 6 מחשבות, אצלנו יש 4.
       men.js מודד את הגובה האמיתי. בלי JavaScript נשאר הגובה של דף הנשים */

/* ============ כניסות בגלילה ============
   הכניסות של דף הנשים קיימות כאן (reveal, reveal--stagger, reveal--side), אבל שם התזוזה
   היא 8 פיקסלים בשליש שנייה, וכמעט לא רואים אותה. כאן היא קצת יותר ברורה ועדיין מהירה.
   מי שביקש פחות תנועה במכשיר לא מקבל אותן בכלל (הכלל של prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.is-in):not(.s06__scatter):not(.s08__known):not(.s11__before):not(.s11__after):not(.loop) { transform: translateY(26px); }
  .js .reveal.reveal--side:not(.is-in):not(.s06__scatter):not(.s08__known):not(.s11__before):not(.s11__after):not(.loop) { transform: translateX(34px); }
  .js .reveal.is-in:not(.s11__before):not(.s11__after) { transition: opacity .5s var(--ease-out) var(--d, 0ms), transform .6s var(--ease-out) var(--d, 0ms); }
  .js .reveal--stagger:not(.is-in) > * { transform: translateY(16px); }
  .js .reveal--stagger.is-in > * { transition: opacity .45s var(--ease-out) var(--sd, 0ms), transform .55s var(--ease-out) var(--sd, 0ms); }
  .reveal--stagger > :nth-child(6) { --sd: 225ms; }
  .reveal--stagger > :nth-child(7) { --sd: 270ms; }
  .reveal--stagger > :nth-child(n+8) { --sd: 315ms; }
}
/* רשת ביטחון: אם JavaScript לא רץ, או שהקובץ שלנו לא נטען, הכול מופיע ולא נשאר מוסתר */
html:not(.js) .reveal, html:not(.js) .reveal--stagger > *, html:not(.js) .enter, html:not(.js) .s06__scatter .s06__thought,
.men-noanim .reveal, .men-noanim .reveal--stagger > *, .men-noanim .enter, .men-noanim .s06__scatter .s06__thought,
.men-noanim .s11__before, .men-noanim .s11__after { opacity: 1 !important; transform: none !important; }

/* 5. מקום שמור לחלק האינטראקטיבי */
.men-slot { padding-block: 12px; }
.men-slot__box { max-width: var(--content); margin-inline: auto; border: 2px dashed var(--sky); border-radius: var(--r-card); background: var(--sky-tint); color: var(--sky-deep); font-family: var(--f-body); font-weight: 600; font-size: 20px; line-height: 30px; text-align: center; padding: 22px 18px; }

/* 6. שדה מלכודת לרובוטים: אדם לא רואה אותו ולא מגיע אליו */
.men-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* 7. כפתור נגישות, שמאל למעלה (בדף הנשים זה תוסף UserWay באותו מקום) */
.a11y-btn { position: fixed; top: 12px; left: 12px; z-index: 950; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: var(--sky); box-shadow: 0 4px 14px rgba(11,16,32,.25); display: grid; place-items: center; cursor: pointer; padding: 0; }
.a11y-btn svg { width: 28px; height: 28px; }
.a11y-btn:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; }
.a11y-panel { position: fixed; top: 68px; left: 12px; z-index: 951; width: min(300px, calc(100vw - 24px)); background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(11,16,32,.3); padding: 16px; direction: rtl; font-family: var(--f-body); }
.a11y-panel h2 { font-family: var(--f-head); font-size: 20px; line-height: 28px; margin: 0 0 8px; color: var(--ink); }
.a11y-panel button { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 46px; margin-top: 6px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-off); font: 600 17px/1.2 var(--f-body); color: var(--ink); cursor: pointer; }
.a11y-panel button[aria-pressed="true"] { background: var(--sky-deep); color: #fff; border-color: var(--sky-deep); }
.a11y-panel a { display: inline-flex; min-height: 44px; align-items: center; margin-top: 6px; color: var(--sky-deep); font-size: 17px; }
html.a11y-big body { zoom: 1.12; }
html.a11y-contrast body { filter: contrast(1.35); }
html.a11y-links a { text-decoration: underline !important; outline: 1px dashed currentColor; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; }
html.a11y-still .reveal, html.a11y-still .enter { opacity: 1 !important; transform: none !important; }

/* 8. דף התודה (העתק של fital.co.il/thank-you) */
.men-ty { min-height: 100svh; display: flex; flex-direction: column; }
.tyv { min-height: 100svh; background: var(--sky-deep); display: flex; align-items: flex-start; justify-content: center; padding: 48px var(--margin); box-sizing: border-box; }
.tyv__in { width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; }
.ty__brand { display: flex; justify-content: center; margin-bottom: 28px; }
.ty__brand a { display: block; width: 166px; }
.ty__brand img { display: block; width: 100%; height: auto; }
.state { flex: 1 1 0%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 72px var(--margin) 96px; }
.state__in { width: 100%; max-width: 720px; }
.state__mark { width: 88px; height: 88px; border-radius: 999px; background: var(--sky-tint); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.state__mark svg { width: 44px; height: 44px; }
.tyv__title { font-family: var(--f-head); font-weight: 800; color: var(--cream); font-size: 44px; line-height: 54px; text-align: center; text-wrap: balance; margin: 0 0 28px; }
.tyv__video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-media); overflow: hidden; background: #1a2340; }
.men-video-slot { display: grid; place-content: center; gap: 8px; text-align: center; color: var(--cream); font-family: var(--f-body); font-size: 20px; line-height: 28px; padding: 20px; }
.men-video-slot small { display: block; font-size: 16px; opacity: .75; }
.men-play { width: 64px; height: 64px; border-radius: 50%; background: rgba(241,240,235,.92); color: var(--sky-deep); display: grid; place-items: center; font-size: 24px; margin: 0 auto 6px; padding-right: 4px; }
.page__back { font-family: var(--f-body); font-weight: 600; font-size: 22px; line-height: 30px; color: var(--sky-deep); text-decoration: underline; text-underline-offset: 6px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; }
.page__back svg { width: 20px; height: 20px; }
.men-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 800; }
@media (max-width: 1199px) {
  .tyv { padding: 76px var(--margin) 36px; }
  .ty__brand { margin-bottom: 22px; }
  .ty__brand a { width: 133px; }
  .state__mark { width: 72px; height: 72px; margin-bottom: 16px; }
  .state__mark svg { width: 36px; height: 36px; }
  .tyv__title { font-size: 34px; line-height: 44px; margin-bottom: 22px; }
  .state { padding: 56px 24px 72px; }
}

/* ============ ערכים שבדף הנשים כתובים בתוך ה HTML ============
   מדיניות האבטחה של הדף לא מתירה style בתוך ה HTML (ספארי חוסם אותו), ולכן הם כאן */
.hero__logo { --d: 0ms; }
.hero__tal { --d: 60ms; }
.hero h1 > .enter:nth-child(1) { --d: 150ms; }
.hero h1 > .enter:nth-child(2) { --d: 220ms; }
.hero h1 > .enter:nth-child(3) { --d: 290ms; }
.hero__checks { --d: 320ms; }
.hero__cta-slot { --d: 800ms; }
.opt__side--good { --d: 120ms; }
.loop__slot:nth-child(1) { --a: 0deg;   --rf: 1.04; }
.loop__slot:nth-child(2) { --a: 60deg;  --rf: 0.86; }
.loop__slot:nth-child(3) { --a: 120deg; --rf: 1.07; }
.loop__slot:nth-child(4) { --a: 180deg; --rf: 0.84; }
.loop__slot:nth-child(5) { --a: 240deg; --rf: 1.00; }
.loop__slot:nth-child(6) { --a: 300deg; --rf: 0.90; }
.s12__card:nth-child(1) { --i: 0; }
.s12__card:nth-child(2) { --i: 1; }
.s12__card:nth-child(3) { --i: 2; }
.s12__card:nth-child(4) { --i: 3; }

/* הלוגו בתחתית: בפרופורציה הנכונה */
.s17__logo img { height: auto; object-fit: contain; }

/* דף התודה: הסרטון של טל במקום המסגרת הריקה */
.men-ty-reel { width: min(100%, 300px); margin-inline: auto; }
.men-ty-reel .s14b__play { border-radius: var(--r-media); }

/* לפני ואחרי של שלושת הגברים: במחשב לא רחב מדי, כדי שהזוג ייכנס במסך */
@media (min-width: 1200px) { .men-s14 .s14__row { max-width: 640px; margin-inline: auto; } }

/* דף התודה בלי סרטון: התוכן במרכז המסך */
.men-ty .tyv { align-items: center; min-height: 72svh; }
.tyv__lede { margin: 0; max-width: 520px; text-align: center; color: var(--sky-tint); font-family: var(--f-body); font-size: 22px; line-height: 34px; }
