/* 28.10: copy of orbit.css for index_20261026m - mobile layout also when width/height < 1.3 (iPad portrait, square screens). orbit.css stays for older versions */
/* עיצוב דף ההדגמה orbit.html */

@font-face {font-family: 'Open Sans Hebrew Condensed';font-weight: 400;font-display: swap;src: url('https://www.gindih.co.il/general/fonts/opensans2/OpenSansHebrewCondensed-Regular.woff2?v=2') format('woff2');}
@font-face {font-family: 'Open Sans Hebrew Condensed';font-weight: 700;font-display: swap;src: url('https://www.gindih.co.il/general/fonts/opensans2/OpenSansHebrewCondensed-Bold.woff2?v=2') format('woff2');}

/* מידות מערכת הכוכבים כאורכים רשומים: ה-em מחושב פעם אחת ב-.stage (1em = 1vh) ועובר בירושה כאורך קבוע,
   כך שאלמנט פנימי עם font-size אחר לא משנה אותן */
@property --globe { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --d     { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --ring  { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --rx    { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --ry    { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --top   { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --cy    { syntax: '<length>'; inherits: true; initial-value: 0px; }
/* צבע הפרויקט שבחזית (נקבע ב-JS) - רשום כצבע כדי שהמעבר בין פרויקטים יהיה הדרגתי */
@property --proj  { syntax: '<color>'; inherits: true; initial-value: transparent; }
/* חשיפת התמונה בפלנטה שבחזית: 0 = הלוגו, 1 = התמונה. רשום כמספר כדי שיעבור בהדרגה */
@property --rev   { syntax: '<number>'; inherits: true; initial-value: 0; }

:root { --gold: #d9b56a; --gold-light: #f6e3a6; --globe-ar: 1.05; --ease-out-quart: cubic-bezier(.165, .84, .44, 1); }   /* --globe-ar: יחס רוחב/גובה של עיגול הגלובוס, משותף לגלובוס ולהילה */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; background: #000; }

body {
    min-height: 100vh;
    background: #03040d;
    color: #fff;
    font-family: 'Open Sans Hebrew Condensed', Arial, sans-serif;
    overflow-x: clip;
}

/* ===== רקע חללי-הייטקי: כוכבים, רשת קווים זוהרת וערפיליות ===== */
/* .space יוצר את הקשר השכבות המשותף: רקע < פלנטות רחוקות וכדור < גשם גיצים < כיתוב < פלנטה קדמית */
.space {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    touch-action: none;        /* כל ההחלקות על המסך שייכות לנו (לצדדים = סיבוב, למעלה = פתיחת הפרויקט), לא לגלילת הדף */
    transition: --proj 1.2s ease;
    background:
        radial-gradient(ellipse 90% 65% at 50% 100%, var(--proj) 0, rgba(0, 0, 0, 0) 100%),   /* צבע הפרויקט שבחזית, מלמטה */
        radial-gradient(circle at 18% 26%, rgba(40, 96, 255, .20) 0, rgba(40, 96, 255, 0) 38%),
        radial-gradient(circle at 84% 72%, rgba(245, 170, 60, .11) 0, rgba(245, 170, 60, 0) 42%),
        radial-gradient(ellipse at 50% 40%, #0b1440 0, #03040d 68%);
}

/* רשת קווים דקה שנמוגה לכיוון השוליים */
.space::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(90, 150, 255, .13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 150, 255, .13) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center;
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 0, rgba(0, 0, 0, .35) 45%, transparent 76%);
            mask-image: radial-gradient(ellipse at 50% 45%, #000 0, rgba(0, 0, 0, .35) 45%, transparent 76%);
    pointer-events: none;
}

.space canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#stars  { z-index: 0; }

/* ===== ניצנוץ כוכבים: נקודות נפרדות שמשנות רק שקיפות וגודל ===== */
.twinkles { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.5s ease; }
.twinkles.is-on { opacity: 1; }
.twinkles i {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px 1px rgba(255, 244, 220, .8);
    opacity: 0;
    animation: twinkle var(--dur) ease-in-out var(--delay) infinite;
}
/* ניצוץ: שתי קרניים דקות בצורת צלב */
.twinkles i.glint::before, .twinkles i.glint::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 700%;
    height: 1px;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg, rgba(255, 240, 210, 0), rgba(255, 240, 210, .9), rgba(255, 240, 210, 0));
}
.twinkles i.glint::after { transform: translate(-50%, -50%) rotate(90deg); }
@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(.4); }
    50%      { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .twinkles { display: none; }
}
#sparks { z-index: 105; }      /* מאחורי הכדור הכחול, הכיתוב והפלנטה הקדמית; לפני הפלנטות שבצדדים ומאחור */

/* קו המסלול של הפלנטות */
.orbit-path {
    position: absolute;
    left: 50%;
    top: var(--cy);
    width: calc(var(--rx) * 2);
    height: calc(var(--ry) * 2);
    z-index: 1;
    border: 1px dashed rgba(217, 181, 106, .3);
    border-radius: 50%;
    box-shadow: 0 0 0 14px rgba(90, 150, 255, .04), inset 0 0 40px rgba(90, 150, 255, .06);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ===== אור שנע על המסלול =====
   עיגול עם conic-gradient (ראש זוהר וזנב שדועך) ומסכה עגולה סטטית שמשאירה טבעת דקה.
   העיגול מסתובב ב-transform (על המעבד הגרפי, בלי ציור מחדש) והעוטף מכווץ אותו לאליפסת המסלול (--k = ry/rx, נקבע ב-JS) */
.orbit-glow {
    position: absolute;
    left: 50%;
    top: var(--cy);
    width: calc(var(--rx) * 2);
    height: calc(var(--rx) * 2);
    z-index: 2;
    transform: translate(-50%, -50%) scaleY(var(--k, .5));
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.stage.is-ready .orbit-glow { opacity: 1; }
.orbit-glow i {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        rgba(255, 214, 120, 0) 0deg,
        rgba(255, 214, 120, 0) 230deg,
        rgba(255, 200, 110, .22) 300deg,
        rgba(255, 236, 190, .85) 352deg,
        #fff 358deg,
        rgba(255, 214, 120, 0) 360deg);
    /* טבעת: קצה חיצוני חד וזוהר שנמוג פנימה */
    -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - 14px), rgba(0, 0, 0, .35) calc(100% - 5px), #000 calc(100% - 2px), #000 calc(100% - 1px), transparent 100%);
            mask: radial-gradient(circle closest-side, transparent calc(100% - 14px), rgba(0, 0, 0, .35) calc(100% - 5px), #000 calc(100% - 2px), #000 calc(100% - 1px), transparent 100%);
    animation: rays-spin 16s linear infinite;
}
/* אור שני, קר ועדין, בצד הנגדי ובקצב אחר - מוסיף תחושה הייטקית */
.orbit-glow i + i {
    background: conic-gradient(
        rgba(120, 190, 255, 0) 0deg,
        rgba(120, 190, 255, 0) 280deg,
        rgba(120, 190, 255, .18) 330deg,
        rgba(190, 225, 255, .6) 357deg,
        rgba(120, 190, 255, 0) 360deg);
    animation-duration: 27s;
    animation-delay: -13s;
}

/* ===== הבמה: כדור המפץ הגדול במרכז והפלנטות במסלול סביבו ===== */
/* ===== מערכת הכוכבים: כל המידות ב-em, ו-1em = 1% מגובה המסך (font-size של הבמה = 1vh) ===== */
.stage {
    position: relative;
    width: min(100%, 1100px);
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    font-size: clamp(3px, calc(1vh - 1px), 2vw);
    font-size: clamp(3px, calc(1dvh - 1px), 2vw);
    user-select: none;
    --globe: 29.7em;                           /* קוטר הגלובוס */
    --d:     35.6em;                           /* קוטר הפלנטה שבחזית */
    --ring: calc(var(--d) * 0.06);             /* מרווח סביב הפלנטה (להילה) */
    --rx:    47.9em;                           /* רדיוס אופקי של המסלול */
    --ry:    28.2em;                           /* רדיוס אנכי של המסלול (כמה הפלנטה שבחזית יורדת מתחת לגלובוס) */
    --top:   3.7em;                            /* מרווח מראש המסך עד הפלנטה שמאחור */
    --cy:    calc(var(--top) + var(--ry) + var(--d) * .09);   /* מרכז הגלובוס (.09 = חצי מגודל הפלנטה שמאחור) */
}
@media (max-width: 699px), (max-aspect-ratio: 1299/1000) {
    .stage {
        --globe: clamp(20px, 37em, 40vw);
        --d: 30em;
        --rx: clamp(30px, 40em, 42vw);                         /* הפלנטות שבצדדים יוצאות מהמסך ונראה רק חלק מהן */
        --ry: 28em;
        --top: 2em;
    }
}

/* ===== כדור המפץ הגדול ===== */
/* וידאו הגלובוס נחתך לעיגול ב-border-radius + overflow (זול), בלי mask.
   מיקום הגלובוס בתוך פריים הווידאו: --vcx/--vcy מרכז, --vr רדיוס (חלק מרוחב הווידאו) */
.globe {
    --vcx: .5008;              /* vid2-m2.mp4: הווידאו חתוך לריבוע סביב הכדור */
    --vcy: .4996;
    --vr: .468;
    --fit: 1.03;               /* מעט זום, כדי שקו החיתוך ייפול בתוך שפת הכדור */
    position: absolute;
    left: 50%;
    top: var(--cy);
    width: var(--globe);
    aspect-ratio: var(--globe-ar);
    border-radius: 50%;
    overflow: hidden;
    transform: translate(-50%, -50%);
    z-index: 110;              /* מעל הפלנטות שבצדדים ומאחור, ומעל הגיצים */
    background: transparent;   /* רקע כהה היה מציץ בפיקסלים המוחלקים של השפה ונראה כמו מסגרת */
    /* box-shadow: 0 0 10px 2px rgba(255, 236, 190, .9), 0 0 36px 10px rgba(255, 206, 110, .6), 0 0 90px 30px rgba(255, 170, 60, .32); */
}
.globe video {
    /* רוחב הווידאו ביחס לרוחב העיגול (באחוזים), כך שהיחס קבוע בכל גודל מסך:
       קוטר הכדור בווידאו = 2 * --vr מרוחב הווידאו, ו---fit מקרב מעט כדי שהחיתוך ייפול בתוך השפה */
    position: absolute;
    width: calc(100% * var(--fit) / (2 * var(--vr)));
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(calc(var(--vcx) * -100%), calc(var(--vcy) * -100%));   /* מרכז הכדור בווידאו על מרכז העיגול */
    max-width: none;
}
/* בגדילה הגלובוס לבן וזוהר, והלבן דועך בסופה וחושף את הווידאו */
.globe-white {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 36%, #fff 0, #fffaf0 45%, #ffe9b8 100%);
    opacity: 0;
    pointer-events: none;
}
/* הצל של הפלנטה הקדמית על החלק התחתון של הגלובוס: מופיע לאט כשהיא עומדת בחזית, נעלם בזמן סיבוב */
.globe-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse 75% 48% at 50% 104%, rgba(4, 6, 20, .72) 0, rgba(4, 6, 20, .45) 42%, rgba(4, 6, 20, 0) 100%);
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
}
.stage.has-front .globe-shade { opacity: 1; transition: opacity 2.6s ease-in-out .3s; }
/* הצללה ואור שפה סטטיים מעל הווידאו */
.globe::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 18px 4px rgba(255, 214, 120, .55), inset -14px -18px 40px rgba(0, 0, 0, .45);
}

/* ===== קרניים ב-CSS (בלי תמונה) =====
   כל קרן היא אלמנט צר וגבוה עם גרדיאנט רדיאלי שנמתח לצורתו - בלי scale לרוחב, כך שהשכבה קטנה.
   הקרניים עצמן סטטיות; רק 3 הקבוצות מונפשות, כלומר 3 שכבות בלבד. הקרניים נבנות ב-JS */
.rays {
    position: absolute;
    left: 50%;
    top: var(--cy);
    width: calc(var(--globe) * 2.6);
    height: calc(var(--globe) * 2.6);
    transform: translate(-50%, -50%);
    z-index: 104;              /* מאחורי הגיצים והכדור */
    pointer-events: none;
}
.rays-inner {
    position: absolute;
    inset: 0;
    transition: transform 4s cubic-bezier(.45, 0, .25, 1);
}
.stage.is-ready .rays-inner { transform: scale(.8); }
.ray-group { position: absolute; inset: 0; }
.ray-group:nth-child(1) { animation: rays-spin 140s linear infinite; }
.ray-group:nth-child(2) { animation: rays-spin 190s linear infinite reverse; }
.ray-group:nth-child(3) { animation: rays-breathe 6s ease-in-out infinite; }
.ray {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--w);
    height: var(--l);
    opacity: var(--o);
    transform: translate(-50%, -50%) rotate(var(--a));
    background: radial-gradient(closest-side, #fff 0, rgb(255 240 180) 45% 18%, rgb(255 193 115 / 55%) 78%, rgba(255, 130, 30, 0) 100%);
}
/* הילה רכה סביב הכדור */
.rays::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 68%;
    aspect-ratio: var(--globe-ar);      /* אליפטית, באותו יחס כמו עיגול הגלובוס */
    border-radius: 50%;
    /* פרופיל ההילה נמדד מהווידאו המקורי (vid2) סביב שפת הכדור, ביחידות של רדיוס הכדור (r):
       שפה כמעט לבנה ב-1.05r, זהב עד 1.2r, כתום עד 1.5r, ודעיכה מלאה ב-1.75r.
       רדיוס האליפסה = 1.768r, ולכן כל אחוז כאן = r * 1.768 */
    background: radial-gradient(ellipse closest-side,
        rgba(255, 240, 180, 1)   55%,     /* מתחת לשפת הכדור */
        rgba(255, 240, 180, 1)   59.4%,   /* 1.05r - הטבעת הבהירה */
        rgba(255, 222, 135, .94) 61.1%,   /* 1.08r */
        rgba(250, 195, 100, .81) 63.3%,   /* 1.12r */
        rgba(235, 165, 80, .64)  67.9%,   /* 1.2r */
        rgba(220, 140, 70, .44)  73.5%,   /* 1.3r */
        rgba(215, 135, 75, .41)  79.2%,   /* 1.4r */
        rgba(210, 130, 80, .32)  84.8%,   /* 1.5r */
        rgba(190, 120, 100, .16) 90.5%,   /* 1.6r */
        rgba(170, 110, 100, 0)   99%);    /* 1.75r */
    z-index: 1;
}
@keyframes rays-spin    { to { transform: rotate(360deg); } }
@keyframes rays-breathe {
    0%, 100% { transform: rotate(-3deg) scale(.94); opacity: .65; }
    50%      { transform: rotate(3deg) scale(1.04); opacity: 1; }
}

/* שכבה משלו, באותו גודל ומרכז כמו הקרניים */
.flare-wrap {
    position: absolute;
    left: 50%;
    top: var(--cy);
    width: calc(var(--globe) * 2.6);
    height: calc(var(--globe) * 2.6);
    transform: translate(-50%, -50%);
    z-index: 108;              /* מאחורי הכדור (110) ולפני הגיצים (105) */
    pointer-events: none;
}
/* כוכב שני, מעל הגלובוס (לפניו), על פני הכדור למעלה מימין */
.flare-wrap--front { z-index: 112; }
.flare.flare--front {         /* .flare.flare--front כדי לגבור על .flare שמוגדר אחריו */
    left: 63%;
    top: 36%;
    width: 8%;
    height: 8%;
    animation-delay: -2.5s;    /* פעימה לא מסונכרנת עם הכוכב הראשון */
}
.flare.flare--front::before {
    inset: 10%;
    background: radial-gradient(#fff 10%, rgba(255, 255, 255, 0) 70%);
}
/* הבזק נפרד בפינה של הכדור: ליבה עגולה ו-4 קרניים צרות שנושמות (הגרסה שלך, עם קרניים דקות במקום scale) */
.flare {
    position: absolute;
    left: 63%;                 /* על שפת הכדור, למעלה מימין */
    top: 36%;
    width: 24%;
    height: 24%;
    transform: translate(-50%, -50%);
    animation: flare-pulse 6s ease-in-out infinite;
    z-index: 9999;
}
.flare::before {
    content: '';
    position: absolute;
    inset: 38%;
    border-radius: 50%;
    background: radial-gradient(#fff 50%, rgba(255, 255, 255, 0) 70%);
    z-index: 99;
}
.flare i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5%;
    height: 100%;
    transform: translate(-50%, -50%) rotate(var(--a));
    background: radial-gradient(closest-side, #ffffff 40% 0, rgba(255, 236, 190, .8) 60%, rgba(255, 200, 120, 0) 100%);
}
.flare i:nth-child(even) { height: 70%; }
.flare i:nth-child(4n + 2) { height: 52%; opacity: .8; }
@keyframes flare-pulse {
    0%, 100% { transform: translate(-50%, -50%) rotate(-5deg) scale(1); opacity: 1; }
    50%      {transform: translate(-50%, -50%) rotate(5deg) scale(.75);opacity: 1;}
}

/* ===== טעינה: נקודת אור מהבהבת במקום שבו יקרה המפץ ===== */
.singularity {
    position: absolute;
    left: 50%;
    top: var(--cy);
    z-index: 170;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #fff 0, #fff6d8 35%, rgba(255, 214, 120, 0) 72%);
    box-shadow: 0 0 14px 4px rgba(255, 226, 150, .75), 0 0 40px 12px rgba(255, 190, 90, .35);
    pointer-events: none;
    opacity: 0;
}
.stage.is-pre .singularity { opacity: 1; animation: singularity-blink 1.1s ease-in-out infinite; }
/* ברגע המפץ הנקודה מתלקחת ונבלעת בגלובוס שגדל ממנה */
.stage.is-bang .singularity { animation: singularity-out 500ms var(--ease-out-quart) both; }
@keyframes singularity-blink {
    0%, 100% { opacity: .35; transform: translate(-50%, -50%) scale(.75); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}
@keyframes singularity-out {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to   { opacity: 0; transform: translate(-50%, -50%) scale(4); }
}
/* בזמן הטעינה מסתירים את כל השאר - רק החלל והנקודה */
.stage.is-pre .globe, .stage.is-pre .rays, .stage.is-pre .orbit-path, .stage.is-pre .orbit-glow { opacity: 0; }
.orbit-path { transition: opacity 1.2s ease-out; }

/* מצב התחלתי של הפתיחה: הכדור והקרניים קטנים, הכיתוב מוסתר */
.stage.is-pre .globe, .stage.is-pre .rays { transform: translate(-50%, -50%) scale(.1); }
.stage.is-pre .flare-wrap { opacity: 0; }
.stage.is-pre .globe-white { opacity: 1; }
.stage.is-pre .globe-title, .stage.is-bang .globe-title { opacity: 0; }

/* שלב 1: הגלובוס והקרניים, לבנים: גדלים ל-150% (0-0.5 שנ'), מתכווצים ל-100% יחד עם כניסת הכיתוב (0.5-1.8 שנ'),
   ואז הלבן דועך ונחשף הגלובוס המסתובב (1.8-2.4 שנ'). העקומות לכל קטע מוגדרות בתוך ה-keyframes */
.stage.is-bang .globe       { animation: bang-grow var(--globe-ms, 2400ms) linear both; }
.stage.is-bang .rays        { animation: bang-grow var(--globe-ms, 2400ms) linear both; }
.stage.is-bang .flare-wrap  { animation: flare-in .9s ease-out calc(var(--globe-ms, 1800ms) * .8) both; }   /* לקראת סוף גדילת הגלובוס */
.stage.is-bang .globe-white { animation: globe-white var(--globe-ms, 2400ms) linear both; }
/* שלב 2: הפלנטות יוצאות (JS). הכיתוב נכנס לקראת סוף היציאה, מעט לפני שהן מקבלות צבע */
.stage.is-title .globe-title { opacity: 1; animation: title-in 1.3s cubic-bezier(.16, 1, .3, 1) both; }
.stage.is-title .globe-title::after { animation: title-bright 1.2s ease-out both; }

@keyframes flare-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes globe-white {
    0%   { opacity: 1; }
    75%  { opacity: 1; animation-timing-function: ease-out; }   /* לבן עד סוף ההתכווצות, ואז דועך */
    100% { opacity: 0; }
}
/* המפץ: יציאה מהירה ל-150% (ease-out), ואז התכווצות מתונה ל-100% במהלך כניסת הכיתוב (0.5-1.8 שנ') */
@keyframes bang-grow {
    0%   { transform: translate(-50%, -50%) scale(.1);  animation-timing-function: cubic-bezier(.23, 1, .32, 1); }
    21%  { transform: translate(-50%, -50%) scale(1.5); animation-timing-function: cubic-bezier(.25, .46, .45, .94); }   /* ease-out-quad: התכווצות מתונה לאורך כל הקטע */
    75%  { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}
/* כניסת הכיתוב כמו בפרומו, בלי filter: גודל ואטימות, וההבהרה היא עותק בהיר שדועך */
@keyframes title-in {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(2.6); }
    35%  { opacity: 1; }
    60%  { transform: translate(-50%, -50%) scale(.97); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
/* ברק שחולף על האותיות, כמו בפרומו. המסיכה היא תמונת הכיתוב עצמה (שקופה), כך שהברק נראה רק על האותיות */
.globe-title__shine {
    position: absolute;
    left: 1.923%;
    top: 2.007%;
    width: 96.154%;
    height: 89.298%;
    overflow: hidden;
    -webkit-mask: url('../assets/img/mapatz-text.webp') center / 100% 100% no-repeat;
            mask: url('../assets/img/mapatz-text.webp') center / 100% 100% no-repeat;
}
.globe-title__shine::after {
    content: '';
    position: absolute;
    inset: -10% auto -10% 0;
    width: 28%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
    transform: translateX(-130%) skewX(-18deg);
    animation: title-shine 6s ease-in-out 1.6s infinite;
}
@keyframes title-shine {
    0%        { transform: translateX(-130%) skewX(-18deg); }
    25%, 100% { transform: translateX(480%) skewX(-18deg); }
}

@keyframes title-bright {
    0%, 30% { opacity: 1; }
    100%    { opacity: 0; }
}

/* הכיתוב הוא שכבה נפרדת מהכדור, כדי שהגיצים ייפלו מאחוריו ולפני הכדור.
   הצל אפוי בתמונה; ::after הוא עותק בהיר לרגע ההבהרה בכניסה */
.globe-title {
    position: absolute;
    left: 50%;
    top: var(--cy);
    z-index: 155;
    width: calc(var(--globe) * 1.56);
    aspect-ratio: 832 / 299;
    transform: translate(-50%, -50%);
    background: url('../assets/img/mapatz-text-shadow.webp') center / 100% 100% no-repeat;
    pointer-events: none;
}
.globe-title::after {
    content: '';
    position: absolute;
    left: 1.923%;
    top: 2.007%;
    width: 96.154%;
    height: 89.298%;
    background: url('../assets/img/mapatz-text-bright.webp') center / 100% 100% no-repeat;
    opacity: 0;
}

/* ===== פלנטה ===== */
/* --front: 0 מאחור .. 1 בחזית (מתעדכן ב-JS). ממנו נגזרות אטימות התמונה והטקסט */
.planet-wrap {
    --front: 0;
    /* הפלנטה שמגיעה לחזית ממשיכה להציג את הלוגו חצי שנייה, ואז עוברת לתמונה. ביציאה מהחזית - חזרה מהירה ללוגו */
    --rev: 0;
    transition: --rev 250ms ease;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(var(--d) + var(--ring) * 2);
    height: calc(var(--d) + var(--ring) * 2);
    will-change: transform;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}


.planet-float { position: absolute; inset: 0; animation: float 6s ease-in-out infinite alternate paused; }
.planet-wrap.is-front .planet-float { animation-play-state: running; }
.planet-wrap.is-front { --rev: 1; transition: --rev 450ms ease 500ms; }
@keyframes float { to { transform: translateY(-10px); } }

.planet {
    position: absolute;
    inset: var(--ring);
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    /* צבעי הפלנטה (--base, --mid, --deep, --glow) נקבעים לכל פרויקט ב-JS */
    background: var(--base);   /* זה מה שרואים כשהתמונה שקופה (פלנטה לא פעילה) */
    /* הילה קטנה ובהירה, כמעט לבנה, צמודה לשפה + הילה רחבה בצבע הפלנטה */
    box-shadow: 0 0 9px 1px rgba(255, 249, 230, .95), 0 0 60px 6px rgba(var(--glow), .5);
}

/* הילה נוספת בצבע הפרויקט, רק לפלנטה שבחזית, ש"נושמת" (גודל ושקיפות של שכבה נפרדת - בלי ציור מחדש) */
.planet-halo {
    position: absolute;
    inset: var(--ring);
    opacity: var(--text-o, 0);
    pointer-events: none;
}
.planet-halo i {
    position: absolute;
    inset: -22%;
    border-radius: 50%;
    background: radial-gradient(circle closest-side, rgba(var(--glow), .55) 62%, rgba(var(--glow), .22) 78%, rgba(var(--glow), 0) 100%);
    animation: halo-breathe 4.5s ease-in-out infinite paused;
}
.planet-wrap.is-front .planet-halo i { animation-play-state: running; }
@keyframes halo-breathe {
    0%, 100% { transform: scale(.94); opacity: .6; }
    50%      { transform: scale(1.06); opacity: 1; }
}

/* פני השטח: התמונה נעה בתלת-ממד (סיבוב סביב ציר אנכי + הזזה) */
.surface {
    position: absolute;
    inset: -5% -14%;            /* שוליים קטנים מספיקים לתנועה המתונה */
    background: var(--img) center / cover;
    opacity: calc(var(--img-o, 0) * var(--rev));   /* תמונה סטטית - בלי תנועת תלת-ממד; נחשפת אחרי השהיית הלוגו */   /* נחשפת ככל שהפלנטה מתקרבת לחזית */
}

/* צל שהכפתור מטיל על תחתית הפלנטה - בתוך הכדור (נחתך לעיגול), מופיע ונעלם יחד עם הכפתור */
.planet-shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 50%;
    background: radial-gradient(ellipse 72% 36% at 50% 100%, rgba(8, 4, 1, .88) 0, rgba(8, 4, 1, .55) 45%, rgba(8, 4, 1, 0) 100%);
    opacity: 0;
    transition: opacity 200ms var(--ease-out-quart);
    pointer-events: none;
}
/* בחזית - בלי צל הכפתור על הכדור (הוסר) */

/* פלנטה לא פעילה: הלוגו על הכדור. נעלם כשהיא מגיעה לחזית והתמונה נחשפת */
.planet-logo-on {
    position: absolute;
    inset: var(--ring);
    display: grid;
    place-items: center;
    opacity: calc(1 - var(--text-o, 0) * var(--rev));
    pointer-events: none;
}
.planet-logo-on img {
    max-width: 62%;
    max-height: 46%;
    object-fit: contain;
}

/* בפתיחה הפלנטה לבנה וזוהרת, ומקבלת את צבעה כשהיא מגיעה למסלול (--white: 1..0, מתעדכן ב-JS) */
.planet-white {
    position: absolute;
    inset: var(--ring);
    border-radius: 50%;
    background: radial-gradient(circle at 40% 36%, #fff 0, #fffaf0 45%, #ffe9b8 100%);
    box-shadow: 0 0 12px 3px rgba(255, 250, 235, .85), 0 0 34px 8px rgba(255, 236, 190, .4);   /* זוהר מתון - שלא ייצור כתמים לבנים גדולים */
    opacity: var(--white, 0);
    visibility: hidden;
    pointer-events: none;
}
.planet-wrap.is-white .planet-white { visibility: visible; }

/* הפלנטה הנבחרת: כפתור בשתי שורות מתחתיה - שם הפרויקט ו"לפרטים" */
.planet-below {
    position: absolute;
    top: calc(var(--ring) + var(--d) * -0.11);   /* בחלק העליון של הספירה */
    left: 50%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
    /* מצב יציאה: עדין ומהיר (כ-35% ממשך הכניסה), עם הזזה קטנה בלבד */
    opacity: 0;
    transform: translateX(-50%) translateY(6px) scale(.98);
    transition-property: opacity, transform;
    transition-duration: 200ms;
    transition-timing-function: var(--ease-out-quart);
    pointer-events: none;
}
/* כניסה: הפלנטה נעצרת בחזית, ואחרי רגע הכפתור עולה מלמטה ונחשף (ease-out - אלמנט שנכנס) */
.planet-wrap.is-front .planet-below {
    opacity: 1;
    transform: translateX(-50%);
    transition-duration: 560ms;
    transition-delay: 140ms;
    pointer-events: auto;
}
.planet-wrap:not(.is-front) .planet-below { transform: translateX(-50%) translateY(14px) scale(.96); }
/* שתי השורות שבתוך הכפתור נחשפות בהפרש קטן (stagger) */
.planet-cta b, .planet-cta small {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 200ms var(--ease-out-quart), transform 200ms var(--ease-out-quart);
}
.planet-wrap.is-front .planet-cta b,
.planet-wrap.is-front .planet-cta small { opacity: 1; transform: none; transition-duration: 420ms; }
.planet-wrap.is-front .planet-cta b     { transition-delay: 260ms; }
.planet-wrap.is-front .planet-cta small { transition-delay: 340ms; }
.planet-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .38em 1.7em .42em;
    border: 0;
    border-radius: 999px;      /* pill */
    /* זהב כמו אותיות הכיתוב: מקור אור לבן במרכז העליון שמתפשט לקרם ולצהוב, ומעמיק לכתום וענבר בשוליים ובתחתית */
    background:
        radial-gradient(60% 70% at 50% 0%, rgba(255, 255, 255, .65) 0, rgba(255, 255, 255, 0) 55%),
        radial-gradient(ellipse at top, #fdfefd 0%, #fffde5 22%, #fef9a7 48%, #d58a24 72%, #af5009 100%);
    /* "עובי" כהה בתחתית כמו אותיות הכיתוב: שכבות חום-שחור, קו מתאר כהה דק, ופס אור כתום בשפה התחתונה של הפנים */
    box-shadow:
        /* כל המידות בחצי מהגרסה הקודמת (העובי התחתון וההילות), חוץ מקווי ה-1px */
        inset 0 1px 0 rgb(43 10 2),                  /* קו כהה בשפה העליונה */
        inset 0 -1px 0 rgba(255, 196, 110, .6),      /* פס אור בשפה התחתונה, כמו הזוהר שמתחת לאותיות */
        inset 0 -2.5px 4.5px rgba(92, 39, 5, .55),
        0 0 0 1px rgba(60, 24, 3, .7),
        0 1.5px 0 #221100,
        0 3px 0 #331600,
        0 2.5px 0 #3e1700,
        0 4px 0 #2a1003,
        0 9px 11px rgba(var(--glow), .6),            /* הילה תחתונה בצבע הפרויקט */
        0 -4px 9px rgba(0, 0, 0, .55),               /* צל כלפי מעלה, על הפלנטה - מבדיל את הכפתור ממנה */
        0 0 13px rgba(var(--glow), .55);             /* הילה בצבע הפרויקט - הכפתור עצמו נשאר זהב */
    text-shadow: 0 1px 0 rgba(255, 250, 225, .75), 0 -1px 0 rgba(120, 60, 10, .2);   /* אותיות מוטבעות */
    color: #2a1004;
    font: inherit;
    font-size: calc(var(--d) * .085);
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    transition: transform 150ms ease-out, box-shadow 150ms ease;
}
/* שתי שורות: שם הפרויקט מודגש, ומתחתיו "לפרטים" קטן ורגיל - הנחיה ולא מידע נוסף */
.planet-cta b { font-weight: 700; }
.planet-cta small { font-size: .85em; font-weight: 600; color: #5c2f0c; }
/* החצים מהבהבים - רק בפלנטה שבחזית */
.cta-arrows { display: inline-block; animation: cta-blink 1s ease-in-out infinite paused; }
.planet-wrap.is-front .cta-arrows { animation-play-state: running; }
@keyframes cta-blink { 50% { opacity: .15; } }
/* ברק שחולף על הכפתור, במועד אחר מהברק של הכיתוב */
.planet-cta::after {
    content: '';
    position: absolute;
    inset: -20% auto -20% 0;
    width: 30%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75), rgba(255, 255, 255, 0));
    transform: translateX(-140%) skewX(-18deg);
    animation: cta-shine 6s ease-in-out 3s infinite paused;
}
.planet-wrap.is-front .planet-cta::after { animation-play-state: running; }
@keyframes cta-shine {
    0%        { transform: translateX(-140%) skewX(-18deg); }
    22%, 100% { transform: translateX(440%) skewX(-18deg); }
}
.planet-cta:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.planet-wrap.is-front { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
    /* זהה לכפתור הרגיל, חוץ משתי השורות המסומנות: הילה תחתונה וחיצונית חזקות יותר */
    .planet-wrap.is-front:hover .planet-cta {
        box-shadow:
            inset 0 1px 0 rgb(43 10 2),
            inset 0 -1px 0 rgba(255, 196, 110, .6),
            inset 0 -2.5px 4.5px rgba(92, 39, 5, .55),
            0 0 0 1px rgba(60, 24, 3, .7),
            0 1.5px 0 #221100,
            0 3px 0 #331600,
            0 2.5px 0 #3e1700,
            0 4px 0 #2a1003,
            0 10px 13px rgba(var(--glow), .8),           /* ← חזקה יותר */
            0 -4px 9px rgba(0, 0, 0, .55),
            0 0 19px rgba(var(--glow), .8);              /* ← חזקה יותר */
    }
}
.planet-wrap.is-front .planet-cta:active { transform: scale(.97); }

/* שכבת הצללה בלבד */
.planet::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 32%, rgba(var(--mid), 0) 44%, rgba(var(--mid), .72) 68%, rgba(var(--deep), 1) 75%);
    box-shadow: inset 0 0 12px 10px rgba(var(--deep), 1);
    opacity: calc(.8 * (1 - var(--text-o, 0) * var(--rev)));   /* בחזית - בלי הצללה פנימית (אחרי חשיפת התמונה) */
}

/* שכבת הארה בלבד - נקודת אור בצד המואר */
.planet::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 27%, rgba(255, 246, 220, 1) 0, rgba(255, 246, 220, .5) 22%, rgba(255, 246, 220, 0) 44%);
    opacity: calc(.28 * (1 - var(--text-o, 0) * var(--rev)));   /* בחזית - בלי הארה פנימית (אחרי חשיפת התמונה) */
}

@keyframes move3d {
    0%   { transform: rotate3d(0, 1, 0, 4deg) translateX(.6em); }
    50%  { transform: rotate3d(0, 1, 0, -4deg) translateX(-.6em); }
    100% { transform: rotate3d(0, 1, 0, 4deg) translateX(.6em); }
}

/* ===== חיצים ===== */
.arrow {
    position: absolute;
    z-index: 300;
    width: 5em;
    height: 5em;
    font-size: inherit;                  /* כפתור לא יורש גופן - כך ה-em שלו הוא של הבמה */
    border: 1px solid rgba(217, 181, 106, .7);
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: var(--gold-light);
    cursor: pointer;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s ease, transform 150ms ease-out, background-color .2s ease, border-color .2s ease;
}
.stage.is-ready .arrow { opacity: 1; pointer-events: auto; }
/* hover רק במכשירים עם עכבר - במגע הוא "נתקע" אחרי הקשה */
@media (hover: hover) and (pointer: fine) {
    .arrow:hover { background: rgba(217, 181, 106, .2); border-color: var(--gold-light); }
}
/* תגובה מוחשית ללחיצה, בכל מכשיר */
.arrow:active { background: rgba(217, 181, 106, .4); transform: translate(-50%, -50%) scale(.97); }
.arrow:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.arrow svg { display: block; width: 2.2em; height: 2.2em; margin: auto; }
/* דסקטופ: מתחת לשתי הפלנטות שלצידי הגלובוס (.235 = חצי מגודל פלנטת צד) */
#arrowRight, #arrowLeft { top: calc(var(--cy) + var(--d) * .235 + 5em); }
#arrowRight { left: calc(50% + var(--rx)); }
#arrowLeft  { left: calc(50% - var(--rx)); }
/* מובייל: משני צידי הפלנטה שבחזית */
@media (max-width: 699px), (max-aspect-ratio: 1299/1000) {
    #arrowRight, #arrowLeft { top: calc(var(--cy) + var(--ry)); }
    /* החיצים גדולים ב-50% (7.5em במקום 5em); המרחק מהמרכז גדל בהתאם (4.85em במקום 3.6em), כדי שלא ייכנסו לפלנטה ולשולי המסך */
    .arrow { width: 7.5em; height: 7.5em; }
    .arrow svg { width: 3.3em; height: 3.3em; }
    #arrowRight { left: min(calc(100% - 4.85em), calc(50% + var(--d) / 2 + var(--ring) + 4.85em)); }
    #arrowLeft  { left: max(4.85em, calc(50% - var(--d) / 2 - var(--ring) - 4.85em)); }
}

/* ===== פרויקט פתוח ===== */
/* נפתח כעיגול שגדל מתוך הפלנטה (--x, --y, --r נקבעים ב-JS לפי מיקומה) עד שהוא מכסה את המסך */
.project {
    --accent: 245, 207, 92;
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #05060f;
    visibility: hidden;
    clip-path: circle(var(--r, 0px) at var(--x, 50%) var(--y, 50%));
    /* סגירה: מהירה בכ-20% מהפתיחה, ב-ease-out - מתחילה מיד ונרגעת אל הפלנטה */
    transition: clip-path 600ms var(--ease-out-quart), visibility 0s 600ms;
}
.project.is-open { visibility: visible; clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%)); transition: clip-path .75s cubic-bezier(.5, 0, .2, 1); }
.project.is-settled { clip-path: none; }

html.project-open { overflow: hidden; }
/* כשפרויקט פתוח, האנימציות שמאחור מושהות */
html.project-open .space *, html.project-open .space { animation-play-state: paused !important; }

.project__close {
    position: fixed;
    top: 14px;
    right: 14px;               /* בצד ימין למעלה */
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(var(--accent), .7);
    border-radius: 10px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 150ms ease-out, background-color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .project__close:hover { background: rgba(var(--accent), .25); }
}
.project__close:active { transform: scale(.97); }
.project__close:focus-visible, .strip-btn:focus-visible, .more:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.project__close svg { width: 16px; height: 16px; }

/* רצועת תמונות נגללת (scroll-snap), בלי ספריית קרוסלה */
.strip-wrap {position: relative;}
.strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    direction: rtl;               /* תמונות מימין לשמאל */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; }
.strip figure { position: relative; flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
.strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.strip figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 26px 14px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
    direction: rtl;
    font-size: 18px;
    font-weight: 700;
}

.strip-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 150ms ease-out, background-color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .strip-btn:hover { background: rgba(var(--accent), .35); }
}
.strip-btn:active { transform: translateY(-50%) scale(.97); }
.strip-btn svg { display: block; width: 18px; height: 18px; margin: auto; }
.strip-btn--prev { right: 12px; }   /* מימין לשמאל: הקודמת מימין, הבאה משמאל */
.strip-btn--next { left: 12px; }

.hero-strip figure {height: min(62vh, 56.25vw);min-height: 240px;mask-image: linear-gradient(180deg,  transparent, black clamp(10px, 8%, 50px));}
.hero-strip::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 90px;
    background: linear-gradient(to top, #05060f, rgba(5, 6, 15, 0));
    pointer-events: none;
}

.project__body {width: min(100% - 32px, 920px);margin: 0 auto;padding-bottom: 0;z-index: 1;position: relative;margin-bottom: clamp(-50px, -8% , -10px);}
.project__body.project__body__top {position: sticky;top: clamp(-200px, -17% , -50px);z-index: 3;}

.project__head {display: flex;flex-direction: column;align-items: center;gap: 10px;margin-top: 20px;position: relative;text-align: center;}   /* בראש הדף, מתחת לכפתור חזרה */
.project__head img { height: 84px; width: auto; max-width: 70%; object-fit: contain; }
.project__name { font-size: 22px; font-weight: 400; color: rgb(var(--accent)); }

.project h2 { margin: 26px 0 12px; font-size: clamp(26px, 4.4vw, 38px); font-weight: 700; line-height: 1.2; text-align: center; color: var(--gold-light); text-wrap: balance; }

/* טקסט מתקפל עם "קראו עוד" */
.fold { max-height: 6.4em; overflow: hidden; font-size: 19px; line-height: 1.6; color: #d7dbee; white-space: pre-line; transition: max-height .4s ease; }
.fold--legal { max-height: 4.5em; font-size: 14px; line-height: 1.5; color: #9aa2c4; }
.more { display: block; margin: 6px auto 0; padding: 4px 10px; border: 0; background: none; color: rgb(var(--accent)); font: inherit; font-size: 17px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.more span:last-child, .more[aria-expanded="true"] span:first-child { display: none; }
.more[aria-expanded="true"] span:last-child { display: inline; }

.gallery-strip { margin-top: 30px; border-radius: 12px; overflow: hidden; }
.gallery-strip .strip { gap: 10px; }
.gallery-strip figure { flex-basis: 78%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; }

/* תנאים והטבות */
.terms {
    margin-top: 34px;
    padding: 26px 18px 24px;
    border: 1px solid rgba(var(--accent), .55);
    border-radius: 14px;
    background: linear-gradient(to bottom, rgba(var(--accent), .16), rgba(var(--accent), .04));
    text-align: center;
}
.terms h2 { margin-top: 0; }
.terms__boxes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.terms__box {
    flex: 1 1 260px;
    max-width: 420px;
    padding: 16px 14px;
    border-radius: 12px;
    background: #fff;
    color: #10142e;
    font-size: clamp(22px, 3.4vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    white-space: pre-line;
}
.terms__box small { display: block; margin-top: 4px; font-size: .68em; font-weight: 400; }
.terms__note { margin-top: 16px; font-size: 21px; font-weight: 700; }
.terms__bank { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: 18px; color: #d7dbee; }
.terms__bank img { height: 34px; width: auto; padding: 4px 8px; border-radius: 6px; background: #fff; }

.terms__phone {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 26px;
    border-radius: 10px;
    background: linear-gradient(180deg, #fdf3a0 0%, #f5cf5c 38%, #e9b339 72%, #b96613 100%);
    box-shadow: 0 3px 0 #5c2705;
    color: #2a1004;
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
}
.terms__phone:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

.legal { margin-top: 30px; }

@media (min-width: 768px) {
    .gallery-strip figure { flex-basis: 100%; }   /* דסקטופ: תמונה אחת על כל השטח */
    .project__head img { height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
    .project, .project.is-open, .arrow, .project__close, .strip-btn, .orbit-path { transition: none; }
    .singularity { animation: none !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    .surface, .planet-float, .planet-halo i, .planet-cta::after, .rays-inner, .cta-arrows,
    .planet-below, .planet-cta, .planet-cta b, .planet-cta small, .planet-shade { animation: none; transition: none; }
}

/* ===================================================================================== */
/* הכפתור של הפלנטה: שורה אחת ("לפרטים") - השם עלה לספירה */
.planet-cta { padding: .45em 1.6em .5em; }

/* ===== המסר: דירת X חד׳ / החל מ- / היתרה / עד גמר המלאי (בתצורת המודעות) ===== */
.offer {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--cy) + var(--ry) + var(--d) / 2 + var(--ring) - 4em);   /* מובייל: מתחת לפלנטה שבחזית */
    z-index: 170;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .95em;
    pointer-events: none;
    color: #fff;
    text-align: center;
    max-width: 70em;                           /* 28.10 (שלומי): מגביל את רוחב ההילה במסכים רחבים בתצוגת מובייל */
    margin: auto;
}
.offer::before{content:"";position:absolute;left: 50%;width: 120%;aspect-ratio: 1.3;bottom: -70%;   /* ממורכז אופקית (בדסקטופ המסר מתפרס על כל הבמה) */background: radial-gradient(ellipse at center, var(--offer-c) 38%, transparent 70%);
    /* ההילה בצבע הפרויקט נעלמת עם תחילת הסיבוב (מתכווצת ודועכת), ומופיעה מחדש בצבע החדש כשהפלנטה נעצרת בחזית.
       הצבע מתחלף כשהיא מוסתרת, כך שלא רואים מעבר צבע */
    opacity: 0;
    transform: translateX(-50%) scale(.8);
    transition: opacity 220ms var(--ease-out-quart), transform 220ms var(--ease-out-quart);}
.offer.is-on::before { opacity: 1; transform: translateX(-50%); transition-duration: 800ms; transition-delay: 100ms; }
.offer-col {display: flex;flex-direction: column;align-items: center;gap: .95em;position: relative;z-index: 1;}

/* גודל כל שורה נקבע ב-font-size שלה (em של הבמה); הריווחים הפנימיים יחסיים לגופן של השורה */
.offer-rooms {
    font-size: 4.55em;
    font-weight: 700;
    line-height: 1.05;
    text-wrap: balance;
    text-shadow: 0 .06em 0 rgba(0, 0, 0, .55), 0 .12em .5em rgba(0, 0, 0, .6);
}

/* המחיר: מספר זהב גדול עם קו מתאר כהה, "החל מ-" קטן מימין ו-₪ משמאל, וקווי אור מעל ומתחת */
.offer-price {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: .5em;
    padding: .95em 3.1em;
    direction: rtl;
}
.offer-price::before, .offer-price::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1.65em;
    background:
        radial-gradient(closest-side, #fff 0, rgba(255, 214, 130, .7) 35%, rgba(255, 190, 80, 0) 100%) 22% 50% / 5.4em 100% no-repeat,
        radial-gradient(closest-side, #fff 0, rgba(255, 214, 130, .7) 35%, rgba(255, 190, 80, 0) 100%) 78% 50% / 5.4em 100% no-repeat,
        linear-gradient(90deg, rgba(246, 200, 106, 0), #f6c86a 25%, #fff3c8 50%, #f6c86a 75%, rgba(246, 200, 106, 0)) 50% 50% / 100% 2px no-repeat;
    transform: scaleX(0);
}
.offer-price::before { top: -.7em; }
.offer-price::after  { bottom: -.7em; }
.offer-from {
    align-self: flex-start;
    margin-top: .55em;
    font-size: 1.8em;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 .06em .2em rgba(0, 0, 0, .8);
}
.offer-num {
    position: relative;
    display: block;
    font-family: 'Roboto Condensed', 'Open Sans Hebrew Condensed', Arial, sans-serif;   /* ספרות כמו במודעות: עבות מאוד, מעט צרות, 0 בצדדים ישרים */
    font-size: 6.9em;
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.01em;
    direction: ltr;
}
.offer-num__shadow {
    position: absolute;
    inset: 0;
    color: #24130a;
    -webkit-text-stroke: 0.05em #24130a;
    text-shadow: 0 .03em 0 #1a0d04, 0 0 .4em rgba(255, 186, 70, .45);
}
.offer-num__fill {
    position: relative;
    background: linear-gradient(180deg, #fffbe8 0%, #ffeaa6 30%, #f4c25a 55%, #d18c22 78%, #ffe7a1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.offer-num .cm { font-size: .6em; }   /* פסיקים קטנים יותר מהספרות */
.offer-cur {
    font-size: 2.6em;
    font-weight: 700;
    color: #e2a63d;
    text-shadow: 0 .05em 0 #24130a;
}

/* היתרה: משיכת מכחול זהב, טקסט כהה */
.offer-banner {
    position: relative;
    padding: .37em 1.37em .42em;
    color: var(--offer-c);
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}
.offer-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 80' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%239a6412'/%3E%3Cstop offset='.12' stop-color='%23e3b048'/%3E%3Cstop offset='.42' stop-color='%23fff0b6'/%3E%3Cstop offset='.62' stop-color='%23f5d37a'/%3E%3Cstop offset='.86' stop-color='%23d39a2e'/%3E%3Cstop offset='1' stop-color='%238f5c10'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M16 9C130 3 470 1 586 7L574 17L596 25L582 35L598 45L580 55L594 66C470 77 130 79 9 72L22 62L3 52L20 42L2 32L18 21Z'/%3E%3Cpath fill='none' stroke='%23fff' stroke-opacity='.35' stroke-width='2' d='M40 20C200 15 420 14 560 19M60 60C220 64 400 63 548 58'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    filter: none;
    transform: scaleX(0);
    transform-origin: 100% 50%;          /* נמשך מימין לשמאל, בכיוון הקריאה */
}
.offer-banner b {
    font-size: 1.4em;
    line-height: .8;
    vertical-align: -.06em;
    font-family: 'Roboto Condensed';
    letter-spacing: -0.05em;
}
.offer-banner__text { position: relative; display: inline-block; }

.offer-until {
    display: flex;
    align-items: center;
    gap: .67em;
    font-size: 3.4em;
    font-weight: 700;
    text-shadow: 0 .06em .2em rgba(0, 0, 0, .8);
}
.offer-until::before, .offer-until::after {
    content: '';
    width: 2.55em;
    height: 2px;
    background: linear-gradient(90deg, rgba(246, 200, 106, 0), #f6c86a);
}
.offer-until::after { transform: scaleX(-1); }

/* דסקטופ: שתי עמודות משני צידי הספירה - מימין חדרים ומחיר, משמאל היתרה ועד גמר המלאי */
@media (min-width: 700px) and (min-aspect-ratio: 13/10) {
    .offer { inset: 0; top: 0; display: block; }
    .offer-col {
        position: absolute;
        top: calc(var(--cy) + var(--ry) + var(--d) * .08);   /* מעט מתחת למרכז הספירה */
        width: max-content;                  /* שורה אחת כמו במודעה; העמודה גדלה החוצה מהספירה */
        transform: translateY(-50%);
        gap: 1.55em;
    }
    .offer-col--a { left: calc(50% + var(--d) / 2 + var(--ring) + 4.8em); }
    .offer-col--b { right: calc(50% + var(--d) / 2 + var(--ring) + 4.8em); }
    /* מסכים לא רחבים במיוחד (אייפד שוכב, 4:3): העמודות מוקטנות מהצד הפנימי כדי לא לצאת מהמסך. --offer-k נקבע ב-fitOffer() */
    #offer .offer-col { transform: translateY(-50%) scale(var(--offer-k, 1)); }
    #offer .offer-col--a { transform-origin: 0 50%; }
    #offer .offer-col--b { transform-origin: 100% 50%; }
    .offer-rooms  { font-size: 5.95em; }
    .offer-from   { font-size: 2.6em; }
    .offer-num    { font-size: 11.1em; }
    .offer-cur    { font-size: 3.9em; }
    .offer-banner { font-size: 3.35em; }
    .offer-until  { font-size: 3.35em; }
}

/* כניסה: שורה אחרי שורה (עולה ונחשפת), המחיר מתייצב, קווי האור נפרשים מהמרכז, והמכחול נמשך מימין.
   יציאה: מהירה ועדינה, הכול יחד */
.offer-rooms, .offer-banner__text, .offer-until {
    opacity: 0;
    transform: translateY(.45em);
    transition: opacity 180ms var(--ease-out-quart), transform 180ms var(--ease-out-quart);
}
.offer-price {
    opacity: 0;
    transform: translateY(1.6em) scale(.94);
    transition: opacity 180ms var(--ease-out-quart), transform 180ms var(--ease-out-quart);
}
.offer-price::before, .offer-price::after, .offer-banner::before { transition: transform 180ms var(--ease-out-quart); }
.offer.is-on .offer-rooms, .offer.is-on .offer-price, .offer.is-on .offer-banner__text, .offer.is-on .offer-until {
    opacity: 1;
    transform: none;
    transition-duration: 640ms;
}
.offer.is-on .offer-price::before, .offer.is-on .offer-price::after { transform: scaleX(1); transition-duration: 900ms; transition-delay: 260ms; }
.offer.is-on .offer-banner::before { transform: scaleX(1); transition-duration: 700ms; transition-delay: 300ms; transition-timing-function: cubic-bezier(.65, 0, .35, 1); }
.offer.is-on .offer-rooms        { transition-delay: 60ms; }
.offer.is-on .offer-price        { transition-delay: 150ms; }
.offer.is-on .offer-banner__text { transition-delay: 520ms; }
.offer.is-on .offer-until        { transition-delay: 640ms; }

/* ===== כפתורים קבועים בתחתית (כמו ב-outlet) ===== */
.footer-cta {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 1100;                       /* מעל דף הפרויקט (1000) - הכפתורים זמינים גם שם, מתחת לחלונות הפנייה */
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(480px, calc(100% - 24px));
    transform: translateX(-50%);
}
.footer-logo { flex: none; height: 46px; width: auto; }   /* לוגו גינדי בין שני הכפתורים */
@media (min-width: 700px) and (min-aspect-ratio: 13/10) { .footer-logo { height: 56px; } }
.fbtn {
    flex: 1;
    height: 50px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: clamp(10px, calc(5vw - 2px), 20px);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, .25), 0 0 18px rgba(0, 0, 0, .35);
    transition: transform 150ms ease-out, box-shadow 150ms ease;
}
.fbtn:active { transform: scale(.97); }
.fbtn--meet {
    color: #2a1004;
    background:
        radial-gradient(60% 70% at 50% 0%, rgba(255, 255, 255, .6) 0, rgba(255, 255, 255, 0) 55%),
        radial-gradient(ellipse at top, #fdfefd 0%, #fffde5 22%, #fef9a7 48%, #d58a24 72%, #af5009 100%);
    box-shadow: inset 0 -2px 0 rgba(255, 196, 110, .6), 0 0 0 1px rgba(60, 24, 3, .7), 0 4px 0 #331600, 0 8px 18px rgba(0, 0, 0, .45);
}
.fbtn--rep {
    color: #fff;
    background: rgba(8, 12, 36, .78);
    box-shadow: inset 0 0 0 1.5px var(--gold), 0 8px 18px rgba(0, 0, 0, .45);
}
.blink { display: inline-block; padding-right: 5px; animation: fbtn-blink 1s ease infinite; }
@keyframes fbtn-blink { 50% { opacity: 0; } }
@media (hover: hover) and (pointer: fine) {
    .fbtn--rep:hover { background: rgba(217, 181, 106, .2); }
}
@media (min-width: 700px) and (min-aspect-ratio: 13/10) {
    .fbtn { height: 56px; font-size: 24px; }
}

/* ===== חלונות פנייה ===== */
html.pop-open { overflow: hidden; }
.pop[hidden], .cookies[hidden] { display: none; }   /* display של הרכיב גובר על hidden - בלי זה החלון הסגור חוסם לחיצות */
.pop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(2, 3, 12, .72);
    opacity: 0;
    transition: opacity 200ms var(--ease-out-quart);
}
.pop.is-open { opacity: 1; }
.pop__card {
    position: relative;
    width: min(440px, 100%);
    max-height: calc(100% - 20px);
    overflow: auto;
    padding: 34px 22px 22px;
    border-radius: 20px;
    background: linear-gradient(180deg, #121a44, #070a1e);
    box-shadow: inset 0 0 0 1px rgba(217, 181, 106, .45), 0 24px 60px rgba(0, 0, 0, .6);
    transform: translateY(10px) scale(.97);
    transition: transform 220ms var(--ease-out-quart);
}
.pop.is-open .pop__card { transform: none; }
.pop__close {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 40px;
    height: 40px;
    padding: 9px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.pop__close svg { width: 100%; height: 100%; }
.pop__title { margin: 0 0 6px; font-size: 26px; line-height: 1.15; text-align: center; color: var(--gold-light); text-wrap: balance; }
.pop__sub { margin: 0 0 14px; text-align: center; color: #c8cde6; font-size: 16px; text-wrap: pretty; }
.pop__call {
    display: block;
    width: max-content;
    margin: 4px auto 14px;
    padding: 6px 18px;
    border-radius: 999px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: inset 0 0 0 1.5px var(--gold);
}
.pop__form { display: flex; flex-direction: column; gap: 10px; }
.fld { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fld > span { font-size: 15px; color: #c8cde6; }
.fld input, .fld select {
    height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 17px;
}
.fld.is-bad input, .fld.is-bad select { box-shadow: 0 0 0 2px #ff6b6b; }
.fld-row { display: flex; gap: 10px; }
.chk { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #c8cde6; }
.chk input { width: 18px; height: 18px; margin-top: 2px; }
.pop__submit {
    height: 50px;
    margin-top: 6px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 21px;
    font-weight: 700;
    color: #2a1004;
    cursor: pointer;
    background: radial-gradient(ellipse at top, #fdfefd 0%, #fffde5 22%, #fef9a7 48%, #d58a24 72%, #af5009 100%);
    box-shadow: 0 0 0 1px rgba(60, 24, 3, .7), 0 4px 0 #331600;
}
.pop__submit:active { transform: scale(.97); }
.pop__msg { min-height: 1.2em; margin: 0; text-align: center; font-size: 15px; color: var(--gold-light); }

/* ===== פניה לנציג: בחירת דרך יצירת קשר (כמו ב-outlet, בצבעי הקמפיין) ===== */
.pop__card--contact { padding: 56px 22px 40px; }
.contact-btns { display: flex; flex-direction: column; gap: 18px; width: min(300px, 100%); margin: 0 auto; }
.contact-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1.5px var(--gold);
    color: #fff;
    font: inherit;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 150ms ease-out, background-color .2s ease;
}
.contact-btn--main {                     /* הפעולה הראשית - זהב, כמו "תיאום פגישה" */
    color: #2a1004;
    font-size: 25px;
    background:
        radial-gradient(60% 70% at 50% 0%, rgba(255, 255, 255, .6) 0, rgba(255, 255, 255, 0) 55%),
        radial-gradient(ellipse at top, #fdfefd 0%, #fffde5 22%, #fef9a7 48%, #d58a24 72%, #af5009 100%);
    box-shadow: inset 0 -2px 0 rgba(255, 196, 110, .6), 0 0 0 1px rgba(60, 24, 3, .7), 0 4px 0 #331600;
}
.contact-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
    .contact-btn:not(.contact-btn--main):hover { background: rgba(217, 181, 106, .2); }
}
.contact-btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.contact-ico {                            /* אייקון בעיגול לבן בצד ימין, כמו ב-outlet */
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
}
.contact-ico svg { width: 60%; height: 60%; fill: #1a1a19; }
.contact-ico--wa svg { width: 72%; height: 72%; fill: #4caf50; }

/* ===== לוגו גינדי למעלה משמאל + כפתור מידע (הערה משפטית) ===== */
.top-brand {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top));
    left: 12px;
    z-index: 950;                        /* מתחת לדף הפרויקט (1000) */
    display: flex;
    direction: ltr;
    flex-direction: row-reverse;         /* ה"מידע" בקצה השמאלי, והלוגו מימינו */
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}
.top-brand__logo { display: block; height: 44px; width: auto; }
.info-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    box-shadow: inset 0 0 0 1.5px var(--gold);
    cursor: pointer;
    transition: transform 150ms ease-out, background-color .2s ease;
}
.info-btn::after { content: ''; position: absolute; width: 44px; height: 44px; }   /* אזור לחיצה של 44px */
.info-btn svg { width: 70%; height: 70%; fill: var(--gold-light); }
.info-btn:active { transform: scale(.97); }
.info-btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .info-btn:hover { background: rgba(217, 181, 106, .25); } }
@media (min-width: 700px) and (min-aspect-ratio: 13/10) {
    .top-brand { top: calc(16px + env(safe-area-inset-top)); left: 20px; }
    .top-brand__logo { height: 56px; }
    .info-btn { width: 36px; height: 36px; }
}
.legal-text { margin: 10px 0 0; font-size: 17px; line-height: 1.55; color: #d7dbee; text-align: center; text-wrap: pretty; }

/* ===== צ'אט AI: למטה משמאל, בגובה הכפתורים - פותח את הצ'אט של tovaai ===== */
.ai-chat {
    position: fixed;
    left: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(8, 12, 36, .78);
    box-shadow: inset 0 0 0 1.5px var(--gold), 0 8px 18px rgba(0, 0, 0, .45);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 150ms ease-out, background-color .2s ease;
}
.ai-chat:active { transform: scale(.97); }
.ai-chat:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .ai-chat:hover { background: rgba(217, 181, 106, .25); } }
.ai-chat svg { width: 56%; height: 56%; fill: var(--gold-light); }
.ai-chat svg .ai-chat__spark { fill: #1d2448; }
.ai-chat__tag {
    position: absolute;
    top: -4px;
    right: -6px;
    padding: 1px 5px;
    border-radius: 999px;
    background: radial-gradient(ellipse at top, #fffde5 0%, #fef9a7 40%, #d58a24 85%);
    color: #2a1004;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}
@media (min-width: 700px) and (min-aspect-ratio: 13/10) {
    .ai-chat { left: 20px; width: 56px; height: 56px; }
}
/* מובייל: הכפתורים זזים ימינה כדי לפנות מקום לאייקון הצ'אט */
@media (max-width: 699px), (max-aspect-ratio: 1299/1000) {
    .footer-cta { left: auto; right: 12px; transform: none; width: calc(100% - 24px - 60px); }
}

/* ===== מחירון בדף הפרויקט ===== */
.prices { margin-top: 30px; }
.prices__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(var(--accent), .45);
    font-size: 17px;
    text-align: center;
}
.prices__table th {
    padding: 10px 6px;
    background: rgba(var(--accent), .18);
    color: var(--gold-light);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.prices__table td { padding: 11px 6px; border-top: 1px solid rgba(255, 255, 255, .08); color: #d7dbee; font-variant-numeric: tabular-nums; }
.prices__table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .03); }
.prices__table tr:focus-visible { outline: 3px solid var(--gold-light); outline-offset: -3px; }
.prices__name { font-weight: 700; color: #fff; }
.prices__price { font-weight: 700; color: var(--gold-light); white-space: nowrap; }
.prices__price i { margin-left: 2px; font-style: normal; font-size: .8em; }
@media (max-width: 480px) {
    .prices__table { font-size: 14px; }
    .prices__table th { font-size: 12px; padding: 8px 3px; }
    .prices__table td { padding: 9px 3px; }
}

/* ===== דף הפרויקט: המסר בעיצוב הדף הראשי במובייל, והילה בצבע הפרויקט ===== */
.offer.offer--page {
    position: relative;
    inset: auto;
    top: auto;
    z-index: 0;
    display: flex;
    margin: 6px auto 0;
    padding: 2em 0 4em;
    font-size: min(7.4px, 1.9vw);          /* בסיס ה-em כמו בבמה במובייל */
}
.offer--page::before { bottom: -40%; }
.offer--page .offer-col { position: relative; top: auto; left: auto; right: auto; width: auto; transform: none; }
@media (min-width: 700px) and (min-aspect-ratio: 13/10) {               /* גם בדסקטופ - אותם גדלים כמו במובייל */
    .offer--page .offer-col { gap: .95em; }
    .offer--page .offer-rooms  { font-size: 4.55em; }
    .offer--page .offer-from   { font-size: 1.8em; }
    .offer--page .offer-num    { font-size: 6.9em; }
    .offer--page .offer-cur    { font-size: 2.6em; }
    .offer--page .offer-banner { font-size: 3.2em; }
    .offer--page .offer-until  { font-size: 3.4em; }
}
.terms { position: relative; overflow: hidden; }   /* ההילה נשארת בתוך המסגרת */
.terms > h2, .terms > .terms__bank, .terms > .terms__phone { position: relative; z-index: 1; }

/* צבע הפרויקט בדף: רקע עם הילה מלמטה ומלמעלה, כמו בדף הראשי */
.project {
    background: radial-gradient(ellipse 100vh 100vh at 50% 0%, var(--base, #05060f) 0, rgba(5, 6, 15, 0) 100%) fixed, radial-gradient(ellipse 90% 40% at 50% 0%, rgba(var(--accent), .14) 0, rgba(5, 6, 15, 0) 100%) fixed, #05060f;
}
.project h2 { color: rgb(var(--accent)); }                 /* כותרות בצבע הפרויקט */
.terms__phone { box-shadow: 0 3px 0 #5c2705, 0 0 26px rgba(var(--accent), .55); }

/* ===== דף הפרויקט: לוגו המפץ הגדול עם הגלובוס המסתובב מאחוריו ===== */
.pj-mapatz {
    --g: min(170px, 42vw);                 /* קוטר הגלובוס */
    position: relative;
    width: calc(var(--g) * 1.56);
    height: calc(var(--g) / var(--globe-ar) + 10px);
    margin: 18px auto 0;
}
.pj-mapatz::before {                       /* הילה זהובה סביב הגלובוס, כמו בדף הראשי */
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--g) * 1.7);
    aspect-ratio: var(--globe-ar);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse closest-side, rgba(255, 240, 180, .9) 55%, rgba(250, 195, 100, .55) 63%, rgba(220, 140, 70, .25) 78%, rgba(170, 110, 100, 0) 99%);
}
.pj-mapatz__globe {
    --vcx: .5008;
    --vcy: .4996;
    --vr: .468;
    --fit: 1.03;
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--g);
    aspect-ratio: var(--globe-ar);
    border-radius: 50%;
    overflow: hidden;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 18px 4px rgba(255, 214, 120, .55);
}
.pj-mapatz__globe video {
    position: absolute;
    width: calc(100% * var(--fit) / (2 * var(--vr)));
    height: auto;
    left: 50%;
    top: 50%;
    max-width: none;
    transform: translate(calc(var(--vcx) * -100%), calc(var(--vcy) * -100%));
}
.pj-mapatz__title {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    aspect-ratio: 832 / 299;
    transform: translate(-50%, -50%);
    background: url('../assets/img/mapatz-text-shadow.webp') center / 100% 100% no-repeat;
}

/* הטקסט העליון ממורכז */
.project__body > .fold { text-align: center; }

/* "20/80 ללא הצמדה למדד!" בתחתית המבצע */
.offer-extra {
    font-size: 3.4em;
    font-weight: 700;
    text-shadow: 0 .06em .2em rgba(0, 0, 0, .8);
    opacity: 0;
    transform: translateY(.45em);
    transition: opacity 180ms var(--ease-out-quart), transform 180ms var(--ease-out-quart);
}
.offer-extra b {
    font-family: 'Roboto Condensed', 'Open Sans Hebrew Condensed', sans-serif;
    font-weight: 900;
    color: #ffe08a;
    letter-spacing: -.02em;
}
.offer.is-on .offer-extra { opacity: 1; transform: none; transition-duration: 640ms; transition-delay: 760ms; }
.terms { padding-bottom: 6px; }

/* ===== דף הפרויקט: קרניים ובוהק סביב לוגו המפץ הגדול (כמו בדף הראשי) ===== */
.project { overflow-x: hidden; }            /* הקרניים רחבות מהמסך במובייל */
.pj-mapatz { isolation: isolate; }
.pj-rays, .pj-flare-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--g) * 2.6);
    height: calc(var(--g) * 2.6);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.pj-rays { z-index: -1; }                   /* מאחורי ההילה, הגלובוס והכיתוב */
.pj-rays .rays-inner { transform: scale(.8); transition: none; }
.pj-mapatz::before { z-index: 0; }
.pj-flare-wrap { z-index: 1; }              /* הבוהק שמאחורי הגלובוס */
.pj-mapatz__globe { z-index: 2; }
.pj-flare-wrap--front { z-index: 3; }       /* הבוהק הקטן שלפני הגלובוס */
.pj-mapatz__title { z-index: 4; }

/* לוגו הפרויקט צמוד לחלק העליון של הדף */
.project__head { margin-top: 8px; }

/* "קראו עוד" של ההערה המשפטית: בגודל הטקסט, צמוד לימין */
.legal .more { margin: 4px 0 0; padding: 0; font-size: 14px; font-weight: 400; text-align: right; }

/* ריווח בין הדמיות החוץ לטקסט */
.hero-strip + .project__body { margin-top: 28px; }
/* דסקטופ: הדמיות החוץ ברוחב של הדמיות הפנים (עד 920px), עם פינות מעוגלות */
@media (min-width: 768px) {
    .hero-strip { width: min(100% - 32px, 920px); margin: 0 auto; border-radius: 12px; overflow: hidden; }
}

/* ===== דף הפרויקט: צבע מלא יותר למעלה, עננים, ומסגרת זהב כמו במודעה ===== */
/* צבע הפרויקט מלא בשליש העליון ונמוג לכהה (מעל הרקע הרדיאלי) */
.project {
    background:
        linear-gradient(180deg, var(--base, #05060f) 0, var(--base, #05060f) 22%, rgba(5, 6, 15, 0) 70%),
        radial-gradient(ellipse 100vh 100vh at 50% 0%, var(--base, #05060f) 0, rgba(5, 6, 15, 0) 100%) fixed,
        radial-gradient(ellipse 90% 40% at 50% 0%, rgba(var(--accent), .14) 0, rgba(5, 6, 15, 0) 100%) fixed,
        #05060f;
}
/* רקע הפרויקט + עננים: שתי שכבות מקובעות למסך (fixed), מאחורי התוכן - אחת לכל תמונת עננים.
   הקובץ: assets/img/clouds.webp - עננים על רקע אפור #808080 (האזורים בלי עננים לא משנים את הרקע).
   כל שכבה כוללת גם את צבע הפרויקט, וה-soft-light בתוכה (background-blend-mode) - עובד גם באייפון,
   בניגוד ל-mix-blend-mode על שכבה fixed. שתי השכבות מכסות את המסך, כך שהצבע בהן זהה והמאסק לא יוצר תפר */
.pj-clouds {
    --pj-grad: linear-gradient(180deg,
        color-mix(in srgb, var(--base, #05060f) 85%, #000) 0,
        var(--base, #05060f) 40%,
        color-mix(in srgb, var(--base, #05060f) 72%, #fff) 100%);
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('../assets/img/clouds.webp') center top / cover no-repeat, var(--pj-grad);
    background-blend-mode: soft-light, normal;   /* אפור 50% ניטרלי: בהיר ממנו מבהיר, כהה ממנו מכהה - בגוון של צבע הפרויקט */
    pointer-events: none;
}
/* השכבה התחתונה - רק במובייל: ב-200% בתחתית המסך, נעלמת כלפי מעלה */
.pj-clouds--low { display: none; }
@media (max-width: 699px), (max-aspect-ratio: 1299/1000) {
    .pj-clouds { background-size: 100% auto, auto; }
    .pj-clouds--low {
        display: block;
        background-position: center bottom, 0 0;
        background-size: 200% auto, auto;
        -webkit-mask-image: linear-gradient(transparent 0 50%, #000 65%);
                mask-image: linear-gradient(transparent 0 50%, #000 65%);
    }
}
#projectContent { position: relative; z-index: 1; }

/* מסגרת המבצע: קו זהב דק בפינות ישרות, עם פתח בקו התחתון שבו יושב לוגו הפרויקט */
.terms {
    --frame-b: 34px;                       /* גובה הקו התחתון מתחתית המבצע (חצי מגובה הלוגו) */
    border: 0;
    border-radius: 0;
    background: none;
    padding-bottom: calc(var(--frame-b) * 2 + 10px);
}
.terms::after {
    content: '';
    position: absolute;
    inset: 0 0 var(--frame-b);
    border: 1.5px solid var(--gold);
    pointer-events: none;
    /* פתח באמצע הקו התחתון: הקו התחתון מצויר רק בצדדים */
    -webkit-mask:
        linear-gradient(#000 0 0) top / 100% calc(100% - 2px) no-repeat,
        linear-gradient(90deg, #000 0 30%, transparent 30% 70%, #000 70%) bottom / 100% 2px no-repeat;
            mask:
        linear-gradient(#000 0 0) top / 100% calc(100% - 2px) no-repeat,
        linear-gradient(90deg, #000 0 30%, transparent 30% 70%, #000 70%) bottom / 100% 2px no-repeat;
}
.terms__logo {
    position: absolute;
    left: 50%;
    bottom: var(--frame-b);
    z-index: 1;
    width: auto;
    height: calc(var(--frame-b) * 2);
    max-width: 36%;
    object-fit: contain;
    transform: translate(-50%, 50%);
}


}

/* תיקונים אחרי בדיקה: הלוגו הרוכב לא עולה על לוגו הפרויקט, והמבצע בדסקטופ גדול יותר (ממלא את המסגרת כמו במודעה) */
.project__body.project__body__top { margin-bottom: 0; }
.offer.offer--page { font-size: clamp(7.4px, 1.9vw, 12px); }   /* במובייל כמו קודם (7.4px), בדסקטופ עד 12px */

/* ===== דף הפרויקט: רקע מלא בצבע הפרויקט, ושני לוגואי מפץ (למעלה ובמבצע) - בלי sticky ===== */
/* צבע הפרויקט לכל אורך הדף, ובהיר יותר בתחתית. local - הגרדיאנט נמתח על כל הדף ונגלל איתו */
.project {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--base, #05060f) 85%, #000) 0,
        var(--base, #05060f) 40%,
        color-mix(in srgb, var(--base, #05060f) 72%, #fff) 100%) local;
}
.project__body.project__body__top { position: relative; top: auto; }   /* בלי sticky */

/* המבצע: לוגו המפץ חוצה את הקו העליון של המסגרת (כמו במודעה), עם פתח בקו העליון */
.project__body__offer { --g: min(170px, 42vw); --ov: calc(var(--g) * .55); margin-top: 70px; }   /* המחירון ראשון, המבצע אחריו */
.project__body__offer .terms { overflow: visible; margin-top: calc(var(--ov) + 50px); padding-top: 0; }   /* 50px בין המחירון לגלובוס */
.project__body__offer .terms > .pj-mapatz { top: calc(var(--ov) * -1); margin: 0 auto calc(4px - var(--ov)); }   /* הזזה יחסית (margin שלילי מתמזג עם השוליים שמסביב) */
.terms::after {
    -webkit-mask:
        linear-gradient(90deg, #000 0 26%, transparent 26% 74%, #000 74%) top / 100% 2px no-repeat,
        linear-gradient(#000 0 0) center / 100% calc(100% - 4px) no-repeat,
        linear-gradient(90deg, #000 0 30%, transparent 30% 70%, #000 70%) bottom / 100% 2px no-repeat;
            mask:
        linear-gradient(90deg, #000 0 26%, transparent 26% 74%, #000 74%) top / 100% 2px no-repeat,
        linear-gradient(#000 0 0) center / 100% calc(100% - 4px) no-repeat,
        linear-gradient(90deg, #000 0 30%, transparent 30% 70%, #000 70%) bottom / 100% 2px no-repeat;
}
.project__body__offer .prices { margin-top: 0; }

/* ===== Cookies: נפתח מלמעלה, ומתכווץ לאייקון (כמו ב-gindi_colors) ===== */
.cookies { position: fixed; top: 0; left: 0; right: 0; z-index: 3000; }
.cookies .cookiestext {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 58px 12px 10px;
    background: rgb(58 55 55 / 85%);
    color: #fff;
    font-size: 12px;
    transform: translateY(-100%);
    transition: transform .45s ease;
}
.cookies.ck-open .cookiestext { transform: translateY(0); }
.cookiestext a { color: #fff; text-decoration: underline; }
.cookiesContent { flex: 1; }
.cookiesTitle { font-weight: 700; font-size: 13px; }
.cookiesExtra { overflow: hidden; max-height: 0; transition: max-height .5s ease; }
.cookiestext.showMore .cookiesExtra { max-height: 400px; padding-top: 6px; }
.cookiesReadMore, .cookiesApprove {
    flex: none;
    height: 40px;
    border: 1px solid #ccc;
    background: #000;
    color: #fff;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
}
.cookiesReadMore { width: 44px; font-size: 13px; }
.cookiesApprove { width: 70px; }
.cookiesReadMore span:nth-child(2), .showMore .cookiesReadMore span:nth-child(1) { display: none; }
.showMore .cookiesReadMore span:nth-child(2) { display: inline; }
.cookies .ck-icon {
    position: fixed;
    top: 9px;
    right: 10px;
    z-index: 3002;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 6px;
    border: 0;
    border-radius: 50%;
    background: rgb(0 0 0 / 70%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: right .2s ease;
}
.ck-open.cookies .ck-icon { right: 7px; }
.cookies .ck-cookie { width: 100%; height: 100%; fill: #fff; }
.cookies .ck-count {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #4a2f14;
    font-weight: 800;
    font-size: 17px;
}
.cookies.ck-counting .ck-count { display: flex; }
@media (min-width: 993px) {
    .cookiesExtra { max-height: none; display: inline; }
    .cookiesTitle { display: inline; font-size: 14px; }
    .cookiesReadMore { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .offer-rooms, .offer-price, .offer-banner__text, .offer-until, .offer-extra,
    .offer-price::before, .offer-price::after, .offer-banner::before,
    .pop, .pop__card, .cookies .cookiestext, .blink, .space, .offer::before,
    .pj-rays .ray-group, .pj-flare-wrap .flare { transition: none; animation: none; }
}

/* דף פרויקט פתוח: מקום לכפתורים שבתחתית, ואייקון ה-Cookies לא מכסה את כפתור "חזרה" */
#projectContent {padding-bottom: 280px;}
html.project-open .cookies .ck-icon { opacity: 0; pointer-events: none; }

/* השוואת פונטים לספרות (?num=...) - זמני, עד שנבחר */
html[data-num="oswald"] .offer-num { font-family: 'Oswald', sans-serif; font-weight: 700; }
html[data-num="barlow"] .offer-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; }
html[data-num="anton"]  .offer-num { font-family: 'Anton', sans-serif; font-weight: 400; }
html[data-num="open"]   .offer-num { font-family: 'Open Sans Hebrew Condensed', sans-serif; font-weight: 700; }
html[data-num="roboto"] .offer-num { font-family: 'Roboto Condensed', sans-serif; font-weight: 900; }
html[data-num="heebo"]  .offer-num { font-family: 'Heebo', sans-serif; font-weight: 900; }

/* גלילה בדף הפרויקט: במובייל - הסקרולר של המכשיר; בדסקטופ (עכבר) - פס זהב דק */
@media (hover: hover) and (pointer: fine) {
    .project { scrollbar-width: thin; scrollbar-color: var(--gold-light, #f6e3a6) rgba(0, 0, 0, .25); }
    .project::-webkit-scrollbar { width: 10px; }
    .project::-webkit-scrollbar-track { background: rgba(0, 0, 0, .25); }
    .project::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background: linear-gradient(#fef9a7, #d58a24) padding-box; }
}

/* הערה משפטית: לבן קריא על הרקע הבהיר שבתחתית */
.fold--legal { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.legal .more { color: #fff; }

/* הקרניים וההבזקים של לוגו המפץ רחבים מהמסך: overflow-x: hidden על .project רק מסתיר אותם, אבל הדף עדיין
   ניתן לגלילה הצידה במגע ("נדחף ימינה"). clip חותך בלי ליצור אזור גלילה */
#projectContent { overflow-x: clip; }

/* מחירון: רקע כהה שקוף לקריאות על צבע הפרויקט והעננים, זברה כהה יותר, כותרות על פס כהה */
.prices__table { background: rgba(0, 0, 0, .32); box-shadow: inset 0 0 0 1px rgba(246, 227, 166, .35); }
.prices__table th {
    padding: 12px 6px;
    background: rgba(0, 0, 0, .45);
    border-bottom: 1px solid rgba(246, 227, 166, .45);
    color: var(--gold-light);
    font-size: 16px;
    letter-spacing: .01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.prices__table td { color: #fff; border-top-color: rgba(255, 255, 255, .1); }
.prices__table tbody tr:nth-child(even) td { background: rgba(0, 0, 0, .18); }
@media (max-width: 480px) {
    .prices__table th { font-size: 14px; padding: 10px 4px; }
}
.prices__table .prices__price { color: var(--gold-light); }

/* מחירון מעודן: כותרת בצבע הפרויקט (כמו קודם) עם טקסט שחור, רקע וזברה עדינים יותר, מחיר גדול יותר, סוג דירה צר ולא מודגש */
.prices__table { background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px rgba(var(--accent), .35); }
.prices__table th {
    padding: 9px 4px;
    background: rgba(var(--accent), .85);
    border-bottom: 0;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-shadow: none;
}
.prices__table td { padding: 9px 4px; border-top-color: rgba(255, 255, 255, .07); }
.prices__table tbody tr:nth-child(even) td { background: rgba(0, 0, 0, .12); }
.prices__table .prices__name { width: 18%; font-weight: 400; line-height: 1.25; }
.prices__table .prices__price { font-size: 1.2em; }
@media (max-width: 480px) {
    .prices__table th { font-size: 12px; padding: 8px 3px; }
    .prices__table td { padding: 8px 3px; }
}
.prices__table th { font-size: 16px; }
.prices__table .prices__price { font-size: 1.32em; }
@media (max-width: 480px) { .prices__table th { font-size: 14px; } }
.project__body__offer .terms > .pj-mapatz { z-index: 1; }   /* הגלובוס לפני קו המסגרת (::after) */

/* קווי גבול לטבלה: מסגרת חיצונית, קווים בין העמודות ובין השורות */
.prices__table { box-shadow: inset 0 0 0 1px rgba(var(--accent), .6); }
.prices__table td { border-top: 1px solid rgba(255, 255, 255, .18); }
.prices__table th + th { border-inline-start: 1px solid rgba(0, 0, 0, .25); }
.prices__table td + td { border-inline-start: 1px solid rgba(255, 255, 255, .18); }

/* גלריה במסך מלא (PhotoSwipe): התמונות ברצועה נפתחות בלחיצה */
.strip figure img { cursor: zoom-in; }
.pswp__caption {
    position: absolute;
    inset: auto 0 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgba(0, 0, 0, .6));
    color: #fff;
    font: 700 17px/1.3 'Open Sans Hebrew Condensed', Arial, sans-serif;
    text-align: center;
    pointer-events: none;
}
.pswp { direction: ltr; }                  /* הסרגל העליון של PhotoSwipe בנוי ל-LTR (ב-RTL המונה נחתך) */
.pswp__caption { direction: rtl; }
/* הערת תנאי התשלום מתחת למחירון */
.project__body__top .pj-mapatz { cursor: pointer; }   /* לחיצה = חזרה */
/* הערת תנאי התשלום - שורה אחרונה בתוך מסגרת הטבלה */
.prices__table .prices__note { padding: 11px 8px; background: rgba(0, 0, 0, .3); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.35; text-wrap: balance; }
.prices__table .prices__price { font-size: 1.45em; }
.prices__table th { white-space: nowrap; }
.prices__table sup { margin-inline-start: 1px; font-size: .7em; line-height: 0; vertical-align: .45em; }   /* כוכבית ליד המחיר ובסוף הערת היתרה */

/* לוגו הפרויקט הוסר בינתיים (בראש הדף ובפתח המסגרת) - הקו התחתון של המסגרת נסגר.
   להחזרה: למחוק את הבלוק הזה ולהחזיר את שתי השורות שבהערה ב-buildProject */
.terms { --frame-b: 0px; padding-bottom: 26px; }
.terms::after {
    -webkit-mask:
        linear-gradient(90deg, #000 0 26%, transparent 26% 74%, #000 74%) top / 100% 2px no-repeat,
        linear-gradient(#000 0 0) bottom / 100% calc(100% - 2px) no-repeat;
            mask:
        linear-gradient(90deg, #000 0 26%, transparent 26% 74%, #000 74%) top / 100% 2px no-repeat,
        linear-gradient(#000 0 0) bottom / 100% calc(100% - 2px) no-repeat;
}
.planet-wrap.is-front.is-logo { --rev: 0; transition: --rev 450ms ease; }   /* כשהתחלופה נעצרה: הפלנטה שבחזית חוזרת ללוגו לסירוגין */

/* ===== המפץ: קריסת הנקודה > פלייר > הבזק + גל הדף (הכוכבים והגיצים בקנבס) > הגלובוס =====
   התזמון ב-JS: COLLAPSE_MS, FLARE_MS, BLAST_MS */
/* 1. הנקודה מפסיקה להבהב ומתכווצת */
.stage.is-collapse .singularity { opacity: 1; animation: singularity-collapse 300ms cubic-bezier(.55, 0, 1, .45) both; }   /* מתחילה מהמצב שבו ההבהוב נעצר (--s0, --o0 נקבעים ב-JS) - בלי קפיצה */
.stage.is-flare .singularity { opacity: 0; animation: none; }
@keyframes singularity-collapse {
    from { opacity: var(--o0, 1); transform: translate(-50%, -50%) scale(var(--s0, 1.15)); }
    to   { opacity: 1;              transform: translate(-50%, -50%) scale(.25); }
}
/* 2. פלייר שגדל מהנקודה (אותו מראה כמו ה-flare), ודועך עם ההבזק */
.bang-flare {
    position: absolute;
    left: 50%;
    top: var(--cy);
    z-index: 175;
    width: var(--globe);
    height: var(--globe);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}
.bang-flare .flare { left: 50%; top: 50%; width: 100%; height: 100%; animation: none; }
.stage.is-flare .bang-flare { animation: bang-flare 1500ms linear both; }   /* 300ms גדילה, ואז דעיכה איטית אחרי ההבזק */
@keyframes bang-flare {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(.05) rotate(0deg);  animation-timing-function: cubic-bezier(.55, 0, 1, .45); }   /* מאיץ */
    20%  { opacity: 1; transform: translate(-50%, -50%) scale(3) rotate(25deg);   animation-timing-function: cubic-bezier(.25, .46, .45, .94); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(3.8) rotate(50deg); }
}
/* 3. הבזק על כל המסך - פעם אחת, לא מלא */
.bang-flash {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: radial-gradient(circle at 50% 40%, #fff 0, #fff6dc 45%, #ffe2a6 100%);
    opacity: 0;
    pointer-events: none;
}
.bang-flash.is-on { animation: bang-flash 380ms ease-out both; }
@keyframes bang-flash {
    0%   { opacity: 0; }
    13%  { opacity: .85; }
    100% { opacity: 0; }
}
/* גל ההדף: טבעת אור שיוצאת מהמרכז אל מחוץ למסך */
.bang-ring {
    position: absolute;
    left: 50%;
    top: var(--cy);
    z-index: 174;
    width: var(--globe);
    height: var(--globe);
    border: 2px solid rgba(255, 240, 200, .9);
    border-radius: 50%;
    box-shadow: 0 0 18px 4px rgba(255, 210, 130, .55), inset 0 0 18px 4px rgba(255, 210, 130, .4);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}
.stage.is-blast .bang-ring { animation: bang-ring-grow 3600ms cubic-bezier(.22, 1, .36, 1) both, bang-ring-fade 5000ms linear both; }   /* הגדילה מסונכרנת עם הכוכבים; הדעיכה נפרדת ואיטית יותר */
@keyframes bang-ring-grow {
    0%   { transform: translate(-50%, -50%) scale(.1); }
    100% { transform: translate(-50%, -50%) scale(8); }
}
@keyframes bang-ring-fade {
    0%   { opacity: 1; }
    30%  { opacity: .85; }
    60%  { opacity: .5; }
    85%  { opacity: .2; }
    100% { opacity: 0; }
}
/* 4. הגלובוס גדל פחות (115% במקום 150%) - לא מתחרה בפיצוץ */
@keyframes bang-grow {
    0%   { transform: translate(-50%, -50%) scale(.1);  animation-timing-function: cubic-bezier(.23, 1, .32, 1); }
    21%  { transform: translate(-50%, -50%) scale(1.15); animation-timing-function: cubic-bezier(.25, .46, .45, .94); }
    75%  { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* הגלובוס מתחיל לגדול יחד עם הפלייר (is-flare), 600ms לפני is-bang: 30% ברגע ההבזק, ומשם ממשיך כמו קודם -
   שיא 115% ו-100% באותם רגעים כמו קודם. 3000ms = GLOBE_MS (2400) + FLARE_MS + BLAST_MS (600) */
.stage.is-flare .globe, .stage.is-flare .rays { opacity: 1; animation: bang-grow-early 3000ms linear both; }
.stage.is-flare .globe-white { opacity: 1; animation: globe-white-early 3000ms linear both; }
@keyframes bang-grow-early {
    0%     { transform: translate(-50%, -50%) scale(.1);  animation-timing-function: cubic-bezier(.55, 0, 1, .45); }   /* מאיץ יחד עם הפלייר */
    10%    { transform: translate(-50%, -50%) scale(.3);  animation-timing-function: cubic-bezier(.23, 1, .32, 1); }    /* רגע ההבזק */
    36.8%  { transform: translate(-50%, -50%) scale(1.15); animation-timing-function: cubic-bezier(.25, .46, .45, .94); }
    80%    { transform: translate(-50%, -50%) scale(1); }
    100%   { transform: translate(-50%, -50%) scale(1); }
}
@keyframes globe-white-early {
    0%   { opacity: 1; }
    80%  { opacity: 1; animation-timing-function: ease-out; }
    100% { opacity: 0; }
}
/* הערת תנאי התשלום בזהב: גרדיאנט בתוך האותיות + צל */
.prices__table .prices__note { font-size: 17px; text-shadow: none; }
.prices__note-text {
    background: linear-gradient(180deg, #fffbe6 0%, #fbe7a1 30%, #f2c35a 55%, #c9862a 80%, #f6d47a 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .7)) drop-shadow(0 0 6px rgba(0, 0, 0, .35));
}
.offer.offer--page::before { display: none; }   /* ההילה של המסר - רק בדף הראשי, לא בדף הפרויקט */

/* ===== הפעלת המפץ מחדש (לחיצה על הלוגו): קריסה לאחור ===== */
/* כפתור שקוף בגודל הגלובוס, מעל הגלובוס והכיתוב (מתחת לפלנטה שבחזית) - פעיל רק כשהפתיחה הסתיימה */
.bang-hit {
    position: absolute;
    left: 50%;
    top: var(--cy);
    z-index: 156;
    width: var(--globe);
    height: var(--globe);
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    transform: translate(-50%, -50%);
    pointer-events: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.stage.is-ready .bang-hit { pointer-events: auto; }
.bang-hit:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
/* הכיתוב, המסלול, ההילה והחיצים דועכים מיד */
.stage.is-retract .globe-title { animation: none; opacity: 0; transition: opacity .25s ease-in; }
.stage.is-retract .orbit-path, .stage.is-retract .orbit-glow, .stage.is-retract .arrow { opacity: 0; transition: opacity .25s ease-in; pointer-events: none; }
.stage.is-retract .flare-wrap { animation: none; opacity: 0; transition: opacity .25s ease-in; }
/* הגלובוס והקרניים מלבינים ומתכווצים לנקודה (מאיץ פנימה) */
.stage.is-retract .globe, .stage.is-retract .rays { animation: retract-globe 600ms cubic-bezier(.55, 0, 1, .45) 300ms both; }
.stage.is-retract .globe-white { animation: retract-white 400ms ease-out 150ms both; }
@keyframes retract-globe {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to   { opacity: 0; transform: translate(-50%, -50%) scale(.1); }
}
@keyframes retract-white {
    from { opacity: 0; }
    to   { opacity: 1; }
}
/* הגיצים דועכים */
#sparks { transition: opacity .4s ease; }
.space.is-retract #sparks { opacity: 0; }

/* ===== סיור 360 בשכונה: עיגול עם תמונה בתנועת תלת-ממד (כמו move3d של הפלנטות), סיכה וכפתור זהב ===== */
.tour {
    position: relative;
    display: block;
    width: min(80vw, 420px);
    margin: 40px auto 64px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
/* טבעת זהב והילה בצבע הפרויקט, מחוץ לעיגול החתוך */
.tour::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(246, 227, 166, .85), 0 0 34px 6px rgba(var(--accent), .45);
    pointer-events: none;
    z-index: 1;
}
.tour__globe {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 50%;
    clip-path: circle(50%);              /* חיתוך אמין גם עם תלת-ממד (overflow + radius לא תמיד חותך בספארי) */
    background: var(--base, #05060f);
    perspective: 700px;
}
.tour__img {
    position: absolute;
    inset: -6% -24%;                     /* שוליים לתנועה */
    background: var(--tour-img) center / cover no-repeat;
    animation: tour3d 16s ease-in-out infinite;
    animation-play-state: paused;
}
/* רצה רק כשדף הפרויקט פתוח, העיגול על המסך, וחלון הסיור סגור */
.project.is-open .tour.is-in .tour__img, .project.is-open .tour.is-in .tour__pulse { animation-play-state: running; }
html.tour-open .tour__img, html.tour-open .tour__pulse { animation-play-state: paused !important; }
@keyframes tour3d {
    0%, 100% { transform: rotate3d(0, 1, 0, 7deg) translateX(7%); }
    50%      { transform: rotate3d(0, 1, 0, -7deg) translateX(-7%); }
}
/* הצללה פנימית ובוהק, כמו בפלנטה */
.tour__globe::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 27%, rgba(255, 246, 220, .28) 0, rgba(255, 246, 220, 0) 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%);
    pointer-events: none;
}
/* סיכת המיקום במרכז, ופעימת זהב מתחתיה */
.tour__pin {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 13%;
    transform: translate(-50%, -100%);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5));
}
.tour__pin svg { display: block; width: 100%; height: auto; }
.tour__pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 30%;
    aspect-ratio: 1;
    border: 2px solid rgba(246, 227, 166, .95);
    border-radius: 50%;
    transform: translate(-50%, -50%) scaleY(.45) scale(.2);
    opacity: 0;
    animation: tour-pulse 2s ease-out infinite;
    animation-play-state: paused;
}
@keyframes tour-pulse {
    0%   { opacity: .95; transform: translate(-50%, -50%) scaleY(.45) scale(.2); }
    100% { opacity: 0;   transform: translate(-50%, -50%) scaleY(.45) scale(1.6); }
}
/* הכפתור חוצה את השפה התחתונה של העיגול, כמו "לפרטים" על הפלנטה */
.tour__cta {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 2;
    padding: 9px 22px 10px;
    border-radius: 999px;
    background: radial-gradient(ellipse at top, #fdfefd 0%, #fffde5 22%, #fef9a7 48%, #d58a24 72%, #af5009 100%);
    box-shadow: 0 0 0 1px rgba(60, 24, 3, .7), 0 4px 0 #331600, 0 8px 18px rgba(0, 0, 0, .35);
    color: #2a1004;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transform: translate(-50%, 50%);
    transition: transform 150ms ease-out;
}
.tour:active .tour__cta { transform: translate(-50%, 50%) scale(.97); }
.tour:focus-visible { outline: none; }
.tour:focus-visible::before { box-shadow: 0 0 0 3px var(--gold-light), 0 0 34px 6px rgba(var(--accent), .45); }
@media (prefers-reduced-motion: reduce) { .tour__img, .tour__pulse { animation: none; } }

/* חלון הסיור: על כל המסך, iframe עם סימן טעינה */
.tour-pop[hidden] { display: none; }
.tour-pop {
    position: fixed;
    inset: 0;
    z-index: 2500;                       /* מעל דף הפרויקט והכפתורים בתחתית */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 10px 10px;
    background: rgba(3, 4, 13, .94);
    opacity: 0;
    transition: opacity 250ms var(--ease-out-quart);
}
.tour-pop.is-open { opacity: 1; }
.tour-pop iframe {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    border: 0;
    border-radius: 14px;
    background: #000;
    opacity: 0;
    transition: opacity .4s ease;
}
.tour-pop.is-loaded iframe { opacity: 1; }
.tour-pop__load {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border: 3px solid rgba(246, 227, 166, .25);
    border-top-color: var(--gold-light);
    border-radius: 50%;
    animation: tour-spin .9s linear infinite;
}
.tour-pop.is-loaded .tour-pop__load { display: none; }
@keyframes tour-spin { to { transform: rotate(360deg); } }
.tour-pop__close {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid rgba(217, 181, 106, .7);
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: var(--gold-light);
    cursor: pointer;
}
.tour-pop__close svg { display: block; width: 100%; height: 100%; }
.tour-pop__close:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
/* "לעוד פרויקטים" בשתי שורות: פונט קטן וריווחים צפופים */
.project__close { gap: 4px; height: auto; min-height: 40px; padding: 4px 9px 4px 10px; font-size: 13px; line-height: 1.1; text-align: right; }
.project__close svg { flex: none; width: 13px; height: 13px; }

/* ===== בועת עזרה מאייקון ה-AI ===== */
.ai-bubble[hidden] { display: none; }
.ai-bubble {
    position: fixed;
    left: 12px;
    bottom: calc(14px + 50px + 16px + env(safe-area-inset-bottom));   /* מעל האייקון */
    z-index: 1150;
    width: min(270px, calc(100vw - 24px));
    border-radius: 16px;
    background: rgba(8, 12, 36, .95);
    box-shadow: inset 0 0 0 1.5px var(--gold), 0 12px 28px rgba(0, 0, 0, .5);
    opacity: 0;
    transform: translateY(8px) scale(.96);
    transform-origin: 24px 100%;
    transition: opacity 250ms var(--ease-out-quart), transform 250ms var(--ease-out-quart);
}
.ai-bubble.is-on { opacity: 1; transform: none; }
/* זנב לכיוון האייקון */
.ai-bubble::after {
    content: '';
    position: absolute;
    left: 18px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: rgb(8, 12, 36);
    box-shadow: inset -1.5px -1.5px 0 var(--gold);
    transform: rotate(45deg);
}
.ai-bubble__body {
    display: block;
    padding: 12px 16px 12px 40px;          /* מקום לכפתור הסגירה משמאל */
    color: #fff;
    text-align: right;
    text-decoration: none;
}
.ai-bubble__title { display: block; margin-bottom: 3px; color: var(--gold-light); font-size: 17px; line-height: 1.25; }
.ai-bubble__text { display: block; font-size: 15px; line-height: 1.35; }
.ai-bubble__cta { display: inline-block; margin-top: 6px; color: var(--gold-light); font-size: 15px; font-weight: 700; text-decoration: underline; }
.ai-bubble__close {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 1;
    width: 30px;
    height: 30px;
    padding: 7px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
}
.ai-bubble__close svg { display: block; width: 100%; height: 100%; }
.ai-bubble__close:focus-visible, .ai-bubble__body:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
@media (min-width: 700px) and (min-aspect-ratio: 13/10) { .ai-bubble { left: 20px; bottom: calc(14px + 56px + 16px); } }
@media (prefers-reduced-motion: reduce) { .ai-bubble { transition: none; } }
/* בועת טקסט קצרה: ברוחב התוכן */
.ai-bubble { width: auto; max-width: min(260px, calc(100vw - 24px)); }
.ai-bubble__body { padding: 10px 14px 11px 36px; }
.ai-bubble__close { top: 4px; left: 4px; }

/* ===== טעינה בדף הפרויקט: placeholder עם נצנוץ, והתמונה נכנסת בפייד כשנטענה (watchImages ב-JS) ===== */
.strip figure { overflow: hidden; background: rgba(255, 255, 255, .07); }
.strip figure::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, .13) 50%, rgba(255, 255, 255, 0) 75%);
    transform: translateX(-100%);
    animation: ph-shimmer 1.5s linear infinite;
    pointer-events: none;
}
.strip figure.is-loaded::before { display: none; }
.strip figure img { opacity: 0; transition: opacity .45s ease; }
.strip figure.is-loaded img { opacity: 1; }
.strip figcaption { z-index: 1; }
@keyframes ph-shimmer { to { transform: translateX(100%); } }
/* עיגול הסיור: בגוון הפרויקט עם נצנוץ עד שהתמונה נטענה */
.tour__img { opacity: 0; transition: opacity .45s ease; }
.tour.is-loaded .tour__img { opacity: 1; }
.tour__globe::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, .13) 50%, rgba(255, 255, 255, 0) 75%);
    transform: translateX(-100%);
    animation: ph-shimmer 1.5s linear infinite;
}
.tour.is-loaded .tour__globe::before { display: none; }
@media (prefers-reduced-motion: reduce) { .strip figure::before, .tour__globe::before { animation: none; } }

/* ===== תיאום פגישה: בחירת תאריך ושעה (api/calendar.php) ===== */
.slots { margin: 0; padding: 0; border: 0; min-width: 0; }
.slots[hidden] { display: none; }
.slots legend { padding: 0; margin-bottom: 6px; font-size: 15px; color: #c8cde6; }
.slots__list { display: flex; gap: 8px; }
.slots__list--dates { overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.slots__list--hours { flex-wrap: wrap; }
.slots__load { padding: 10px 0; font-size: 15px; color: #c8cde6; }
.slot { position: relative; flex: none; scroll-snap-align: start; cursor: pointer; }
.slots__list--hours .slot { flex: 1 0 calc(25% - 6px); }
.slot input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.slot span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 48px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(217, 181, 106, .45);
    color: #fff;
    font-size: 16px;
    line-height: 1.15;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.slot span b { font-size: 13px; font-weight: 400; color: #c8cde6; }
.slot span small { font-size: 12px; color: #ff9d9d; }
.slot input:checked + span { background: radial-gradient(ellipse at top, #fffde5 0%, #fef9a7 45%, #d58a24 100%); box-shadow: none; color: #2a1004; }
.slot input:checked + span b { color: #2a1004; }
.slot input:focus-visible + span { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.slot.is-full { cursor: not-allowed; }
.slot.is-full span { opacity: .45; }
.meet-loc { margin: 0; font-size: 14px; color: #c8cde6; text-align: center; }
.meet-loc:empty { display: none; }
.fld textarea { padding: 10px 12px; border: 0; border-radius: 10px; background: #fff; color: #111; font: inherit; font-size: 17px; resize: vertical; }
.chk { font-size: 12px; line-height: 1.4; }
.chk a { color: var(--gold-light); }
/* שדה מלכודת לבוטים - מוסתר מהגולש */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pop__submit:disabled { opacity: .6; cursor: wait; }
/* הצלחה */
.meet-done { text-align: center; outline: none; }
.meet-done[hidden] { display: none; }
.meet-done__title { margin: 6px 0 8px; font-size: 26px; font-weight: 700; color: var(--gold-light); }
.meet-done__text { margin: 0 0 16px; font-size: 17px; line-height: 1.45; color: #fff; }
.meet-done__btns { display: flex; flex-direction: column; gap: 10px; }
.meet-done__btn {
    display: block;
    padding: 12px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1.5px var(--gold);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}
.meet-done__btn[hidden] { display: none; }
.meet-done__call { margin: 14px 0 0; font-size: 15px; color: #c8cde6; }
.meet-done__call a { color: var(--gold-light); font-weight: 700; }
.slots__list--dates { scrollbar-width: thin; scrollbar-color: rgba(217, 181, 106, .5) transparent; }
.slots__list--dates::-webkit-scrollbar { height: 4px; }
.slots__list--dates::-webkit-scrollbar-thumb { border-radius: 4px; background: rgba(217, 181, 106, .5); }
.slots__list--hours .slot { flex: 0 0 calc(25% - 6px); }
.pop__form[hidden], .pop__sub[hidden] { display: none; }   /* display: flex של הטופס גובר על hidden */

/* ===== תיאום פגישה לפי app_frame של האאוטלט: שדות תאריך ושעה וחלון בחירה ===== */
.ds-select {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") left 12px center / 16px no-repeat;
    color: #111;
    font: inherit;
    font-size: 17px;
    text-align: right;
    cursor: pointer;
}
.ds-select:disabled { opacity: .35; cursor: not-allowed; }
.ds-select.is-bad { box-shadow: 0 0 0 2px #ff6b6b; }
.meet-loc { margin: 0; padding: 4px 0; font-size: 16px; font-weight: 700; line-height: 1.35; color: #fff; text-align: right; }
.pop__card { position: relative; }
.ds-pop {
    position: absolute;
    inset: 0;
    z-index: 5;
    overflow: auto;
    padding: 44px 18px 20px;
    border-radius: inherit;
    background: linear-gradient(180deg, #121a44, #070a1e);
    text-align: center;
}
.ds-pop[hidden] { display: none; }
.ds-wrap { padding: 4px 0 14px; }
.ds-wrap[hidden] { display: none; }
.ds-title { display: inline-block; margin: 0 auto 12px; font-size: 18px; font-weight: 700; color: var(--gold-light); outline: none; }
.ds-items { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4%; max-width: 400px; margin: 0 auto; }
.ds-items button {
    width: 48%;
    min-height: 54px;
    margin-bottom: 4%;
    padding: 8px;
    border: 2px solid rgba(217, 181, 106, .7);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 17px;
    cursor: pointer;
}
.ds-items button.active { border-color: transparent; background: radial-gradient(ellipse at top, #fffde5 0%, #fef9a7 45%, #d58a24 100%); color: #2a1004; font-weight: 700; }
.ds-items button.disabled { border-color: #696969; background: #696969; color: #ccc; opacity: .9; }
.ds-items button:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.ds-empty { width: 100%; margin: 0; color: #c8cde6; }
.ds-loader { width: 44px; height: 44px; margin: 6px auto 14px; border: 4px solid rgba(246, 227, 166, .25); border-top-color: var(--gold-light); border-radius: 50%; animation: tour-spin .9s linear infinite; }
.ds-loader[hidden] { display: none; }
.pop__note { margin: 0; font-size: 14px; color: #c8cde6; text-align: center; }
.pop__title[hidden] { display: none; }
/* הצלחה (app-success באאוטלט) */
.meet-done__title { display: block; padding: 10px 20px; font-size: 28px; font-weight: 700; color: var(--gold-light); outline: none; }
.meet-done__sub { margin: 0 0 10px; font-size: 16px; color: #c8cde6; }
.meet-done__loc { font-size: 18px; line-height: 1.6; color: #fff; }
.meet-done__loc .meet-done__btn { margin: 10px 0; }
.meet-done__loc a[data-done-phone] { color: var(--gold-light); font-weight: 700; }

/* ===== שדות עם כותרת בתוך השדה (inpt lbl באאוטלט): הכותרת עולה ומתכווצת כשמקלידים או כשיש ערך ===== */
.fld.lbl { position: relative; }
.fld.lbl input, .fld.lbl textarea { width: 100%; height: 54px; padding: 20px 12px 4px; }
.fld.lbl textarea { height: auto; min-height: 92px; padding-top: 24px; }
.fld.lbl label {
    position: absolute;
    top: 27px;
    right: 12px;
    color: #6b6f80;
    font-size: 17px;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
    transform-origin: right center;
    transition: top .15s ease, transform .15s ease, color .15s ease;
}
.fld.lbl input:focus + label, .fld.lbl textarea:focus + label,
.fld.lbl input:not(:placeholder-shown) + label, .fld.lbl textarea:not(:placeholder-shown) + label {
    top: 12px;
    color: #8a5a12;
    transform: translateY(-50%) scale(.72);
}
/* מילוי אוטומטי של הדפדפן - כלל נפרד, כדי שדפדפן שלא מכיר את הבורר לא יבטל את הכלל הראשי */
.fld.lbl input:-webkit-autofill + label { top: 12px; color: #8a5a12; transform: translateY(-50%) scale(.72); }
/* שדה חובה: כוכבית אחרי הכותרת (required באאוטלט) */
.fld.required label::after { content: ' *'; color: #c0392b; }
.fld:not(.lbl) select { width: 100%; }
@media (prefers-reduced-motion: reduce) { .fld.lbl label { transition: none; } }
.hp { left: 0; top: 0; clip-path: inset(50%); opacity: 0; pointer-events: none; }   /* בתוך הכרטיס - בלי לגרום לגלילה הצידה */

/* ===== חלון: כפתור הסגירה קבוע (לא נגלל), והתוכן נגלל בתוך .pop__scroll - כמו pop-cont / pop-cont-scroll באאוטלט ===== */
.pop__card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.pop__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 46px 22px 22px; }
.pop__card--contact .pop__scroll { padding: 56px 22px 40px; }
.pop__card > .pop__close { z-index: 6; background: rgba(7, 10, 30, .85); }
.pop__close:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
/* נקודות הניתוב בקצוות החלון - לא נראות */
.pop__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ===== פגישה בתשלום (סליקה): שלבים, תנאי הפיקדון ושלב התשלום - לפי app_frame5_pay_boutique ===== */
.meet-steps { display: flex; margin: 0 0 14px; padding: 0; list-style: none; border-bottom: 1px solid rgba(217, 181, 106, .3); }
.meet-steps[hidden] { display: none; }
.meet-steps li { flex: 1; padding: 6px 0 8px; color: #8a90b0; font-size: 15px; text-align: center; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.meet-steps li.is-active { color: var(--gold-light); font-weight: 700; border-bottom-color: var(--gold); }
.pay-terms { margin: 0 0 14px; padding: 12px 14px 12px 12px; border: 1px solid rgba(217, 181, 106, .55); border-radius: 10px; list-style: none; }
.pay-terms[hidden] { display: none; }
.pay-terms li { position: relative; padding-right: 22px; margin-bottom: 8px; font-size: 14px; font-weight: 700; line-height: 1.35; color: #fff; }
.pay-terms li:last-child { margin-bottom: 0; }
.pay-terms li::before { content: '✓'; position: absolute; right: 0; top: 0; color: var(--gold-light); }
.pay-terms .pay-terms__main { color: #ff8a80; }
.meet-pay[hidden] { display: none; }
.meet-pay { text-align: center; color: #fff; }
.meet-pay__info { margin: 0 0 10px; font-size: 16px; line-height: 1.45; outline: none; }
.meet-pay__change { margin-top: 4px; padding: 4px 8px; border: 0; background: none; color: var(--gold-light); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }
.meet-pay__timer { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.meet-pay__timer[hidden] { display: none; }
.meet-pay__timer span { display: inline-block; min-width: 3.2em; padding: 2px 8px; border-radius: 6px; background: rgba(217, 181, 106, .2); color: var(--gold-light); direction: ltr; }
.meet-pay__frame iframe { display: block; width: 100%; height: 440px; border: 0; border-radius: 10px; background: #fff; }
.meet-pay__end[hidden] { display: none; }
.meet-pay__end p { margin: 16px 0; font-size: 17px; }
/* בזמן התשלום: בלי כפתור סגירה (dontclose באאוטלט) - יציאה רק דרך "לשינוי מועד הפגישה" */
.pop.is-paying .pop__card > .pop__close { visibility: hidden; }

/* ===== מעבר לדף פרויקט וממנו: עיגול בצבע הפרויקט (במקום clip-path על כל הדף - גרם לקפיצות באנדרואיד) ===== */
.project, .project.is-open, .project.is-settled { clip-path: none; transition: none; }
.project.is-open { visibility: visible; }
.pj-wipe {
    position: fixed;
    z-index: 1050;                       /* מעל דף הפרויקט (1000), מתחת לכפתורים בתחתית (1100) */
    border-radius: 50%;
    background: radial-gradient(circle, var(--wipe-c, #05060f) 0, color-mix(in srgb, var(--wipe-c, #05060f) 85%, #000) 70%);
    transform: translate(-50%, -50%) scale(var(--s0, .1));
    pointer-events: none;
    will-change: transform, opacity;
}
.pj-wipe[hidden] { display: none; }
/* האנימציות הכבדות בדף הפרויקט רצות רק אחרי המעבר */
.project.is-open .tour.is-in .tour__img, .project.is-open .tour.is-in .tour__pulse { animation-play-state: paused; }
.project.is-live .tour.is-in .tour__img, .project.is-live .tour.is-in .tour__pulse { animation-play-state: running; }
.project:not(.is-live) .strip figure::before, .project:not(.is-live) .tour__globe::before { animation-play-state: paused; }

/* ===== חלונות בהירים (פגישה / צור קשר / ליד) - pop--light, כמו בחלון הפגישה של VOGUE ===== */
.pop--light .pop__card { background: #fdf8f1; color: #1a1a1a; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 24px 60px rgba(0, 0, 0, .55); }
.pop--light .pop__card > .pop__close { top: 6px; left: 6px; width: 34px; height: 34px; padding: 8px; background: #111; color: #fff; }
.pop--light .pop__title { color: #9a6514; }
.pop--light .pop__sub, .pop--light .pop__note { color: #333; }
.pop--light .pop__msg { color: #a3330b; }
.pop--light .fld input, .pop--light .fld select, .pop--light .fld textarea, .pop--light .ds-select { box-shadow: inset 0 0 0 1px #c8c2b8; }
.pop--light .fld.is-bad input, .pop--light .fld.is-bad select, .pop--light .ds-select.is-bad { box-shadow: 0 0 0 2px #d93025; }
.pop--light .fld.lbl label { color: #8a8a8a; }
.pop--light .chk { color: #333; }
.pop--light .chk a { color: #8a5a12; }
.pop--light .meet-loc { color: #1a1a1a; }
/* שלבים ותנאי הפיקדון */
.pop--light .meet-steps { border-bottom-color: rgba(0, 0, 0, .12); }
.pop--light .meet-steps li { color: #666; }
.pop--light .meet-steps li.is-active { color: #1a1a1a; border-bottom-color: #d58a24; }
.pop--light .pay-terms { border: 1px solid #1a1a1a; border-radius: 0; }
.pop--light .pay-terms li { color: #1a1a1a; }
.pop--light .pay-terms li::before { content: ''; top: .3em; width: 9px; height: 9px; background: #e8a94c; }
.pop--light .pay-terms .pay-terms__main { color: #c62828; }
/* חלון בחירת המועד */
.pop--light .ds-pop { background: #fdf8f1; }
.pop--light .ds-pop .pop__close { background: #111; color: #fff; }
.pop--light .ds-title { color: #1a1a1a; }
.pop--light .ds-items button { border-color: #1a1a1a; color: #1a1a1a; }
.pop--light .ds-items button.disabled { border-color: #555; background: #c5c5c5; color: #444; }
.pop--light .ds-empty { color: #555; }
/* שלב התשלום והצלחה */
.pop--light .meet-pay { color: #1a1a1a; }
.pop--light .meet-pay__change { color: #8a5a12; }
.pop--light .meet-pay__timer span { background: rgba(213, 138, 36, .18); color: #6b4a0f; }
.pop--light .meet-done__title { color: #9a6514; }
.pop--light .meet-done__sub { color: #444; }
.pop--light .meet-done__loc { color: #1a1a1a; }
.pop--light .meet-done__btn { color: #1a1a1a; box-shadow: inset 0 0 0 1.5px #d58a24; }
.pop--light .meet-done__loc a[data-done-phone] { color: #8a5a12; }
/* צור קשר */
.pop--light .contact-btn:not(.contact-btn--main) { background: #fff; color: #1a1a1a; box-shadow: inset 0 0 0 1.5px #d58a24; }
.pop--light .contact-ico { background: #f3ece1; }

/* ===== לוגואים בחלון - pop--brand: המפץ עם הגלובוס למעלה, גינדי קבוע בתחתית ===== */
.pop:not(.pop--brand) .pop__brand, .pop:not(.pop--brand) .pop__foot { display: none; }
.pop__brand { display: flex; justify-content: center; margin: -6px 0 4px; }
.pop__brand .pj-mapatz { --g: min(116px, 30vw); margin: 0 auto; }
.pop__foot { flex: none; padding: 8px 0 10px; border-top: 1px solid rgba(0, 0, 0, .08); text-align: center; background: inherit; }
.pop__foot img { display: block; width: auto; height: 36px; margin: 0 auto; filter: brightness(0); opacity: .82; }   /* הלוגו הלבן בשחור על הרקע הבהיר */
.pop:not(.pop--light) .pop__foot img { filter: none; opacity: 1; }
/* חלון הפגישה בתשלום: הטאבים (שלבים) באותה שורה של כפתור הסגירה, ומסתיימים לפניו */
#meetPop.is-pay .pop__scroll { padding-top: 6px; }
#meetPop .meet-steps { margin-left: 44px; min-height: 34px; align-items: stretch; }
#meetPop .meet-steps li { display: flex; align-items: center; justify-content: center; padding: 4px 0 6px; }
/* נקודות תנאי הפיקדון: עיגולי זהב עם גרדיאנט */
.pop--light .pay-terms li::before { top: .32em; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffde5 0%, #fef9a7 30%, #d58a24 75%, #af5009 100%); box-shadow: 0 0 0 1px rgba(120, 60, 10, .35); }

/* ===== חלונות בהירים - עידון העיצוב (פגישה, ליד, צור קשר) ===== */
.pop--light .pop__card {
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdf9 0%, #fbf5ec 100%);
    box-shadow: inset 0 0 0 1px rgba(201, 150, 62, .35), 0 0 0 1px rgba(0, 0, 0, .08), 0 30px 70px rgba(0, 0, 0, .55);
}
/* פס גלילה דק בזהב, במקום הפס האפור */
.pop--light .pop__scroll { scrollbar-width: thin; scrollbar-color: rgba(201, 150, 62, .55) transparent; padding-left: 20px; padding-right: 20px; }
.pop--light .pop__scroll::-webkit-scrollbar { width: 4px; }
.pop--light .pop__scroll::-webkit-scrollbar-thumb { border-radius: 4px; background: rgba(201, 150, 62, .55); }
/* כותרת וקו מפריד */
.pop--light .pop__title { margin-bottom: 4px; font-size: 27px; letter-spacing: .01em; color: #8a5a12; }
.pop--light .pop__sub { margin-bottom: 0; font-size: 15px; line-height: 1.4; color: #5d5d5d; }
.pop--light .pop__sub::after {                 /* קו זהב דק עם נקודה, בין הכותרת לתוכן */
    content: '';
    display: block;
    width: 120px;
    height: 7px;
    margin: 12px auto 14px;
    background:
        radial-gradient(circle, #d58a24 0 2.5px, transparent 3px) center / 7px 7px no-repeat,
        linear-gradient(90deg, transparent, rgba(201, 150, 62, .7) 35%, transparent 47%, transparent 53%, rgba(201, 150, 62, .7) 65%, transparent) center / 100% 1px no-repeat;
}
/* טאבים: קו פעיל בגרדיאנט זהב */
.pop--light .meet-steps { border-bottom: 1px solid rgba(201, 150, 62, .3); }
.pop--light .meet-steps li { font-size: 14px; color: #8c8c8c; border-bottom-width: 0; position: relative; }
.pop--light .meet-steps li.is-active { color: #1a1a1a; font-weight: 700; }
.pop--light .meet-steps li.is-active::after { content: ''; position: absolute; inset: auto 10% -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #af5009, #fef9a7, #d58a24); }
/* תנאי הפיקדון: כרטיס לבן ורך במקום מסגרת שחורה */
.pop--light .pay-terms {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #ecdfc6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(120, 80, 20, .08);
}
.pop--light .pay-terms li { margin-bottom: 9px; padding-right: 20px; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: #2a2a2a; }
.pop--light .pay-terms .pay-terms__main { font-weight: 700; color: #b3261e; }
/* שדות */
.pop--light .pop__form { gap: 12px; }
.pop--light .fld input, .pop--light .fld select, .pop--light .fld textarea, .pop--light .ds-select {
    border-radius: 12px;
    background-color: #fff;
    box-shadow: inset 0 0 0 1px #e3d9c8;
    transition: box-shadow .15s ease;
}
.pop--light .fld.lbl input, .pop--light .ds-select, .pop--light .fld select { height: 52px; }
.pop--light .fld input:focus, .pop--light .fld select:focus, .pop--light .fld textarea:focus, .pop--light .ds-select:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 1.5px #c9963e, 0 0 0 3px rgba(213, 138, 36, .18);
}
.pop--light .fld select {                      /* בחירת פרויקט - חץ כמו בשדות המועד */
    -webkit-appearance: none;
    appearance: none;
    padding-left: 36px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") left 12px center / 16px no-repeat;
}
.pop--light .ds-select:disabled { opacity: 1; background-color: #f6f1e9; color: #a39c90; box-shadow: inset 0 0 0 1px #ece4d6; }
.pop--light .fld.lbl label { color: #9a958c; }
.pop--light .fld.required label::after { color: #c9963e; }
.pop--light .meet-loc { font-size: 14px; font-weight: 600; text-align: center; color: #4a4a4a; }
/* אישור דיוור */
.pop--light .chk { gap: 10px; font-size: 11.5px; line-height: 1.5; color: #6d6d6d; }
.pop--light .chk input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: #c8861f; }
/* כפתור */
.pop--light .pop__submit { height: 54px; margin-top: 4px; box-shadow: 0 0 0 1px rgba(60, 24, 3, .55), 0 4px 0 #6b3a0b, 0 10px 22px rgba(175, 80, 9, .25); }
/* לוגו גינדי בתחתית */
.pop--light .pop__foot { padding: 9px 0 11px; border-top: 0; background: linear-gradient(180deg, rgba(251, 245, 236, 0), #fbf5ec 40%); }
.pop--light .pop__foot::before { content: ''; display: block; width: 70%; height: 1px; margin: 0 auto 9px; background: linear-gradient(90deg, transparent, rgba(201, 150, 62, .45), transparent); }
.pop--light .pop__foot img { height: 30px; opacity: .7; }
/* לוגו המפץ בחלונות (pop--brand): בלי קרניים, הילה כתומה רכה וקומפקטית - שלא תעלה על הטאבים והכותרת */
.pop.pop--brand .pj-rays { display: none; }
.pop.pop--brand .pj-mapatz::before {
    width: calc(var(--g) * 1.42);
    aspect-ratio: 1;
    background: radial-gradient(circle closest-side, #c55d14 0 58%, rgba(197, 93, 20, .45) 76%, rgba(197, 93, 20, 0) 100%);
}
.pop.pop--brand .pop__brand { margin: 0; padding: 16px 0 12px; }
/* חלון הפגישה: בלי שורת המשנה "הפגישות הינן אישיות..." - קו הזהב המפריד עובר אל מתחת לכותרת */
#meetPop .pop__sub { display: none; }
#meetPop .pop__title::after {
    content: '';
    display: block;
    width: 120px;
    height: 7px;
    margin: 12px auto 14px;
    background:
        radial-gradient(circle, #d58a24 0 2.5px, transparent 3px) center / 7px 7px no-repeat,
        linear-gradient(90deg, transparent, rgba(201, 150, 62, .7) 35%, transparent 47%, transparent 53%, rgba(201, 150, 62, .7) 65%, transparent) center / 100% 1px no-repeat;
}

/* ===== טיקט 29 (שלומי 31.10): מסך התודה של "פניה לנציג" - במקום הכותרת והטופס אחרי שליחה מוצלחת ===== */
.pop__form[hidden], .lead-done[hidden] { display: none; }
.lead-done { padding: 6px 4px 14px; text-align: center; }
.lead-done__title { margin: 0 0 14px; font-size: 30px; line-height: 1.15; color: #8a5a12; text-wrap: balance; outline: none; }
.lead-done__text { margin: 0 auto 10px; max-width: 26em; font-size: 19px; line-height: 1.45; font-weight: 700; color: #3d2a12; text-wrap: balance; }
.lead-done__back { width: 100%; margin-top: 18px; }
@media (max-width: 420px) { .lead-done__title { font-size: 26px; } .lead-done__text { font-size: 17px; } }
/* טיקט 30: "קביעת פגישה" במסך התודה, מעל "חזרה לטופס" - הכפתור הראשי; "חזרה לטופס" משני (מסגרת זהב) */
.lead-done__meet { width: 100%; margin-top: 18px; }
.lead-done__meet + .lead-done__back { margin-top: 12px; background: #fff; color: #8a5a12; box-shadow: 0 0 0 2px #d58a24, 0 3px 0 #b8741d; }
