/* ---------- בוט שאלות ותשובות ---------- */
.qa-fab { position: fixed; z-index: 60; inset-inline-start: 18px; bottom: 92px; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; color: var(--ink-deep); background: linear-gradient(135deg, var(--accent-light), var(--accent)); box-shadow: 0 12px 26px -8px rgb(169 122 52 / .7); font: 800 16px var(--font-body); cursor: pointer; }
.qa-fab svg { width: 24px; height: 24px; }
.qa-panel { bottom: 156px; background: #F6F1E7; }
.qa-head { background: var(--ink); }
.qa-panel .msg--bot a { color: var(--accent-2); font-weight: 700; }
.qa-panel .msg--bot a.btn { color: #fff; }
.qa-panel .chat__opts button { border-color: var(--accent-2); color: var(--ink); }
.qa-panel .chat__input button { background: var(--ink); }
.qa-panel .msg--me { background: #E9EEF7; }
@media (max-width: 640px) {
  .qa-fab span { display: none; }
  .qa-fab { width: 50px; padding: 0; justify-content: center; }
  .chat { bottom: 156px; }
}

/* ---------- מאמרים ---------- */
.article { max-width: 760px; margin-inline: auto; font-size: 19px; line-height: 1.85; display: grid; gap: 18px; }
.article h2 { font-size: 30px; margin-top: 18px; }
.article blockquote { margin: 0; padding: 16px 22px; border-inline-start: 4px solid var(--accent); background: var(--surface); border-radius: 0 16px 16px 0; font-family: var(--font-head); color: var(--ink); }
.cards3 { display: grid; gap: 20px; }
@media (min-width: 860px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- תהילים ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs .btn[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.psalm { padding: 24px 26px; border-radius: 26px; background: #fff; box-shadow: 0 14px 40px -26px rgb(0 41 93 / .5); border: 1px solid #EFE7D8; }
.psalm + .psalm { margin-top: 16px; }
.psalm h3 { font-size: 22px; margin-bottom: 10px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.psalm h3 small { font: 600 15px var(--font-body); color: var(--muted); }
.holy { font-family: 'Frank Ruhl Libre', serif; font-size: 23px; line-height: 2.05; color: #13213A; }
.holy .v { color: var(--accent-2); font-size: .68em; font-family: var(--font-body); font-weight: 700; margin-inline-end: 4px; }
.instr { font-size: 16px; color: var(--muted); }
.name-tool { display: grid; gap: 6px; padding: 26px; border-radius: 26px; background: var(--ink); color: #DCE3EF; margin: 28px 0 18px; }
.name-tool h3 { color: #fff; font-size: 24px; }
.name-tool label { color: #fff; font-weight: 700; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.toc a { display: inline-flex; min-height: 40px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 700; color: var(--ink); }

/* ---------- עמוד שאלות ותשובות ---------- */
.qa-group + .qa-group { margin-top: 40px; }
.qa-group h2 { font-size: 26px; margin-bottom: 14px; }
.search-big { width: 100%; min-height: 60px; padding: 14px 22px; border-radius: 999px; border: 2px solid #DCD4C4; background: #fff; font: 600 18px var(--font-body); margin-bottom: 30px; }
.search-big:focus { outline: none; border-color: var(--accent); }

/* סרטון הפתיחה בדף הבית */
.film { display: grid; gap: 28px; align-items: center; }
.film__frame { justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #001A3D; box-shadow: 0 30px 70px -25px rgb(0 26 61 / .55); outline: 2px solid rgb(209 158 81 / .45); outline-offset: 8px; }
.film__frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .film { grid-template-columns: 1.2fr 1fr; } }
.footer__bottom .credit { font-size: 13px; opacity: .6; }

/* אזורי שירות */
.areas { list-style: none; padding: 0; margin: 14px 0 30px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.areas a { display: grid; gap: 4px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid rgb(0 26 61 / .08); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.areas a:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.areas b { font-size: 19px; }
.areas span { font-size: 15px; color: var(--muted, #5b6475); }
.areas-strip { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; font-size: 17px; line-height: 1.8; }
.areas-strip svg { width: 22px; height: 22px; flex: none; margin-top: 5px; color: var(--accent-2); }
.areas-strip a { color: var(--ink); }

/* פס "לדאוג לנשמה": אדום יין עמוק ורגיש, עם להבת נר */
.soul-band { background: radial-gradient(120% 140% at 85% 0%, #9A2A38 0%, #6E1522 55%, #4A0D17 100%); color: #FBEFE6; padding: 42px 0; position: relative; overflow: hidden; }
.soul-band::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgb(233 198 140 / .18), transparent 65%); pointer-events: none; }
.soul-band__in { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; position: relative; z-index: 1; }
.soul-band h2 { color: #fff; font-size: clamp(24px, 3.2vw, 34px); }
.soul-band h2 em { font-style: normal; color: var(--accent-light); display: block; }
.soul-band p { margin-top: 8px; font-size: 18px; color: #F3DCD0; }
.soul-band__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--soul { color: #4A0D17; background: linear-gradient(135deg, #FFF3E3, var(--accent-light)); box-shadow: 0 12px 28px -8px rgb(0 0 0 / .45); }
.btn--soul:hover { transform: translateY(-2px); }
.soul-band__flame { width: 34px; height: 56px; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; background: radial-gradient(60% 70% at 50% 70%, #FFF6D8, #F5C46A 45%, #E0812F 80%, transparent 82%); box-shadow: 0 0 40px 14px rgb(245 196 106 / .35); animation: flick 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flick { 0%,100% { transform: scale(1) rotate(-1deg); } 40% { transform: scale(1.06, .97) rotate(2deg); } 70% { transform: scale(.97, 1.04) rotate(-2deg); } }
@media (max-width: 860px) { .soul-band__in { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 18px; } .soul-band__ctas { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .soul-band__flame { animation: none; } }

/* תמונה ראשית: מעבר איטי בין תמונות, ואור של נשמה שעולה */
.hero__slides img { position: absolute; inset: 0; opacity: 0; animation: heroSlide 21s infinite; transform-origin: 50% 40%; }
.hero__slides img:nth-child(1) { animation-delay: -1.5s; }
.hero__slides img:nth-child(2) { animation-delay: 5.5s; }
.hero__slides img:nth-child(3) { animation-delay: 12.5s; }
@keyframes heroSlide { 0% { opacity: 0; transform: scale(1.02); } 6% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; transform: scale(1.1); } 100% { opacity: 0; } }
.soul { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.soul__beam { position: absolute; left: 50%; bottom: 8%; width: min(46vw, 420px); height: 120%; transform: translateX(-50%); background: radial-gradient(40% 60% at 50% 100%, rgb(255 228 170 / .38), transparent 70%), linear-gradient(0deg, rgb(255 222 160 / .22), transparent 75%); filter: blur(18px); mix-blend-mode: screen; animation: beam 7s ease-in-out infinite; }
@keyframes beam { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.soul i { position: absolute; bottom: 12%; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: #FFE9B8; box-shadow: 0 0 10px 3px rgb(255 220 150 / .8); opacity: 0; mix-blend-mode: screen; animation: rise 9s linear infinite; }
.soul i:nth-child(2) { margin-left: -60px; animation-delay: .6s; animation-duration: 10s; }
.soul i:nth-child(3) { margin-left: 40px; animation-delay: 1.4s; width: 4px; height: 4px; }
.soul i:nth-child(4) { margin-left: -110px; animation-delay: 2.1s; animation-duration: 11s; }
.soul i:nth-child(5) { margin-left: 95px; animation-delay: 2.9s; width: 5px; height: 5px; }
.soul i:nth-child(6) { margin-left: -20px; animation-delay: 3.6s; animation-duration: 8s; }
.soul i:nth-child(7) { margin-left: 140px; animation-delay: 4.3s; width: 3px; height: 3px; }
.soul i:nth-child(8) { margin-left: -150px; animation-delay: 5s; }
.soul i:nth-child(9) { margin-left: 20px; animation-delay: 5.7s; animation-duration: 12s; width: 4px; height: 4px; }
.soul i:nth-child(10) { margin-left: -80px; animation-delay: 6.4s; }
.soul i:nth-child(11) { margin-left: 70px; animation-delay: 7.1s; animation-duration: 10s; }
.soul i:nth-child(12) { margin-left: -40px; animation-delay: 7.8s; width: 5px; height: 5px; }
.soul i:nth-child(13) { margin-left: 120px; animation-delay: 8.4s; animation-duration: 11s; }
.soul i:nth-child(14) { margin-left: -130px; animation-delay: 3.2s; width: 3px; height: 3px; }
@keyframes rise { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 12% { opacity: .95; } 55% { transform: translate(18px, -45vh) scale(1); } 85% { opacity: .5; } 100% { opacity: 0; transform: translate(-12px, -85vh) scale(.4); } }
@media (prefers-reduced-motion: reduce) { .hero__slides img { animation: none; } .hero__slides img:first-child { opacity: 1; } .soul i, .soul__beam { animation: none; } }

/* שלבי בקשת מחילה */
.mechila { list-style: none; counter-reset: m; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.mechila li { counter-increment: m; display: grid; grid-template-columns: 46px 1fr; gap: 4px 14px; align-items: start; padding: 16px 18px; border-radius: 18px; background: var(--surface); }
.mechila li::before { content: counter(m); grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 20px var(--font-head); color: var(--ink-deep); background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
.mechila b { font-size: 18px; color: var(--ink); }
.mechila span { color: var(--muted); }

/* עמוד שער: הכל במסך הראשון, והשירותים מציצים מתחת */
.hero--cover { min-height: calc(100svh - 40px); align-items: center; }
.hero--cover .hero__inner { padding: 120px 0 110px; }
.hero--cover .title { font-size: clamp(32px, 5vw, 60px); }
.hero__soul { display: inline-grid; gap: 8px; margin-top: 22px; padding: 18px 22px; max-width: 560px; border-radius: 20px; background: linear-gradient(135deg, rgb(160 28 44 / .92), rgb(110 18 32 / .92)); border: 1px solid rgb(255 200 200 / .25); box-shadow: 0 18px 40px -16px rgb(80 0 10 / .7); }
.hero__soul b { font: 800 clamp(22px, 3vw, 32px)/1.2 var(--font-head); color: #fff; }
.hero__soul span { color: #FBE3E3; font-size: 17px; }
.hero--cover .hero__ctas { margin-top: 22px; }
@media (max-width: 600px) { .hero--cover .hero__inner { padding: 104px 0 96px; } .hero__soul { padding: 14px 16px; } .hero--cover .hero__ctas .btn { min-height: 48px; padding: 10px 18px; } }

/* שער: מניין מול קבר, נשמה שעולה וכוכבים מספרי התהילים */
.hero__scene-wrap { container-type: size; overflow: hidden; }
.scene { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background-size: 100% 100%; }
.scene--desk { --ar: 1.75; background-image: url(assets/shaar-desktop.jpg?v=4); width: max(100cqw, calc(100cqh * 1.75)); height: max(100cqh, calc(100cqw / 1.75)); }
.scene--mob { display: none; background-image: url(assets/shaar-mobile.jpg?v=4); width: max(100cqw, calc(100cqh * .5714)); height: max(100cqh, calc(100cqw / .5714)); }
@media (max-width: 700px) { .scene--desk { display: none; } .scene--mob { display: block; } }
.hero--cover::before { background: linear-gradient(270deg, rgb(0 26 61 / .82) 0%, rgb(0 26 61 / .55) 42%, rgb(0 26 61 / .12) 75%), linear-gradient(0deg, rgb(0 26 61 / .55), transparent 35%); }
@media (max-width: 700px) { .hero--cover::before { background: linear-gradient(180deg, rgb(0 26 61 / .78) 0%, rgb(0 26 61 / .6) 45%, rgb(0 26 61 / .15) 75%, rgb(0 26 61 / .4) 100%); } }
.ghost { position: absolute; width: 9%; aspect-ratio: 1 / 2.4; transform: translate(-50%, -100%); pointer-events: none; mix-blend-mode: screen; filter: blur(6px); opacity: 0; animation: ghostRise 9s ease-in-out infinite;
  background: radial-gradient(42% 18% at 50% 16%, rgb(255 255 255 / .9), transparent 70%), radial-gradient(48% 46% at 50% 55%, rgb(255 246 220 / .75), transparent 72%), radial-gradient(30% 40% at 50% 92%, rgb(255 236 190 / .55), transparent 75%); }
.scene--mob .ghost { width: 22%; }
@keyframes ghostRise { 0% { opacity: 0; transform: translate(-50%, -80%) scale(.85); } 18% { opacity: .85; } 70% { opacity: .55; } 100% { opacity: 0; transform: translate(-50%, -175%) scale(1.15); } }
.star { position: absolute; width: 10px; height: 10px; background: #FFF3C4; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 4px #FFD98A); opacity: 0; animation: starUp 5s ease-out infinite; }
@keyframes starUp { 0% { opacity: 0; transform: translate(-50%, 0) scale(.4) rotate(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -140px) scale(1) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .ghost, .star { animation: none; } }
/* מיקום: הקבר בצד שמאל במחשב, ובתחתית המסך בטלפון, כדי שלא יוסתר מאחורי הכותרת */
.scene--desk { left: -14cqw; top: 50%; transform: translateY(-50%); width: max(114cqw, calc(100cqh * 1.75)); height: max(calc(114cqw / 1.75), 100cqh); }
@media (max-width: 700px) { .scene--mob { left: 50%; top: -1.5cqh; transform: translateX(-50%); height: 130cqh; width: max(100cqw, calc(130cqh * .5714)); } }
/* תמונות השער מצ׳אט GPT (יחס 2.12 במחשב, 0.535 בטלפון) */
.scene--desk { left: -14cqw; top: 50%; transform: translateY(-50%); width: max(114cqw, calc(100cqh * 2.123)); height: max(calc(114cqw / 2.123), 100cqh); }
@media (max-width: 700px) { .scene--mob { left: 50%; top: -1.2cqh; transform: translateX(-50%); height: 145cqh; width: max(100cqw, calc(145cqh * .5348)); } }
.scene--desk { --W: max(116cqw, calc(100cqh * 2.123)); width: var(--W); height: calc(var(--W) / 2.123); left: calc(42cqw - var(--W) * .495); }
/* שכבת הנשמה והכוכבים: מעל ההחשכה, באותו מיקום בדיוק כמו התמונה */
.hero__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; container-type: size; overflow: hidden; }
.hero__fx .scene { background: none; }
.ghost { width: 11%; filter: blur(3px) drop-shadow(0 0 18px rgb(255 240 200 / .9)); mix-blend-mode: normal;
  background: radial-gradient(34% 15% at 50% 14%, rgb(255 255 255 / .95), rgb(255 255 255 / 0) 72%), radial-gradient(46% 40% at 50% 50%, rgb(255 250 235 / .8), rgb(255 250 235 / 0) 72%), radial-gradient(30% 34% at 50% 88%, rgb(255 236 190 / .6), rgb(255 236 190 / 0) 75%); }
.scene--mob .ghost { width: 26%; }
.star { width: 13px; height: 13px; }
/* סרטון בקשת מחילה: רחב במחשב, לאורך בטלפון */
.mechila-film { margin-top: 28px; }
.mechila-film video { width: 100%; border-radius: 22px; background: #001A3D; box-shadow: var(--shadow-card); }
.mf--tall { display: none; max-width: 420px; margin-inline: auto; }
@media (max-width: 700px) { .mf--wide { display: none; } .mf--tall { display: block; } }
/* תמונת שער: מגוון אנשים, יחס 1.75 במחשב ו-0.571 בטלפון */
.scene--desk { --W: max(116cqw, calc(100cqh * 1.75)); width: var(--W); height: calc(var(--W) / 1.75); left: calc(42cqw - var(--W) * .506); }
@media (max-width: 700px) { .scene--mob { left: 50%; top: -1.75cqh; transform: translateX(-50%); height: 125cqh; width: max(100cqw, calc(125cqh * .5714)); } }
/* נרות על הקבר, ותנועה עדינה של כל התמונה */
.ycandle { position: absolute; width: 1.05%; aspect-ratio: 1 / 2.6; transform: translate(-50%, -100%); border-radius: 3px 3px 2px 2px; background: linear-gradient(90deg, #cfc4b0, #fffaf0 38%, #f4ecdc 62%, #bfb39c); box-shadow: inset 0 -6px 8px -4px rgb(120 90 50 / .35), 0 0 12px 2px rgb(255 190 100 / .18); }
.ycandle.short { aspect-ratio: 1 / 1.7; }
.ycandle::before { content: ""; position: absolute; left: 0; right: 0; top: -12%; height: 24%; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #fff6e2, #e9dcc3 70%); }
.ycandle::after { content: ""; position: absolute; left: 47%; bottom: 100%; width: 7%; height: 22%; background: #2b2118; border-radius: 1px; }
.scene--mob .ycandle { width: 2.6%; }
.ycandle i { position: absolute; left: 50%; bottom: 100%; width: 900%; aspect-ratio: 1; transform: translate(-50%, 38%); border-radius: 50%; background: radial-gradient(circle, rgb(255 196 110 / .42), rgb(255 160 70 / .14) 38%, transparent 66%); opacity: 0; animation: candleGlowIn 1s 1.2s ease-out forwards, candleGlow 2.6s 2.2s ease-in-out infinite alternate; pointer-events: none; }
.ycandle b { position: absolute; left: 50%; bottom: 108%; width: 62%; aspect-ratio: 1 / 2.4; transform-origin: 50% 100%; translate: -50% 0; border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%; background: radial-gradient(55% 40% at 50% 84%, rgb(90 140 255 / .75), transparent 70%), radial-gradient(60% 72% at 50% 70%, #FFFFFF, #FFF2C4 34%, #FFC25C 64%, rgb(255 140 40 / .85) 78%, transparent 84%); filter: blur(.3px) drop-shadow(0 0 5px #FFC66B) drop-shadow(0 0 12px rgb(255 170 70 / .65)); opacity: 0; animation: candleIgnite 1s 1.1s ease-out forwards, candleFlick 1.15s 2.1s linear infinite; }
.ycandle.short b { animation-delay: 1.9s, 2.9s; animation-duration: 1s, 1.35s; }
.ycandle.short i { animation-delay: 2s, 3s; }
@keyframes candleIgnite { 0% { opacity: 0; scale: .1 .2; } 35% { opacity: 1; scale: 1.25 1.45; } 70% { scale: .9 .95; } 100% { opacity: 1; scale: 1 1; } }
@keyframes candleFlick { 0% { transform: skewX(0) scale(1, 1); } 11% { transform: skewX(2.5deg) scale(.96, 1.05); } 24% { transform: skewX(-3deg) scale(1.03, .95); } 37% { transform: skewX(1deg) scale(.97, 1.08); } 49% { transform: skewX(-1.5deg) scale(1.02, .97); } 63% { transform: skewX(3deg) scale(.95, 1.04); } 78% { transform: skewX(-2deg) scale(1.04, .98); } 89% { transform: skewX(1deg) scale(.99, 1.03); } 100% { transform: skewX(0) scale(1, 1); } }
@keyframes candleGlowIn { to { opacity: 1; } }
@keyframes candleGlow { 0% { scale: 1; filter: brightness(1); } 35% { scale: 1.06; } 60% { scale: .96; filter: brightness(1.15); } 100% { scale: 1.03; filter: brightness(.92); } }
.hero__scene-wrap .scene, .hero__fx .scene { animation: heroDrift 22s ease-in-out infinite alternate; transform-origin: 48% 58%; }
@keyframes heroDrift { from { scale: 1; } to { scale: 1.07; } }
@media (prefers-reduced-motion: reduce) { .ycandle b, .ycandle i, .hero__scene-wrap .scene, .hero__fx .scene { animation: none; } .ycandle b, .ycandle i { opacity: 1; } }
