/* =========================================================
   נקודת מפגש — עיצוב האתר
   הצבעים מהלוגו: כחול לילה וזהב, על רקע נייר בהיר.
   הסמל המרכזי: הדרך המתפתלת מהלוגו, כמפה חיה.
   ========================================================= */
:root{
  /* צבעים */
  --paper:        #FBF8F1;   /* רקע הדף */
  --paper-deep:   #F2EADA;   /* משטחים משניים */
  --white:        #FFFFFF;
  --navy:         #0E2541;   /* כחול הלוגו */
  --navy-soft:    #1D3D66;
  --gold:         #BF8A2A;   /* זהב הלוגו */
  --gold-bright:  #E3B95D;
  --gold-pale:    #F6E7C3;
  --ink:          #14243A;   /* טקסט */
  --muted:        #5D6880;   /* טקסט משני */
  --gold-text:    #8A5C0E;   /* זהב כהה לטקסט: ניגודיות לפי תקן הנגישות */
  --line:         #E6DCC6;   /* קווים דקים */

  /* גופנים */
  --font-display: 'Rubik', 'Assistant', 'Segoe UI', Arial, sans-serif;
  --font-body:    'Assistant', 'Segoe UI', 'Arial Hebrew', Arial, sans-serif;

  /* סולם טיפוגרפי */
  --fs-small: 0.875rem;
  --fs-body:  1rem;
  --fs-lead:  1.1875rem;
  --fs-h3:    1.25rem;
  --fs-h1:    clamp(2rem, 1.2rem + 2.2vw, 2.9rem);

  --radius:   20px;
  --gutter:   clamp(16px, 4vw, 48px);
  color-scheme: light;
}

*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; }
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:var(--fs-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
button{ font:inherit; color:inherit; }
:focus-visible{ outline:3px solid var(--gold); outline-offset:3px; border-radius:8px; }
[hidden]{ display:none !important; }


/* הודעה זמנית בתחתית המסך */
.notice{
  position:fixed;
  bottom:calc(20px + env(safe-area-inset-bottom, 0px));
  left:50%;
  transform:translateX(-50%);
  z-index:60;
  max-width:calc(100% - 32px);
  background:var(--navy);
  color:#fff;
  padding:12px 20px;
  border-radius:14px;
  border-bottom:3px solid var(--gold);
  box-shadow:0 12px 30px rgba(14,37,65,.3);
  font-weight:600;
  text-align:center;
}
.notice.show{ animation:notice-in .35s cubic-bezier(.2,.9,.3,1.2); }
.notice[data-kind="error"]{ border-bottom-color:#D9534F; }
@keyframes notice-in{ from{ opacity:0; transform:translate(-50%, 16px); } to{ opacity:1; transform:translate(-50%, 0); } }

.visually-hidden{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* =========================================================
   כפתורים
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 22px; border-radius:14px; border:1.5px solid transparent;
  font-family:var(--font-display); font-weight:700; font-size:var(--fs-body);
  cursor:pointer; text-decoration:none; transition:background .2s, border-color .2s, transform .2s;
}
.btn:active{ transform:translateY(1px); }
.btn-navy{ background:var(--navy); color:var(--white); }
.btn-navy:hover{ background:var(--navy-soft); }
.btn-gold{ background:var(--gold); color:var(--navy); }
.btn-gold:hover{ background:var(--gold-bright); }
.link-btn{
  background:none; border:0; padding:4px 2px; cursor:pointer;
  color:var(--navy); font-weight:700;
  text-decoration:underline; text-decoration-color:var(--gold); text-decoration-thickness:2px; text-underline-offset:5px;
}
.link-btn:hover{ color:var(--gold-text); }

/* =========================================================
   כותרת עליונה בעמודים הפנימיים
   ========================================================= */
.site-header{
  position:sticky; top:env(safe-area-inset-top, 0px); z-index:20;
  background:rgba(251,248,241,.92);
  backdrop-filter:saturate(1.4) blur(10px);
  -webkit-backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header-inner{
  max-width:1200px; margin:0 auto;
  padding-inline:var(--gutter); padding-block:8px;
  display:flex; align-items:center; gap:28px;
}
.site-logo{ flex:none; display:block; }
.site-logo img, .site-logo canvas{ height:58px; width:auto; }
.site-nav{ display:flex; gap:4px; min-width:0; }
.site-nav a{
  flex:none; display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border-radius:999px;
  color:var(--ink); text-decoration:none; font-weight:600; white-space:nowrap;
  transition:background .2s, color .2s;
}
.site-nav a .ic{ display:none; width:20px; height:20px; color:var(--gold); }
.site-nav a:hover{ background:var(--paper-deep); }
.site-nav a[aria-current="page"]{ background:var(--navy); color:var(--white); }
.site-nav .nav-extra{ display:none; }
.nav-toggle{ display:none; }

/* מסך בינוני: תפריט צפוף יותר */
@media (max-width: 1020px){
  .site-header-inner{ gap:14px; }
  .site-nav a{ padding:8px 10px; font-size:.95rem; }
}
/* טלפון וטאבלט: כפתור "תפריט" שפותח רשימה */
@media (max-width: 820px){
  .site-header-inner{ justify-content:space-between; padding-block:6px; position:relative; }
  .site-logo img, .site-logo canvas{ height:48px; }
  .nav-toggle{
    display:inline-flex; align-items:center; gap:8px; padding:9px 14px; border-radius:999px; cursor:pointer;
    border:1px solid var(--line); background:var(--white); color:var(--navy); font:inherit; font-weight:700;
  }
  .nt-bars{ position:relative; width:18px; height:14px; display:block; }
  .nt-bars i{ position:absolute; right:0; width:18px; height:2px; border-radius:2px; background:var(--navy); transition:transform .3s, opacity .2s, top .3s; }
  .nt-bars i:nth-child(1){ top:0; } .nt-bars i:nth-child(2){ top:6px; } .nt-bars i:nth-child(3){ top:12px; }
  .menu-open .nt-bars i:nth-child(1){ top:6px; transform:rotate(45deg); }
  .menu-open .nt-bars i:nth-child(2){ opacity:0; }
  .menu-open .nt-bars i:nth-child(3){ top:6px; transform:rotate(-45deg); }
  .menu-open .nav-toggle{ background:var(--navy); color:var(--white); border-color:var(--navy); }
  .menu-open .nt-bars i{ background:var(--gold-bright); }
  .site-nav{
    position:absolute; top:calc(100% + 6px); inset-inline:var(--gutter);
    flex-direction:column; gap:2px; padding:8px; border-radius:18px;
    background:var(--white); border:1px solid var(--line); box-shadow:0 24px 50px -20px rgba(14,37,65,.45);
    opacity:0; visibility:hidden; transform:translateY(-8px); transition:opacity .2s, transform .25s, visibility 0s .25s;
  }
  .menu-open .site-nav{ opacity:1; visibility:visible; transform:none; transition:opacity .2s, transform .25s; }
  .site-nav a{ padding:12px 14px; border-radius:12px; font-size:1.05rem; }
  .site-nav a .ic{ display:block; }
  .site-nav a[aria-current="page"] .ic{ color:var(--gold-bright); }
  .site-nav .nav-extra{ display:inline-flex; }
  .site-nav .nav-sep{ margin-top:4px; border-top:1px solid var(--line); border-radius:0 0 12px 12px; padding-top:14px; }
}

.btn-sm{ padding:8px 16px; border-radius:11px; font-size:var(--fs-small); }
.btn-ghost{ background:transparent; color:var(--navy); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--gold); background:var(--white); }
.btn[disabled]{ opacity:.6; cursor:wait; }
.ic{ width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* =========================================================
   כותרת תחתונה
   ========================================================= */
.site-footer{
  margin-top:72px;
  background:var(--navy);
  color:#C9D3E3;
  position:relative;
  overflow:hidden;
}
.site-footer::before{                 /* קו זהב דק, כמו שולי הכביש */
  content:""; position:absolute; inset:0 0 auto 0; height:4px;
  background:linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
}
.site-footer-inner{
  max-width:1200px; margin:0 auto;
  padding-inline:var(--gutter); padding-block:48px 28px;
  display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.6fr); gap:40px;
}
.sf-brand img, .sf-brand canvas{ width:150px; background:var(--paper); border-radius:16px; padding:8px 10px; }
.sf-brand p{ margin:14px 0 0; max-width:34ch; font-size:var(--fs-small); line-height:1.7; }
.sf-links{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:24px; }
.sf-links h2{ margin:0 0 10px; font-family:var(--font-display); font-size:1rem; color:var(--gold-bright); }
.sf-links a{ display:block; padding:4px 0; color:#E4EAF3; text-decoration:none; }
.sf-links a:hover{ color:var(--gold-bright); }
.sf-copy{
  margin:0; padding:16px var(--gutter);
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center; font-size:var(--fs-small); color:#8C9AB3;
}
@media (max-width: 760px){
  .site-footer-inner{ grid-template-columns:1fr; gap:28px; }
  .sf-links{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   חלון קופץ
   ========================================================= */
.modal{ position:fixed; inset:0; z-index:50; display:grid; place-items:center; padding:16px; }
.modal-backdrop{ position:absolute; inset:0; background:rgba(8,20,38,.55); backdrop-filter:blur(3px); animation:fade-in .2s ease; }
.modal-box{
  position:relative;
  width:min(560px, 100%);
  max-height:calc(100dvh - 32px);
  overflow:auto;
  background:var(--paper);
  border-radius:24px;
  padding:30px clamp(20px, 4vw, 34px);
  box-shadow:0 30px 70px rgba(0,0,0,.35);
  animation:pop-in .3s cubic-bezier(.2,.9,.3,1.15);
}
.modal-wide .modal-box{ width:min(920px, 100%); }
.modal.closing .modal-box{ animation:pop-out .18s ease forwards; }
.modal.closing .modal-backdrop{ animation:fade-out .18s ease forwards; }
.modal-close{
  position:absolute; top:14px; left:14px;
  width:38px; height:38px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--white); border:1px solid var(--line); color:var(--navy); cursor:pointer;
  transition:background .2s, transform .2s;
}
.modal-close:hover{ background:var(--navy); color:var(--white); transform:rotate(90deg); }
.modal-body h2{ margin:0 0 6px; padding-left:44px; font-family:var(--font-display); font-size:1.5rem; color:var(--navy); line-height:1.2; }
.modal-body > p{ margin:0 0 18px; color:var(--muted); }
@keyframes fade-in{ from{ opacity:0; } }
@keyframes fade-out{ to{ opacity:0; } }
@keyframes pop-in{ from{ opacity:0; transform:translateY(18px) scale(.97); } }
@keyframes pop-out{ to{ opacity:0; transform:translateY(10px) scale(.98); } }

/* פרסומת פתיחה */
.ad{ text-align:center; }
/* הודעה קופצת מעוצבת */
.modal-ad .modal-box{ padding:0; overflow:hidden; width:min(500px,100%); background:var(--paper); }
.modal-ad .modal-close{ z-index:3; background:rgba(255,255,255,.92); }
.ad-head{ position:relative; height:132px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; overflow:hidden;
  background:radial-gradient(60% 90% at 85% 0%, rgba(227,185,93,.4), transparent 70%), linear-gradient(160deg, var(--navy-soft), var(--navy)); }
.ad-road{ position:absolute; inset:auto 0 -6px 0; width:100%; height:70px; opacity:.6; }
.ad-ic{ position:relative; width:60px; height:60px; border-radius:50%; display:grid; place-items:center;
  background:linear-gradient(135deg, var(--gold-bright), var(--gold)); color:var(--navy); box-shadow:0 0 0 7px rgba(227,185,93,.2), 0 10px 22px rgba(0,0,0,.3);
  animation:ad-pulse 2.4s ease-in-out infinite; }
.ad-ic .ic{ width:28px; height:28px; }
@keyframes ad-pulse{ 50%{ box-shadow:0 0 0 13px rgba(227,185,93,0), 0 10px 22px rgba(0,0,0,.3); } }
.ad-kicker{ position:relative; padding:4px 14px; border-radius:999px; border:1px solid rgba(227,185,93,.6); background:rgba(14,37,65,.5); color:var(--gold-bright); font-weight:700; font-size:.85rem; }
.ad-content{ padding:24px clamp(20px,4vw,32px) 26px; }
.ad-v2 .ad-title{ margin:0 0 10px !important; padding:0 !important; font-size:1.55rem !important; }
.ad-v2 .ad-text{ margin:0 0 20px; line-height:1.75; font-size:1.06rem; }
.ad-actions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.ad-actions .btn{ min-width:150px; justify-content:center; }
@media (prefers-reduced-motion: reduce){ .ad-ic{ animation:none; } }
.ad-media{ width:100%; max-height:60vh; object-fit:contain; border-radius:16px; margin-bottom:16px; background:var(--paper-deep); }
.ad-title{ padding:0 !important; }
.ad-text{ color:var(--ink) !important; font-size:var(--fs-lead); }
.ad-timer{ height:4px; border-radius:2px; background:var(--paper-deep); overflow:hidden; margin-top:18px; }
.ad-timer span{ display:block; height:100%; background:linear-gradient(90deg, var(--gold), var(--gold-bright)); transform-origin:right; animation:ad-timer linear forwards; }
@keyframes ad-timer{ from{ transform:scaleX(1); } to{ transform:scaleX(0); } }

/* =========================================================
   טפסים
   ========================================================= */
.form{ display:flex; flex-direction:column; gap:14px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form label, .form .lbl{ display:block; font-weight:600; font-size:var(--fs-small); color:var(--ink); }
.form label > input, .form label > textarea, .form label > select{ display:block; margin-top:6px; }
.form label > .hint{ display:block; margin-top:5px; }
.form .opt{ font-weight:400; color:var(--muted); }
.form input, .form textarea, .form select{
  font:inherit; font-size:var(--fs-body); color:var(--ink);
  background:var(--white);
  border:1.5px solid var(--line); border-radius:12px;
  padding:11px 14px; width:100%;
  transition:border-color .2s, box-shadow .2s;
}
.form textarea{ min-height:120px; resize:vertical; line-height:1.6; }
.form input:focus, .form textarea:focus, .form select:focus{ outline:0; border-color:var(--gold); box-shadow:0 0 0 3px rgba(227,185,93,.3); }
.form select{
  appearance:none; -webkit-appearance:none; cursor:pointer; padding-left:40px;
  background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BF8A2A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 12px center / 18px;
}
.form .hint{ font-weight:400; color:var(--muted); font-size:.8rem; }
.form-actions{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:4px; }
.form-msg{
  display:flex; align-items:center; gap:10px;
  padding:12px 16px; border-radius:12px; font-weight:600;
  animation:pop-in .3s ease;
}
.form-msg.ok{ background:#E6F3E8; color:#1E5B2B; }
.form-msg.err{ background:#FBEAEA; color:#8A2424; }
.hp{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); opacity:0; pointer-events:none; }
@media (max-width: 560px){ .form-row{ grid-template-columns:1fr; } }

/* =========================================================
   סרגל השוואה צף
   ========================================================= */
.compare-bar{
  position:fixed; z-index:40;
  bottom:calc(16px + env(safe-area-inset-bottom, 0px)); left:50%; transform:translateX(-50%);
  display:flex; align-items:center; gap:14px;
  max-width:calc(100% - 32px);
  padding:10px 12px 10px 16px; padding-inline-start:18px;
  background:var(--navy); color:var(--white);
  border-radius:18px; box-shadow:0 16px 36px rgba(14,37,65,.35);
  animation:bar-in .4s cubic-bezier(.2,.9,.3,1.2);
}
.cb-count{ display:flex; align-items:center; gap:8px; font-weight:600; white-space:nowrap; }
.cb-count .ic{ color:var(--gold-bright); }
.cb-clear{ background:none; border:0; color:#AEBBD0; cursor:pointer; text-decoration:underline; text-underline-offset:4px; font:inherit; }
.cb-clear:hover{ color:var(--white); }
@keyframes bar-in{ from{ opacity:0; transform:translate(-50%, 24px); } }
@media (max-width: 480px){
  .compare-bar{ left:12px; right:12px; transform:none; max-width:none; justify-content:space-between; gap:10px; animation-name:bar-in-m; }
  .cb-count{ font-size:var(--fs-small); }
  @keyframes bar-in-m{ from{ opacity:0; transform:translateY(24px); } }
}

/* =========================================================
   כניסה הדרגתית בגלילה (רק כשהסקריפט פעיל)
   ========================================================= */
@media (prefers-reduced-motion: no-preference){
  .js .reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in{ opacity:1; transform:none; }
}

/* כותרת עמוד פנימי (לעמודי תוכן וטפסים) */
.page-wrap{ max-width:1200px; margin:0 auto; padding-inline:var(--gutter); padding-block:20px 0; }
.page-hero{
  position:relative; overflow:hidden;
  border-radius:28px;
  background:radial-gradient(70% 90% at 75% 20%, rgba(42,90,146,.55), transparent 70%), var(--navy);
  color:var(--white);
  padding:clamp(28px, 5vw, 52px) clamp(20px, 5vw, 52px);
  box-shadow:0 24px 50px rgba(14,37,65,.22);
}
.page-hero::before{
  content:""; position:absolute; inset:-50%;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:56px 56px; transform:rotate(-18deg); pointer-events:none;
}
.page-hero > *{ position:relative; }
.page-hero h1{ margin:0 0 8px; font-family:var(--font-display); font-weight:800; font-size:clamp(1.9rem, 1.3rem + 2vw, 2.75rem); line-height:1.1; text-wrap:balance; }
.page-hero p{ margin:0; color:#C9D3E3; font-size:var(--fs-lead); max-width:56ch; text-wrap:pretty; }
.page-hero .ph-icon{ width:56px; height:56px; border-radius:18px; display:grid; place-items:center; background:var(--gold); color:var(--navy); margin-bottom:16px; }
.page-hero .ph-icon .ic{ width:28px; height:28px; }
.panel{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:clamp(20px, 4vw, 34px);
  box-shadow:0 10px 30px rgba(14,37,65,.06);
}

/* טקסט מעוצב מעורך הטקסט העשיר */
.rich{ font-size:1.05rem; line-height:1.75; color:var(--ink); overflow-wrap:anywhere; }
.rich > :first-child{ margin-top:0; } .rich > :last-child{ margin-bottom:0; }
.rich p{ margin:0 0 .7em; }
.rich ul, .rich ol{ margin:0 0 .7em; padding-inline-start:1.3em; }
.rich a{ color:var(--navy); text-decoration-color:var(--gold); }
.sf-install{ margin-top:14px; }
.sf-install .ic{ width:17px; height:17px; }

/* לוגו כתוב: מוצג רק אם תמונת הלוגו לא נטענה */
.nm-wordmark{ display:inline-flex; flex-direction:column; align-items:center; line-height:1.05; color:var(--navy); text-align:center; }
.nm-wordmark b{ white-space:nowrap; font-family:var(--font-display); font-weight:800; font-size:2.4em; background:linear-gradient(180deg, var(--gold-bright), var(--gold)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.nm-wordmark small{ font-size:.9em; font-weight:700; color:var(--navy); margin-top:4px; }
.site-logo .nm-wordmark{ font-size:9px; } .admin-brand .nm-wordmark, .sf-brand .nm-wordmark{ font-size:11px; }

:where(canvas.nm-logo){ display:block; max-width:100%; height:auto; }

/* ---------- כפתור או עמוד שהושבתו בפאנל הניהול ---------- */
a[data-nm-off]{ position:relative; cursor:not-allowed; }
a[data-nm-off] > *{ opacity:.45; filter:grayscale(1); }
a[data-nm-off]:not(:has(> *)){ color:var(--muted) !important; text-decoration-color:transparent !important; }
button[data-nm-off]{ opacity:.45; filter:grayscale(1); cursor:not-allowed; }
a[data-nm-off]::after{
  content:"בקרוב"; position:absolute; top:-8px; left:-6px; z-index:2;
  padding:2px 9px; border-radius:999px; background:var(--gold); color:var(--navy);
  font-weight:700; font-size:.74rem; line-height:1.5; letter-spacing:0; white-space:nowrap;
  box-shadow:0 4px 10px -4px rgba(14,37,65,.5);
}
.site-footer a[data-nm-off]::after, .entry-links a[data-nm-off]::after, .sf-links a[data-nm-off]::after{ position:static; margin-inline-start:6px; display:inline-block; }
body.nm-page-off main > :not(.nm-off-panel){ display:none !important; }
.nm-off-panel{ max-width:560px; margin:48px auto; text-align:center; padding:40px 28px; display:flex; flex-direction:column; align-items:center; gap:12px; }
.nm-off-panel h1{ margin:0; font-family:var(--font-display); color:var(--navy); font-size:clamp(1.5rem, 4vw, 2rem); }
.nm-off-panel p{ margin:0 0 8px; color:var(--muted); font-size:1.08rem; line-height:1.7; }
.nm-off-ic{ width:72px; height:72px; border-radius:50%; display:grid; place-items:center; background:var(--navy); color:var(--gold-bright); box-shadow:0 0 0 8px rgba(227,185,93,.18); }
.nm-off-ic .ic{ width:34px; height:34px; }

/* ---------- פרסומות: ערכות צבע ---------- */
.ad-theme-gold .ad-head{ background:radial-gradient(60% 90% at 85% 0%, rgba(255,255,255,.45), transparent 70%), linear-gradient(160deg, #F0CF86, var(--gold)); }
.ad-theme-gold .ad-ic{ background:var(--navy); color:var(--gold-bright); }
.ad-theme-gold .ad-kicker{ background:rgba(14,37,65,.85); }
.ad-theme-light .ad-head{ background:radial-gradient(60% 90% at 85% 0%, rgba(227,185,93,.35), transparent 70%), linear-gradient(160deg, #FFFDF7, var(--paper-deep)); }
.ad-theme-light .ad-road{ opacity:.25; }
.ad-theme-light .ad-kicker{ background:var(--navy); }

/* ---------- פרסומת: פס עליון ---------- */
.ad-bar{ position:relative; z-index:5; background:linear-gradient(90deg, var(--navy), var(--navy-soft)); color:#fff; animation:ad-bar-in .45s cubic-bezier(.2,.8,.2,1); }
.ad-bar.closing{ animation:ad-bar-out .25s forwards; }
@keyframes ad-bar-in{ from{ opacity:0; transform:translateY(-100%); } }
@keyframes ad-bar-out{ to{ opacity:0; transform:translateY(-60%); } }
.ad-bar-in{ max-width:1180px; margin:0 auto; padding:10px 20px; display:flex; align-items:center; gap:14px; }
.ad-bar-ic{ flex:none; width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:linear-gradient(135deg, var(--gold-bright), var(--gold)); color:var(--navy); }
.ad-bar-ic .ic{ width:18px; height:18px; }
.ad-bar-txt{ margin:0; flex:1; min-width:0; line-height:1.5; }
.ad-bar-txt b{ color:var(--gold-bright); }
.ad-bar-txt p{ display:inline; margin:0; }
.ad-bar .ad-bar-k{ display:inline-block; margin-inline-end:8px; padding:1px 10px; border-radius:999px; background:var(--gold); color:var(--navy); font-size:.8rem; }
.ad-bar .btn{ flex:none; padding:8px 16px; }
.ad-x{ flex:none; width:32px; height:32px; border-radius:50%; display:grid; place-items:center; border:0; background:rgba(255,255,255,.12); color:inherit; cursor:pointer; }
.ad-x .ic{ width:16px; height:16px; }
.ad-x:hover{ background:rgba(255,255,255,.25); }
.ad-bar.ad-theme-gold{ background:linear-gradient(90deg, #F0CF86, var(--gold)); color:var(--navy); }
.ad-bar.ad-theme-gold .ad-bar-txt b{ color:var(--navy); }
.ad-bar.ad-theme-gold .ad-bar-ic{ background:var(--navy); color:var(--gold-bright); }
.ad-bar.ad-theme-gold .btn-gold{ background:var(--navy); color:#fff; }
.ad-bar.ad-theme-light{ background:var(--gold-pale); color:var(--navy); border-bottom:1px solid #E8D9B5; }
.ad-bar.ad-theme-light .ad-bar-txt b{ color:var(--navy); }
.ad-bar.ad-theme-light .ad-x{ background:rgba(14,37,65,.08); }
@media (max-width: 640px){
  .ad-bar-in{ flex-wrap:wrap; padding:10px 14px; gap:10px; }
  .ad-bar-txt{ flex-basis:calc(100% - 90px); font-size:.95rem; }
  .ad-bar .btn{ order:5; width:100%; justify-content:center; }
}

/* ---------- פרסומת: כרטיס בפינה ---------- */
.ad-banner{
  position:fixed; z-index:90; left:20px; bottom:20px; width:min(360px, calc(100vw - 32px));
  padding:18px 18px 16px; border-radius:20px; background:var(--white); border:1px solid var(--line); border-top:5px solid var(--gold);
  box-shadow:0 26px 60px -20px rgba(14,37,65,.55); animation:ad-ban-in .5s cubic-bezier(.2,.9,.3,1.15);
}
.ad-banner.closing{ animation:ad-ban-out .25s forwards; }
@keyframes ad-ban-in{ from{ opacity:0; transform:translateY(30px) scale(.96); } }
@keyframes ad-ban-out{ to{ opacity:0; transform:translateY(20px); } }
.ad-banner .ad-x{ position:absolute; top:10px; left:10px; background:var(--paper-deep); color:var(--navy); }
.ad-banner-top{ display:flex; align-items:center; gap:12px; margin-bottom:10px; padding-left:34px; }
.ad-banner .ad-ic{ width:46px; height:46px; flex:none; box-shadow:0 0 0 5px rgba(227,185,93,.2); }
.ad-banner .ad-ic .ic{ width:22px; height:22px; }
.ad-banner .ad-kicker{ display:inline-block; margin-bottom:4px; padding:1px 10px; background:var(--navy); font-size:.78rem; }
.ad-banner h2{ margin:0; font-family:var(--font-display); font-size:1.15rem; color:var(--navy); line-height:1.25; }
.ad-banner .ad-text{ margin:0 0 12px; color:var(--ink); line-height:1.65; }
.ad-banner .ad-text p{ margin:0 0 6px; }
.ad-banner .ad-media{ max-height:220px; margin-bottom:10px; }
.ad-banner .ad-actions{ justify-content:flex-start; }
.ad-banner .ad-actions .btn{ min-width:0; }
.ad-banner.ad-theme-navy{ background:linear-gradient(160deg, var(--navy-soft), var(--navy)); color:#fff; border-color:var(--navy); border-top-color:var(--gold); }
.ad-banner.ad-theme-navy h2{ color:#fff; }
.ad-banner.ad-theme-navy .ad-text{ color:#DDE4EF; }
.ad-banner.ad-theme-navy .ad-x{ background:rgba(255,255,255,.12); color:#fff; }
.ad-banner.ad-theme-gold{ background:linear-gradient(160deg, #F6DEA4, #E9C06A); border-color:#E0B65E; border-top-color:var(--navy); }
.ad-banner.ad-theme-gold .ad-ic{ background:var(--navy); color:var(--gold-bright); }
@media (max-width: 560px){ .ad-banner{ left:16px; right:16px; bottom:16px; width:auto; } }
@media (prefers-reduced-motion: reduce){ .ad-bar, .ad-banner{ animation:none; } }

/* ---------- הרשמה לעדכונים בתחתית העמוד ---------- */
.sf-news{
  max-width:calc(1200px - 2 * var(--gutter)); margin:44px auto 0; padding:20px 24px; border-radius:20px;
  display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.25fr); gap:18px 28px; align-items:center;
  background:radial-gradient(60% 140% at 100% 0%, rgba(227,185,93,.22), transparent 70%), rgba(255,255,255,.05);
  border:1px solid rgba(227,185,93,.35);
}
.sf-news-txt{ display:flex; align-items:center; gap:14px; }
.sf-news-txt > .ic{ width:46px; height:46px; padding:11px; flex:none; border-radius:50%; background:linear-gradient(135deg, var(--gold-bright), var(--gold)); color:var(--navy); }
.sf-news-txt b{ display:block; font-family:var(--font-display); font-size:1.2rem; color:#fff; }
.sf-news-txt span{ color:#C9D3E2; font-size:var(--fs-small); }
.sf-news-form{ display:flex; flex-wrap:wrap; gap:10px; }
.sf-news-form input{ flex:1 1 220px; min-width:0; padding:12px 16px; border-radius:12px; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.95); font:inherit; color:var(--ink); }
.sf-news-form input:focus{ outline:3px solid var(--gold); outline-offset:1px; }
.sf-news-form small{ flex-basis:100%; color:#AEB9CB; font-size:.8rem; line-height:1.5; }
.sf-news-form small a{ color:var(--gold-bright); }
@media (max-width: 1240px){ .sf-news{ margin-inline:var(--gutter); } }
@media (max-width: 820px){ .sf-news{ grid-template-columns:1fr; padding:18px; } }
.form-row-3{ grid-template-columns:1fr 1fr; }
.form-row-3 > :first-child{ grid-column:1 / -1; }
.form-hint a{ color:var(--navy); font-weight:700; }
@media (max-width: 560px){ .form-row-3{ grid-template-columns:1fr; } }
.form-hint{ display:flex; gap:8px; align-items:flex-start; margin:0; padding:10px 14px; border-radius:12px; background:var(--gold-pale); color:var(--navy); font-size:var(--fs-small); line-height:1.6; }
.form-hint .ic{ width:17px; height:17px; flex:none; color:var(--gold); margin-top:2px; }

/* ---------- פרסומת: עיצוב חופשי מהניהול (משתני CSS) ---------- */
.ad-styled .ad-text p{ margin:0 0 .6em; }
.ad-styled .ad-text p:last-child{ margin-bottom:0; }
.ad-styled .ad-text h3{ margin:.4em 0; font-family:var(--font-display); color:inherit; }
.ad-styled .ad-text ul, .ad-styled .ad-text ol{ text-align:start; display:inline-block; margin:0 0 .6em; }
.ad-styled .ad-title{ font-family:var(--ad-title-font, var(--font-display)) !important; color:var(--ad-title-color, var(--navy)); }
.ad-styled .ad-text{ font-family:var(--ad-text-font, var(--font-body)); color:var(--ad-text-color, var(--ink)) !important; }
.ad-styled[style*="--ad-title-size"] .ad-title{ font-size:var(--ad-title-size) !important; line-height:1.2; }
.ad-styled[style*="--ad-text-size"] .ad-text{ font-size:var(--ad-text-size) !important; }
.ad-styled .ad-content, .ad-styled.ad-banner{ text-align:var(--ad-align, center); }
.ad-styled.ad-banner{ text-align:var(--ad-align, right); }
.ad-styled[style*="--ad-align:right"] .ad-actions{ justify-content:flex-start; }
.ad-styled[style*="--ad-align:left"] .ad-actions{ justify-content:flex-end; }
.modal-ad.ad-styled[style*="--ad-width"] .modal-box{ width:min(var(--ad-width), 100%); }
.modal-ad.ad-styled[style*="--ad-radius"] .modal-box, .ad-banner.ad-styled[style*="--ad-radius"]{ border-radius:var(--ad-radius); }
.modal-ad.ad-styled[style*="--ad-bg"] .modal-box, .ad-banner.ad-styled[style*="--ad-bg"], .ad-bar.ad-styled[style*="--ad-bg"]{ background:var(--ad-bg); }
.ad-styled[style*="--ad-head-bg"] .ad-head{ background:var(--ad-head-bg); }
.ad-styled[style*="--ad-head-bg"].ad-banner{ border-top-color:var(--ad-head-bg); }
.ad-styled[style*="--ad-btn-bg"] .ad-cta{ background:var(--ad-btn-bg); border-color:var(--ad-btn-bg); box-shadow:none; }
.ad-styled[style*="--ad-btn-color"] .ad-cta{ color:var(--ad-btn-color); }
.ad-styled[style*="--ad-text-color"].ad-bar, .ad-styled[style*="--ad-text-color"].ad-bar .ad-x{ color:var(--ad-text-color); }
.ad-styled.ad-bar[style*="--ad-title-color"] .ad-bar-txt b.ad-title{ color:var(--ad-title-color); }
.ad-btn-pill .ad-cta, .ad-btn-pill .ad-close{ border-radius:999px; }
.ad-btn-square .ad-cta, .ad-btn-square .ad-close{ border-radius:4px; }
.ad-btn-rounded .ad-cta, .ad-btn-rounded .ad-close{ border-radius:12px; }
.ad-no-head .ad-content{ padding-top:34px; }
.ad-kicker-in{ display:inline-block; margin-bottom:12px; background:var(--navy) !important; }
/* תצוגה סטטית בניהול */
.ad-static{ position:static !important; animation:none !important; inset:auto !important; }
.modal.ad-static{ display:grid; place-items:center; padding:18px; background:transparent; }
.modal.ad-static .modal-box{ animation:none; position:relative; max-height:none; }
.ad-static.ad-banner{ width:min(360px, 100%); margin:0; }
.ad-static .ad-timer span{ animation:none; }

/* =========================================================
   נגישות
   ========================================================= */
.sr-only{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.skip-link{ position:fixed; top:-60px; right:16px; z-index:200; padding:10px 18px; border-radius:0 0 12px 12px; background:var(--navy); color:#fff; font-weight:700; text-decoration:none; transition:top .2s; }
.skip-link:focus{ top:0; outline:3px solid var(--gold); }
main:focus{ outline:none; }

/* כפתור ותפריט */
.a11y{ position:fixed; z-index:95; right:16px; bottom:16px; }
.a11y-btn{ width:50px; height:50px; border-radius:50%; border:3px solid #fff; background:#1452A3; color:#fff; cursor:pointer;
  display:grid; place-items:center; box-shadow:0 8px 20px rgba(14,37,65,.35); transition:transform .2s; }
.a11y-btn:hover{ transform:scale(1.06); }
.a11y-btn svg{ width:28px; height:28px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.a11y-btn svg circle{ fill:currentColor; }
.a11y-panel{ position:absolute; right:0; bottom:62px; width:min(330px, calc(100vw - 32px)); max-height:calc(100vh - 100px); overflow:auto;
  background:#fff; color:#111; border-radius:18px; border:2px solid #1452A3; box-shadow:0 24px 60px rgba(0,0,0,.3); padding:14px; font-size:16px; }
.a11y-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.a11y-head b{ font-size:18px; color:#0E2541; }
.a11y-x{ width:34px; height:34px; border-radius:50%; border:1px solid #ccc; background:#fff; cursor:pointer; display:grid; place-items:center; color:#111; }
.a11y-x .ic{ width:16px; height:16px; }
.a11y-size{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border-radius:12px; background:#F1F4F9; margin-bottom:10px; }
.a11y-size > div{ display:flex; align-items:center; gap:8px; }
.a11y-size button{ min-width:44px; height:38px; border-radius:10px; border:1px solid #9BB0CC; background:#fff; font:inherit; font-weight:800; font-size:16px; cursor:pointer; color:#0E2541; }
.a11y-size output{ min-width:72px; text-align:center; font-weight:700; }
.a11y-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.a11y-grid button{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 6px; border-radius:12px; border:1.5px solid #D4DCE8; background:#fff;
  font:inherit; font-size:14px; font-weight:600; color:#0E2541; cursor:pointer; line-height:1.3; text-align:center; }
.a11y-grid button svg{ width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.a11y-grid button[aria-pressed="true"]{ background:#1452A3; border-color:#1452A3; color:#fff; }
.a11y-grid button:hover{ border-color:#1452A3; }
.a11y-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; padding-top:10px; border-top:1px solid #E3E7EE; }
.a11y-reset{ border:0; background:none; font:inherit; font-size:14px; color:#B3261E; font-weight:700; cursor:pointer; text-decoration:underline; }
.a11y-foot a{ font-size:14px; color:#1452A3; font-weight:700; }
.a11y :focus-visible{ outline:3px solid #F2A900; outline-offset:2px; }
@media print{ .a11y, .skip-link{ display:none !important; } }

/* ההתאמות עצמן (על <html>, כדי שיחולו על כל העמוד) */
html.a11y-t1{ font-size:112.5%; } html.a11y-t2{ font-size:125%; } html.a11y-t3{ font-size:140%; }
html.a11y-gray body > *:not(.a11y){ filter:grayscale(1); }
html.a11y-contrast body{ background:#fff !important; }
html.a11y-contrast body *:not(.a11y):not(.a11y *){ color:#000 !important; background-image:none !important; text-shadow:none !important; box-shadow:none !important; }
html.a11y-contrast body *:not(.a11y):not(.a11y *):not(svg):not(svg *):not(canvas):not(img){ background-color:#fff !important; border-color:#000 !important; }
html.a11y-contrast a:not(.a11y *), html.a11y-contrast a:not(.a11y *) *{ color:#0000D0 !important; }
html.a11y-contrast .btn:not(.a11y *), html.a11y-contrast button:not(.a11y *){ background:#000 !important; color:#fff !important; border:2px solid #000 !important; }
html.a11y-contrast .btn *:not(.a11y *), html.a11y-contrast button *:not(.a11y *){ color:#fff !important; background:transparent !important; }
html.a11y-contrast input, html.a11y-contrast select, html.a11y-contrast textarea{ border:2px solid #000 !important; }
html.a11y-contrast .modal-backdrop{ background:rgba(0,0,0,.7) !important; }
html.a11y-links a:not(.a11y *){ text-decoration:underline !important; text-underline-offset:3px; outline:2px dashed #F2A900; outline-offset:2px; }
html.a11y-font body, html.a11y-font body *:not(svg):not(svg *){ font-family:Arial, 'Arial Hebrew', sans-serif !important; letter-spacing:.01em; }
html.a11y-spacing body *:not(.a11y *){ line-height:1.9 !important; word-spacing:.12em; }
html.a11y-spacing p:not(.a11y *){ margin-bottom:1em; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
html.a11y-cursor, html.a11y-cursor *{ cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8-6 2-2 6z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-focus *:focus{ outline:4px solid #F2A900 !important; outline-offset:3px !important; box-shadow:0 0 0 7px #000 !important; }

/* =========================================================
   מעבר בין עמודים
   ========================================================= */
@view-transition{ navigation: auto; }
.site-header{ view-transition-name: nm-header; }
::view-transition-old(root){ animation: nm-page-out .2s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root){ animation: nm-page-in .38s cubic-bezier(.2,.8,.2,1) both; }
::view-transition-group(nm-header){ animation-duration:.3s; }
@keyframes nm-page-out{ to{ opacity:0; transform:translateY(-8px) scale(.995); } }
@keyframes nm-page-in{ from{ opacity:0; transform:translateY(14px); } }
/* דפדפן בלי מעבר בין עמודים: העמוד החדש מופיע בהדרגה */
html.nm-fadein body > main{ animation: nm-page-in .38s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce){
  @view-transition{ navigation: none; }
  html.nm-fadein body > main{ animation:none; }
}

/* ---------- קפיצה לראש העמוד / לסופו ---------- */
.sj{ position:fixed; z-index:94; right:21px; bottom:calc(80px + env(safe-area-inset-bottom, 0px)); display:flex; flex-direction:column; gap:8px;
  opacity:0; transform:translateY(8px); pointer-events:none; transition:opacity .2s, transform .2s, bottom .2s; }
.sj.is-on{ opacity:1; transform:none; }
.sj.is-on .sj-btn{ pointer-events:auto; }
.sj.with-bar{ bottom:calc(150px + env(safe-area-inset-bottom, 0px)); }
.sj-btn{ width:42px; height:42px; border-radius:50%; border:2px solid #fff; background:var(--navy, #0E2541); color:var(--gold-bright, #E3B95D);
  display:grid; place-items:center; cursor:pointer; box-shadow:0 8px 18px rgba(14,37,65,.3); transition:transform .15s; }
.sj-btn[hidden]{ display:none; }
.sj-btn:hover{ transform:scale(1.07); }
.sj-btn:focus-visible{ outline:3px solid var(--gold, #C08A2B); outline-offset:2px; }
.sj-btn svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }
@media print{ .sj{ display:none !important; } }
