/*
 * עיצוב דף הנחיתה – רך ומעומעם (Soft / Muted): רקע אפרפר עדין במקום לבן בוהק,
 * כרטיסים לבנים שבולטים בעדינות מעליו, טקסט פחם במקום שחור. הצבעים והמידות מוגדרים כמשתנים כאן למעלה.
 * עיצוב המחשבון נמצא בנפרד ב-calculator/calculator.css.
 *
 * ניגודיות: טקסט רץ בגוון slate-600/700 ומעלה (‏7:1 ומעלה על לבן – רמת AAA),
 * כפתור ראשי: טקסט לבן על כחול-טורקיז כהה (מעל 5:1).
 *
 * שכבות (z-index): תוכן 0–10 · סרגל עליון וכפתורים צפים 30 · חלון המחשבון 50.
 */
:root {
  --bg: #f8fafc;            /* slate-50 */
  --bg-soft: #f1f5f9;       /* slate-100 – סקשנים מתחלפים ופוטר */
  --surface: #ffffff;
  --surface-2: #f1f5f9;     /* slate-100 */
  --border: rgba(226, 232, 240, 0.6); /* slate-200/60 – גבול דקיק */
  --border-strong: #cbd5e1; /* slate-300 */
  --text: #1e293b;          /* slate-800 – כותרות, פחם ולא שחור */
  --text-2: #475569;        /* slate-600 – טקסט רץ */
  --muted: #475569;         /* slate-600 – טקסט משני, עדיין AAA */
  --accent: #0e7490;        /* cyan-700 – טקסט מודגש על לבן */
  --accent-soft: #ecfeff;   /* cyan-50 */
  --primary: linear-gradient(135deg, #0e7490, #1d4ed8);
  --primary-hover: linear-gradient(135deg, #155e75, #1e40af);
  --brand-gradient: linear-gradient(135deg, #22d3ee, #3b82f6); /* ללוגו בלבד */
  --dark: #0b1220;
  --focus: 0 0 0 3px rgba(29, 78, 216, 0.15);
  --shadow-sm: 0 4px 20px -4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px -8px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.22);
  --radius: 18px;
  --container: 1200px;
  --header-h: 72px;
  --font: "Heebo", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  /* גרדיאנט עדין מאוד לכל אורך הדף – לא לבן אחיד ובוהק */
  background: linear-gradient(to bottom, #f8fafc 0%, rgba(241, 245, 249, 0.75) 50%, #f8fafc 100%), #f8fafc;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* אין גלילה אופקית לעולם (clip – בלי ליצור אזור גלילה חדש) */
  overflow-x: hidden;
  overflow-x: clip;
}
body.modal-open { overflow: hidden; }

h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--text); }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 24px; }

.eyebrow {
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.gradient-text {
  background: var(--primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.content-error {
  margin: 0;
  padding: 14px 20px;
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  color: #991b1b;
  text-align: center;
}

/* ---------- כפתורים ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { background: #e2e8f0; color: #475569; border-color: transparent; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-sm { padding: 9px 18px; font-size: 0.92rem; }
.btn-lg { padding: 16px 32px; font-size: 1.08rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px -6px rgba(29, 78, 216, 0.55); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); box-shadow: 0 10px 24px -8px rgba(29, 78, 216, 0.6); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: #94a3b8; background: var(--surface-2); }
.btn-outline { background: var(--surface); border-color: rgba(14, 116, 144, 0.45); color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(-4px); }
.btn:focus-visible,
.float-cta:focus-visible,
.quick-btn:focus-visible,
.quick-toggle:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---------- כותרת עליונה ---------- */
/* מעל ה-Hero (תמונה כהה) הסרגל שקוף עם טקסט לבן; אחרי גלילה – לבן עם טקסט כהה */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  /* גם לפני גלילה יש לטקסט הלבן גיבוי כהה עדין, לא משנה איזו תמונה ב-Hero */
  background: linear-gradient(to bottom, rgba(11, 18, 32, 0.55), rgba(11, 18, 32, 0));
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 100%; }

.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; direction: ltr; }
.logo-word {
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-tag { margin-top: 3px; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.75); transition: color 0.25s; }
.site-header.is-scrolled .logo-tag, .logo-footer .logo-tag { color: var(--muted); }
/* על רקע בהיר – גרסה כהה יותר של צבעי המותג, כדי שהלוגו יהיה קריא */
.site-header.is-scrolled .logo-word, .logo-footer .logo-word { background-image: linear-gradient(135deg, #0891b2, #2563eb); }

.main-nav { display: flex; gap: 28px; margin-inline-start: auto; }
.main-nav a { color: rgba(255, 255, 255, 0.88); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover { color: #fff; }
.site-header.is-scrolled .main-nav a { color: var(--text-2); }
.site-header.is-scrolled .main-nav a:hover { color: var(--accent); }

/* המבורגר ותפריט מובייל – מוצגים רק במסכים צרים (ראו רספונסיביות) */
.menu-toggle, .mobile-menu { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 72px;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero-kiosk.webp") center / cover no-repeat;
}
/* שכבת כיסוי כהה מתחת לטקסט (צד ימין ב-RTL), כדי שהכיתוב יהיה קריא תמיד – גם אם מחליפים תמונה */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.78) 42%, rgba(11, 18, 32, 0.35) 100%),
    linear-gradient(to top, rgba(11, 18, 32, 0.7) 0%, transparent 40%);
}
.hero-inner { position: relative; }
.hero h1 { max-width: 760px; font-size: clamp(2.3rem, 5.2vw, 4.2rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.hero h1 .gradient-text { display: block; background: linear-gradient(135deg, #67e8f9, #93c5fd); -webkit-background-clip: text; background-clip: text; }
.hero .eyebrow { color: #67e8f9; }
.hero-sub { max-width: 560px; margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e2e8f0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); color: #fff; backdrop-filter: blur(6px); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 32px 0 0; padding: 0; list-style: none; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: #e2e8f0; }
.hero-trust svg {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(103, 232, 249, 0.18);
  fill: none;
  stroke: #67e8f9;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- מקטעים ---------- */

.section { padding: 104px 0; }
.section-alt { background: rgba(241, 245, 249, 0.6); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head-start { margin: 0; text-align: start; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.015em; }
.section-sub { margin-top: 14px; font-size: 1.08rem; color: var(--muted); }
.center-cta { margin-top: 48px; text-align: center; }

/* כרטיס בסיסי – רקע לבן, גבול דק וצל רך */
.product-card, .step, .benefit, .testimonial {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* ---------- הוכחה חברתית: פס לוגואים נע ---------- */

.clients {
  padding: 52px 0 60px;
  border-bottom: 1px solid var(--border);
  background: rgba(241, 245, 249, 0.45);
}
.clients-title {
  margin: 0 auto 30px;
  padding-inline: 24px;
  max-width: 720px;
  text-align: center;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 500;
  color: var(--muted);
}

/* הקצוות נמוגים לרקע, כך שהלוגואים "נכנסים" ו"יוצאים" בעדינות */
.marquee {
  overflow: hidden;
  /* בכיוון RTL הפס (הרחב מהמסך) היה מתיישר לימין, וחצי מהמסך היה מתרוקן תוך כדי תנועה */
  direction: ltr;
  touch-action: pan-y; /* החלקה אנכית על הפס גוללת את הדף כרגיל */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

/* הפס עצמו מסודר משמאל לימין ונע שמאלה – כלומר תנועה מימין לשמאל */
.marquee-track {
  display: flex;
  width: max-content;
  direction: ltr;
  padding-block: 6px; /* מקום לצל ולהרמה במעבר עכבר */
  animation: marquee var(--marquee-duration, 60s) linear infinite;
}
/* עצירה במעבר עכבר – רק במכשירים עם עכבר; במגע הפס לא "נתקע" אחרי נגיעה */
@media (hover: hover) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0 8px; /* חצי מהרווח בכל צד, כדי שהמעבר בין העותקים יהיה אחיד */
  list-style: none;
}

/* כרטיס לבן ללוגו; לוגו לבן (needs-dark) מקבל כרטיס כחול-כהה, לפי ההנחיות של חבילת הלוגואים */
.marquee-item {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 190px;
  height: 92px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  direction: rtl;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.marquee-item.needs-dark { background: #222834; border-color: #222834; }
.marquee-item:hover { transform: translateY(-2px); border-color: #94a3b8; box-shadow: var(--shadow-md); }

/* לוגו: מונוכרום כברירת מחדל, הצבעים המקוריים במעבר עכבר */
.marquee-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 0.3s, opacity 0.3s;
}
.marquee-item:hover img { filter: none; opacity: 1; }
.marquee-item:not(.has-logo) img,
.marquee-item.has-logo .marquee-name { display: none; }

/* שם החברה במקום לוגו חסר */
.marquee-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  color: var(--text-2);
  transition: color 0.3s;
}
.marquee-item.needs-dark .marquee-name { color: #e2e8f0; }
.marquee-item:hover .marquee-name { color: var(--accent); }

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

@media (max-width: 600px) {
  .clients { padding: 24px 0 26px; }
  .clients-title { margin-bottom: 14px; font-size: 0.9rem; }
  .marquee-group { gap: 8px; padding: 0 4px; }
  .marquee-item { width: 116px; height: 56px; padding: 6px 10px; border-radius: 12px; }
  .marquee-name { font-size: 0.85rem; }
  .marquee {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  }
}

/* מי שביקש פחות תנועה: הפס נעצר ואפשר לגלול בו ידנית */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* ---------- קטלוג ---------- */

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; }
.product-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.product-img { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--surface-2); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.product-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.product-body h3 { font-size: 1.2rem; }
.product-body p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.product-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}
.product-price { font-size: 0.9rem; color: var(--muted); }
.product-price strong { font-size: 1.15rem; color: var(--text); }

/* ---------- תהליך ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 32px 28px; }
.step:hover { box-shadow: var(--shadow-md); }
.step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
}
.step h3 { font-size: 1.25rem; }
.step p { margin-top: 10px; color: var(--muted); }

/* ---------- יתרונות ---------- */

.why-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.benefit { padding: 26px; }
.benefit:hover { box-shadow: var(--shadow-md); }
.benefit-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid #cffafe;
}
.benefit-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit h3 { font-size: 1.1rem; }
.benefit p { margin-top: 8px; font-size: 0.95rem; color: var(--muted); }

/* ---------- המלצות ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial { position: relative; display: flex; flex-direction: column; margin: 0; padding: 28px 26px 24px; }
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* מירכאות גדולות ועדינות ברקע */
.testimonial::before {
  content: "”";
  position: absolute;
  top: 6px;
  left: 22px;
  font-size: 5.5rem;
  line-height: 1;
  font-weight: 800;
  color: #e0f2fe;
  pointer-events: none;
}
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testimonial-stars svg { width: 18px; height: 18px; fill: #e2e8f0; }
.testimonial-stars svg.is-on { fill: #f59e0b; }
.testimonial blockquote {
  position: relative;
  flex: 1;
  margin: 0 0 22px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-2);
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial figcaption strong { display: block; font-size: 0.98rem; color: var(--text); }
.testimonial figcaption small { display: block; font-size: 0.85rem; color: var(--muted); }
.testimonial-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }

/* מובייל: גלילה אופקית עם עצירה על כל כרטיס */
@media (max-width: 700px) {
  .testimonials {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 14px;
    margin-inline: -16px;
    padding: 4px 16px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .testimonials::-webkit-scrollbar { display: none; }
  .testimonial { scroll-snap-align: center; padding: 20px 18px 18px; }
  .testimonial blockquote { margin-bottom: 16px; font-size: 0.96rem; }
}

/* נקודות לקרוסלה (נוצרות ב-site.js) – רק במובייל */
.testimonial-dots { display: none; }
@media (max-width: 700px) {
  .testimonial-dots { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
  .testimonial-dots button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
  .testimonial-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--border-strong); transition: width 0.25s, background 0.25s; }
  .testimonial-dots button[aria-current="true"]::before { width: 22px; background: var(--accent); }
  .testimonial-dots button:focus-visible { outline: none; }
  .testimonial-dots button:focus-visible::before { box-shadow: var(--focus); }
}

/* ---------- גלריה ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 14px;
}
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
/* כיתוב על תמונה: רצועה כהה מתחתיו כדי שיהיה קריא על כל תמונה */
.gallery figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(11, 18, 32, 0.88), transparent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
}
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* ---------- הנעה לפעולה אחרונה ---------- */

.final-cta { padding: 104px 0; }
.final-cta-inner {
  position: relative;
  overflow: hidden;
  padding: 72px 24px;
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(34, 211, 238, 0.28), transparent 65%),
    linear-gradient(135deg, #0b1220, #172554);
  box-shadow: var(--shadow-lg);
}
.final-cta h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; color: #fff; }
.final-cta p { margin: 14px 0 32px; font-size: 1.1rem; color: #e2e8f0; }
.final-cta .btn-primary { background: #fff; color: var(--text); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); }
.final-cta .btn-primary:hover { background: #ecfeff; color: var(--text); }

/* ---------- פוטר ---------- */

/* מרווח תחתון גדול: הכפתורים הצפים יושבים כאן ולא מסתירים את פרטי הקשר */
/* סרגל תחתון קומפקטי: לוגו · פרטי קשר · זכויות יוצרים בשורה אחת.
   כשהפוטר נכנס למסך הכפתורים הצפים נעלמים (site.js), כך שאין צורך בשטח ריק בשבילם */
.site-footer { padding: 18px 0; border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; }
.logo-footer .logo-word { font-size: 1.3rem; }
.logo-footer .logo-tag { font-size: 0.48rem; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.footer-contact a { color: var(--text-2); text-decoration: none; font-weight: 500; }
.footer-contact a:hover { color: var(--accent); }
.footer-social { display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.footer-social svg { width: 17px; height: 17px; }
.footer-copy { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }

/* הכפתורים הצפים מפנים את המקום כשמגיעים לפוטר */
body.footer-in-view .float-cta,
body.footer-in-view .quick-contact { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- כפתור צף (חישוב עלות) ---------- */

/* בצד ימין – כפתורי הפנייה המהירה יושבים בצד שמאל */
.float-cta {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  box-shadow: 0 12px 28px -10px rgba(29, 78, 216, 0.65);
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
}
.float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-cta:hover { background: var(--primary-hover); transform: translateY(-2px); }
.float-cta:active { transform: scale(0.98); }
.float-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: pulse 2.6s infinite;
}
.float-cta-total { padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.35); }
  70% { box-shadow: 0 0 0 14px rgba(29, 78, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); }
}

/* ---------- פנייה מהירה: כפתור צף מתקפל (Speed Dial) ---------- */
/* סגור: כפתור עגול אחד. פתוח (מעבר עכבר בדסקטופ / לחיצה במובייל): הכפתורים קופצים כלפי מעלה בזה אחר זה */

.quick-contact {
  position: fixed;
  left: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  transition: opacity 0.2s;
}
.quick-contact[hidden] { display: none; }

.quick-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quick-toggle:hover { box-shadow: 0 14px 34px -8px rgba(29, 78, 216, 0.45); }
.quick-toggle:active { transform: scale(0.95); }
.quick-toggle svg { grid-area: 1 / 1; width: 26px; height: 26px; transition: opacity 0.2s ease, transform 0.25s ease; }
.quick-icon-close { opacity: 0; transform: rotate(-90deg); }

/* הרשימה ממוקמת מעל הכפתור (absolute), כך שבמצב סגור היא לא תופסת שטח ולא נפתחת במעבר עכבר.
   ה-padding התחתון מגשר על הרווח לכפתור, כדי שמעבר העכבר לא יישבר בדרך למעלה */
.quick-list {
  position: absolute;
  left: 2px;
  bottom: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  pointer-events: none;
}
.quick-list .quick-btn {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.85);
  transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s linear 0.25s, box-shadow 0.2s ease;
}

.quick-contact.is-open .quick-list { pointer-events: auto; }
.quick-contact.is-open .quick-btn {
  opacity: 1;
  visibility: visible;
  transform: none;
  /* מדורג: הכפתור הקרוב לכפתור הראשי (‎--i=0‎) מופיע ראשון */
  transition: opacity 0.2s ease calc(var(--i) * 45ms), transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) calc(var(--i) * 45ms), visibility 0s, box-shadow 0.2s ease;
}
.quick-contact.is-open .quick-icon-open { opacity: 0; transform: rotate(90deg); }
.quick-contact.is-open .quick-icon-close { opacity: 1; transform: none; }
.quick-contact.is-open .quick-btn span { opacity: 1; transform: translate(0, -50%); transition-delay: calc(var(--i) * 45ms + 80ms); }

/* דסקטופ: נפתח במעבר עכבר (ההתנהגות זהה למצב is-open) */
@media (hover: hover) and (pointer: fine) {
  .quick-contact:hover .quick-list { pointer-events: auto; }
  .quick-contact:hover .quick-btn {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease calc(var(--i) * 45ms), transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) calc(var(--i) * 45ms), visibility 0s, box-shadow 0.2s ease;
  }
  .quick-contact:hover .quick-icon-open { opacity: 0; transform: rotate(90deg); }
  .quick-contact:hover .quick-icon-close { opacity: 1; transform: none; }
  .quick-contact:hover .quick-btn span { opacity: 1; transform: translate(0, -50%); transition-delay: calc(var(--i) * 45ms + 80ms); }
}

/* עיגולים קומפקטיים עם תווית טקסט לידם */
.quick-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}
.quick-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.quick-btn:active { transform: scale(0.96); }
.quick-btn svg { width: 24px; height: 24px; }
.quick-btn span {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translate(-6px, -50%);
  transition: opacity 0.2s, transform 0.2s;
}
.quick-btn:hover span, .quick-btn:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.quick-whatsapp { background: #15803d; }          /* ירוק כהה – טקסט לבן קריא (5:1) */
.quick-whatsapp:hover { background: #166534; }
.quick-phone { background: var(--primary); }
.quick-instagram { background: linear-gradient(45deg, #f09433, #dc2743 45%, #bc1888 75%, #7b2fbf); }
.quick-instagram:hover { filter: saturate(1.15) brightness(1.05); }
.quick-mail { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.quick-mail:hover { background: var(--surface-2); }
/* כשחלון המחשבון פתוח – הכפתורים הצפים נעלמים ולא חוסמים לחיצות */
body.modal-open .float-cta,
body.modal-open .quick-contact { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- חלון המחשבון ---------- */

.modal { position: fixed; inset: 0; z-index: 50; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s;
}
.modal-panel {
  position: absolute;
  inset: 3vh 3vw;
  max-width: 1240px;
  margin: 0 auto;
  overflow: hidden;
  overflow: clip; /* לא ניתן לגלילה מקוד – ראו הערה ב-calculator.css */
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.45);
  opacity: 0;
  transform: translateY(16px) scale(0.99);
  transition: opacity 0.2s, transform 0.2s;
}
.modal-panel:focus { outline: none; }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-panel { opacity: 1; transform: none; }

/* ---------- רספונסיביות ---------- */

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  /* כותרת קומפקטית: לוגו · כפתור מחשבון · המבורגר */
  :root { --header-h: 60px; }
  .header-inner { gap: 10px; }
  .main-nav { display: none; }
  .header-inner .btn { margin-inline-start: auto; }
  .logo-word { font-size: 1.45rem; }
  .logo-tag { font-size: 0.5rem; }
  .header-cta { min-height: 40px; padding: 8px 14px; font-size: 0.85rem; }

  .menu-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
  .menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.2s; }
  .menu-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
  .site-header.is-scrolled .menu-toggle,
  .site-header.menu-open .menu-toggle { background: var(--surface-2); color: var(--text); }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* כשהתפריט פתוח הכותרת אטומה, גם מעל ה-Hero */
  .site-header.menu-open { background: var(--bg); border-bottom-color: var(--border); }
  .site-header.menu-open .logo-tag { color: var(--muted); }
  .site-header.menu-open .logo-word { background-image: linear-gradient(135deg, #0891b2, #2563eb); }

  .mobile-menu {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: flex;
    flex-direction: column;
    padding: 4px 16px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s; }
  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 6px;
    border-bottom: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-menu a[hidden] { display: none; }
  .mobile-menu a:active { color: var(--accent); }
  .mobile-menu .mobile-menu-call {
    justify-content: center;
    margin-top: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
  }

  .steps { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .footer-inner { flex-wrap: wrap; justify-content: center; }

  .hero { align-items: flex-end; min-height: 92svh; }
  /* במובייל הטקסט מכסה את כל התמונה – כיסוי אחיד וטשטוש עדין */
  .hero-bg::after {
    background: linear-gradient(to top, rgba(11, 18, 32, 0.95) 15%, rgba(11, 18, 32, 0.6) 70%, rgba(11, 18, 32, 0.45));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
}

@media (max-width: 700px) {
  .modal-panel { inset: 0; border-radius: 0; border: 0; }
}

/* ===== מובייל: פשטות, מינימום גלילה, הכל בהישג האגודל ===== */
@media (max-width: 600px) {
  .container { padding-inline: 16px; }

  /* Hero ממורכז וקומפקטי – כפתור המחשבון מעל קו הגלילה */
  .hero { min-height: auto; padding: calc(var(--header-h) + 28px) 0 36px; text-align: center; }
  .hero .eyebrow { margin-bottom: 10px; font-size: 0.8rem; }
  .hero h1 { margin-inline: auto; font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .hero-sub { margin: 14px auto 0; font-size: 1rem; }
  .hero-ctas { flex-direction: column; gap: 10px; margin-top: 22px; }
  .hero-ctas .btn { width: 100%; padding: 14px 20px; font-size: 1.02rem; }
  .hero-trust { justify-content: center; gap: 6px 16px; margin-top: 20px; }
  .hero-trust li { font-size: 0.85rem; }

  /* מקטעים */
  .section { padding: 56px 0; }
  .eyebrow { margin-bottom: 8px; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: clamp(1.5rem, 6.6vw, 1.85rem); }
  .section-sub { margin-top: 10px; font-size: 0.98rem; }
  .center-cta { margin-top: 24px; }
  .center-cta .btn { width: 100%; }

  /* קטלוג: שני כרטיסים קומפקטיים בשורה – תמונה, שם, מחיר וכפתור */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card { border-radius: 14px; }
  .product-img { aspect-ratio: 16 / 10; }
  .product-tag { display: none; }
  .product-body { padding: 10px 12px 12px; }
  .product-body h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .product-body p { display: none; }
  .product-foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 8px; }
  .product-price { font-size: 0.78rem; }
  .product-price strong { font-size: 1rem; }
  .product-foot .btn { width: 100%; min-height: 40px; padding: 8px 10px; font-size: 0.85rem; }

  /* איך זה עובד: שלושה שלבים אנכיים עם קו מקשר */
  .steps { gap: 0; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 0 0 22px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .step:last-child { padding-bottom: 0; }
  .step:hover { box-shadow: none; }
  .step-num { position: relative; z-index: 1; grid-row: span 2; width: 40px; height: 40px; margin: 0; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); font-size: 0.9rem; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 44px;
    bottom: 4px;
    inset-inline-start: 19px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(to bottom, rgba(14, 116, 144, 0.4), rgba(14, 116, 144, 0.12));
  }
  .step h3 { align-self: center; font-size: 1.05rem; }
  .step p { margin-top: 2px; font-size: 0.92rem; }

  /* יתרונות: שורות קומפקטיות – אייקון ליד הטקסט */
  .why-inner { gap: 24px; }
  .benefits { grid-template-columns: 1fr; gap: 10px; }
  .benefit { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 14px 16px; }
  .benefit-icon { grid-row: span 2; width: 40px; height: 40px; margin: 0; border-radius: 12px; }
  .benefit-icon svg { width: 20px; height: 20px; }
  .benefit h3 { align-self: center; font-size: 1rem; }
  .benefit p { margin-top: 2px; font-size: 0.9rem; }

  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  .final-cta { padding: 48px 0; }
  .final-cta-inner { padding: 40px 20px; border-radius: 22px; }
  .final-cta h2 { font-size: 1.7rem; }
  .final-cta p { margin: 10px 0 22px; font-size: 1rem; }
  .final-cta .btn { width: 100%; }

  /* פוטר: לוגו ואייקוני קשר עגולים (44px) בשורה אחת, זכויות יוצרים מתחת */
  .site-footer { padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)); }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; }
  .footer-contact { flex-wrap: nowrap; gap: 8px; }
  .footer-contact a {
    position: relative;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface);
  }
  .footer-social svg { width: 20px; height: 20px; color: var(--accent); }
  /* הכיתוב מוסתר ויזואלית בלבד – קוראי מסך עדיין מקריאים אותו */
  .footer-contact a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .footer-copy { grid-column: 1 / -1; font-size: 0.78rem; }

  .float-cta {
    left: 16px;
    right: 16px;
    justify-content: center;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  /* במובייל: מעל כפתור המחשבון, ומופיע רק אחרי ה-Hero */
  .quick-contact { left: 16px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
  .quick-contact.is-visible { opacity: 1; visibility: visible; }
  .quick-toggle { width: 52px; height: 52px; }
  .quick-list { left: 3px; gap: 8px; }
  .quick-btn { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
