/* באנר בית מונפש לקבוצת הוואטסאפ (app/wa_banner.php). גודל לפי --w/--h, טקסט ביחידות של הקונטיינר. */
.wab-slot { display: block; margin: 28px auto; }
.home-sidebar .wab-slot, .side-sticky .wab-slot, .nad .wab-slot { margin: 0 auto; }
.page > .direct-banner { margin-block: 28px; }
.wab { position: relative; display: block; width: 100%; max-width: calc(var(--w) * 1px); aspect-ratio: var(--w) / var(--h); margin: 0 auto; overflow: hidden; border-radius: 8px; color: #fff; text-decoration: none; container-type: size; font-family: inherit; line-height: 1.05; isolation: isolate; }
.wab:hover, .wab:focus { text-decoration: none; color: #fff; }
.wab:focus-visible { outline: 3px solid #25d366; outline-offset: 2px; }
.wab-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 70% 40%, #1fbf5f 0%, #0b7a52 45%, #052e22 100%); }
.wab-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 45%, transparent 60%); transform: translateX(-120%); }
.wab-in { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
.wab-ic { flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.wab-ic svg { width: 60%; height: 60%; }
.wab-logo { display: block; height: auto; }
.wab-txt { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.wab-t1, .wab-t2 { display: block; font-weight: 900; letter-spacing: -.01em; white-space: nowrap; }
.wab-t3 { display: block; font-weight: 700; opacity: .95; white-space: nowrap; }
.wab-stamp { display: inline-block; background: #e30613; color: #fff; font-weight: 900; border-radius: .25em; padding: .08em .45em .14em; transform: rotate(-3deg); white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.wab-cta { flex: 0 0 auto; display: inline-block; background: #fff; color: #075e54; font-weight: 900; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.wab-arrow { font-weight: 900; }

/* 970x250, 1250x242: אייקון | כותרת + חותמת | לוגו + כפתור */
.wab-wide .wab-in { justify-content: space-between; padding: 0 5cqw; gap: 3cqw; }
.wab-wide .wab-ic { width: 46cqh; height: 46cqh; }
.wab-wide .wab-txt { flex: 1; }
.wab-wide .wab-t1 { font-size: min(21cqh, 5.4cqw); }
.wab-wide .wab-t2 { font-size: min(13cqh, 3.4cqw); margin-top: 1cqh; }
.wab-wide .wab-t3 { font-size: min(9cqh, 2.3cqw); margin: 3cqh 0 4cqh; }
.wab-wide .wab-stamp { font-size: min(10cqh, 2.6cqw); }
.wab-wide .wab-end { display: flex; flex-direction: column; align-items: center; gap: 7cqh; }
.wab-wide .wab-logo { width: 19cqw; }
.wab-wide .wab-cta { font-size: 9cqh; padding: 3cqh 6cqh; }

/* 728x90, 970x90: לוגו | אייקון | שורה | חותמת | כפתור */
.wab-strip .wab-in { justify-content: space-between; padding: 0 2.5cqw; gap: 2cqw; }
.wab-strip .wab-logo { width: 15cqw; }
.wab-strip .wab-ic { width: 62cqh; height: 62cqh; }
.wab-strip .wab-txt { flex: 1; align-items: flex-start; }
.wab-strip .wab-t1 { font-size: min(30cqh, 3cqw); }
.wab-strip .wab-row { display: flex; align-items: center; gap: 2cqw; margin-top: 5cqh; }
.wab-strip .wab-t3 { font-size: min(17cqh, 1.8cqw); }
.wab-strip .wab-stamp { font-size: min(17cqh, 1.8cqw); }
.wab-strip .wab-cta { font-size: min(19cqh, 2cqw); padding: 9cqh 20cqh; }

/* 320x100, 450x150: אייקון | שורה + חותמת | כפתור */
.wab-band .wab-in { justify-content: space-between; padding: 0 4cqw; gap: 3cqw; }
.wab-band .wab-ic { width: 56cqh; height: 56cqh; }
.wab-band .wab-txt { flex: 1; align-items: flex-start; gap: 6cqh; }
.wab-band .wab-t1 { font-size: 19cqh; white-space: normal; text-align: start; line-height: 1.05; }
.wab-band .wab-stamp { font-size: 15cqh; }
.wab-band .wab-cta { font-size: 15cqh; padding: 8cqh 13cqh; }

/* 320x50: אייקון + שורה אחת */
.wab-mini .wab-in { gap: 3cqw; padding: 0 4cqw; }
.wab-mini .wab-ic { width: 70cqh; height: 70cqh; }
.wab-mini .wab-t1 { font-size: 32cqh; }
.wab-mini .wab-arrow { font-size: 50cqh; }

/* 300x250, 336x280, 485x250 */
.wab-box .wab-in { flex-direction: column; gap: 5cqh; padding: 6cqh 6cqw; }
.wab-box .wab-ic { width: 20cqh; height: 20cqh; }
.wab-box .wab-t1 { font-size: 15.5cqh; }
.wab-box .wab-t2 { font-size: 9.6cqh; margin-top: 1cqh; }
.wab-box .wab-stamp { font-size: 10cqh; margin-top: 4cqh; }
.wab-box .wab-cta { font-size: 8cqh; padding: 2.8cqh 10cqh; }

/* 300x600 */
.wab-tower .wab-in { flex-direction: column; gap: 4cqh; padding: 6cqh 7cqw; }
.wab-tower .wab-logo { width: 62cqw; }
.wab-tower .wab-ic { width: 30cqw; height: 30cqw; }
.wab-tower .wab-t1 { font-size: 17cqw; }
.wab-tower .wab-t2 { font-size: 10.4cqw; margin-top: 1cqh; }
.wab-tower .wab-t3 { font-size: 7.6cqw; margin: 2cqh 0; white-space: normal; line-height: 1.2; }
.wab-tower .wab-stamp { font-size: 11cqw; margin-top: 1cqh; }
.wab-tower .wab-cta { font-size: 8cqw; padding: 2.4cqh 12cqw; }

/* מחשב / מובייל */
.wab-slot .wab-m { display: none; }
@media (max-width: 760px) { .wab-slot .wab-d { display: none; } .wab-slot .wab-m { display: block; } }

/* תנועה: רקע בזום אאוט, טקסטים נכנסים מהר מזום, חותמת, לוגו נוחת אחרון */
.wab.is-in .wab-bg { animation: wabBg 1.1s cubic-bezier(.16,1,.3,1) both; }
.wab.is-in .wab-bg::after { animation: wabShine 1.2s 1.9s ease-in-out both; }
.wab.is-in .wab-ic { animation: wabZoom .45s .1s both cubic-bezier(.16,1,.3,1), wabBob 2.4s 1.4s ease-in-out infinite; }
.wab.is-in .wab-t1 { animation: wabZoom .4s .28s both cubic-bezier(.16,1,.3,1); }
.wab.is-in .wab-t2 { animation: wabZoom .4s .42s both cubic-bezier(.16,1,.3,1); }
.wab.is-in .wab-t3 { animation: wabSlide .35s .58s both cubic-bezier(.16,1,.3,1); }
.wab.is-in .wab-arrow { animation: wabSlide .35s .5s both cubic-bezier(.16,1,.3,1); }
.wab.is-in .wab-stamp { animation: wabStamp .42s .75s both cubic-bezier(.34,1.56,.64,1); }
.wab.is-in .wab-cta { animation: wabRise .4s .95s both cubic-bezier(.16,1,.3,1), wabPulse 1.8s 1.6s infinite; }
.wab.is-in .wab-logo { animation: wabLogo .55s 1.15s both cubic-bezier(.34,1.56,.64,1); }
@keyframes wabBg { from { transform: scale(1.5); } to { transform: none; } }
@keyframes wabShine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes wabZoom { from { opacity: 0; transform: scale(2.4); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wabSlide { from { opacity: 0; transform: translateX(40%); } to { opacity: 1; transform: none; } }
@keyframes wabStamp { from { opacity: 0; transform: scale(3) rotate(-10deg); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes wabRise { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: none; } }
@keyframes wabLogo { 0% { opacity: 0; transform: scale(.15) rotate(-14deg); } 60% { opacity: 1; transform: scale(1.2) rotate(3deg); } 80% { transform: scale(.95); } 100% { opacity: 1; transform: none; } }
@keyframes wabBob { 0%, 100% { transform: none; } 50% { transform: translateY(-6%) scale(1.04); } }
@keyframes wabPulse { 0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,.25), 0 0 0 0 rgba(255,255,255,.55); } 50% { box-shadow: 0 4px 14px rgba(0,0,0,.25), 0 0 0 .5em rgba(255,255,255,0); } }
.wab:not(.is-in) .wab-ic, .wab:not(.is-in) .wab-t1, .wab:not(.is-in) .wab-t2, .wab:not(.is-in) .wab-t3, .wab:not(.is-in) .wab-stamp, .wab:not(.is-in) .wab-cta, .wab:not(.is-in) .wab-logo, .wab:not(.is-in) .wab-arrow { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .wab *, .wab *::after { animation: none !important; } .wab .wab-in * { opacity: 1 !important; } }

/* ערכת אינדקס העסקים ("מי שלא שם, כנראה לא קיים"): אדום־שחור של המותג, חותמת צהובה */
.wab-biz .wab-bg { background: radial-gradient(85% 130% at 70% 35%, #ff2a36 0%, #c4000f 42%, #2a0005 100%); }
.wab-biz .wab-ic { background: #fff; color: #e30613; }
.wab-biz .wab-ic svg { width: 56%; height: 56%; }
.wab-biz .wab-stamp { background: #ffd400; color: #111; }
.wab-biz .wab-cta { color: #c4000f; }
.wab-biz:focus-visible { outline-color: #ffd400; }
/* אינדקס העסקים: שם האינדקס הוא הכותרת הגדולה; הסלוגן "מי שלא שם, כנראה לא קיים!" נכנס אחריה בזום וגדל */
.wab-biz .wab-t3:empty { display: none; }
.wab-biz .wab-stamp { transform: rotate(-2deg); }
.wab-biz.is-in .wab-stamp { animation: wabBizHit .6s 1.05s both cubic-bezier(.34,1.56,.64,1), wabBizGrow 1.7s 1.9s ease-in-out infinite; }
@keyframes wabBizHit { 0% { opacity: 0; transform: scale(4) rotate(-8deg); filter: blur(3px); } 70% { opacity: 1; transform: scale(.9) rotate(-1deg); filter: none; } 100% { opacity: 1; transform: rotate(-2deg); } }
@keyframes wabBizGrow { 0%, 100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(-2deg) scale(1.1); } }
.wab-biz.wab-wide .wab-t1 { font-size: min(24cqh, 6cqw); }
.wab-biz.wab-wide .wab-t2 { font-size: min(17cqh, 4.3cqw); }
.wab-biz.wab-wide .wab-stamp { font-size: min(12cqh, 3cqw); margin-top: 5cqh; }
.wab-biz.wab-strip .wab-t1 { font-size: min(36cqh, 3.5cqw); }
.wab-biz.wab-strip .wab-stamp { font-size: min(22cqh, 2.3cqw); }
.wab-biz.wab-strip .wab-t3 { display: none; }
.wab-biz.wab-band .wab-t1 { font-size: 17cqh; }
.wab-biz.wab-band .wab-stamp { font-size: min(14cqh, 3.7cqw); }
.wab-biz.wab-band .wab-ic { width: 44cqh; height: 44cqh; }
.wab-biz.wab-band .wab-cta { font-size: 13cqh; padding: 7cqh 10cqh; }
.wab-biz.wab-mini .wab-t1 { font-size: min(30cqh, 4.9cqw); }
.wab-biz.wab-box .wab-t1 { font-size: min(17cqh, 12cqw); }
.wab-biz.wab-box .wab-t2 { font-size: min(11cqh, 7.6cqw); }
.wab-biz.wab-box .wab-stamp { font-size: min(9.5cqh, 5.8cqw); margin-top: 5cqh; }
.wab-biz.wab-tower .wab-t1 { font-size: 13.4cqw; }
.wab-biz.wab-tower .wab-t2 { font-size: 9.4cqw; }
.wab-biz.wab-tower .wab-stamp { font-size: 9cqw; white-space: normal; line-height: 1.15; max-width: 80cqw; margin-top: 3cqh; }

/* בתוך הדאבל העליון: ממלא את המשבצת */
.top-duo .duo-slide .wab { max-width: none; height: 100%; border-radius: 0; }
.top-duo .duo-m .duo-slide .wab { border-radius: 6px; }

/* רוסית: מילים ארוכות יותר, הכותרות קטנות מעט כדי לא לחרוג */
.wab:lang(ru).wab-band .wab-t1 { font-size: 15cqh; }
.wab:lang(ru).wab-band .wab-stamp { font-size: 13cqh; }
.wab:lang(ru).wab-tower .wab-t1 { font-size: 13.5cqw; }
.wab:lang(ru).wab-tower .wab-t2 { font-size: 8.2cqw; }

/* ערבית: המילים קצרות, לכן הטקסטים גדולים יותר וממלאים את השטח */
.wab:lang(ar) { line-height: 1.08; }
.wab:lang(ar).wab-wide .wab-t1 { font-size: min(28cqh, 5.7cqw); }
.wab:lang(ar).wab-wide .wab-row { display: flex; align-items: center; justify-content: center; gap: 3cqw; margin-top: 6cqh; }
.wab:lang(ar).wab-wide .wab-t3 { font-size: min(16cqh, 3.3cqw); margin: 0; }
.wab:lang(ar).wab-wide .wab-stamp { font-size: min(16cqh, 3.3cqw); }
.wab:lang(ar).wab-wide .wab-cta { font-size: 11cqh; }
.wab:lang(ar).wab-strip .wab-txt { align-items: center; }
.wab:lang(ar).wab-strip .wab-t1 { font-size: min(42cqh, 4.6cqw); }
.wab:lang(ar).wab-strip .wab-row { margin-top: 3cqh; gap: 3cqw; }
.wab:lang(ar).wab-strip .wab-t3, .wab:lang(ar).wab-strip .wab-stamp { font-size: min(25cqh, 2.7cqw); }
.wab:lang(ar).wab-strip .wab-cta { font-size: min(24cqh, 2.5cqw); }
.wab:lang(ar).wab-band .wab-t1 { font-size: 25cqh; }
.wab:lang(ar).wab-band .wab-stamp { font-size: 18cqh; }
.wab:lang(ar).wab-band .wab-cta { font-size: 18cqh; }
.wab:lang(ar).wab-mini .wab-t1 { font-size: 38cqh; }
.wab:lang(ar).wab-box .wab-in { gap: 3.5cqh; padding: 5cqh 6cqw; }
.wab:lang(ar).wab-box .wab-ic { width: 19cqh; height: 19cqh; }
.wab:lang(ar).wab-box .wab-t1 { font-size: 19cqh; }
.wab:lang(ar).wab-box .wab-t2 { font-size: 12cqh; margin-top: 0; }
.wab:lang(ar).wab-box .wab-stamp { font-size: 10.5cqh; margin-top: 3cqh; }
.wab:lang(ar).wab-box .wab-cta { font-size: 9cqh; padding: 2.4cqh 10cqh; }
.wab:lang(ar).wab-tower .wab-in { gap: 5cqh; }
.wab:lang(ar).wab-tower .wab-ic { width: 34cqw; height: 34cqw; }
.wab:lang(ar).wab-tower .wab-t1 { font-size: 26cqw; }
.wab:lang(ar).wab-tower .wab-t2 { font-size: 15.5cqw; }
.wab:lang(ar).wab-tower .wab-t3 { font-size: 11cqw; }
.wab:lang(ar).wab-tower .wab-stamp { font-size: 14cqw; margin-top: 3cqh; }
.wab:lang(ar).wab-tower .wab-cta { font-size: 11cqw; }
/* ערבית, חצי דאבל רחב (485x250): אייקון | טקסט | כפתור בשורה, כדי למלא את הרוחב */
@container (min-aspect-ratio: 17/10) {
  .wab.wab-box:lang(ar):lang(ar) .wab-in { flex-direction: row; justify-content: space-between; gap: 4cqw; padding: 0 6cqw; }
  .wab.wab-box:lang(ar):lang(ar) .wab-ic { width: 34cqh; height: 34cqh; }
  .wab.wab-box:lang(ar):lang(ar) .wab-txt { flex: 1; }
  .wab.wab-box:lang(ar):lang(ar) .wab-t1 { font-size: min(30cqh, 13cqw); }
  .wab.wab-box:lang(ar):lang(ar) .wab-t2 { font-size: min(18cqh, 8cqw); }
  .wab.wab-box:lang(ar):lang(ar) .wab-stamp { font-size: 13cqh; margin-top: 5cqh; }
  .wab.wab-box:lang(ar):lang(ar) .wab-cta { font-size: 11cqh; padding: 4cqh 8cqh; }
}

/* מדבקת "חדש!" על פינת האייקון של באנר האינדקס: קופצת אחרי הסלוגן ומתנדנדת */
.wab-ic { position: relative; }
.wab-new { position: absolute; top: -14%; inset-inline-end: -30%; width: 62%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #ffd400; color: #c4000f; font-weight: 900; font-size: calc(var(--nb, 1) * 1px); line-height: 1; white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.35), 0 0 0 2px #fff; transform: rotate(-14deg); z-index: 2; }
.wab-wide .wab-new { font-size: 10cqh; }
.wab-tower .wab-new { font-size: 6.4cqw; }
.wab-box .wab-new { font-size: 4.6cqh; }
.wab-strip .wab-new { font-size: 15cqh; }
.wab:not(.is-in) .wab-new { opacity: 0; }
.wab.is-in .wab-new { animation: wabNewPop .5s 1.7s both cubic-bezier(.34,1.56,.64,1), wabNewWiggle 2.2s 2.4s ease-in-out infinite; }
@keyframes wabNewPop { from { opacity: 0; transform: scale(0) rotate(-120deg); } to { opacity: 1; transform: rotate(-14deg); } }
@keyframes wabNewWiggle { 0%, 100% { transform: rotate(-14deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.12); } }
.wab-box .wab-new { top: 0; inset-inline-end: -66%; }
.wab-strip .wab-new { width: 50%; top: -18%; inset-inline-end: -16%; font-size: 12cqh; }
