/* =========================================================
   בית חב״ד אובולון — עיצוב
   הכל כתוב עם "logical properties" (inline-start/end)
   כדי שאותו קובץ יעבוד גם בעברית (RTL) וגם באנגלית/אוקראינית (LTR).
   ========================================================= */

@font-face { font-family: "Rubik"; src: url("../fonts/rubik.woff") format("woff"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "FUP Galil"; src: url("../fonts/fup-galil.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Assistant"; src: url("../fonts/assistant-400.woff") format("woff"); font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Assistant"; src: url("../fonts/assistant-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Assistant"; src: url("../fonts/assistant-700.woff") format("woff"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Arimo"; src: url("../fonts/arimo.woff") format("woff"); font-weight: 400 700; font-display: swap; }
/* פונט קישוט (כותרות קטנות): עברית = Ellinia CLM Light Italic (קולמוס, GPL+חריג פונטים);
   אנגלית/אוקראינית = Cormorant Garamond Italic (OFL). הקבצים עצמם נטויים, לכן font-style: normal. */
@font-face { font-family: "Ellinia"; src: url("../fonts/ellinia-light-italic.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Cormorant Italic"; src: url("../fonts/cormorant-italic-latin.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Italic"; src: url("../fonts/cormorant-italic-cyrillic.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --navy: #16294a;
  --navy-2: #213c69;
  --navy-3: #2d5089;
  --gold: #d4a63f;
  --gold-deep: #8a6514;
  --gold-soft: #f6e7bf;
  --burgundy: #8e1f3d;
  --burgundy-2: #a8294b;
  --cream: #ffffff;
  --band: #faf8f4;
  --ink: #1d2735;
  --muted: #5b6577;
  --line: #e7dfcf;
  --white: #fff;
  --wa: #128045;
  --fb: #2f63c9;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(22, 41, 74, .08);
  --shadow: 0 10px 30px rgba(22, 41, 74, .12);
  --shadow-lg: 0 24px 60px rgba(22, 41, 74, .22);
  --header-h: 72px;

  --f-body: "Assistant", "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-head: "FUP Galil", "Rubik", Georgia, serif;
  --w-head: 400;
  --f-deco: "Ellinia", "Cormorant Italic", Georgia, serif;
  color-scheme: light;
}
:lang(en) { --f-head: "Rubik", system-ui, sans-serif; --w-head: 700; }
:lang(en), :lang(uk) { --f-deco: "Cormorant Italic", "Ellinia", Georgia, serif; }
:lang(uk) { --f-head: "Rubik", system-ui, sans-serif; --w-head: 700; --f-body: "Arimo", "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3 { font-family: var(--f-head); font-weight: var(--w-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
:lang(en) h1, :lang(en) h2, :lang(en) h3, :lang(uk) h1, :lang(uk) h2, :lang(uk) h3 { letter-spacing: -.01em; }
:lang(he) body { line-height: 1.75; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* כותרות קטנות: באותו פונט של האתר (בלי פונט כתב יד) */
.hand { font-family: var(--f-body); font-weight: 600; }
.kicker {
  font-family: var(--f-body); font-weight: 700; color: var(--burgundy);
  font-size: 1rem; letter-spacing: .04em; line-height: 1.3; margin: 0 0 .5rem;
}
.section { padding-block: clamp(64px, 9vw, 112px); }
.band { background: var(--band); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(32px, 5vw, 52px); }
.section-sub { color: var(--muted); margin: 0; }

/* ---------- Buttons ----------
   סגנון "תדמיתי" (בהשראת Apple / Rolex / Aman): צורת גלולה, שטוח בלי צל כבד,
   פעולה ראשית אחת בולטת עם חץ בתוך עיגול שזז במעבר עכבר, פעולה משנית שקטה (מסגרת דקה או זכוכית). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 1.6em; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  box-shadow: none; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .15s ease;
}
:lang(en) .btn, :lang(uk) .btn { letter-spacing: .015em; }
.btn:active { transform: scale(.98); }
.btn svg { font-size: 1.1em; }
.btn-donate { background: var(--burgundy); color: #fff; }
.btn-donate:hover { background: #77193a; }
/* כפתור "לתרומה" בכותרת ובפס הצף בטלפון: לבן עם טקסט, לב ומסגרת בורדו */
.site-header .btn-donate, .sticky-donate .btn-donate {
  background: #fff; color: var(--burgundy); box-shadow: inset 0 0 0 1.5px var(--burgundy);
}
.site-header .btn-donate:hover, .sticky-donate .btn-donate:hover { background: #fbeef2; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e2b551; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0e6b39; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(22, 41, 74, .22); }
.btn-ghost:hover { background: var(--navy); color: #fff; box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-sm { min-height: 40px; padding: 0 1.15em; font-size: .93rem; }
.btn-lg { min-height: 60px; padding: 0 2.2em; font-size: 1.12rem; }
/* חץ בעיגול בקצה הכפתור (פעולה ראשית) */
.btn-cta { padding-inline: 1.7em 6px; }
.btn-lg.btn-cta { padding-inline: 2.1em 7px; }
.btn-cta::after {
  content: ""; flex: none; width: 38px; height: 38px; border-radius: 50%; margin-inline-start: .6em;
  background: rgba(255, 255, 255, .17) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .25s ease;
}
.btn-lg.btn-cta::after { width: 46px; height: 46px; background-size: 18px; }
[dir="rtl"] .btn-cta::after { transform: scaleX(-1); }
.btn-cta:hover::after { transform: translateX(4px); }
[dir="rtl"] .btn-cta:hover::after { transform: scaleX(-1) translateX(4px); }
.btn-cta > svg { display: none; }
.btn-gold.btn-cta::after { background-color: rgba(22, 41, 74, .12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316294a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.linkish { background: none; border: 0; padding: 8px 4px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border-radius: 0; background: none; box-shadow: none;
}
.brand-mark img { width: 100%; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--f-body); font-weight: 500; font-size: 1.25rem; color: var(--navy); }
.brand-text small { font-size: .8rem; color: var(--gold-deep); font-weight: 600; }
.main-nav { display: flex; gap: 4px; margin-inline: auto; }
.main-nav a {
  text-decoration: none; font-weight: 500; color: var(--navy);
  padding: 10px 14px; border-radius: 10px; transition: background-color .2s;
}
.main-nav a:hover { background: var(--band); }
.header-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.main-nav + .header-tools { margin-inline-start: 0; }
.lang-switch { display: flex; background: var(--band); border-radius: 12px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; min-width: 44px; min-height: 38px; padding: 0 8px;
  border-radius: 9px; font-size: .85rem; font-weight: 600; color: var(--muted);
}
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--band);
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.menu-toggle span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform .25s, width .25s; }
.menu-toggle span:last-child { width: 13px; align-self: center; margin-inline-start: -7px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { width: 20px; margin: 0; transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- Hero (בהשראת ברלין: פינות תחתונות מעוגלות, הכהיה בצד הטקסט) ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(82svh, 760px);
  display: flex; align-items: center;
  color: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 0, 0, .12);
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  /* שכבה 1: הכהיה בצד הטקסט · שכבה 2: התמונה · שכבה 3: רקע חלופי עד שתגיע תמונה */
  background:
    linear-gradient(var(--hero-dir, 90deg), rgba(10, 20, 40, .78) 0%, rgba(10, 20, 40, .45) 42%, rgba(10, 20, 40, 0) 75%),
    url("../img/hero.jpg") center / cover no-repeat,
    radial-gradient(60% 70% at 78% 30%, rgba(212, 166, 63, .45), transparent 70%),
    radial-gradient(50% 60% at 15% 85%, rgba(142, 31, 61, .55), transparent 70%),
    linear-gradient(135deg, #1b3460, #0f1d36);
  transform: scale(1.06);
  animation: hero-zoom 18s ease-out forwards;
}
/* תמונת הראשי: האנשים בצד ימין של התמונה. באנגלית/אוקראינית הטקסט משמאל (כרגיל).
   בעברית הטקסט מימין (כיוון עברית), ממורכז לגובה ותמציתי. */
[dir="rtl"] .hero-bg { --hero-dir: 270deg; }
@media (min-width: 761px) {
  .hero-inner { padding-block: 64px 96px; }
  [dir="rtl"] .hero-text { max-width: 540px; }
  [dir="rtl"] .hero h1 { font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.5rem); }
  [dir="rtl"] .hero-sub { margin-bottom: 1.1em; }
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-inner { padding-block: 72px 110px; }
.hero-text { max-width: 600px; }
.hero-kicker { font-family: var(--f-deco); font-weight: 400; font-synthesis: none; font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); letter-spacing: 0; color: #fff3d6; margin: 0 0 .25rem; line-height: 1.15; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero h1 {
  color: #fff; font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.4rem); line-height: 1.08; margin-bottom: .35em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero-sub { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); max-width: 30ch; opacity: .95; margin-bottom: 1.6em; }
.scroll-cue {
  position: absolute; bottom: 26px; inset-inline-start: 50%; translate: -50% 0;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 24px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px);
  animation: bob 2.4s ease-in-out infinite;
}
[dir="rtl"] .scroll-cue { translate: 50% 0; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo { position: relative; }
.photo-frame {
  border-radius: var(--radius-lg); padding: 12px; background: var(--white);
  box-shadow: var(--shadow); rotate: -2deg;
}
[dir="rtl"] .photo-frame { rotate: 2deg; }
.photo { border-radius: 20px; aspect-ratio: 4 / 3.4; background-size: cover; background-position: center; }
.about-img {
  background:
    url("../img/about.jpg") center 18% / cover no-repeat,
    radial-gradient(80% 60% at 70% 20%, rgba(246, 231, 191, .9), transparent 70%),
    linear-gradient(160deg, #f0dfb4, #d9b46a 55%, #b8892a);
}
.about-sticker {
  position: absolute; bottom: -18px; inset-inline-end: -6px;
  font-family: var(--f-deco); font-weight: 400; font-synthesis: none;
  background: var(--gold); color: var(--navy); font-size: 2.1rem; line-height: 1;
  padding: 10px 20px 10px; border-radius: 14px; box-shadow: var(--shadow); rotate: 3deg;
}
.lead { font-size: 1.2rem; color: var(--ink); }
.about-text p:not(.lead):not(.kicker) { color: var(--muted); }
.about-text .kicker { font-family: var(--f-deco); font-weight: 400; font-synthesis: none; font-size: clamp(2.2rem, 1.7rem + 1.6vw, 3rem); letter-spacing: 0; line-height: 1.1; margin-bottom: .2rem; }
.stats { list-style: none; padding: 0; margin: 8px 0 28px; display: flex; flex-wrap: wrap; gap: 14px; }
.stats li {
  flex: 1 1 120px; background: var(--white); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow-sm); border-top: 3px solid var(--gold);
}
.stats b { display: block; font-family: var(--f-head); font-weight: var(--w-head); font-size: 2rem; color: var(--navy); line-height: 1.1; }
.stats span { font-size: .9rem; color: var(--muted); }

/* ---------- Activities tiles ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
  position: relative; width: 100%; aspect-ratio: 4 / 3.3; border: 0; padding: 0;
  border-radius: var(--radius); overflow: hidden; color: #fff; text-align: start;
  background: var(--navy); box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-bg { position: absolute; inset: 0; background-size: cover; background-position: center 28%; transition: transform .6s ease; }
.tile:hover .tile-bg { transform: scale(1.06); }
.tile[data-tone="1"] .tile-bg { background-image: radial-gradient(70% 80% at 80% 15%, rgba(212, 166, 63, .5), transparent 70%), linear-gradient(150deg, #24467a, #142645); }
.tile[data-tone="2"] .tile-bg { background-image: radial-gradient(70% 80% at 80% 15%, rgba(246, 231, 191, .35), transparent 70%), linear-gradient(150deg, #a8294b, #6d1730); }
.tile[data-tone="3"] .tile-bg { background-image: radial-gradient(70% 80% at 80% 15%, rgba(255, 255, 255, .35), transparent 70%), linear-gradient(150deg, #d7ab48, #a2741d); }
.tile-ic {
  position: absolute; top: 18%; inset-inline: 0; margin-inline: auto; width: max-content;
  font-size: clamp(58px, 7vw, 84px); color: rgba(255, 255, 255, .92);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .2)); transition: transform .4s ease;
}
.tile:hover .tile-ic { transform: scale(1.08) rotate(-3deg); }
.tile.has-photo .tile-ic { top: 18px; inset-inline: 18px auto; margin: 0; }
.tile.has-photo .tile-ic { font-size: 34px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: rgba(22, 41, 74, .55); backdrop-filter: blur(4px); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 40, .82) 0%, rgba(10, 20, 40, .2) 55%, rgba(10, 20, 40, 0) 75%);
}
.tile-body { position: absolute; inset-inline: 18px; bottom: 16px; z-index: 1; }
.tile-body strong { display: block; font-family: var(--f-head); font-weight: var(--w-head); font-size: 1.55rem; line-height: 1.15; }
:lang(en) .tile-body strong, :lang(uk) .tile-body strong { font-size: 1.35rem; }
.tile-body small { display: block; font-size: .95rem; opacity: .9; margin-top: 2px; }
.tile-chip {
  position: absolute; top: 16px; inset-inline-end: 16px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600;
  background: rgba(255, 255, 255, .92); color: var(--navy); padding: 6px 10px; border-radius: 99px;
  opacity: 0; transform: translateY(-4px); transition: .25s;
}
.tile:hover .tile-chip, .tile:focus-visible .tile-chip { opacity: 1; transform: none; }
@media (hover: none) { .tile-chip { opacity: 1; transform: none; } }

/* ---------- Light band ---------- */
.light-band {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding-block: clamp(70px, 10vw, 120px);
  background:
    radial-gradient(40% 60% at 50% 0%, rgba(212, 166, 63, .35), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, #0f1e38 100%);
}
.light-inner { max-width: 860px; }
.light-icon { font-size: 92px; color: var(--gold); margin-bottom: 14px; filter: drop-shadow(0 0 18px rgba(212, 166, 63, .6)); }
.light-title { font-family: var(--f-head); font-weight: var(--w-head); font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); line-height: 1.2; margin: 0 0 .5em; color: var(--gold-soft); }
.light-text { font-size: 1.15rem; opacity: .92; max-width: 46ch; margin: 0 auto 40px; }
.wants { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.wants a, .wants button {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; font-weight: 500;
  transition: background-color .2s, transform .2s, border-color .2s;
}
.wants a:hover, .wants button:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold); transform: translateY(-3px); }
.want-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: var(--gold); box-shadow: inset 0 0 0 2px rgba(212, 166, 63, .55); }

/* ---------- Events (מודעות ממוסגרות) ---------- */
.events { display: grid; gap: 44px; }
.events-loading, .events-empty { text-align: center; color: var(--muted); }
.events-empty.connect-card {
  flex-direction: column; justify-content: center; max-width: 620px; margin-inline: auto;
  border: 2px dashed var(--line); border-inline-start-width: 2px; box-shadow: none; background: transparent;
}
.events-empty .connect-text { flex: none; }
.events-empty h3 { font-size: 1.5rem; }
.events-empty .connect-text p:last-child { margin-inline: auto; }
.ev-group { display: grid; gap: 18px; }
.ev-date {
  display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap;
  font-weight: 700; color: var(--navy);
}
.ev-date::before, .ev-date::after { content: ""; flex: 1 1 40px; max-width: 160px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ev-date::after { transform: scaleX(-1); }
.ev-date-pill { background: var(--white); border: 2px solid var(--gold); border-radius: 99px; padding: 6px 18px; box-shadow: var(--shadow-sm); }
.ev-same { font-size: .8rem; background: var(--burgundy); color: #fff; border-radius: 99px; padding: 4px 10px; font-weight: 600; }
.ev-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.ev-card {
  width: min(360px, 100%);
  background: var(--white); border-radius: var(--radius-lg); padding: 14px 14px 18px;
  box-shadow: var(--shadow); position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
/* מסגרת זהב פנימית עדינה — "פספרטו" סביב המודעה */
.ev-mat {
  position: relative; border-radius: 18px; padding: 10px;
  background: linear-gradient(145deg, var(--gold-soft), #fff8e6 40%, var(--gold-soft));
  box-shadow: inset 0 0 0 1.5px rgba(184, 137, 42, .55);
}
.ev-flyer {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border: 0; padding: 0;
  border-radius: 12px; overflow: hidden; background: var(--navy); cursor: zoom-in;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.ev-flyer .blur { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(18px) brightness(.8) saturate(1.2); }
.ev-flyer .main { position: relative; width: 100%; height: 100%; object-fit: contain; }
.ev-zoom {
  position: absolute; bottom: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.ev-badge {
  position: absolute; top: -12px; inset-inline-start: 22px; z-index: 2;
  min-width: 62px; text-align: center; background: var(--burgundy); color: #fff;
  border-radius: 0 0 14px 14px; padding: 18px 10px 8px; line-height: 1; box-shadow: var(--shadow-sm);
}
.ev-badge::before { content: ""; position: absolute; top: 0; inset-inline-start: -8px; border: 6px solid transparent; border-bottom-color: #5f1428; border-inline-end-color: #5f1428; transform: translateY(0); }
.ev-badge b { display: block; font-size: 1.7rem; font-weight: 800; }
.ev-badge span { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.ev-sample { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; background: #fff3; backdrop-filter: blur(4px); color: #fff; font-size: .75rem; padding: 3px 9px; border-radius: 99px; border: 1px solid #fff8; }
.ev-info { padding-inline: 6px; display: grid; gap: 6px; }
.ev-info h3 { font-size: 1.35rem; margin: 0; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .92rem; }
.ev-meta span { display: inline-flex; align-items: center; gap: 5px; }
/* כפתור "להרשמה" עדין: מסגרת בורדו דקה, חץ קטן בעיגול; מתמלא במעבר עכבר */
.ev-card .btn { align-self: center; width: auto; margin-top: 4px; min-height: 40px; font-size: .92rem; }
.ev-card .btn-donate { background: transparent; color: var(--burgundy); box-shadow: inset 0 0 0 1.5px var(--burgundy); }
.ev-card .btn-donate:hover { background: var(--burgundy); color: #fff; }
.ev-card .btn-cta { padding-inline: 1.3em 4px; }
.ev-card .btn-cta::after { width: 30px; height: 30px; margin-inline-start: .5em; background-size: 13px; background-color: var(--burgundy); }
.ev-card .btn-cta:hover::after { background-color: rgba(255, 255, 255, .2); }

/* ---------- Connect ---------- */
.connect-card {
  display: flex; align-items: center; gap: 28px 40px; flex-wrap: wrap; justify-content: space-between;
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow); border-inline-start: 6px solid var(--gold);
  background-image: radial-gradient(50% 120% at 100% 0%, rgba(246, 231, 191, .6), transparent 60%);
}
[dir="rtl"] .connect-card { background-image: radial-gradient(50% 120% at 0% 0%, rgba(246, 231, 191, .6), transparent 60%); }
.connect-text { flex: 1 1 420px; }
.connect-text h2 { margin-bottom: .3em; }
.connect-text p:last-child { color: var(--muted); margin: 0; max-width: 54ch; }

/* פס "נשמח מאוד להכיר אתכם": פס כחול מקצה לקצה (כמו פס "מעט אור"), עם צל רך למעלה ולמטה */
.connect-band {
  position: relative; z-index: 1; overflow: hidden; color: #fff; text-align: center;
  padding-block: clamp(64px, 9vw, 104px);
  background:
    radial-gradient(38% 70% at 12% 100%, rgba(142, 31, 61, .45), transparent 70%),
    radial-gradient(34% 80% at 92% 0%, rgba(212, 166, 63, .18), transparent 70%),
    linear-gradient(180deg, #1a305a 0%, var(--navy) 55%, #102140 100%);
  box-shadow: 0 -14px 30px -12px rgba(10, 20, 40, .28), 0 14px 30px -12px rgba(10, 20, 40, .28);
}
/* קווי זהב דקים בראש ובתחתית הפס */
.connect-band::before, .connect-band::after {
  content: ""; position: absolute; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 166, 63, .7), transparent);
}
.connect-band::before { top: 14px; }
.connect-band::after { bottom: 14px; }
.connect-inner { max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.connect-icon {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  font-size: 44px; color: var(--gold); box-shadow: inset 0 0 0 1.5px rgba(212, 166, 63, .6), 0 0 30px rgba(212, 166, 63, .25);
}
.connect-band h2 { color: #fff; margin-bottom: .35em; }
.connect-sub { font-size: 1.15rem; color: rgba(255, 255, 255, .9); max-width: 50ch; margin: 0 auto 30px; }
/* כפתור ווטסאפ במסגרת: שקוף עם מסגרת לבנה ואייקון ירוק */
.btn-wa-line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); min-height: 54px; padding-inline: 1.8em; }
.btn-wa-line svg { color: #3ddc84; font-size: 1.3em; }
.btn-wa-line:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px #3ddc84; }

/* ---------- Contact ---------- */
.contacts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; margin-inline: auto; }
/* כרטיסי קשר עדינים: מסגרת דקה, בלי צל כבד, אייקון בעיגול בגוון בהיר */
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; min-height: 84px;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; box-shadow: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.contact-card:hover { transform: translateY(-2px); border-color: rgba(212, 166, 63, .7); box-shadow: 0 8px 24px rgba(22, 41, 74, .07); }
.c-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; flex: none; }
.c-ic.wa { background: #eaf6ef; color: var(--wa); box-shadow: inset 0 0 0 1px rgba(18, 128, 69, .22); }
.c-ic.fb { background: #edf2fc; color: var(--fb); box-shadow: inset 0 0 0 1px rgba(47, 99, 201, .22); }
.c-ic .ill { font-size: 28px; }
.c-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.c-body strong { font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.c-body small { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.c-go { color: var(--gold-deep); font-size: 18px; transition: transform .25s ease; }
.contact-card:hover .c-go { transform: translateX(3px); }
[dir="rtl"] .contact-card:hover .c-go { transform: translateX(-3px); }
[dir="rtl"] .c-go svg, [dir="rtl"] .slide-nav svg { transform: scaleX(-1); }
.is-soon { position: relative; }
.is-soon .c-go { display: none; }
.soon-tag { font-size: .75rem; font-weight: 600; background: var(--band); color: var(--muted); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }

.site-footer { background: #0f1e38; color: rgba(255, 255, 255, .75); font-size: .9rem; padding-block: 22px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--gold-soft); }

/* ---------- Sticky donate (טלפון) ---------- */
.sticky-donate {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(251, 247, 239, 1) 60%, rgba(251, 247, 239, 0));
  transform: translateY(110%); transition: transform .35s ease;
}
.sticky-donate .btn { width: 100%; min-height: 52px; }
.sticky-donate.show { transform: none; }

/* ---------- Dialogs ---------- */
.modal {
  border: 0; padding: 0; border-radius: var(--radius-lg); background: var(--white); color: var(--ink);
  width: min(980px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  box-shadow: var(--shadow-lg); overscroll-behavior: contain; overflow: auto;
}
.modal::backdrop { background: rgba(10, 20, 40, .62); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .28s ease-out; }
.modal[open]::backdrop { animation: fade .28s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.modal-close {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .95); color: var(--navy); font-size: 20px; box-shadow: var(--shadow-sm);
}

/* gallery */
.gallery-grid { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 480px; }
.gallery-media { position: relative; background: var(--navy); min-height: 320px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; display: grid; place-items: center; }
.slide img { width: 100%; height: 100%; position: absolute; inset: 0; }
/* התמונה מוצגת שלמה (בלי לחתוך פרצופים); הרקע המטושטש ממלא את השוליים */
.slide img.main { object-fit: contain; }
.slide img.blur { object-fit: cover; transform: scale(1.15); filter: blur(22px) brightness(.85) saturate(1.15); }
.slide-ph { color: rgba(255, 255, 255, .85); text-align: center; padding: 24px; display: grid; gap: 10px; justify-items: center; }
.slide-ph svg { font-size: 84px; color: var(--gold); }
.slide[data-tone="1"] { background: linear-gradient(150deg, #24467a, #142645); }
.slide[data-tone="2"] { background: linear-gradient(150deg, #a8294b, #6d1730); }
.slide[data-tone="3"] { background: linear-gradient(150deg, #d7ab48, #a2741d); }
.slide-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center; font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.slide-nav.prev { inset-inline-start: 12px; }
.slide-nav.next { inset-inline-end: 12px; }
.slide-nav.prev svg { transform: scaleX(-1); }
[dir="rtl"] .slide-nav.prev svg { transform: none; }
.slide-nav[hidden] { display: none; }
.dots { position: absolute; bottom: 14px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 10px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .55); transition: width .25s, background-color .25s; }
.dots button[aria-current="true"] { width: 34px; background: var(--gold); }
.gallery-text { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; }
.gallery-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 40px; background: var(--band); color: var(--burgundy); margin-bottom: 14px; }
.gallery-text h3 { font-size: 2rem; margin-bottom: .1em; }
.gallery-sub { color: var(--gold-deep); font-weight: 600; margin-bottom: .8em; }
.gallery-text #gallery-long { color: var(--muted); }
.gallery-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; }

/* donate */
.donate { width: min(560px, calc(100% - 24px)); padding: clamp(24px, 4vw, 36px); }
.donate-head { text-align: center; margin-bottom: 18px; }
.donate-ic { width: 62px; height: 62px; border-radius: 50%; display: inline-grid; place-items: center; background: #fbe9ee; color: var(--burgundy); font-size: 30px; margin-bottom: 8px; }
.donate-head h3 { font-size: 1.7rem; margin-bottom: .2em; padding-inline: 30px; }
.donate-head p { color: var(--muted); margin: 0; font-size: .95rem; }
.tabs { display: flex; gap: 4px; background: var(--band); padding: 4px; border-radius: 14px; margin-bottom: 16px; }
.tabs button { flex: 1; border: 0; background: transparent; min-height: 44px; border-radius: 11px; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.field {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: start;
  border: 1px solid var(--line); background: var(--cream); border-radius: 14px; padding: 10px 10px 10px 14px; margin-bottom: 8px;
  transition: border-color .2s, background-color .2s;
}
[dir="rtl"] .field { padding: 10px 14px 10px 10px; }
.field:hover { border-color: var(--gold); }
.field.copied { border-color: var(--wa); background: #eaf7ef; }
.field-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.field-txt small { color: var(--muted); font-size: .8rem; }
.field-txt b { font-size: 1.02rem; color: var(--navy); overflow-wrap: anywhere; font-weight: 600; }
.field-txt b.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.field-copy { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--gold-deep); background: var(--white); border-radius: 10px; padding: 8px 10px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.field.copied .field-copy { color: var(--wa); }
.bank-empty { text-align: center; color: var(--muted); background: var(--cream); border: 1px dashed var(--line); border-radius: 14px; padding: 22px; }
.donate-after { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); text-align: center; }
.donate-after p { font-size: .92rem; color: var(--muted); margin-bottom: 10px; }

/* flyer lightbox */
.flyer-view { width: auto; max-width: calc(100% - 24px); background: transparent; box-shadow: none; overflow: visible; text-align: center; }
.flyer-view img { max-height: calc(100dvh - 120px); width: auto; margin: 0 auto 12px; border-radius: 14px; box-shadow: var(--shadow-lg); background: #fff; }
.flyer-view .modal-close { top: -6px; inset-inline-end: -6px; }

/* ---------- Nudge ---------- */
.nudge {
  position: fixed; z-index: 60; bottom: 20px; inset-inline-end: 20px; width: min(360px, calc(100% - 32px));
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold);
  animation: slide-up .45s cubic-bezier(.2, .8, .2, 1);
}
.nudge[hidden] { display: none; }
@keyframes slide-up { from { opacity: 0; transform: translateY(30px); } }
.nudge-ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: var(--navy); color: var(--gold); flex: none; }
.nudge strong { font-size: 1.1rem; color: var(--navy); display: block; padding-inline-end: 24px; }
.nudge p { color: var(--muted); font-size: .95rem; margin: 4px 0 10px; }
.nudge-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nudge-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); border-radius: 50%; display: grid; place-items: center; font-size: 18px; }

.toast {
  position: fixed; z-index: 200; bottom: 24px; left: 50%; translate: -50% 20px; opacity: 0; pointer-events: none;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 600; transition: .25s;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav {
    position: absolute; top: var(--header-h); inset-inline: 0; flex-direction: column; gap: 0;
    background: var(--white); padding: 8px 16px 16px; box-shadow: 0 16px 30px rgba(22, 41, 74, .12);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-toggle { display: flex; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles li:last-child:nth-child(odd) { grid-column: span 2; }
  .tiles li:last-child:nth-child(odd) .tile { aspect-ratio: 16 / 7; }
  .wants { grid-template-columns: repeat(2, 1fr); }
  .wants li:last-child:nth-child(odd) { grid-column: span 2; }
  .gallery-grid { grid-template-columns: 1fr; min-height: 0; }
  .gallery-media { aspect-ratio: 4 / 3; min-height: 0; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .brand-mark { width: 40px; height: 36px; }
  .brand-text strong { font-size: 1.1rem; }
  .header-tools .btn-donate { display: none; }
  .header-row { gap: 10px; }
  .lang-switch button { min-width: 40px; padding: 0 6px; }
  .hero { border-radius: 0; min-height: 100svh; align-items: flex-end; }
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(15, 29, 54, 0) 0%, rgba(15, 29, 54, 0) 34%, rgba(15, 29, 54, .96) 54%, #0f1d36 60%),
      url("../img/hero.jpg") 76% 0 / auto 56% no-repeat,
      radial-gradient(70% 50% at 70% 20%, rgba(212, 166, 63, .45), transparent 70%),
      radial-gradient(60% 50% at 15% 85%, rgba(142, 31, 61, .55), transparent 70%),
      linear-gradient(180deg, #7fb4e2 0%, #b9d6ee 30%, #0f1d36 66%);
  }
  .hero-inner { padding-block: 40px 96px; text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; margin-inline: auto; width: 100%; margin-bottom: 18px; }
  .about-sticker { font-size: 1.55rem; padding: 8px 16px; white-space: nowrap; }
  .contacts { grid-template-columns: 1fr; }
  .sticky-donate { display: block; }
  body.has-sticky .site-footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .nudge { inset-inline: 12px; bottom: 12px; width: auto; }
  .connect-card .btn { width: 100%; }
}
@media (max-width: 420px) {
  .tiles { gap: 12px; }
  .tile-body { inset-inline: 14px; bottom: 12px; }
  .tile-body strong { font-size: 1.25rem; }
  .tile-body small { font-size: .82rem; line-height: 1.35; }
  .tile-ic { font-size: 48px; top: 14%; }
  .tile-chip { display: none; }
  .brand-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* כפתורי ה-Hero על התמונה: ראשי = גלולה לבנה עם חץ בעיגול בורדו; משני = זכוכית שקופה למחצה */
.hero .btn { min-height: 54px; }
.hero .btn-donate { background: #fff; color: var(--burgundy); }
.hero .btn-donate:hover { background: #fff5ec; }
.hero .btn-donate.btn-cta::after { background-color: var(--burgundy); }
.btn-glass {
  background: rgba(255, 255, 255, .12); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .24); }

/* ---------- Footer links (מדיניות / תנאים / נגישות / עוגיות) ---------- */
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.site-footer .linkish { color: var(--gold-soft); padding: 4px 0; font-size: inherit; cursor: pointer; }

/* ---------- Registration consent dialog ---------- */
.reg-consent { width: min(560px, calc(100% - 24px)); padding: 34px 28px 26px; }
.reg-consent h3 { margin-bottom: .6em; padding-inline-end: 40px; }
.reg-consent p { color: var(--ink); line-height: 1.65; }
.reg-consent a { color: var(--burgundy); font-weight: 600; }
.reg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed; z-index: 60; inset-inline: 16px; bottom: 16px; max-width: 560px;
  background: var(--navy); color: #fff; border-radius: 18px; padding: 18px 20px;
  box-shadow: var(--shadow-lg); font-size: .95rem; line-height: 1.55;
}
.cookie-bar p { margin: 0 0 12px; }
.cookie-bar a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
body.has-sticky .cookie-bar { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 761px) { body.has-sticky .cookie-bar { bottom: 16px; } }

/* ---------- Accessibility menu ---------- */
.a11y-btn {
  position: fixed; z-index: 70; left: 0; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 0 12px 12px 0;
  background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow);
}
.a11y-btn svg { width: 26px; height: 26px; }
.a11y-btn:hover, .a11y-btn[aria-expanded="true"] { background: var(--burgundy); }
.a11y-panel {
  position: fixed; z-index: 71; left: 54px; top: 50%; transform: translateY(-50%);
  width: min(280px, calc(100vw - 70px)); max-height: calc(100dvh - 32px); overflow: auto;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-lg);
  display: grid; gap: 8px; font-size: 1rem;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; }
.a11y-head strong { font-size: 1.1rem; color: var(--navy); }
.a11y-x { border: 0; background: var(--band); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--navy); }
.a11y-size { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a11y-size .a11y-opt { width: 56px; text-align: center; font-weight: 700; }
.a11y-opt {
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); border-radius: 12px;
  padding: 10px 12px; text-align: start; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px;
}
.a11y-opt[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.a11y-opt:disabled { opacity: .45; cursor: default; }
.a11y-reset { color: var(--burgundy); }
.a11y-link { color: var(--burgundy); font-weight: 600; padding: 6px 2px; }

/* מצבי נגישות */
html.a11y-contrast { --muted: #1a1a1a; --ink: #000; --line: #000; --gold-deep: #5e440c; --band: #fff; }
html.a11y-contrast body { background: #fff; color: #000; }
html.a11y-contrast .hero-bg, html.a11y-contrast .tile-bg { filter: brightness(.55) contrast(1.2); }
html.a11y-contrast .btn, html.a11y-contrast .contact-card, html.a11y-contrast .ev-card { outline: 2px solid currentColor; outline-offset: -2px; }
html.a11y-contrast a { text-decoration: underline; }
html.a11y-links a, html.a11y-links .linkish { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; }
html.a11y-links a:not(.btn) { background: #fff3c4; color: #000 !important; }
html.a11y-font body, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font button, html.a11y-font .btn, html.a11y-font input {
  font-family: Arial, "Segoe UI", Tahoma, sans-serif !important; letter-spacing: .01em; word-spacing: .08em;
}
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; padding-block: 40px 80px; line-height: 1.75; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: .3em; }
.legal h2 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.legal ul { padding-inline-start: 1.3em; }
.legal li { margin-bottom: .6em; }
.legal a { color: var(--burgundy); }
.legal code { background: var(--band); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.legal-updated { color: var(--muted); font-size: .95rem; }
.legal-back { font-weight: 600; }
.legal-page .site-header { position: sticky; }

/* ---------- איורים קוויים (נוצרו ב-Google Flow, assets/img/icons) ----------
   הצבע נקבע לפי color של האלמנט (mask), כך שאותו איור יכול להיות זהב, בורדו או לבן. */
.ill { display: inline-block; width: 1em; height: 1em; background-color: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.ill-candles { --src: url("../img/icons/candles.png"); }
.ill-menorah { --src: url("../img/icons/menorah.png"); }
.ill-home { --src: url("../img/icons/home.png"); }
.ill-challah { --src: url("../img/icons/challah.png"); }
.ill-book { --src: url("../img/icons/book.png"); }
.ill-tallit { --src: url("../img/icons/tallit.png"); }
.ill-box { --src: url("../img/icons/box.png"); }
.ill-bowl { --src: url("../img/icons/bowl.png"); }
.ill-hands { --src: url("../img/icons/hands.png"); }
.ill-users { --src: url("../img/icons/users.png"); }
.ill-house-light { --src: url("../img/icons/house-light.png"); }
.ill-bag { --src: url("../img/icons/bag.png"); }
