/* ============================================================
   שימיפיקס — תיק עבודות
   כיוון עיצובי 1b: צבעוני ונועז
   ============================================================ */

:root {
  --cream: #f3efe6;
  --cream-2: #e9e4d8;
  --ink: #151833;
  --ink-2: #1c2044;
  --red: #e8365c;
  --gold: #ffcf5c;
  --text: #4a4a55;
  --text-soft: #6b6b74;
  --on-dark: #c7c8e0;
  --on-dark-soft: #8a8bb8;
  --line-light: rgba(21, 24, 51, 0.12);
  --line-dark: rgba(255, 255, 255, 0.1);
  --shell: 1360px;
  --pad: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Assistant", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Rubik", "Segoe UI", sans-serif;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a { color: var(--red); text-decoration: none; }
img { display: block; max-width: 100%; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--red);
  text-transform: none;
}

.rule { height: 1px; background: var(--line-light); }

/* ---------- שכבת גרעין ---------- */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- פס התקדמות גלילה ---------- */
.progress-track {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

/* ---------- ניווט ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(243, 239, 230, 0.78);
  border-bottom: 1px solid rgba(21, 24, 51, 0.08);
}
.nav--dark {
  background: rgba(21, 24, 51, 0.78);
  border-bottom-color: var(--line-dark);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 34px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.navlink {
  position: relative;
  color: var(--text);
  transition: color 0.2s ease;
}
.nav--dark .navlink { color: var(--on-dark-soft); }
.navlink::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--red);
  transition: width 0.25s var(--ease);
}
.navlink:hover::after,
.navlink[aria-current="page"]::after { width: 100%; }
.navlink[aria-current="page"] { color: var(--ink); }
.nav--dark .navlink[aria-current="page"] { color: #fff; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  padding: 16px 30px;
  border-radius: 14px;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -14px rgba(21, 24, 51, 0.5);
}
.btn__arrow { color: var(--gold); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 14px 28px;
}
.btn--ghost:hover { box-shadow: 0 18px 34px -16px rgba(21, 24, 51, 0.45); }

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: end;
  padding-block: 84px 0;
  position: relative;
}
.hero__title {
  font-size: clamp(38px, 6.4vw, 92px);
  font-weight: 900;
  line-height: 0.96;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--red); }
.hero__lede {
  font-size: 19px;
  line-height: 1.7;
  max-width: 480px;
  margin: 26px 0 0;
  font-weight: 500;
}
.hero__intro { animation: fadeUp 0.9s var(--ease) both; }

.stats {
  position: relative;
  border-inline-end: 1px solid var(--line-light);
  padding-inline-end: 40px;
  padding-bottom: 8px;
}
.stats__blob {
  position: absolute;
  top: -92px;
  inset-inline-start: -34px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ff7a8f, var(--red));
  box-shadow: 0 30px 60px -20px rgba(232, 54, 92, 0.45);
  animation: floaty 8s ease-in-out infinite;
  z-index: 0;
}
.stats__list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 20px;
}
.stat__num {
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  font-size: 52px;
  color: var(--ink);
  line-height: 1;
}
.stat__label { font-size: 14px; color: var(--text-soft); margin-top: 4px; }

/* ---------- כותרת פנימית ---------- */
.pagehead {
  padding-block: 66px 52px;
  animation: fadeUp 0.9s var(--ease) both;
}
.pagehead__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.pagehead h1 { font-size: clamp(38px, 5.5vw, 60px); font-weight: 900; }
.pagehead__meta {
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--on-dark-soft);
}
.pagehead__lede { max-width: 560px; margin: 18px 0 0; line-height: 1.7; }

/* ---------- מרקיזה ---------- */
.marquee {
  background: var(--ink);
  overflow: hidden;
  padding-block: 14px;
  white-space: nowrap;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeRTL 30s linear infinite;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--on-dark);
}
.marquee__track span { margin-inline: 22px; }
.marquee__track .dot:nth-child(even) { color: var(--gold); }

/* ---------- אזור כהה ---------- */
.dark {
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  padding-block: 90px;
}
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--gold); }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.section__head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.section__head h2 mark { background: none; color: var(--gold); }
.link-more {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--on-dark-soft);
}
.link-more:hover { color: #fff; }

/* ---------- רשת עבודות ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 24px;
}

.card {
  display: block;
  color: inherit;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: none;
  text-align: start;
  font: inherit;
}
.card__frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #20255c;
}
/* --light משנה רק את צבע הרקע; --contain משנה רק את אופן ההתאמה.
   לוגו על רקע שקוף מקבל את שניהם, לוגו בהיר-על-כהה רק את --contain. */
.card__frame--light { background: #fbfaf7; }
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card__frame--contain .card__img {
  object-fit: contain;
  padding: 11%;
}
.card:hover .card__img { transform: scale(1.045); }
.card__zoom {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(21, 24, 51, 0.72);
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  backdrop-filter: blur(6px);
}
.card:hover .card__zoom,
.card:focus-visible .card__zoom { opacity: 1; transform: scale(1); }
.card__bar {
  height: 2px;
  margin-top: 16px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__bar,
.card:focus-visible .card__bar { transform: scaleX(1); }
.card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px;
}
.card__title {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}
.card__idx { font-family: "Rubik", sans-serif; font-size: 12px; color: #7f80ac; }
.card__meta { font-size: 13px; color: var(--on-dark-soft); margin-top: 2px; }

/* ---------- אלבומים ---------- */
.album { margin-bottom: 68px; scroll-margin-top: 96px; }
.album:last-child { margin-bottom: 0; }
.album__head { margin-bottom: 28px; }
.album__head h2 {
  font-family: "Rubik", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: #fff;
  border-inline-start: 4px solid var(--gold);
  padding-inline-start: 14px;
}
.album__head p {
  color: var(--on-dark-soft);
  max-width: 620px;
  margin: 12px 0 0;
  padding-inline-start: 18px;
  line-height: 1.7;
}
.empty-note { color: var(--on-dark-soft); padding: 40px 0; text-align: center; }

/* סימון וידאו על כרטיס */
.card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 34px;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  background: rgba(21, 24, 51, 0.28);
  pointer-events: none;
  transition: background 0.3s var(--ease);
}
.card:hover .card__play { background: rgba(21, 24, 51, 0.1); }

.lightbox__video {
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 150px);
  border: 0;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.lightbox__video[hidden], .lightbox__img[hidden] { display: none; }

/* ---------- מסנן ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}
.chip {
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { background: rgba(255, 255, 255, 0.12); }
.chip[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.card[hidden] { display: none; }

/* ---------- שירותים ---------- */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: 62px 220px 1fr;
  gap: 24px;
  align-items: baseline;
  padding-block: 22px;
  border-bottom: 1px solid var(--line-dark);
}
.row:last-child { border-bottom: 0; }
.row__num {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #7f80ac;
  transition: color 0.2s ease, transform 0.3s var(--ease);
}
.row:hover .row__num { color: var(--red); transform: translateY(-2px); }
.row__name {
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}
.row__desc { color: var(--on-dark-soft); font-size: 15px; }

/* ---------- קיר הלוגואים ---------- */
/* פס מלא-רוחב שיוצא מה-shell, בדיוק כמו רצועת המרקיזה בדף הבית.
   שתי שורות רצות לכיוונים מנוגדים; כל שורה מכילה את אותה קבוצת לוגואים
   פעמיים, והאנימציה מזיזה בדיוק 50% — כך התפר נופל על תחילת העותק השני
   ואי אפשר לראות אותו. */
.logowall {
  position: relative;
  background: var(--ink);
  padding-block: 46px;
  overflow: hidden;
  /* ה-ltr כאן ולא על השורה: בהקשר RTL רצועה רחבה מהמסך נעגנת לקצה הימני
     וגולשת שמאלה, כך שהזזה שמאלה חושפת מיד חלל ריק — והשורה ההפוכה
     מתחילה ריקה לגמרי. עם ltr הרצועה נעגנת לשמאל וגולשת ימינה, וההזזה
     מגלגלת את העותק השני פנימה כמו שצריך. ללוגואים אין כיוון קריאה. */
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logowall__rows { display: flex; flex-direction: column; gap: 16px; }
.logowall__row {
  display: flex;
  /* בכוונה בלי gap: עם gap יש n-1 רווחים, וחצי מהרוחב נופל באמצע הרווח
     האחרון — כלומר translateX(-50%) מחטיא את תחילת העותק השני בחצי רווח
     והלולאה קופצת. מרווח בתור margin על כל אריח נספר n פעמים, ושני
     החצאים יוצאים זהים בדיוק. */
  width: max-content;
  animation: logoScroll 52s linear infinite;
}
.logowall__row--back { animation-duration: 64s; animation-direction: reverse; }
.logowall:hover .logowall__row,
.logowall:focus-within .logowall__row { animation-play-state: paused; }

/* display:contents — העותק השני משתתף באותו flex ובאותו gap, ובכל זאת
   אפשר להסתיר אותו כיחידה אחת כשאין אנימציה. */
.logowall__set { display: contents; }

.logowall__tile {
  flex: none;
  height: 96px;
  min-width: 112px;
  margin-inline-end: 16px;
  padding-inline: 20px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.logowall__tile img {
  height: 68px;
  width: auto;
  max-width: 205px;
  object-fit: contain;
  display: block;
}
.logowall__tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 36px -16px rgba(0, 0, 0, 0.8);
}

/* בלי אריחים: הלוגואים השקופים צפים ישר על הרקע הכהה. מתאים ללוגו
   בהיר; לוגו כהה פשוט ייעלם, ולכן זו בחירה בפאנל ולא ברירת מחדל. */
.logowall--noplates .logowall__tile {
  background: transparent;
  box-shadow: none;
}
.logowall--noplates .logowall__tile:hover {
  box-shadow: none;
  transform: translateY(-5px) scale(1.04);
}
.logostrip--noplates .logostrip__tile {
  background: transparent;
  border-color: transparent;
}

@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 860px) {
  .logowall { padding-block: 34px; }
  .logowall__tile { height: 70px; min-width: 104px; padding-inline: 16px; margin-inline-end: 12px; }
  .logowall__tile img { height: 44px; max-width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  /* בלי תנועה הפס הופך לרשת רגילה — והעותק הכפול, שקיים רק בשביל
     התפר, מוסתר כדי שלא ייראה כמו לוגו שהוכפל בטעות. */
  .logowall { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .logowall__row {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  .logowall__set--dupe { display: none; }
}

/* ---------- רצועת לוגואים סטטית ---------- */
/* לדף הבית: אותם לוגואים בלי אנימציה. רצועה נעה בתוך עמודת טקסט הייתה
   מנפחת את רוחב תא הגריד (min-width:auto מול תוכן ברוחב אלפי פיקסלים)
   וגוררת גלילה אופקית לכל הדף — וגם מרקיזה שנייה באותו עמוד היא הרבה. */
.logostrip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 2px;
}
.logostrip__tile {
  height: 62px;
  min-width: 76px;
  padding-inline: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.logostrip__tile img {
  height: 40px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  display: block;
}
.logostrip__tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px -14px rgba(21, 24, 51, 0.45);
}

/* ---------- לקוחות ---------- */
.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 8px;
}
.clients li {
  list-style: none;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  background: rgba(21, 24, 51, 0.05);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 8px 16px;
}
ul.clients { padding: 0; }

/* ---------- אודות ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
  padding-block: 84px 0;
  animation: fadeUp 0.9s var(--ease) both;
}
.about h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 900; line-height: 1.06; max-width: 620px; }
.about h1 em { font-style: normal; color: var(--red); }
.about__lede { font-size: 18px; line-height: 1.75; max-width: 560px; margin: 24px 0 0; }
.about__mark {
  background: var(--ink);
  border-radius: 18px;
  padding: 40px 36px;
  min-height: 300px;
  display: grid;
  place-items: center;
  box-shadow: 0 30px 60px -20px rgba(21, 24, 51, 0.35);
}
.about__mark img { width: 100%; height: auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step { border-top: 2px solid var(--ink); padding-top: 16px; }
.step__num {
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--red);
}
.step h3 { font-size: 20px; font-weight: 800; margin-top: 6px; }
.step p { font-size: 15px; color: var(--text-soft); margin: 6px 0 0; }

/* ---------- CTA ---------- */
.cta { padding-block: 90px; text-align: center; }
.cta h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-bottom: 10px; }
.cta h2 em { font-style: normal; color: var(--red); }
.cta p { margin: 0 auto 26px; max-width: 520px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- פוטר ---------- */
.footer { background: var(--ink); padding-block: 76px 40px; }
/* הפוטר כהה אבל אינו .dark — בלי ההצהרה הזו הכותרת יורשת את הכחול הכהה
   של h2 ונעלמת לגמרי על הרקע. */
.footer h2 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-bottom: 26px; }
.footer h2 mark { background: none; color: var(--gold); }
.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 22px;
  border-top: 1px solid var(--line-dark);
  padding-top: 26px;
}
.footer__links {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.footer__links a { color: var(--on-dark); }
.footer__links a:hover { color: var(--gold); }
.footer__logo { height: 26px; width: auto; opacity: 0.9; margin-bottom: 22px; }
.footer__fine { color: #5f60a0; font-size: 13px; }

/* ---------- לייטבוקס ---------- */
.lightbox__count {
  position: absolute;
  top: 24px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.lightbox__hint {
  position: absolute;
  inset-inline: 0;
  bottom: 22px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
  pointer-events: none;
}
.lightbox__hint kbd {
  font-family: "Rubik", sans-serif;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  padding: 1px 6px;
  margin-inline: 2px;
  font-size: 11px;
}
@media (max-width: 700px) { .lightbox__hint { display: none; } }

/* החלפת תמונה: הצללה קצרה במקום קפיצה. is-loading נדלק בזמן הפענוח
   ונכבה כשהתמונה החדשה מוכנה לצייר. */
.lightbox__img, .lightbox__video {
  transition: opacity 0.22s var(--ease);
}
.lightbox.is-loading .lightbox__img,
.lightbox.is-loading .lightbox__video { opacity: 0.25; }

.lightbox__spin {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--gold);
  animation: lbSpin 0.7s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lightbox.is-loading .lightbox__spin { opacity: 1; }
@keyframes lbSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .lightbox__spin { animation: none; }
  .lightbox__img, .lightbox__video { transition: none; }
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 40px 24px 24px;
  background: rgba(12, 14, 32, 0.94);
  backdrop-filter: blur(6px);
}
.lightbox[open] { display: grid; }
.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-height: 100%;
}
.lightbox__img {
  max-width: min(1100px, 92vw);
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.lightbox__cap { text-align: center; color: #fff; }
.lightbox__cap strong {
  display: block;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 17px;
}
.lightbox__cap span { font-size: 13px; color: var(--on-dark-soft); }
.lightbox__btn {
  position: absolute;
  top: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__close { inset-inline-end: 18px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 24px;
}
/* RTL: "הקודם" יושב בצד ימין (inline-start) ו"הבא" בצד שמאל — כיוון
   הקריאה. החצים הם ← / → שאינם עוברים היפוך דו־כיווני, בניגוד ל־‹ ›. */
.lightbox__prev { inset-inline-start: 18px; top: auto; bottom: 24px; transform: none; }
.lightbox__next { inset-inline-end: 18px; top: auto; bottom: 24px; transform: none; }

/* ---------- אנימציות ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes marqueeRTL {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- רספונסיבי ---------- */
@media (max-width: 1150px) {
  :root { --pad: 40px; }
  .hero { grid-template-columns: 1fr; gap: 44px; }
  .stats {
    border-inline-end: 0;
    padding-inline-end: 0;
    border-top: 1px solid var(--line-light);
    padding-top: 24px;
  }
  .stats__list { flex-direction: row; gap: 48px; margin-top: 0; }
  .stats__blob { display: none; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__mark { max-width: 420px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --pad: 24px; }
  body { font-size: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .row { grid-template-columns: 44px 1fr; }
  .row__desc { grid-column: 2; }
  .nav__links { gap: 20px; font-size: 13px; }
  .nav__logo img { height: 24px; }
  .dark { padding-block: 64px; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats__list { gap: 28px; }
  .stat__num { font-size: 40px; }
  .nav__links { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .progress-track, .marquee, .lightbox, .cta__actions { display: none !important; }
  body { background: #fff; }
  .dark { background: #fff; color: #000; }
  .dark h1, .dark h2, .dark h3, .card__title { color: #000; }
}
