﻿/* =====================================================================
   ישר GC – סוכנות לביטוח פנסיוני בע"מ
   גיליון סגנונות ראשי | RTL | נגיש | ללא סגנונות inline (תומך ב-CSP קשיח)
   ===================================================================== */

/* ---------------------------------------------------------------
   1. טוקנים
   --------------------------------------------------------------- */
:root {
  /* כחול כהה מתוך הלוגו */
  --navy-950: #08131f;
  --navy-900: #0d1c33;
  --navy-800: #13294b;
  --navy-700: #1b355a;
  --navy-600: #274a78;
  --navy-100: #eaf0f8;

  /* זהב/ברונזה מתוך הלוגו */
  --gold-700: #8a6a2f;
  --gold-600: #a9823d;
  --gold-500: #c19a5b;
  --gold-400: #d7b478;
  --gold-300: #e7d0a4;
  --gold-100: #f7efdf;

  --sand: #faf8f4;
  --paper: #ffffff;
  --ink: #16202e;
  --muted: #5d6b7d;
  --line: #e4e8ee;

  --shadow-sm: 0 1px 2px rgba(13, 28, 51, .06), 0 2px 8px rgba(13, 28, 51, .05);
  --shadow-md: 0 6px 18px rgba(13, 28, 51, .07), 0 2px 6px rgba(13, 28, 51, .04);
  --shadow-lg: 0 24px 60px rgba(13, 28, 51, .14);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --font-size-base: 16px;
  --font-sans: "Assistant", "Heebo", "Segoe UI", Arial, sans-serif;
  --font-display: "Heebo", "Assistant", "Segoe UI", Arial, sans-serif;

  --wrap: 1240px;
  --header-h: 92px;

  /* מוטיב החץ מהלוגו – משמש כרקע דקורטיבי */
  --motif-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23c19a5b' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M70 26 L104 72 H88 V114 H52 V72 H36 Z'/%3E%3Cpath d='M22 6 L70 62 L118 6' opacity='.55'/%3E%3C/g%3E%3C/svg%3E");
  --motif-y: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%231b355a' stroke-width='1.4'%3E%3Cpath d='M40 30 L90 92 L140 30'/%3E%3Cpath d='M90 92 V150'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------
   2. איפוס ובסיס
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* מונע "ניפוח" אוטומטי של טקסט ב-iOS כשמסובבים את המכשיר */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* מבטל את השהיית 300ms במגע ומונע זום בהקשה כפולה על רכיבים אינטראקטיביים */
a, button, label, input, select, summary, [role="button"] { touch-action: manipulation; }

/* נעילת גלילת הרקע כשתפריט הנייד או חלון קופץ פתוחים */
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.22; font-weight: 800; color: var(--navy-800); }

.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  /* env(safe-area) – שוליים בטוחים במכשירים עם מגרעת מסך בתצוגה לרוחב */
  padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right));
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------
   3. נגישות – פוקוס, דילוג לתוכן, מצבי תצוגה
   --------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid #ffb300;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; top: -200px; inset-inline-start: 16px; z-index: 10050;
  background: var(--navy-800); color: #fff; padding: 12px 22px;
  border-radius: 0 0 12px 12px; font-weight: 700; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

body.a11y-contrast { background: #000 !important; color: #fff !important; }
body.a11y-contrast *:not(svg):not(path) {
  background-color: #000 !important; background-image: none !important;
  color: #ffe600 !important; border-color: #fff !important; box-shadow: none !important;
}
body.a11y-contrast img:not(.logo-img) { filter: grayscale(100%) contrast(130%); }
body.a11y-mono { filter: grayscale(100%); }
body.a11y-underline a { text-decoration: underline !important; font-weight: 700 !important; }
body.a11y-readable, body.a11y-readable * { font-family: Arial, "Segoe UI", sans-serif !important; letter-spacing: .3px; }
body.a11y-bigcursor, body.a11y-bigcursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M6 2 L6 36 L15 27 L21 41 L28 38 L22 24 L34 24 Z' fill='%23ffffff' stroke='%23000000' stroke-width='2.5'/%3E%3C/svg%3E") 4 2, auto !important;
}
body.a11y-nomotion *, body.a11y-nomotion *::before, body.a11y-nomotion *::after {
  animation: none !important; transition: none !important;
}

/* ---------------------------------------------------------------
   4. כותרת עליונה
   --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  /* רקע אטום לחלוטין – כך ה-mix-blend-mode של הלוגו "מוחק" את הרקע הלבן שלו
     במקום ליצור ריבוע בהיר סביבו */
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(193, 154, 91, .25);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(13, 28, 51, .1); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: var(--header-h); padding-block: 10px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.logo-img {
  height: 62px; width: auto; object-fit: contain;
  mix-blend-mode: multiply;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name {
  font-family: var(--font-display); font-size: 1.85rem; font-weight: 900;
  color: var(--navy-800); letter-spacing: .5px;
}
.brand-name .brand-gc {
  background: linear-gradient(180deg, var(--gold-400) 0%, var(--gold-600) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .6px; }

.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav a {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 1rem; color: var(--navy-700);
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover { background: var(--gold-100); color: var(--gold-700); }
.main-nav a.is-active { background: var(--navy-100); color: var(--navy-800); }
.main-nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
  color: #fff; box-shadow: 0 8px 22px rgba(169, 130, 61, .32);
}
.btn-gold:hover { box-shadow: 0 12px 30px rgba(169, 130, 61, .42); }
.btn-navy {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: #fff; box-shadow: 0 8px 22px rgba(19, 41, 75, .28);
}
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-outline { background: #fff; border-color: var(--gold-500); color: var(--gold-700); }
.btn-outline:hover { background: var(--gold-100); }
.btn-whatsapp {
  background: linear-gradient(135deg, #2bd96f 0%, #1da851 100%);
  color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, .32);
}
.btn-whatsapp:hover { box-shadow: 0 12px 30px rgba(37, 211, 102, .45); }
.btn-whatsapp svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-700); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------
   5. מסך פתיחה
   --------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  /* בסיס הכחול תואם לגווני הבאנר, כדי שהבאנר יתמזג ולא ייראה "מודבק" */
  background:
    radial-gradient(75% 110% at 18% 45%, rgba(39, 74, 120, .55) 0%, transparent 62%),
    linear-gradient(178deg, #0b1727 0%, #142a49 46%, #0d1c30 100%);
}

/* הבאנר נפרש על מלוא הרוחב בלי לעוות את היחס, ונמסך בעדינות אל הרקע.
   בקובץ הנוכחי סמל ה-Y כבר נמצא מצד שמאל, ולכן אין היפוך אופקי. */
/* הבאנר מוצג לכל היותר בגודלו המקורי (1024×354) ולעולם לא מוגדל מעבר לכך,
   כדי שלא תיפגע חדות הסמל. במסך רחב מהתמונה הוא מעוגן לשמאל – שם יושב ה-Y –
   והצד הימני נמוג אל הגרדיאנט שמאחוריו, כך שלא נראה גבול.
   השימוש במיקום פיזי (left) ולא לוגי הוא מכוון: ב-RTL הם מתהפכים. */
.hero-media {
  position: absolute; z-index: -3;
  top: 50%; left: 0; right: auto;
  width: min(100%, 1024px);
  aspect-ratio: 1024 / 354;   /* זהה לקובץ – אין מתיחה ואין עיוות */
  transform: translateY(-50%);
  background-image: url("../banner-hero.jpg");
  background-size: 100% 100%;   /* בגודל המלא זהו מיפוי 1:1 מדויק */
  background-position: center center;
  background-repeat: no-repeat;
  /* העלמה אנכית + העלמה בקצה הימני, שמחוברות יחד עם mask-composite */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%),
    linear-gradient(to right, #000 0%, #000 58%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%),
    linear-gradient(to right, #000 0%, #000 58%, transparent 100%);
  mask-composite: intersect;
}

.hero-veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to left, rgba(8, 19, 31, .8) 0%, rgba(11, 23, 39, .5) 46%, rgba(11, 23, 39, .18) 100%),
    radial-gradient(60% 80% at 92% 12%, rgba(193, 154, 91, .16) 0%, transparent 62%);
}

.hero-inner { padding-block: 120px 132px; max-width: 880px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 18px 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(215, 180, 120, .5);
  font-size: .9rem; font-weight: 700; letter-spacing: .4px; color: var(--gold-300);
}
.hero-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(215, 180, 120, .25); }

.hero h1 {
  color: #fff; font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 900;
  letter-spacing: -.5px; margin-bottom: 20px; text-shadow: 0 6px 30px rgba(0, 0, 0, .45);
}
.hero h1 .accent {
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-500) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500; color: #e6edf7;
  max-width: 720px; margin-bottom: 36px; text-shadow: 0 3px 16px rgba(0, 0, 0, .45);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cta .btn { padding: 16px 34px; font-size: 1.08rem; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 34px; margin-top: 52px;
  padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-fact strong {
  display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 900;
  color: var(--gold-300); line-height: 1.1;
}
.hero-fact span { font-size: .95rem; color: #cfd9e8; }

/* ---------------------------------------------------------------
   6. פס אמון
   --------------------------------------------------------------- */
.trust-strip { background: var(--navy-900); border-block: 1px solid rgba(193, 154, 91, .3); }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .08);
}
.trust-item {
  background: var(--navy-900); color: #dbe4f0; padding: 30px 26px;
  display: flex; gap: 16px; align-items: flex-start;
}
.trust-item .ti-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.35rem;
  background: rgba(193, 154, 91, .16); border: 1px solid rgba(193, 154, 91, .4);
}
.trust-item h3 { color: var(--gold-300); font-size: 1.08rem; margin-bottom: 4px; }
.trust-item p { font-size: .94rem; line-height: 1.6; color: #b6c3d4; }

/* ---------------------------------------------------------------
   7. מעטפת מקטעים
   --------------------------------------------------------------- */
.section { padding-block: 92px; position: relative; }
.section-sand { background: var(--sand); }
.section-tint {
  background: linear-gradient(180deg, #fff 0%, var(--sand) 100%);
}
.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 5px 16px; border-radius: 999px;
  background: var(--gold-100); color: var(--gold-700);
  font-size: .82rem; font-weight: 800; letter-spacing: 1.2px;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.section-title .accent { color: var(--gold-600); }
.section-sub { font-size: 1.1rem; color: var(--muted); }

.rule {
  width: 64px; height: 3px; border-radius: 3px; margin-block: 18px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}
.section-head.center .rule { margin-inline: auto; }

/* ---------------------------------------------------------------
   8. הצוות המקצועי – כרטיס יחיד מורחב
   --------------------------------------------------------------- */
.team-feature {
  display: grid; grid-template-columns: 340px 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); max-width: 1080px; margin-inline: auto;
}
.team-portrait { position: relative; background: #5a5d61; overflow: hidden; }
/* התמונה המקורית כוללת שטח ריק מעל הראש; הגדלה קלה סביב הפנים
   מהדקת את הקומפוזיציה בלי לשנות את קובץ התמונה עצמו. */
.team-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 58% center;
  min-height: 420px; transform: scale(1.14); transform-origin: 58% 34%;
}
.team-body { padding: 44px 44px; }
.team-body h3 { font-size: 2rem; margin-bottom: 6px; }
.team-role { color: var(--gold-700); font-weight: 800; font-size: 1.02rem; margin-bottom: 18px; }
.team-license {
  display: inline-block; background: var(--navy-100); color: var(--navy-800);
  border: 1px solid rgba(27, 53, 90, .16); border-radius: 8px;
  padding: 5px 14px; font-size: .9rem; font-weight: 700; margin-bottom: 20px;
}
.team-body p { color: #45536a; margin-bottom: 16px; }
.team-points { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.team-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--navy-700); }
.team-points li::before { content: "✓"; color: var(--gold-600); font-weight: 900; flex-shrink: 0; }
.team-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------
   10. תהליך העבודה
   --------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px 28px 28px; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-block-start: -22px; inset-inline-start: 28px;
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--gold-300); font-family: var(--font-display); font-size: 1.3rem; font-weight: 900;
  box-shadow: 0 8px 20px rgba(19, 41, 75, .25);
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------------------------------------------------------------
   11. למה אנחנו
   --------------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.why-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius); padding: 28px 24px; color: #dbe4f0;
}
.why-card .why-icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.why-card h3 { color: var(--gold-300); font-size: 1.12rem; margin-bottom: 8px; }
.why-card p { font-size: .96rem; color: #b6c3d4; }

.section-navy {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(140deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
}
.section-navy .section-title { color: #fff; }
.section-navy .section-sub { color: #b6c3d4; }
.section-navy .eyebrow { background: rgba(193, 154, 91, .18); color: var(--gold-300); }
.section-navy::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
  background-image: var(--motif-arrow); background-size: 160px 160px;
}

/* ---------------------------------------------------------------
   12. מחשבונים
   --------------------------------------------------------------- */
.calc-list { display: grid; gap: 18px; max-width: 980px; margin-inline: auto; }
.calc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.calc.is-open { border-color: rgba(193, 154, 91, .6); box-shadow: var(--shadow-md); }

.calc-toggle {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: start;
  padding: 22px 26px; background: none; border: 0; cursor: pointer;
}
.calc-toggle:hover { background: var(--sand); }
.calc-toggle .calc-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.35rem; background: var(--gold-100); border: 1px solid rgba(193, 154, 91, .35);
}
.calc-toggle .calc-titles { flex: 1; min-width: 0; }
.calc-toggle .calc-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--navy-800); }
.calc-toggle .calc-desc { display: block; font-size: .93rem; color: var(--muted); }
.calc-chevron {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-100); color: var(--navy-700); font-size: .9rem; font-weight: 900;
  transition: transform .3s ease, background .2s ease;
}
.calc.is-open .calc-chevron { transform: rotate(180deg); background: var(--gold-500); color: #fff; }

.calc-panel { display: none; padding: 4px 26px 28px; border-top: 1px solid var(--line); }
.calc.is-open .calc-panel { display: block; }

.calc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-block: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .9rem; font-weight: 700; color: var(--navy-700); }
.field .hint { font-size: .78rem; color: var(--muted); font-weight: 500; }
.field input, .field select {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(193, 154, 91, .16); outline: none; }
.field input:invalid:not(:placeholder-shown) { border-color: #dc2626; }

.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

.calc-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.result-tile {
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; text-align: center;
}
.result-tile.primary { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); border-color: var(--navy-800); }
.result-tile.primary .result-label { color: var(--gold-300); }
.result-tile.primary .result-value { color: #fff; }
.result-label { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.result-value { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: var(--navy-800); direction: ltr; unicode-bidi: plaintext; }

.calc-table-wrap {
  margin-top: 20px; max-height: 320px; overflow: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.calc-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9rem; }
.calc-table th, .calc-table td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.calc-table thead th { position: sticky; top: 0; background: var(--navy-800); color: #fff; font-weight: 700; z-index: 1; }
.calc-table tbody tr:nth-child(even) { background: var(--sand); }
.calc-table td { direction: ltr; unicode-bidi: plaintext; }
.calc-table td:first-child { direction: rtl; }

.table-hint { display: none; margin-top: 18px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.calc-error { display: none; margin-bottom: 14px; padding: 11px 16px; border-radius: var(--radius-sm); background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-weight: 700; font-size: .93rem; }
.calc-error.is-shown { display: block; }
.calc-disclaimer { margin-top: 18px; font-size: .82rem; color: var(--muted); line-height: 1.6; padding-top: 14px; border-top: 1px dashed var(--line); }

/* ---------------------------------------------------------------
   13. כתבות
   --------------------------------------------------------------- */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 24px; }
.article-card {
  display: flex; flex-direction: column; text-align: start; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(193, 154, 91, .55); }
.article-visual {
  height: 108px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
}
.article-visual::after {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: var(--motif-arrow); background-size: 110px 110px;
}
.article-visual .article-emoji { position: absolute; inset-block-end: 12px; inset-inline-start: 20px; font-size: 2rem; z-index: 1; }
.article-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.article-tag { font-size: .78rem; font-weight: 800; letter-spacing: .8px; color: var(--gold-700); margin-bottom: 8px; }
.article-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.article-card p { color: var(--muted); font-size: .97rem; flex: 1; margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; justify-content: space-between; font-size: .86rem; color: var(--muted); }
.article-more { color: var(--navy-700); font-weight: 800; }
.article-card:hover .article-more { color: var(--gold-600); }

/* ---------------------------------------------------------------
   14. שותפים
   --------------------------------------------------------------- */
.profit-box {
  max-width: 380px; margin: 0 auto 44px; height: 118px; padding: 20px 36px;
  background: #fff; border: 2px solid rgba(193, 154, 91, .55); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.profit-box img { width: 100%; height: 100%; object-fit: contain; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 18px; max-width: 1120px; margin-inline: auto; }
.partner-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  height: 96px; padding: 14px 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.partner-tile:hover { border-color: rgba(193, 154, 91, .6); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
/* חשוב: גובה מפורש + object-fit, ולא max-height באחוזים.
   אחוזים מול שורת גריד בגובה אוטומטי אינם נאכפים, ולכן לוגואים מרובעים
   "גלשו" מחוץ למסגרת. כאן הגובה מוגדר ולכן התמונה תמיד נכנסת פנימה. */
.partner-tile img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.partner-fallback { font-weight: 800; color: var(--navy-700); font-size: .98rem; text-align: center; }

/* ---------------------------------------------------------------
   15. טופס יצירת קשר
   --------------------------------------------------------------- */
.lead-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: start; }
.lead-info h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.lead-info > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px;
}
.contact-list .ci-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center;
  background: var(--gold-100); border: 1px solid rgba(193, 154, 91, .35); font-size: 1.15rem;
}
.contact-list .ci-label { display: block; font-size: .82rem; color: var(--muted); font-weight: 700; }
.contact-list .ci-value { font-weight: 800; color: var(--navy-800); text-decoration: none; }
.contact-list a.ci-value:hover { color: var(--gold-700); text-decoration: underline; }

.map-frame { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.map-frame iframe { display: block; width: 100%; height: 230px; border: 0; }

.lead-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px 36px; box-shadow: var(--shadow-lg);
}
.lead-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.lead-card .lead-card-sub { color: var(--muted); font-size: .98rem; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }
.consent-row {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 20px;
  font-size: .9rem; color: #48566a; line-height: 1.55;
}
.consent-row + .consent-row { margin-top: 12px; }
.consent-row:last-of-type { margin-bottom: 22px; }
.consent-row input[type="checkbox"] { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--gold-600); cursor: pointer; }
.consent-row label { cursor: pointer; }
.consent-row.optional {
  background: var(--sand); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.required-tag, .optional-tag {
  display: inline-block; margin-inline-start: 6px; padding: 1px 8px;
  border-radius: 999px; font-size: .72rem; font-weight: 800; white-space: nowrap;
}
.required-tag { background: var(--gold-100); color: var(--gold-700); }
.optional-tag { background: #eef2f7; color: var(--muted); font-weight: 700; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp-field input { font-size: 16px; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: .94rem; display: none; }
.form-status.is-shown { display: block; }
.form-status.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.form-status.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.status-link { color: #166534; font-weight: 800; text-decoration: underline; }
.status-link:hover { color: #14532d; }
.form-legal { margin-top: 16px; font-size: .8rem; color: var(--muted); line-height: 1.6; }

.signature-wrap { max-width: 720px; margin: 52px auto 0; }
.signature-wrap img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ---------------------------------------------------------------
   16. חלונות מודאליים
   --------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 10020; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(8, 19, 31, .82); backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  position: relative; background: #fff; width: 100%; max-width: 800px;
  max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg);
  padding: 44px 44px 40px; box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold-500);
}
/* dvh מתחשב בסרגל הכתובות הנעלם של דפדפני הנייד */
@supports (height: 100dvh) { .modal-box { max-height: 88dvh; } }
.modal-close {
  position: absolute; inset-block-start: 14px; inset-inline-end: 16px;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--navy-700);
  display: grid; place-items: center; transition: background .2s ease, transform .2s ease;
}
.modal-close:hover { background: var(--sand); transform: rotate(90deg); }
.modal-box h2 { font-size: 1.75rem; margin-bottom: 8px; }
.modal-box h3 { font-size: 1.18rem; margin-block: 22px 8px; color: var(--navy-700); }
.modal-box p { margin-bottom: 12px; color: #40506a; }
.modal-byline { color: var(--gold-700); font-weight: 800; font-size: .95rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.modal-box ul, .modal-box ol { margin: 0 0 14px; padding-inline-start: 22px; color: #40506a; }
.modal-box li { margin-bottom: 7px; }
.callout {
  background: var(--gold-100); border-inline-start: 4px solid var(--gold-500);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-block: 16px; color: #6b5220; font-size: .97rem;
}
.callout.warn { background: #fff7ed; border-inline-start-color: #ea580c; color: #7c2d12; }
.modal-footnote { margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--muted); }

.contact-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block: 20px; }
.contact-modal-grid > div { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.contact-modal-grid strong { display: block; color: var(--gold-700); font-size: .84rem; margin-bottom: 2px; }

.team-modal-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
/* object-position ממקד את העיגול על הפנים; בלעדיו חיתוך 1:1 מתמונת פורטרט
   לאורך היה מציג את פלג הגוף במקום את הפנים. */
.team-modal-head img {
  width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; object-position: center top;
  border: 3px solid var(--gold-500); background: #5a5d61;
}

/* ---------------------------------------------------------------
   17. הצהרת נגישות – רקע בהשראת הלוגו
   --------------------------------------------------------------- */
.accessibility-statement {
  position: relative; isolation: isolate; overflow: hidden; color: #dbe4f0;
  padding-block: 76px;
  background:
    radial-gradient(60% 80% at 88% 10%, rgba(193, 154, 91, .26) 0%, transparent 58%),
    radial-gradient(50% 70% at 10% 95%, rgba(39, 74, 120, .55) 0%, transparent 60%),
    linear-gradient(150deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  border-top: 3px solid var(--gold-500);
}
/* שכבת מוטיב החץ והענפים מתוך הלוגו */
.accessibility-statement::before {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .17;
  background-image: var(--motif-arrow); background-size: 150px 150px;
  animation: motifPan 90s linear infinite;
}
@keyframes motifPan { from { background-position: 0 0; } to { background-position: 600px 600px; } }
/* חץ ענק – ציטוט של סמל הלוגו */
.accessibility-statement::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset-block-start: 50%; inset-inline-start: -60px; translate: 0 -50%;
  width: 460px; height: 460px; opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23e7d0a4' stroke-width='4' stroke-linejoin='round'%3E%3Cpath d='M100 24 L154 96 H128 V176 H72 V96 H46 Z'/%3E%3Cpath d='M24 8 L100 96 L176 8' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
}
.accessibility-statement h2 { color: #fff; font-size: 1.9rem; margin-bottom: 8px; }
.accessibility-statement .a11y-lead { color: #c4d1e2; max-width: 820px; margin-bottom: 26px; }
.a11y-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.a11y-panel {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(215, 180, 120, .28);
  border-radius: var(--radius); padding: 24px 24px; backdrop-filter: blur(3px);
}
.a11y-panel h3 { color: var(--gold-300); font-size: 1.06rem; margin-bottom: 10px; }
.a11y-panel ul { list-style: none; display: grid; gap: 8px; }
.a11y-panel li { font-size: .94rem; display: flex; gap: 9px; align-items: flex-start; color: #c4d1e2; }
.a11y-panel li::before { content: "▸"; color: var(--gold-400); flex-shrink: 0; }
.a11y-panel a { color: var(--gold-300); font-weight: 700; }

/* ---------------------------------------------------------------
   18. פוטר
   --------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: #94a3b8; padding-block: 56px 28px; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand .logo-img { height: 56px; mix-blend-mode: normal; background: #fff; border-radius: 12px; padding: 6px 10px; }
.footer-brand p { margin-top: 14px; line-height: 1.7; }
.footer-col h3 { color: var(--gold-300); font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { text-decoration: none; transition: color .2s ease; }
.footer-col a:hover { color: var(--gold-300); text-decoration: underline; }
.footer-address { color: var(--gold-300); font-weight: 700; }
.footer-bottom { padding-top: 26px; display: grid; gap: 12px; text-align: center; font-size: .88rem; line-height: 1.7; }
.footer-bottom .legal { color: #64748b; font-size: .82rem; max-width: 980px; margin-inline: auto; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: #cbd5e1; font-weight: 700; font-size: inherit; font-family: inherit; }
.link-btn:hover { color: var(--gold-300); }
.footer-col .link-btn { color: #94a3b8; font-weight: 400; text-decoration: none; text-align: start; }
.footer-col .link-btn:hover { color: var(--gold-300); text-decoration: underline; }
.consent-row .link-btn { color: var(--navy-700); }
.consent-row .link-btn:hover { color: var(--gold-700); }

/* ---------------------------------------------------------------
   19. רכיבים צפים
   --------------------------------------------------------------- */
/* מיקום פיזי (ולא לוגי) כדי שסרגל הנגישות יישאר משמאל והוואטסאפ מימין גם ב-RTL */
.float-stack {
  position: fixed; z-index: 9000; display: flex; flex-direction: column-reverse;
  gap: 12px; align-items: center;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: calc(20px + env(safe-area-inset-left));
}

.fab {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold-500);
  background: var(--navy-800); color: #fff; font-size: 1.5rem; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  transition: transform .2s ease, background .2s ease;
}
.fab:hover { transform: scale(1.08); background: var(--navy-700); }
.fab.to-top { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease, transform .2s ease; }
.fab.to-top.is-visible { opacity: 1; visibility: visible; }

.a11y-panel-box {
  position: fixed; z-index: 9100;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: calc(88px + env(safe-area-inset-left));
  width: 300px; max-width: calc(100vw - 40px); max-height: 78vh; overflow-y: auto;
  background: #fff; border: 2px solid var(--navy-800); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-lg); display: none;
}
.a11y-panel-box.is-open { display: block; }
.a11y-panel-box h2 { font-size: 1.15rem; color: var(--navy-800); margin-bottom: 4px; }
.a11y-panel-box .a11y-hint { font-size: .8rem; color: var(--muted); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--gold-400); }
.access-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 8px;
  padding: 10px 14px; background: var(--sand); border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; font-weight: 700; font-size: .92rem;
  text-align: start; color: var(--navy-800); transition: background .18s ease, border-color .18s ease;
}
.access-btn:hover { background: var(--gold-100); border-color: var(--gold-500); }
.access-btn[aria-pressed="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.access-btn.reset { background: #fef2f2; color: #991b1b; border-color: #fecaca; margin-top: 6px; }

.whatsapp-float {
  position: fixed; z-index: 9000;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; padding: 13px 22px; border-radius: 999px;
  font-weight: 800; text-decoration: none; box-shadow: 0 8px 26px rgba(37, 211, 102, .42);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 32px rgba(37, 211, 102, .55); }
.whatsapp-float svg { width: 26px; height: 26px; fill: currentColor; flex-shrink: 0; }

.cookie-banner {
  position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 9500;
  background: var(--navy-950); color: #cbd5e1; border-top: 2px solid var(--gold-500);
  padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
  display: none; box-shadow: 0 -6px 30px rgba(0, 0, 0, .35);
}
.cookie-banner.is-shown { display: block; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: var(--wrap); margin-inline: auto; flex-wrap: wrap; }
.cookie-inner p { font-size: .9rem; flex: 1; min-width: 240px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------
   20. רספונסיביות
   --------------------------------------------------------------- */
@media (max-width: 1320px) {
  .main-nav a { padding: 8px 10px; font-size: .95rem; }
  .brand-name { font-size: 1.55rem; }
  .logo-img { height: 54px; }
  .team-feature { grid-template-columns: 290px 1fr; }
}

@media (max-width: 1180px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: flex; }
  /* כפתור הפעולה נשאר גלוי גם בנייד, בגרסה מכווצת, לצד ההמבורגר */
  .header-actions .btn { padding: 10px 16px; font-size: .88rem; }

  .main-nav {
    position: fixed; inset-block-start: var(--header-h); inset-inline: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 14px 20px 22px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { display: block; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .main-nav .nav-cta { display: block; margin-top: 12px; }
  .main-nav .nav-cta .btn { display: inline-flex; width: 100%; }

  .hero-inner { padding-block: 84px 92px; }
  .trust-grid { grid-template-columns: 1fr; }
  .team-feature { grid-template-columns: 1fr; }
  .team-portrait img { min-height: 340px; }
  .team-body { padding: 32px 28px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .lead-layout { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* במסכים צרים הבאנר צר מדי כדי להיפרש כרצועה – עוברים לכיסוי מלא של הטקסטורה */
@media (max-width: 860px) {
  /* הגדלת שטחי הנגיעה של קישורי טקסט – נוח לאצבע, לא רק לעכבר */
  .footer-col ul { gap: 0; }
  .footer-col a, .footer-col .link-btn { display: inline-block; padding-block: 11px; }
  .contact-list a.ci-value { display: inline-block; padding-block: 8px; }
  .footer-address a { display: inline-block; padding-block: 8px; }
  .table-hint:not([hidden]) { display: block; }
  .calc-table-wrap { margin-top: 6px; }
  .a11y-panel a { display: inline-block; padding-block: 6px; }
  .consent-row .link-btn { padding-block: 6px; }
  .modal-box p a, .modal-byline a { padding-block: 4px; display: inline-block; }

  /* בנייד הבאנר נפרש כרצועה על מלוא הרוחב במקום להיחתך,
     כך שסמל ה-Y נשאר גלוי — ובהקטנה, כלומר חד לגמרי. */
  .hero-media {
    /* הרצועה רחבה מהמסך ומעוגנת לשמאל, כך שנראה את החלק שבו יושב ה-Y
       והשאר נחתך. min() מבטיח שלעולם לא נציג מעל 1024px – הרוחב המקורי –
       כלומר תמיד הקטנה ואף פעם לא הגדלה.
       מיקום אנכי גבוה, כדי שהסמל ינחת ליד הכותרת ולא מאחורי הכפתורים. */
    top: 9%; left: 0; right: auto; bottom: auto;
    width: min(140%, 1024px);
    height: auto; aspect-ratio: 1024 / 354;
    transform: none;
    background-size: 100% 100%;
    background-position: center center;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 74%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 74%, transparent 100%);
    mask-composite: add;
  }
}

@media (max-width: 640px) {
  .section { padding-block: 62px; }
  .wrap { padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right)); }
  /* בכותרת צרה נותנים לשם הסוכנות להתכווץ ולגלוש לשתי שורות,
     כדי שהלוגו, הכפתור וההמבורגר ייכנסו כולם בלי לדחוק זה את זה. */
  .brand { min-width: 0; flex-shrink: 1; gap: 9px; }
  .brand-text { min-width: 0; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: .62rem; letter-spacing: 0; line-height: 1.3; white-space: normal; }
  .logo-img { height: 40px; }
  .header-inner { gap: 9px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 9px 12px; font-size: .78rem; }
  .nav-toggle { width: 40px; height: 40px; flex-shrink: 0; }
  .hero-facts { gap: 22px; }
  .hero-fact strong { font-size: 1.6rem; }
  .hero-cta .btn { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .lead-card { padding: 28px 22px; }
  .modal-box { padding: 34px 22px 28px; }
  .contact-modal-grid { grid-template-columns: 1fr; }
  .calc-toggle { padding: 18px 18px; gap: 12px; }
  .calc-panel { padding-inline: 18px; }
  .team-modal-head { flex-direction: column; text-align: center; }
  .footer-top { grid-template-columns: 1fr; }
  .whatsapp-float { padding: 11px 16px; gap: 8px; font-size: .92rem; }
  .whatsapp-float svg { width: 22px; height: 22px; }
  .a11y-panel-box { left: 16px; right: 16px; width: auto; bottom: 88px; }
  .float-stack { bottom: 16px; left: 16px; }
  .whatsapp-float { bottom: 16px; right: 16px; }
  /* הסמל הדקורטיבי בהצהרת הנגישות – קטן יותר, אבל נשאר */
  .accessibility-statement::after { width: 230px; height: 230px; inset-inline-start: -70px; opacity: .1; }
}

/* =====================================================================
   21. התאמות ייעודיות לטלפון נייד
   ===================================================================== */
@media (max-width: 520px) {
  :root { --header-h: 70px; }

  /* כותרת קומפקטית יותר כדי להשאיר מקום לתוכן */
  .header-inner { padding-block: 8px; gap: 10px; }
  .logo-img { height: 42px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 1.28rem; }

  /* מסך הבית */
  .hero-inner { padding-block: 66px 74px; }
  .hero-eyebrow { font-size: .8rem; padding: 6px 14px 6px 11px; margin-bottom: 18px; }
  .hero h1 { font-size: 2rem; }
  .hero-lead { font-size: 1rem; margin-bottom: 28px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { padding: 15px 24px; font-size: 1.02rem; }

  /* שורת הנתונים עוברת לשורות אופקיות – קריא הרבה יותר במסך צר */
  .hero-facts { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 36px; padding-top: 22px; }
  .hero-fact { display: flex; align-items: baseline; gap: 12px; }
  .hero-fact strong { font-size: 1.5rem; min-width: 62px; }
  .hero-fact span { font-size: .92rem; }

  /* כותרות מקטעים */
  .section-head { margin-bottom: 34px; }
  .section-sub { font-size: 1rem; }
  .eyebrow { font-size: .76rem; letter-spacing: .8px; }

  /* מחשבונים – שתי עמודות תוצאה במקום עמודה אחת ארוכה */
  .calc-results { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .result-tile { padding: 13px 10px; }
  .result-tile.primary { grid-column: span 2; }
  .result-value { font-size: 1.18rem; }
  .result-label { font-size: .78rem; }
  .calc-toggle .calc-name { font-size: 1.04rem; }
  .calc-toggle .calc-desc { font-size: .86rem; }
  .calc-actions .btn { width: 100%; }

  /* שטחי נגיעה נוחים */
  .access-btn { padding: 13px 14px; }
  .article-card h3 { font-size: 1.12rem; }

  /* צוות */
  .team-body { padding: 26px 20px; }
  .team-body h3 { font-size: 1.6rem; }
  .team-portrait img { min-height: 300px; }
  .team-actions .btn { width: 100%; }

  /* טופס ויצירת קשר */
  .lead-info h2 { font-size: 1.6rem; }
  .contact-list li { padding: 12px 14px; }
  .map-frame iframe { height: 200px; }

  /* חלונות קופצים כמעט במסך מלא */
  .modal { padding: 12px; }
  .modal-box { padding: 40px 18px 26px; border-radius: 16px; }
  .modal-box h2 { font-size: 1.35rem; }
  .modal-box h3 { font-size: 1.06rem; }

  /* סרגל העוגיות לא מסתיר את הכפתורים הצפים */
  .cookie-inner { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
  .cookie-inner p { font-size: .84rem; }
  .cookie-actions { justify-content: center; }
  .cookie-actions .btn { flex: 1; }

  /* כפתורים צפים מעט קטנים יותר */
  .fab { width: 50px; height: 50px; font-size: 1.32rem; }
  .whatsapp-float { padding: 13px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
  .a11y-panel-box { left: 12px; right: 12px; bottom: 78px; max-height: 70vh; }

  .footer-top { gap: 26px; }
}

/* מסכים נמוכים מאוד או טלפון לרוחב */
/* טלפון לרוחב – מצמצמים ריווח, אבל לא מסתירים תוכן */
@media (max-height: 520px) and (max-width: 950px) {
  .hero-inner { padding-block: 54px 58px; }
  .hero-facts { margin-top: 24px; padding-top: 16px; gap: 8px; }
  .hero-fact strong { font-size: 1.3rem; }
  .a11y-panel-box { max-height: 62vh; }
}

@media print {
  .site-header, .float-stack, .whatsapp-float, .cookie-banner, .a11y-panel-box, .modal { display: none !important; }
  body { color: #000; }
}
