/* ==========================================================================
   FIT & POWER — מערכת עיצוב
   פלטה: כתום המותג #F15A29 מהלוגו, אפור-פחם #363A3C, קרם #EFEAE7 מהמערכת שעות
   עיקרון: כותרות עברית כבדות בלי letter-spacing (זה שובר מילים בעברית),
   ה-tracking הרחב שמור לאותיות לטיניות ולתוויות קטנות בלבד.
   ========================================================================== */

/* ---------- 1. טוקנים ---------- */
:root {
  --orange: #F15A29;        /* צבע המותג — רקעים, קווים, גרפיקה (3:1 ✓), וטקסט על רקע כהה בלבד */
  --orange-btn: #C43D14;    /* רקע כפתורים: 5.22:1 עם טקסט לבן (המקורי נותן רק 3.37) */
  --orange-text: #B33A0E;   /* טקסט כתום על רקעים בהירים: 5.95:1 על לבן, עובר גם על קרם */
  --orange-deep: #D4441A;
  --orange-soft: #FDEDE6;

  --ink: #16181A;
  --ink-2: #363A3C;
  --ink-3: #5C6265;
  --ink-4: #667074;         /* היה #8A9094 (3.23:1) — הוכהה ל-5.08:1 על לבן */

  --cream: #EFEAE7;
  --paper: #FAF8F6;
  --line: #E2DCD7;
  --white: #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(22, 24, 26, .06);
  --shadow-md: 0 12px 32px -8px rgba(22, 24, 26, .14);
  --shadow-lg: 0 32px 64px -16px rgba(22, 24, 26, .22);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 10vw, 150px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* גרדינג אחיד לתצלומים: התמונות צולמו בטלפון בתאורות שונות (קרות/צהובות).
     חימום קל + מגע קונטרסט מיישרים את כולן לטמפרטורה אחת של המותג.
     תמיד filter: var(--grade) [ואז תוספות] — filter דורס, לא מצטבר. */
  --grade: saturate(1.06) contrast(1.04) sepia(.06) saturate(1.02);

  --font: "Heebo", "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --header-h: 76px;
}

/* ---------- 1.5 נגישות: עזרים ---------- */
/* טקסט לקוראי מסך בלבד */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* דילוג לתוכן: הטאב הראשון בעמוד, נגלה רק בפוקוס */
.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 50%;
  transform: translate(50%, -300%);
  z-index: 200;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 100px;
  box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease);
}
.skip-link:focus-visible {
  transform: translate(50%, 0);
  outline-offset: 2px;
}

/* עצירת כל התנועה האוטומטית (WCAG 2.2.2) — מופעל מכפתור התנועה */
html.anim-off *,
html.anim-off *::before,
html.anim-off *::after {
  animation-play-state: paused !important;
}
html.anim-off .hero__media video { display: none; }
html.anim-off .hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../video/hero-poster.jpg") center/cover no-repeat;
}

.motion-toggle {
  position: fixed;
  inset-block-end: 18px;
  inset-inline-end: 18px;
  z-index: 75;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(22, 24, 26, .82);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color .3s, transform .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .motion-toggle:hover { transform: scale(1.06); }
}
.motion-toggle:active { transform: scale(.92); }
.motion-toggle svg { width: 18px; height: 18px; }
.motion-toggle .ico-play { display: none; }
html.anim-off .motion-toggle .ico-pause { display: none; }
html.anim-off .motion-toggle .ico-play { display: block; }
@media (max-width: 900px) {
  .motion-toggle { inset-block-end: calc(78px + env(safe-area-inset-bottom)); }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* המגן מפני גרירה הצידה בטלפון. clip ולא hidden: hidden הופך את
     האלמנט ל-scroll container, וזה משנה את ההורה שמולו position:sticky
     מחושב — כלומר בדיוק המנגנון שהסיור בנוי עליו. clip חותך בלי ליצור
     קונטיינר. hidden נשאר כשורה ראשונה כ-fallback לדפדפנים ישנים. */
  overflow-x: hidden;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
/* <picture> עוטף תמונות תוכן (ראה scripts/responsive-images.mjs). display:contents
   מוציא אותו מהפריסה, כך שה-img נשאר הילד האפקטיבי של הגריד/פלקס שמעליו. */
picture { display: contents; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. טיפוגרפיה ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.06;
  color: var(--ink);
  letter-spacing: 0;              /* עברית: אפס tracking */
  text-wrap: balance;
}

.display {
  font-size: clamp(38px, 7.2vw, 92px);
  font-weight: 900;
  line-height: 1.02;
}
.h1 { font-size: clamp(32px, 5.4vw, 66px); font-weight: 900; line-height: 1.05; }
.h2 { font-size: clamp(27px, 3.6vw, 46px); }
.h3 { font-size: clamp(20px, 2vw, 27px); font-weight: 800; }

.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
  color: var(--ink-3);
  font-weight: 400;
  max-width: 62ch;
  text-wrap: pretty;
}

p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;          /* לטינית/תווית קצרה בלבד */
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
  flex: none;
}
.eyebrow--light { color: var(--orange); }
.section--ink .eyebrow, .cta-band .eyebrow { color: var(--orange); }

.accent { color: var(--orange-text); }
.muted { color: var(--ink-3); }

/* מספרים ולטינית בתוך משפט עברי: מבודדים כדי שלא יתהפכו */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- 4. פריסה ---------- */
.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.wrap--wide { width: min(1480px, 100% - var(--gutter) * 2); }
.wrap--narrow { width: min(820px, 100% - var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: #C9CDD0; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .lead { color: #A2A8AC; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head .lead { margin-top: 22px; }

.grid { display: grid; gap: clamp(18px, 2.2vw, 30px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 5. כפתורים ---------- */
.btn {
  --btn-bg: var(--orange-btn);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .3s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .16);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .5s var(--ease);
  z-index: -1;
}
/* הוברים רק להתקנים עם עכבר — במגע iOS "מדביק" hover אחרי טאפ */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(241, 90, 41, .7); }
  .btn:hover::after { transform: scaleX(1); transform-origin: left center; }
}
/* משוב לחיצה: מהיר בכניסה (.12s), משוחרר בחזרה דרך הטרנזישן הרגיל */
.btn:active { transform: translateY(0) scale(.965); transition-duration: .12s, .45s, .3s; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1.5px solid rgba(22, 24, 26, .2);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { box-shadow: none; border-color: var(--ink); }
}
.btn--ghost::after { background: rgba(22, 24, 26, .06); }

.btn--onDark {
  --btn-bg: rgba(255, 255, 255, .1);
  --btn-fg: #fff;
  border: 1.5px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (hover: hover) and (pointer: fine) {
  .btn--onDark:hover { box-shadow: none; border-color: #fff; }
}
.btn--onDark::after { background: rgba(255, 255, 255, .16); }

.btn--lg { padding: 19px 38px; font-size: 17px; }
.btn--wa { --btn-bg: #25D366; --btn-fg: var(--ink); font-weight: 800; }
.btn--wa::after { background: rgba(255, 255, 255, .25); }
@media (hover: hover) and (pointer: fine) {
  .btn--wa:hover { box-shadow: 0 12px 26px -10px rgba(37, 211, 102, .75); }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--ink);
  transition: gap .35s var(--ease), color .3s;
}
.link-arrow svg { transition: transform .45s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { color: var(--orange-text); gap: 14px; }
  .link-arrow:hover svg { transform: translateX(-4px); }
}

/* ---------- 6. הדר ---------- */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease), height .45s var(--ease);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 246, .88);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0;
  transition: opacity .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck::before { opacity: 1; border-bottom-color: var(--line); }
.header.is-stuck { height: 66px; }

.header__inner {
  position: relative;
  z-index: 2;
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  position: relative;
  display: block;
  width: clamp(104px, 11vw, 132px);
  flex: none;
  line-height: 0;
}
.brand img { width: 100%; transition: opacity .4s var(--ease); }
.brand .logo-dark { position: absolute; inset-block-start: 0; inset-inline-start: 0; opacity: 0; }
.header.is-stuck .brand .logo-light { opacity: 0; }
.header.is-stuck .brand .logo-dark { opacity: 1; }
body.nav-open .brand .logo-light { opacity: 0; }
body.nav-open .brand .logo-dark { opacity: 1; }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); }
.nav a {
  position: relative;
  font-size: 15.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  padding-block: 6px;
  transition: color .3s;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: inline-start; }
.nav a[aria-current="page"] { color: #fff; }

.header.is-stuck .nav a,
.header.is-solid .nav a { color: var(--ink-2); }
.header.is-stuck .nav a[aria-current="page"],
.header.is-solid .nav a[aria-current="page"] { color: var(--ink); }

.header__cta { display: flex; align-items: center; gap: 12px; flex: none; }
.header__cta .btn { padding: 12px 22px; font-size: 15px; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .3);
  position: relative;
  flex: none;
  transition: transform .15s var(--ease);
}
.burger:active { transform: scale(.88); }
.header.is-stuck .burger, .header.is-solid .burger { border-color: rgba(22, 24, 26, .18); }
.burger span {
  position: absolute;
  inset-inline: 13px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .45s var(--ease), opacity .25s;
}
.header.is-stuck .burger span, .header.is-solid .burger span { background: var(--ink); }
.burger span:nth-child(1) { inset-block-start: 17px; }
.burger span:nth-child(2) { inset-block-start: 23px; }
.burger span:nth-child(3) { inset-block-start: 29px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body.nav-open .burger { border-color: rgba(22, 24, 26, .18); }
body.nav-open .burger span { background: var(--ink); }

/* מגירת ניווט למובייל */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--paper);
  padding: calc(var(--header-h) + 30px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: circle(0% at calc(100% - 44px) 38px);
  transition: clip-path .7s var(--ease);
  pointer-events: none;
  overflow-y: auto;
}
body.nav-open .drawer { clip-path: circle(150% at calc(100% - 44px) 38px); pointer-events: auto; }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.drawer__nav a {
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 800;
  color: var(--ink);
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .25s;
}
body.nav-open .drawer__nav a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms + 180ms); }
.drawer__nav a[aria-current="page"] { color: var(--orange); }
.drawer__foot { display: grid; gap: 16px; padding-top: 30px; }
.drawer__foot .btn { width: 100%; }
.drawer__meta { font-size: 15px; color: var(--ink-3); display: grid; gap: 6px; }

/* ---------- 7. הירו ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--header-h) + 40px) clamp(96px, 14vh, 168px);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 26s var(--ease-io) infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.14); }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 11, 12, .94) 4%, rgba(10, 11, 12, .5) 46%, rgba(10, 11, 12, .58) 100%),
    linear-gradient(to left, rgba(10, 11, 12, .5), transparent 62%);
}
/* בלי width כאן: השוליים מגיעים מ-.wrap שיושב על אותו אלמנט */
.hero__inner { position: relative; z-index: 2; }

/* כניסת ההירו: כל אלמנט עולה בהשהיה קטנה, הכותרת מגיעה מהמסכה שלה */
.hero__inner > *:not(h1) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.hero__inner > .eyebrow { transition-delay: .1s; }
.hero__inner > .hero__sub { transition-delay: .45s; }
.hero__inner > .btn-row { transition-delay: .58s; }
.hero__inner > .hero__badges { transition-delay: .7s; }
.is-ready .hero__inner > *:not(h1) { opacity: 1; transform: none; }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero .eyebrow::before { background: var(--orange); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero__sub {
  color: rgba(255, 255, 255, .84);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  max-width: 50ch;
  margin-top: 26px;
}
.hero__sub b { color: #fff; font-weight: 700; }
.hero .btn-row { margin-top: 38px; }

/* חשיפת שורות כותרת */
.reveal-line { display: block; overflow: hidden; padding-block: .04em; }
.reveal-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 150ms);
}
.is-ready .reveal-line > span { transform: none; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero__badges li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .8);
  font-size: 14.5px;
  font-weight: 500;
}
.hero__badges li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

.scroll-cue {
  position: absolute;
  inset-block-end: 26px;
  inset-inline-start: var(--gutter);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .74);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: cue 2.2s var(--ease-io) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.35); opacity: .4; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* ---------- 8.5 הירו מגיב לגלילה ----------
   בגלילה הראשונה הווידאו מתכווץ לתוך מסגרת מעוגלת והתוכן צף מעלה ונמוג.
   CSS scroll-driven animations — רץ על ה-compositor, אפס JS. דפדפן בלי
   תמיכה (@supports) פשוט מקבל הירו סטטי, שזה בדיוק מה שהיה עד עכשיו. */
@supports (animation-timeline: scroll()) {
  .hero__media {
    overflow: hidden;
    will-change: transform;
    animation: heroShrink linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
  }
  @keyframes heroShrink {
    to { transform: scale(.93); border-radius: var(--r-xl); }
  }
  .hero__inner {
    animation: heroContentAway linear both;
    animation-timeline: scroll(root);
    animation-range: 0 65vh;
  }
  @keyframes heroContentAway {
    to { opacity: 0; transform: translateY(-44px); }
  }
  .scroll-cue {
    animation: heroCueFade linear both;
    animation-timeline: scroll(root);
    animation-range: 0 22vh;
  }
  @keyframes heroCueFade {
    to { opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero__media, .hero__inner, .scroll-cue { animation: none; }
    .scroll-cue { opacity: 1; }
  }
  /* כפתור עצירת התנועה — חזרה להירו סטטי מלא, לא הקפאה באמצע */
  html.anim-off .hero__media,
  html.anim-off .hero__inner,
  html.anim-off .scroll-cue { animation: none; }
}

/* ---------- 8.7 מסך פתיחה ממותג ----------
   כתם כתום "חי" שמתגבש למונוגרמה של המותג ואז משחרר את העמוד.
   מוצג רק כש-html.with-loader (סקריפט ה-head: פעם בסשן, בלי reduced-motion).
   הלוגו האמיתי משמש כ-mask — אפס עיוות של המותג, אפס משקל נוסף. */
.loader { display: none; }
html.with-loader .loader {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  /* חגורת ביטחון: גם אם ה-JS מת אחרי שהוסיף את הקלאס — העמוד משתחרר */
  animation: loaderGone .55s var(--ease) 3.4s forwards;
}
html.with-loader.loader-done .loader { animation: loaderGone .55s var(--ease) forwards; }
@keyframes loaderGone {
  to { clip-path: inset(0 0 100% 0); visibility: hidden; }
}
/* כפתור עצירת התנועה משבית את המסך כליל (paused היה תוקע אותו פתוח) */
html.anim-off .loader { display: none; }

.loader__stage { position: relative; width: 128px; height: 128px; }
.loader__stage > * { position: absolute; inset: 0; background: var(--orange); }

/* פאזה 1: הכתם — נולד קטן, מתגלגל בין צורות אורגניות */
.loader__blob {
  inset: 10px;
  animation:
    blobMorph .95s var(--ease-io) both,
    blobOut .32s var(--ease) .95s forwards;
}
@keyframes blobMorph {
  0%   { border-radius: 50%; transform: scale(.35) rotate(0deg); opacity: 0; }
  22%  { opacity: 1; }
  40%  { border-radius: 62% 38% 55% 45% / 55% 47% 53% 45%; transform: scale(1.06) rotate(13deg); }
  70%  { border-radius: 38% 62% 45% 55% / 46% 53% 47% 54%; transform: scale(.92) rotate(-11deg); }
  100% { border-radius: 45% 55% 58% 42% / 57% 43% 57% 43%; transform: scale(1) rotate(5deg); }
}
@keyframes blobOut {
  to { transform: scale(.68); filter: blur(9px); opacity: 0; }
}

/* פאזה 2: הכתם מתגבש למונוגרמה (blur מגשר על ה-crossfade) ומתייצב באלסטיות */
.loader__mark {
  -webkit-mask: url("../img/mark.png") center / contain no-repeat;
  mask: url("../img/mark.png") center / contain no-repeat;
  opacity: 0;
  overflow: hidden;
  animation:
    markIn .4s var(--ease) 1.02s both,
    markSettle .55s cubic-bezier(.34, 1.56, .64, 1) 1.42s both,
    markBreathe 2s var(--ease-io) 2.1s infinite alternate;
}
@keyframes markIn {
  from { opacity: 0; transform: scale(.7); filter: blur(11px); }
  to   { opacity: 1; transform: scale(1.06); filter: blur(0); }
}
@keyframes markSettle { from { transform: scale(1.06); } to { transform: scale(1); } }
/* אם הטעינה מתארכת — נשימה עדינה במקום קיפאון */
@keyframes markBreathe { from { transform: scale(1); } to { transform: scale(1.035); } }

/* פאזה 3: ברק חולף בתוך אותיות הלוגו (ה-mask חותך גם את ה-::after) */
.loader__mark::after {
  content: "";
  position: absolute;
  inset: -25%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .6) 50%, transparent 60%);
  transform: translateX(95%);
  animation: markShine .65s var(--ease) 1.62s both;
}
@keyframes markShine { to { transform: translateX(-95%); } }

/* הבמה כולה מתרוממת עם היציאה */
html.with-loader.loader-done .loader__stage {
  transition: transform .5s var(--ease), opacity .4s var(--ease);
  transform: translateY(-30px);
  opacity: 0;
}

/* הירו פנימי לעמודים משניים */
.pagehero {
  position: relative;
  background: var(--ink);
  padding-block: calc(var(--header-h) + clamp(56px, 9vw, 110px)) clamp(56px, 9vw, 110px);
  overflow: hidden;
  isolation: isolate;
}
.pagehero__media { position: absolute; inset: 0; z-index: -2; }
.pagehero__media img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
.pagehero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 11, 12, .93), rgba(10, 11, 12, .62));
}
.pagehero h1 { color: #fff; max-width: 16ch; }
.pagehero .lead { color: rgba(255, 255, 255, .8); margin-top: 22px; }
.pagehero .eyebrow { color: #fff; }
.pagehero .btn-row { margin-top: 34px; }

/* הירו ללא תצלום: אין תמונות אמיתיות של הקפיטריה, ולא נשתמש בתמונות שאינן שלהם */
.pagehero--flat {
  background:
    radial-gradient(120% 100% at 90% 0%, rgba(241, 90, 41, .28), transparent 58%),
    linear-gradient(200deg, #1E2124 0%, #16181A 55%, #0E1011 100%);
}
.pagehero--flat::after {
  content: "";
  position: absolute;
  inset-block-start: -30%;
  inset-inline-start: -6%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 90, 41, .16), transparent 68%);
  z-index: -1;
}

/* הירו FIT-BAR: סרטון המותג כרקע. גבוה מהירו השטוח כדי לתת לסרטון במה,
   והכיתוב יושב בתחתית. הסקרים מרוכז למטה בלבד — הסרטון עצמו כהה ברובו,
   וסקרים מלא היה הורג את הצבעים. */
.pagehero--fitbar {
  min-height: clamp(480px, 72svh, 760px);
  display: grid;
  align-content: end;
}
.pagehero__media--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pagehero--fitbar .pagehero__media--video::after {
  background: linear-gradient(to top, rgba(10, 11, 12, .85) 0%, rgba(10, 11, 12, .35) 40%, transparent 62%);
}
/* הפעלה מחדש של סרטון ההירו — מופיע רק אחרי שהסרטון מסתיים.
   inset-inline-end ב-RTL = שמאל למעלה, מתחת לסרגל העליון. */
.video-replay {
  position: absolute;
  inset-block-start: calc(var(--header-h) + 16px);
  inset-inline-end: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(22, 24, 26, .55);
  color: #fff;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.video-replay:hover { background: rgba(241, 90, 41, .85); border-color: transparent; }
.video-replay[hidden] { display: none; }
.video-replay svg { width: 19px; height: 19px; }

/* ---------- 8. רצועת מספרים ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stat { background: var(--white); padding: clamp(26px, 3vw, 40px) clamp(18px, 2.4vw, 32px); }
.stat__num {
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat__num small { font-size: .42em; font-weight: 800; color: var(--orange-text); }
.stat__label { margin-top: 10px; font-size: 15px; color: var(--ink-3); font-weight: 500; }

/* מרים את הרצועה אל תוך ההירו */
.stats-lift { margin-top: calc(clamp(48px, 6vw, 84px) * -1); position: relative; z-index: 5; }

/* ---------- 9. מרקי ---------- */
.marquee {
  overflow: hidden;
  background: var(--orange);
  padding-block: 16px;
  border-block: 1px solid rgba(0, 0, 0, .08);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee__track span {
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(15px, 1.5vw, 19px);
  display: flex;
  align-items: center;
  gap: 40px;                 /* הרווח נשען על padding כדי שהלולאה תהיה רציפה */
  padding-inline-end: 40px;
  white-space: nowrap;
}
.marquee__track span::after {
  content: "";
  width: 7px; height: 7px;
  background: rgba(0, 0, 0, .35);
  border-radius: 50%;
  flex: none;
}
@keyframes slide { to { transform: translateX(50%); } }

/* ---------- 10. פיצול נשים/גברים ---------- */
.fork { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 26px); }
.fork__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(400px, 46vw, 580px);
  padding: clamp(26px, 3vw, 44px);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.fork__card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .7s var(--ease);
  filter: var(--grade);
}
.fork__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 11, 12, .92) 6%, rgba(10, 11, 12, .32) 58%, rgba(10, 11, 12, .28));
  transition: background .6s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .fork__card:hover img { transform: scale(1.07); }
  .fork__card:hover::after {
    background: linear-gradient(to top, rgba(150, 44, 12, .9) 4%, rgba(10, 11, 12, .42) 60%, rgba(10, 11, 12, .3));
  }
}
.fork__tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 11, 12, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: auto;
}
.fork__card h3 { color: #fff; font-size: clamp(26px, 3.2vw, 40px); font-weight: 900; }
.fork__card p { color: rgba(255, 255, 255, .82); margin-top: 12px; max-width: 34ch; }
.fork__card .link-arrow { color: #fff; margin-top: 22px; }
.fork__card .link-arrow:hover { color: #fff; }
.fork__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.fork__list li {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 100px;
  padding: 5px 13px;
}

/* ---------- 10.5 דיפטיך המתחמים ----------
   שני חצאים שמתרחבים בהובר — ההתרחבות עצמה ממחישה את "שני עולמות נפרדים".
   ההתרחבות דרך grid-template-columns (אנימטבילי בכל הדפדפנים המודרניים);
   :has() נדרש רק לאפקט — בלעדיו נשארים שני חצאים שווים, שזה fallback תקין. */
.fork--duo {
  padding-inline: clamp(10px, 1.4vw, 20px);
  max-width: 1760px;
  margin-inline: auto;
  margin-block-start: clamp(34px, 4vw, 56px);
  transition: grid-template-columns .75s var(--ease);
}
.fork--duo .fork__card {
  min-height: clamp(440px, 72vh, 700px);
}
/* פוקוס מקלדת — אותה במה כמו הובר, פלוס טבעת ברורה */
.fork--duo .fork__card:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .fork--duo:has(.fork__card:first-of-type:is(:hover, :focus-visible)) { grid-template-columns: 1.6fr 1fr; }
  .fork--duo:has(.fork__card:last-of-type:is(:hover, :focus-visible)) { grid-template-columns: 1fr 1.6fr; }

  /* הצד שלא נבחר שוקע — עמעום + הסרת צבע קלה */
  .fork--duo .fork__card img { transition: transform 1.1s var(--ease), filter .7s var(--ease); }
  .fork--duo:has(.fork__card:is(:hover, :focus-visible)) .fork__card:not(:hover, :focus-visible) img {
    filter: var(--grade) brightness(.6) saturate(.8);
  }

  /* חשיפה פרוגרסיבית: הצ'יפים והקישור נפתחים רק כשהצד נבחר.
     grid-template-rows 0fr→1fr הוא הדרך לאנמט "גובה תוכן" בלי JS. */
  .fork--duo .fork__reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(12px);
    transition: grid-template-rows .6s var(--ease), opacity .45s var(--ease), transform .6s var(--ease);
  }
  .fork--duo .fork__card:is(:hover, :focus-visible) .fork__reveal {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: none;
  }
}
.fork__reveal > div { overflow: hidden; }

/* מגע (אין הובר): הכל גלוי, ומשוב לחיצה עדין */
.fork--duo .fork__card { transition: transform .45s var(--ease); }
.fork--duo .fork__card:active { transform: scale(.985); }

/* בלי תנועה — בלי התרחבות ובלי זום; התוכן גלוי תמיד */
@media (prefers-reduced-motion: reduce) {
  .fork--duo { transition: none; }
  .fork--duo .fork__card img { transition: none; }
  .fork--duo .fork__reveal { grid-template-rows: 1fr; opacity: 1; transform: none; transition: none; }
}
html.anim-off .fork--duo { transition: none; }
html.anim-off .fork--duo .fork__reveal { grid-template-rows: 1fr; opacity: 1; transform: none; transition: none; }

/* ---------- 11. כרטיסי יתרון ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(24px, 2.6vw, 36px);
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
/* גרדיאנט "זריחה" שעולה מתחתית הכרטיס בהובר.
   האזור שמאחורי הטקסט (התחתית) נשאר כתום עמוק — 5.22:1 עם טקסט לבן,
   והדעיכה לשקוף קורית רק מעל גוש הטקסט, כדי לא לשבור AA. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--orange-btn) 0%,
    var(--orange-btn) 58%,
    var(--orange-deep) 72%,
    var(--orange) 82%,
    rgba(241, 90, 41, 0) 100%
  );
  opacity: 0;
  transform: translateY(16%);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
/* התוכן חייב לשבת מעל שכבת הגרדיאנט */
.card__ico, .card h3, .card p { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    z-index: 2;
  }
  .card:hover::before { opacity: 1; transform: translateY(0); }
  .card:hover h3 { color: #fff; }
  .card:hover p { color: rgba(255, 255, 255, .93); }
}
/* במגע: הבזק הגרדיאנט בזמן הלחיצה עצמה */
.card:active {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  z-index: 2;
}
.card:active::before { opacity: 1; transform: translateY(0); }
.card:active h3 { color: #fff; }
.card:active p { color: rgba(255, 255, 255, .93); }
.card__ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.card__ico svg { width: 23px; height: 23px; }
.card h3 { font-size: 19.5px; margin-bottom: 9px; transition: color .4s var(--ease); }
.card p { font-size: 15.5px; color: var(--ink-3); line-height: 1.62; transition: color .4s var(--ease); }

/* בלי תנועה (מערכת ההפעלה או כפתור העצירה) — הגרדיאנט עדיין מופיע,
   אבל בלי ריחוף וקפיצה: רק מעבר צבע שקט */
@media (prefers-reduced-motion: reduce) {
  .card:hover, .card:active { transform: none; }
  .card::before { transform: none; }
}
html.anim-off .card:hover, html.anim-off .card:active { transform: none; }
html.anim-off .card::before { transform: none; }

/* ---------- 12. סקשן מפוצל תמונה/טקסט ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 84px);
  align-items: center;
}
.split--flip .split__media { order: 2; }
.split__media { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.split__media img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; transition: transform 1.2s var(--ease); filter: var(--grade); }
@media (hover: hover) and (pointer: fine) {
  .split__media:hover img { transform: scale(1.04); }
}
/* רעלה חמה בגוון המותג — soft-light משנה טמפרטורה בלי לכבות את התמונה */
.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(241, 90, 41, .32), rgba(212, 68, 26, .10) 46%, rgba(22, 24, 26, .18));
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.split__badge {
  position: absolute;
  z-index: 1;  /* מעל רעלת הגרדינג */
  inset-block-end: 20px;
  inset-inline-start: 20px;
  background: rgba(250, 248, 246, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 13px 20px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.split__badge b { color: var(--orange-text); }

.ticks { display: grid; gap: 13px; margin-top: 28px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.ticks li svg { flex: none; width: 21px; height: 21px; color: var(--orange); margin-top: 2px; }

/* ---------- 13. מערכת שעות ---------- */
.sched__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-3);
  transition: border-color .3s var(--ease), color .3s var(--ease),
              background-color .3s var(--ease), transform .15s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { border-color: var(--ink-4); color: var(--ink); }
}
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* צ'יפים על רקע כהה */
.section--ink .chip {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .17);
  color: #C9CDD0;
}
@media (hover: hover) and (pointer: fine) {
  .section--ink .chip:hover { border-color: var(--orange); color: #fff; }
}

.sched {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  overflow: hidden;
}
.sched__day + .sched__day { border-top: 1px solid var(--line); }
.sched__day { display: grid; grid-template-columns: 168px 1fr; }
.sched__dayname {
  padding: 22px 24px;
  background: var(--cream);
  font-weight: 800;
  color: var(--ink);
  font-size: 17px;
  border-inline-end: 1px solid var(--line);
}
.sched__dayname small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.sched__rows { display: grid; }
.sched__row {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 15px 24px;
  transition: background .3s;
}
.sched__row + .sched__row { border-top: 1px dashed var(--line); }
.sched__row:hover { background: var(--paper); }
.sched__time {
  font-weight: 800;
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: start;
}
.sched__name { font-weight: 600; color: var(--ink-2); font-size: 16px; }
.sched__who { font-size: 14px; color: var(--ink-4); white-space: nowrap; }
.sched__kind {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  margin-inline-start: 8px;
  vertical-align: 1px;
}
.sched__kind--studio { background: var(--orange-soft); color: var(--orange-text); }
.sched__kind--pilates { background: #E8EFF2; color: #2C6076; }
.sched__empty { padding: 18px 24px; color: var(--ink-4); font-size: 15px; }

/* רשימת הציוד בעמוד הגברים (section--ink). הכתום מותר כאן כטקסט כי הרקע כהה. */
.kit {
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 0 44px;
  border-top: 1px solid rgba(239, 234, 231, .14);
}
.kit__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 21px 0;
  border-bottom: 1px solid rgba(239, 234, 231, .14);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 700;
  color: var(--cream);
}
.kit__n {
  flex: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;   /* ספרות לטיניות — tracking מותר */
  color: var(--orange);
  direction: ltr;
  font-variant-numeric: tabular-nums;
}

/* כרטיס "השיעור הבא" — נבנה ב-JS מעל הטבלה.
   כהה בכוונה: הוא צריך לנצח את הטבלה הקרמית שמתחתיו במבט ראשון. */
.next-class {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-md);
  padding: 20px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-md);
}
.next-class:empty { display: none; }
.next-class__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;   /* תווית קטנה — כאן tracking מותר */
  color: var(--orange);
  width: 100%;
}
.next-class__main { display: flex; align-items: baseline; gap: 16px; flex: 1 1 auto; min-width: 0; }
.next-class__time {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  direction: ltr;         /* "19:00" — ספרות ונקודתיים לא מתהפכים ב-RTL */
}
.next-class__body { display: grid; gap: 3px; min-width: 0; }
.next-class__name { font-size: 18px; font-weight: 700; }
.next-class__meta { font-size: 14.5px; color: #B9B2AD; }
.next-class__jump {
  flex: none;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cream);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
  transition: color .2s var(--ease);
}
.next-class__jump:hover { color: var(--orange); }

@media (max-width: 560px) {
  .next-class { padding: 18px 20px; }
  .next-class__time { font-size: 30px; }
  .next-class__jump { width: 100%; }
}

.sched__day.is-today .sched__dayname { background: var(--orange-soft); }
.sched__today {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: var(--orange-btn);
  padding: 3px 9px;
  border-radius: 100px;
  vertical-align: 2px;
}

.sched__note {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--ink-3);
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.sched__note svg { flex: none; width: 18px; height: 18px; color: var(--orange); margin-top: 3px; }

/* ---------- 14. גלריה ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(140px, 15vw, 210px);
  gap: clamp(10px, 1.2vw, 16px);
  grid-auto-flow: dense;   /* בלי זה פריטי ה-span משאירים חורים בגריד */
}
.gallery figure {
  overflow: hidden;
  border-radius: var(--r-md);
  position: relative;
  background: var(--cream);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); filter: var(--grade); }
@media (hover: hover) and (pointer: fine) {
  .gallery figure:hover img { transform: scale(1.06); }
}
.gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(241, 90, 41, .32), rgba(212, 68, 26, .10) 46%, rgba(22, 24, 26, .18));
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* ---------- 15. אקורדיון שאלות ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  text-align: start;
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 700;
  color: var(--ink);
  transition: color .3s;
}
.faq__q:hover { color: var(--orange-text); }
.faq__ico {
  position: relative;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  transition: background-color .45s var(--ease), border-color .45s var(--ease);
}
.faq__ico::before, .faq__ico::after {
  content: "";
  position: absolute;
  width: 13px; height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .45s var(--ease), background .3s;
}
.faq__ico::after { transform: rotate(90deg); }
.faq__item.is-open .faq__ico { background: var(--orange); border-color: var(--orange); }
.faq__item.is-open .faq__ico::before,
.faq__item.is-open .faq__ico::after { background: #fff; }
.faq__item.is-open .faq__ico::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 4px 24px; color: var(--ink-3); font-size: 16.5px; max-width: 68ch; }

/* ---------- 16. טופס ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.2vw, 44px);
  box-shadow: var(--shadow-md);
}

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 15px 17px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 16px;
  color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 108px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(241, 90, 41, .12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* שגיאות ולידציה */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #B3261E;
  box-shadow: 0 0 0 4px rgba(179, 38, 30, .1);
}
.field__error {
  display: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #B3261E;             /* 6.4:1 על לבן */
}
.field.has-error .field__error { display: block; }

.form__note { font-size: 13.5px; color: var(--ink-4); }
.form__ok {
  display: none;
  padding: 15px 18px;
  border-radius: var(--r-sm);
  background: #E9F7EE;
  color: #1B6B3A;
  font-weight: 600;
  font-size: 15px;
}
.form.is-sent .form__ok { display: block; }

/* ---------- 17. פס יצירת קשר ---------- */
/* תיבות הסכמה. יעד המגע הוא כל השורה ולא הריבוע בלבד — ריבוע 18px באצבע
   הוא מקור תסכול, וכאן הוא חוסם שליחה. */
.field--check { margin-top: 4px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
  padding: 6px 0;
}
.check input {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  accent-color: var(--orange-btn);
  cursor: pointer;
}
.check a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 2px; }
.field--check.has-error .check { color: var(--ink-2); }
.field--check.has-error .check input { outline: 2px solid #B3261E; outline-offset: 2px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
/* קישורי המסמכים המשפטיים בפוטר — נשברים לשורה משלהם במובייל */
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.info-list { display: grid; gap: 4px; }
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.info-item:last-child { border-bottom: 0; }
.info-item__ico {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
}
.info-item__ico svg { width: 20px; height: 20px; }
.info-item h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.info-item p, .info-item a { font-size: 16px; color: var(--ink-3); line-height: 1.55; }
.info-item a:hover { color: var(--orange-text); }
.info-item .ltr { direction: ltr; display: inline-block; }

/* ---------- 18. באנר סיום ---------- */
.cta-band {
  position: relative;
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(44px, 6vw, 88px) clamp(28px, 5vw, 76px);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(241, 90, 41, .5), transparent 66%);
  z-index: -1;
  filter: blur(10px);
}
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(255, 255, 255, .74); margin-top: 18px; max-width: 54ch; font-size: 17.5px; }
.cta-band .btn-row { margin-top: 34px; }

/* ---------- 18.5 חתימת הפוטר ----------
   הוורדמארק ענק לפני שורת הזכויות — סוגר את העמוד בביטחון.
   בדפדפנים עם scroll-driven animations הוא נבנה מקווי-מתאר למילוי
   (לבן + & כתום = הלוגו) תוך כדי שנכנסים אליו; אחרת סטטי ומלא. */
.footer__sig {
  font-weight: 900;
  font-size: clamp(58px, 11.5vw, 168px);
  line-height: .95;
  letter-spacing: .01em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  color: rgba(250, 248, 246, .94);
  margin-top: clamp(48px, 7vw, 96px);
}
.footer__sig span { color: var(--orange); -webkit-text-stroke-color: rgba(241, 90, 41, .45); }
@supports (animation-timeline: view()) {
  .footer__sig {
    -webkit-text-stroke: 1.5px rgba(250, 248, 246, .22);
    animation: sigFill linear both;
    animation-timeline: view();
    animation-range: entry 30% entry 100%;
  }
  @keyframes sigFill {
    from { color: rgba(250, 248, 246, 0); }
    to   { color: rgba(250, 248, 246, .94); }
  }
  /* ה-& תמיד מלא בכתום — עוגן המותג שהאותיות נבנות סביבו */
  @media (prefers-reduced-motion: reduce) {
    .footer__sig { animation: none; color: rgba(250, 248, 246, .94); }
  }
  html.anim-off .footer__sig { animation: none; color: rgba(250, 248, 246, .94); }
}

/* ---------- 19. פוטר ---------- */
.footer { background: var(--ink); color: #8E9498; padding-block: clamp(56px, 7vw, 88px) 0; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
.footer__brand img { width: 148px; margin-bottom: 20px; }
.footer__brand p { font-size: 15.5px; color: #8E9498; max-width: 32ch; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
/* אייקונים חברתיים. 44px הוא יעד המגע המינימלי — האייקון עצמו קטן יותר.
   הסלקטור מוקדם ב-.footer כי `.footer ul { display:grid }` גובר בספציפיות
   על `.social` לבדו והיה עורם את האייקונים אנכית. */
.footer .social { display: flex; gap: 12px; margin-top: 22px; list-style: none; padding: 0; }
.social__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(239, 234, 231, .2);
  color: #C6CBCE;                       /* 6.9:1 על --ink */
  transition: color .25s var(--ease), border-color .25s var(--ease),
              background-color .25s var(--ease), transform .15s var(--ease);
}
.social__link:active { transform: scale(.9); }
.social__link svg { width: 21px; height: 21px; }
.social__link:hover { color: var(--ink); background: var(--orange); border-color: var(--orange); }
.footer ul { display: grid; gap: 11px; }
.footer a { font-size: 15.5px; color: #8E9498; transition: color .3s; }
.footer a:hover { color: var(--orange); }
.footer__hours { font-size: 15px; line-height: 1.85; }
.footer__hours b { color: #fff; font-weight: 600; }
.footer__bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13.5px;
}

/* ---------- 20. פס פעולה דביק במובייל ---------- */
.dock {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 70;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 246, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .55s var(--ease);
}
.dock.is-in { transform: none; }
.dock .btn { flex: 1; padding: 14px 12px; font-size: 15px; }

/* ---------- 21. חשיפה בגלילה ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: calc(var(--d, 0) * 85ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.965); }
[data-reveal="scale"].is-in { transform: none; }

/* כניסות מהצד — גיוון לקצב הגלילה. הכלל: הכיוון עוקב אחרי הפריסה,
   לא אקראי. שורת מכשיר שהתמונה שלה מימין נכנסת מימין; חצאי split
   נכנסים זה לקראת זה. ‎40px ולא 26 — תנועה אופקית נבלעת בעין יותר
   מאנכית וצריכה מעט יותר דרך. reduced-motion מטופל ב-main.js
   (is-in מיידי לכולם), אז הווריאציות יורשות את ההגנה. */
/* ההזזה תחומה לשוליים: 40px קבועים חרגו ב-20px מעבר לקצה ב-390
   (נתפס ע"י test-next-class — scrollWidth סופר גם תוכן חתוך), ואלמנט
   שממתין לחשיפה ישב מחוץ למסך. clamp שומר אותה בתוך ה-gutter בכל רוחב. */
[data-reveal="start"] { transform: translateX(clamp(16px, 3vw, 40px)); }
[data-reveal="end"] { transform: translateX(calc(clamp(16px, 3vw, 40px) * -1)); }

/* ---------- 22. רספונסיביות ---------- */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  /* במובייל ההדר נשאר לוגו + המבורגר. הקריאות לפעולה חיות במגירה ובפס התחתון. */
  .nav, .header__cta .btn { display: none; }
  .burger { display: block; }
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .fork { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .dock { display: flex; }
  /* הפס הדביק מכסה את סוף הפוטר בגלילה מלאה */
  .footer__bottom { padding-block-end: 86px; }
  .sched__day { grid-template-columns: 1fr; }
  .sched__dayname {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px 18px;
  }
  .sched__dayname small { margin-top: 0; }
  .sched__row { grid-template-columns: 68px 1fr; gap: 12px; padding: 13px 18px; }
  .sched__who { grid-column: 2; white-space: normal; margin-top: -6px; }
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; }
  .gallery .wide { grid-column: span 2; }
  .field--row { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; padding-block-end: clamp(56px, 9vh, 88px); }
  .hero__badges { gap: 8px 18px; margin-top: 30px; padding-top: 20px; }
  /* רצועת המספרים נשענת פנימה על ההירו. במובייל צריך פחות משיכה ויותר ריווח,
     אחרת היא כמעט נוגעת בכפתורים. */
  .pagehero { padding-block: calc(var(--header-h) + 44px) 78px; }
  .stats-lift { margin-top: calc(clamp(20px, 3.5vw, 34px) * -1); }
  .btn-row .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .cta-band { border-radius: var(--r-lg); }
}

/* ---------- 23. העדפת תנועה מופחתת ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-line > span { transform: none; }
  .hero__media video, .hero__media img { animation: none; }
}

/* ---------- 24. הדפסה ---------- */
@media print {
  .header, .dock, .drawer, .scroll-cue, .marquee { display: none !important; }
  body { background: #fff; }
}

/* ---------- 25. שלושת המכשירים (men.html) ----------
   שורות מתחלפות ולא רשת של שלושה: התצלומים אופקיים (3:2), וברשת הם היו
   יורדים לרוחב שבו אי אפשר להבחין במה שהתיאור מדבר עליו — המשטח המתכוונן,
   שתי האחיזות, ריפודי הירכיים. בשורה רחבה כל תצלום מקבל חצי מסך.

   ההיפוך מגיע מ-:nth-child ולא ממחלקה בכל article, כדי שהוספת מכשיר רביעי
   בעתיד תמשיך את הריתמוס לבד. */

.machines { display: grid; gap: clamp(40px, 6vw, 88px); margin-block-start: clamp(38px, 5vw, 64px); }

.machine {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.machine:nth-child(even) .machine__media { order: 2; }

.machine__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.machine__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: var(--grade);        /* אותו גרדינג כמו כל תצלום באתר */
  transition: transform .7s var(--ease);
}
@media (hover: hover) {
  .machine:hover .machine__media img { transform: scale(1.03); }
}

.machine__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--orange-text);
  margin-block-end: 10px;
}
.machine__body h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 14px;
}
.machine__body p {
  color: var(--ink-2);
  margin: 0;
  max-width: 46ch;
}

@media (max-width: 760px) {
  /* בטלפון התצלום תמיד ראשון. ההיפוך היה שולח אותו לתחתית בכל שורה
     שנייה, ואז הטקסט מתאר מכשיר שעוד לא ראו. */
  .machine { grid-template-columns: 1fr; gap: 18px; }
  .machine:nth-child(even) .machine__media { order: 0; }
}

/* קישור בתוך שורת טקסט. הקו התחתון קבוע ולא רק בהובר — קישור שנראה
   כמו טקסט רגיל עד שמרחפים עליו לא קיים במגע. */
.link-inline {
  color: var(--orange-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.section--ink .link-inline { color: var(--orange); }

/* ---------- 26. לייטבוקס ----------
   הלוגיקה ב-main.js (הסקשן האחרון). כאן הבמה בלבד. */

/* כפתור הפתיחה עוטף את התצלום ויורש את הגאומטריה שלו — הוא חייב
   להתנהג בדיוק כמו התמונה שהוא מחליף, אחרת הגריד של הגלריה נשבר. */
.lightbox__open {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.lightbox__open > picture,
.lightbox__open > img { width: 100%; height: 100%; }
.lightbox__open:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;                       /* מעל ההדר (90) והמגירה (80) */
  display: flex;
  flex-direction: column;
  background: rgba(10, 11, 12, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }

.lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;                 /* המחוות שלנו, לא של הדפדפן */
  min-height: 0;
}
.lightbox__stage img {
  max-width: min(96vw, 1500px);
  max-height: 84svh;
  border-radius: var(--r-md);
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.lightbox__close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  inset-inline-start: 14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(22, 24, 26, .72);
  color: #fff;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .14); }
.lightbox__close:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.lightbox__cap {
  margin: 0;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

/* הערת הכשרות ב-FIT-BAR — הוראת ליז: באותיות קטנות */
/* שורת המטא של FIT-BAR: תג הכשרות בולט (לקהל הזה זה שיקול, לא הערת
   שוליים) ושעות הפתיחה כצ'יפים — במקום שתי שורות טקסט קטנות. */
.bar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.bar-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.bar-chip svg { width: 17px; height: 17px; color: var(--orange-text); flex: none; }
.bar-chip--kosher {
  background: var(--orange-soft);
  border-color: rgba(241, 90, 41, .35);
  color: var(--orange-text);
  font-weight: 700;
  font-size: 15px;
}

/* לוח השיעורים כקובץ (הכרעת ליז 31.8): תמונה ברוחב קריא, ממורכזת,
   עם צל עדין — נראית כמו פוסטר תלוי ולא כמו תמונה שנזרקה לעמוד. */
.sched-file { max-width: 760px; margin-inline: auto; }
.sched-file figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
}
.sched-file img { width: 100%; display: block; }

/* ---- צ'יפים נושאיים: אינטראקציה כתומה ----
   הצ'יפים בסקשן "שיעורי הסטודיו" הם כפתורים אמיתיים מ-31.8. ההובר
   מאחורי (hover:hover) — במגע הובר "נדבק" אחרי ההקשה. הצבע הוא
   --orange-text (‎5.95:1 על לבן) ולא כתום המותג, שנופל מ-AA בטקסט. */
.chips--topics .chip { cursor: pointer; }
@media (hover: hover) {
  .chips--topics .chip:hover {
    border-color: var(--orange);
    color: var(--orange-text);
    background: var(--orange-soft);
  }
}
.chips--topics .chip:active {
  transform: scale(.95);
  border-color: var(--orange);
  color: var(--orange-text);
  background: var(--orange-soft);
}
.chips--topics .chip:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* שורה תואמת לנושא שנבחר: פס כתום בצד וגוון רך — מודגש בלי לצעוק */
.sched__row.is-topic {
  background: var(--orange-soft);
  box-shadow: inset 3px 0 0 var(--orange);
}

/* שעות ה-FIT-BAR — שורת עובדה שקטה מתחת להערת הכשרות */
/* טופס: הרמז ליד תווית האימייל ושורת היידוע לפי סעיף 11 לחוק הגנת הפרטיות */
.field__opt { font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.form__notice {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 4px 0 2px;
}
