/* הצבעים נלקחו מהחוברות של דויד סקול */
:root {
  --navy: #0b4f85;
  --navy-deep: #083a63;
  --blue: #5f94d6;
  --green: #8fb04a;
  --green-dark: #5c7a24;
  --green-soft: #eef4dc;
  --cream: #fdf8ec;
  --cream-deep: #f8eed6;
  --pink: #ee8fa0;
  --sun: #f3c64f;
  --ink: #23303b;
  --muted: #566573;
  --line: #e7dcc2;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 26px rgba(11, 79, 133, .09);
  --font-body: 'Assistant', 'Segoe UI', system-ui, sans-serif;
  --font-head: 'Rubik', 'Assistant', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.28rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { top: 10px; }

/* כותרת האתר */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(253, 248, 236, .96); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 66px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 1.2rem; }
.brand-text small { color: var(--muted); font-size: .85rem; }
.menu-toggle { display: none; font: inherit; font-weight: 700; color: var(--navy); background: var(--green-soft); border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; padding: 8px 8px; border-radius: 10px; white-space: nowrap; }
.site-nav a:hover { background: var(--green-soft); }
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.site-nav .nav-cta { background: var(--navy); color: var(--white); border-radius: 999px; padding-inline: 18px; margin-inline-start: 6px; box-shadow: none; }
.site-nav .nav-cta:hover { background: var(--navy-deep); }
.site-nav .nav-cta[aria-current="page"] { color: var(--white); box-shadow: none; }
.site-nav .lang-switch { display: inline-flex; align-items: center; border: 1.5px solid var(--navy); border-radius: 999px; padding: 2px; margin-inline-start: 6px; }
.site-nav .lang-switch a { color: var(--navy); padding: 4px 10px; border-radius: 999px; font-size: .95rem; }
.site-nav .lang-switch a + a { margin-inline-start: 2px; }
.lang-switch .lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand { flex-shrink: 0; }
.site-header .wrap { width: min(1280px, 100%); }

/* פתיח ראשי */
.hero { position: relative; overflow: hidden; padding-block: clamp(32px, 7vw, 76px); }
.hero::before { /* העיגול הירוק מכריכת החוברת */
  content: ''; position: absolute; width: 560px; aspect-ratio: 1; border-radius: 50%;
  background: var(--green); border: 16px solid var(--navy);
  inset-inline-end: -210px; top: -150px; opacity: .95;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 5px 16px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.lead { font-size: clamp(1.15rem, 2.4vw, 1.35rem); color: var(--muted); max-width: 62ch; }
.hero-art { position: relative; }
.hero-art > img:first-child { width: 100%; border-radius: 28px 28px 120px 28px; box-shadow: var(--shadow); border: 6px solid var(--white); }
[dir="rtl"] .hero-art > img:first-child { border-radius: 28px 28px 28px 120px; }
.hero-logo { position: absolute; width: 132px; bottom: -14px; inset-inline-end: -8px; background: var(--white); border-radius: 50%; padding: 10px; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: contain; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1.08rem; line-height: 1.25; border: 2px solid transparent; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-wa { background: #1c7c54; color: var(--white); }
.btn-wa:hover { background: #156243; }
.btn-ghost { border-color: currentColor; color: var(--navy); background: transparent; }

/* שורת עובדות */
.facts { background: var(--navy); color: var(--white); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 24px; padding-block: 24px; }
.fact { display: flex; flex-direction: column; }
.fact strong { order: -1; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.25; }
.fact-small { color: #d6e6f5; font-size: 1rem; line-height: 1.35; margin-top: 4px; }

/* מקטעים */
.section { padding-block: clamp(44px, 7vw, 76px); }
.section-tint { background: var(--cream-deep); }
.tab-label { /* התווית הירוקה מהחוברת */
  display: inline-block; margin: 0 0 12px; padding: 4px 22px 4px 18px; background: var(--green); color: var(--navy-deep);
  font-family: var(--font-head); font-weight: 600; border-start-start-radius: 999px; border-end-start-radius: 999px;
  border-start-end-radius: 10px; border-end-end-radius: 10px;
}
.page-hero { padding-block: clamp(36px, 6vw, 64px); background: linear-gradient(180deg, var(--cream-deep), var(--cream)); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.page-hero-grid > :only-child { grid-column: 1 / -1; }
.page-hero-art img { width: 100%; border-radius: 22px; border: 5px solid var(--white); box-shadow: var(--shadow); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.stack { display: grid; gap: 14px; margin-bottom: 18px; }
.prose { max-width: 780px; }
.prose p { font-size: 1.18rem; }
.note { color: var(--muted); font-size: 1.02rem; margin-top: 12px; }

.cards { display: grid; gap: 20px; margin-top: 8px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-block-start: 6px solid var(--green); display: flex; flex-direction: column; align-items: flex-start; }
.card:nth-child(3n+2) { border-block-start-color: var(--pink); }
.card:nth-child(3n) { border-block-start-color: var(--blue); }
.card p:last-child { margin-bottom: 0; }
.card-flat { box-shadow: none; border: 1px solid var(--line); padding: 16px 20px; display: block; }
.card-flat h3 { font-size: 1.14rem; margin-bottom: .25em; }
.card-flat ul { padding-inline-start: 18px; font-size: 1.02rem; }
.card-link { color: var(--navy); font-weight: 700; margin-top: auto; padding-top: 6px; text-underline-offset: 4px; }
.member { align-items: center; text-align: center; padding: 18px 16px 20px; }
.member-photo { width: 100%; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); font-family: var(--font-head); font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 700; margin-bottom: 14px; }
.tree-item:nth-child(3n+2) .card { border-block-start-color: var(--pink); }
.tree-item:nth-child(3n) .card { border-block-start-color: var(--blue); }
.tree-item:nth-child(3n+2) .member-photo { background: #fdeaee; color: #b8485e; }
.tree-item:nth-child(3n) .member-photo { background: #e6eff9; color: var(--navy); }
.member-photo { position: relative; }
.member-photo::before { content: ''; position: absolute; width: 78%; aspect-ratio: 1; top: 10%; left: 11%; border-radius: 50%; background: currentColor; opacity: .13; }
.member-photo > * { position: relative; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.2rem; margin-bottom: .15em; }
.member-role { color: var(--navy); font-weight: 700; line-height: 1.3; margin: 0; }
.member-note { color: var(--muted); font-size: 1rem; line-height: 1.3; margin: 6px 0 0; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 20px; }
.pillar { border-inline-start: 4px solid var(--green); padding-inline-start: 14px; }
.pillar p { margin: 0; font-size: 1.05rem; }

.quote-band { background: var(--green-soft); padding-block: clamp(40px, 6vw, 64px); }
.quote-band figure { margin: 0 auto; max-width: 860px; text-align: center; }
.quote-band blockquote { margin: 0 0 12px; font-family: var(--font-head); font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 500; line-height: 1.45; color: var(--navy); }
.quote-band figcaption { color: var(--green-dark); font-weight: 700; }

.founder { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.founder img { width: 190px; }
.founder-large { align-items: start; margin-top: 16px; }
.founder-large img { width: 220px; }

.cta-band { background: var(--navy); color: var(--white); padding-block: clamp(40px, 6vw, 60px); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 58ch; margin-inline: auto; color: #d6e6f5; }
.cta-band .actions { justify-content: center; }
.cta-band .btn-ghost { color: var(--white); }

/* לוחות זמנים */
.schedule { list-style: none; display: grid; gap: 6px; }
.schedule li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; }
.schedule time { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1rem; white-space: nowrap; text-align: end; }
.schedule span { line-height: 1.3; }
.hours { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.hours div { background: var(--white); border-radius: 14px; padding: 12px 22px; min-width: 200px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: var(--navy); text-align: start; }
[dir="rtl"] .hours dd { text-align: end; }
.callout { background: var(--green-soft); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.two-col > .callout { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.adapt { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 28px; }
.adapt li { background: var(--white); border-radius: 14px; padding: 16px 18px; }
.adapt strong { display: block; font-family: var(--font-head); color: var(--navy); }
.adapt-time { color: var(--green-dark); font-weight: 700; }
.adapt p { margin: 6px 0 0; font-size: 1.02rem; line-height: 1.45; }
.ticks { list-style: none; display: grid; gap: 8px; margin-top: 14px; max-width: 780px; }
.ticks li { position: relative; padding-inline-start: 26px; }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 4px; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }

/* מידע להורים */
.jump { position: sticky; top: 77px; z-index: 10; background: var(--white); border-block: 1px solid var(--line); }
.jump .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.jump a { flex: none; padding: 5px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 1rem; background: var(--green-soft); color: var(--navy); }
.table-scroll { overflow-x: auto; }
.calendar { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.calendar th, .calendar td { padding: 12px 18px; text-align: start; border-block-end: 1px solid var(--line); }
.calendar thead th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 600; }
.calendar tbody th { font-weight: 700; color: var(--navy); }
.calendar tr.is-past th, .calendar tr.is-past td { color: #66727e; font-weight: 400; }
.calendar tr.is-next { background: var(--green-soft); }
.calendar .next-tag { margin-inline-start: 8px; padding: 1px 10px; border-radius: 999px; background: var(--green); color: var(--navy-deep); font-size: .85rem; }
.rules { display: grid; gap: 8px; max-width: 860px; }
.rule { background: var(--white); border-radius: 12px; border: 1px solid var(--line); padding: 2px 18px; }
.rule summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--navy); padding-block: 10px; }
.rule[open] { padding-bottom: 8px; }
.rule p { font-size: 1.06rem; }
.downloads { list-style: none; display: grid; gap: 10px; max-width: 620px; }
.downloads a { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; text-decoration: none; font-weight: 600; }
.downloads svg { width: 24px; height: 24px; color: var(--green-dark); }
.downloads small { color: var(--muted); font-weight: 400; }

/* הרשמה */
.price-big { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: var(--white); border-radius: 14px; padding: 18px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--navy-deep); font-family: var(--font-head); font-weight: 700; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 1.04rem; }

/* טופס הרשמה */
.reg-hero { padding-block: clamp(24px, 4vw, 40px); }
.reg-section { padding-top: 16px; }
.reg-wrap { max-width: 720px; }
.reg-progress { margin-bottom: 16px; }
.reg-progress span { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; min-height: 1.6em; }
.reg-progress b { display: block; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.reg-progress i { display: block; height: 100%; background: var(--green); transition: width .2s; }
#reg-form { position: relative; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 4vw, 32px); }
.reg-step { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.reg-step > legend { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--navy); padding: 0; margin-bottom: 16px; }
.reg-step[hidden] { display: none; }
.reg-field, .reg-group, .reg-confirm { margin: 0 0 18px; }
.reg-field label, .reg-group legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; line-height: 1.35; }
.reg-field small { font-weight: 400; color: var(--muted); }
.reg-group { border: 0; padding: 0; min-width: 0; }
.reg-field input, .reg-field textarea, .reg-other { width: 100%; font: inherit; color: var(--ink); background: var(--cream); border: 1.5px solid #c9bd9f; border-radius: 10px; padding: 10px 12px; }
.reg-field input:focus, .reg-field textarea:focus, .reg-other:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--navy); }
.reg-field input[type="date"] { max-width: 240px; }
.reg-choice { display: flex; align-items: center; gap: 10px; padding: 8px 2px; cursor: pointer; }
.reg-choice input { width: 22px; height: 22px; flex: none; accent-color: var(--navy); margin: 0; }
.reg-other { margin-top: 4px; }
.reg-confirm { background: var(--green-soft); border-radius: 12px; padding: 14px 16px; }
.reg-confirm p { margin-bottom: 6px; }
.reg-trap { position: absolute; inset-inline-start: -9999px; height: 1px; overflow: hidden; }
.reg-error { background: #fdeaea; color: #8c1d1d; border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.reg-error[hidden] { display: none; }
.reg-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.reg-actions .btn { cursor: pointer; font-family: inherit; width: auto; }
.reg-actions [data-action="next"], .reg-actions [data-action="submit"] { margin-inline-start: auto; }
.reg-actions .btn[hidden] { display: none; }
.reg-actions .btn:disabled { opacity: .6; cursor: wait; }
#reg-form .note { margin-bottom: 0; }
#reg-done { margin-top: 0; }
#reg-done[hidden] { display: none; }
#reg-done .btn { margin-bottom: 8px; }

/* צור קשר */
.card .btn { margin-bottom: 18px; }
.contact-list { list-style: none; display: grid; gap: 18px; width: 100%; }
.contact-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.contact-list svg { width: 26px; height: 26px; color: var(--green-dark); }
.contact-list div { display: flex; flex-direction: column; align-items: flex-start; }
.contact-list strong { font-family: var(--font-head); color: var(--navy); font-weight: 600; }

/* תחתית */
.site-footer { background: var(--navy-deep); color: #d6e6f5; padding-block: 44px 96px; font-size: 1.02rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 32px; }
.footer-name { font-family: var(--font-head); font-size: 1.4rem; color: var(--white); margin-bottom: 6px; }
.footer-title { font-family: var(--font-head); color: var(--white); font-weight: 600; margin-bottom: 8px; }
.footer-links { list-style: none; display: grid; gap: 4px; }
.footer-dedication { color: #b6cde2; }
.footer-legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); color: #b6cde2; font-size: .95rem; }

.wa-float { position: fixed; inset-block-end: 16px; inset-inline-end: 16px; z-index: 25; display: inline-flex; align-items: center; gap: 8px; background: #1c7c54; color: var(--white); text-decoration: none; font-weight: 700; padding: 11px 18px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0, 0, 0, .24); }
.wa-float svg { width: 24px; height: 24px; }

@media (max-width: 1240px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--cream); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 12px; }
  .site-nav .nav-cta, .site-nav .lang-switch { margin-inline-start: 0; margin-top: 6px; text-align: center; }
  .site-nav .lang-switch { justify-content: center; }
  .site-nav .lang-switch a { flex: 1; }
  .lang-switch .lang-code { display: none; }
  .lang-switch .lang-name { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--green); }
  [dir="rtl"] .site-nav a[aria-current="page"] { box-shadow: inset -4px 0 0 var(--green); }
  .site-nav .nav-cta[aria-current="page"] { box-shadow: none; }
}
/* תמונות: רצועה בעמודים, גלריה ותצוגה מוגדלת */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block: 8px 16px; }
.photo-strip-4 { grid-template-columns: repeat(4, 1fr); }
.photo-strip a, .photo-grid a { display: block; overflow: hidden; border-radius: 14px; box-shadow: var(--shadow); background: var(--cream-deep); }
.photo-strip img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid { columns: 3 230px; column-gap: 14px; margin-top: 8px; }
.photo-grid a { margin-bottom: 14px; break-inside: avoid; }
.photo-grid img { display: block; width: 100%; height: auto; }
.photo-grid.is-collapsed > a:nth-child(n+13) { display: none; }
.grid-more { text-align: center; margin-top: 10px; }
.div-tabs { position: sticky; top: var(--header-h, 76px); scroll-margin-top: var(--header-h, 76px); z-index: 15; background: var(--cream); border-block: 1px solid var(--line); }
.div-tabs .wrap { display: flex; justify-content: center; gap: 10px; padding-block: 12px; }
.div-tabs a { flex: 0 1 220px; text-align: center; padding: 11px 18px; border-radius: 999px; border: 2px solid var(--navy); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; text-decoration: none; }
.div-tabs a[aria-current="true"] { background: var(--navy); color: var(--white); }
.div-panel[hidden] { display: none; }
.older-title { margin-top: 30px; }
.older-ig { margin-top: 30px; }
.photo-strip img, .photo-grid img { transition: transform .5s var(--ease); }
.photo-strip a:hover img, .photo-grid a:hover img { transform: scale(1.05); }
.btn-ghost svg { width: 22px; height: 22px; }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 22, 38, .95); color: var(--white); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; min-width: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 84vh; max-height: 84dvh; object-fit: contain; border-radius: 10px; }
.lightbox figcaption { margin-top: 10px; font-size: 1rem; color: #d6e6f5; }
.lightbox button { background: none; border: 0; color: var(--white); cursor: pointer; display: grid; place-items: center; }
.lightbox-nav { height: 64px; }
.lightbox-nav svg { width: 34px; height: 34px; }
[dir="rtl"] .lightbox-nav svg, .lightbox-next svg { transform: scaleX(-1); }
[dir="rtl"] .lightbox-next svg { transform: none; }
.lightbox-close { position: absolute; top: 10px; inset-inline-end: 14px; width: 48px; height: 48px; font-size: 2.4rem; line-height: 1; }

/* ציר החיים בעמוד הרב חנזין */
.chanzin-hero h1 { margin-bottom: .1em; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; max-width: 860px; }
.timeline li { --year: 116px; display: grid; grid-template-columns: var(--year) 1fr; gap: 22px; padding-bottom: 30px; position: relative; }
.timeline li::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: calc(var(--year) / 2 - 1.5px); width: 3px; background: var(--line); }
.timeline li:last-child::before { bottom: auto; height: 24px; }
.timeline-year { position: relative; z-index: 1; justify-self: center; align-self: start; margin: 0; display: flex; flex-direction: column; align-items: center; min-width: 92px; padding: 8px 12px; border-radius: 16px; background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
.timeline-year small { font-family: var(--font-body); font-weight: 600; font-size: .9rem; color: #d6e6f5; }
.timeline .is-key .timeline-year { background: var(--green-dark); }
.timeline .is-key > div { background: var(--green-soft); border-radius: var(--radius); padding: 14px 18px; }
.timeline h3 { margin: 4px 0 .2em; }
.timeline li p:last-child { margin-bottom: 0; }

/* עץ הצוות: קו אחד יורד מהראש, וכל אדם נפתח ממנו לצד שלו לפי הגלילה */
.tree { --gap: 72px; --node: 84px; overflow-x: clip; }
.tree-group { text-align: center; }
.tree-group h2, h2.tree-group { display: table; margin: 0 auto 18px; }
li.tree-group { position: relative; z-index: 1; padding-block: 44px 8px; }
li.tree-group h2 { background: var(--navy); color: var(--white); font-size: 1.25rem; padding: 8px 24px; border-radius: 999px; margin-bottom: 0; }
.tree-root { max-width: 320px; margin-inline: auto; position: relative; z-index: 1; }
.tree-list { --grow: 1; list-style: none; margin: 0 auto; padding: 36px 0 0; max-width: 820px; display: flex; flex-direction: column; position: relative; }
.tree-list::before, .tree-list::after { content: ""; position: absolute; inset-block: 0; left: 50%; width: 4px; margin-left: -2px; background: var(--line); }
.tree-list::after { background: var(--green); transform: scaleY(var(--grow)); transform-origin: top; }
.tree-item { --p: 1; position: relative; width: calc(50% - var(--gap) / 2); margin-top: -150px; }
.tree-item:first-child, .tree-group + .tree-item { margin-top: 0; }
.tree-end { align-self: flex-end; }
.tree-start { align-self: flex-start; }
[dir="rtl"] .tree-start, [dir="ltr"] .tree-end { --dir: 1; --origin: left; --clip: inset(-30px calc((1 - var(--p)) * 110% - 30px) -30px -30px); }
[dir="rtl"] .tree-end, [dir="ltr"] .tree-start { --dir: -1; --origin: right; --clip: inset(-30px -30px -30px calc((1 - var(--p)) * 110% - 30px)); }
.tree-item::before { content: ""; position: absolute; top: var(--node); width: calc(var(--gap) / 2); height: 4px; background: var(--green); transform: scaleX(var(--p)); transform-origin: var(--origin); }
.tree-start::before { inset-inline-end: calc(var(--gap) / -2); }
.tree-end::before { inset-inline-start: calc(var(--gap) / -2); }
.tree-item::after { content: ""; position: absolute; z-index: 1; top: calc(var(--node) - 6px); width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid var(--white); transform: scale(var(--p)); }
.tree-start::after { inset-inline-end: calc(var(--gap) / -2 - 8px); }
.tree-end::after { inset-inline-start: calc(var(--gap) / -2 - 8px); }
.tree-item .card { max-width: 320px; width: 100%; transition: box-shadow .25s var(--ease); }
.tree-start .card { margin-inline-start: auto; }
.scrub .tree-list { --grow: 0; }
.scrub .tree-item { --p: 0; }
.scrub .tree-item .card { clip-path: var(--clip); opacity: var(--p); transform: translateX(calc((var(--p) - 1) * var(--dir) * 60px)); }

@media (max-width: 900px) {
  .hero-grid, .page-hero-grid, .two-col { grid-template-columns: 1fr; }
  .facts-grid, .pillars, .cards-4, .adapt, .steps { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .hero::before { width: 420px; inset-inline-end: -220px; top: -180px; }
}
@media (max-width: 600px) {
  .tree { --gap: 28px; --node: 64px; }
  .photo-strip, .photo-strip-4 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .photo-grid { columns: 2; column-gap: 8px; }
  .photo-grid a { margin-bottom: 8px; border-radius: 10px; }
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; }
  .lightbox-nav svg { width: 26px; height: 26px; }
  .timeline li { --year: 84px; gap: 14px; }
  .timeline-year { min-width: 76px; padding: 6px 8px; font-size: .95rem; }
  .tree-item { margin-top: -84px; }
  .tree-root { max-width: 220px; }
  body { font-size: 1.08rem; }
  .wrap { padding-inline: 16px; }
  .facts-grid, .pillars, .cards-2, .cards-4, .adapt, .steps, .footer-grid { grid-template-columns: 1fr; }
  .brand img { width: 54px; }
  .header-row { min-height: 66px; }
  .jump { top: 67px; }
  html { scroll-padding-top: 130px; }
  .btn { width: 100%; }
  .schedule li { grid-template-columns: 96px 1fr; gap: 10px; padding: 8px 10px; }
  .schedule time { font-size: .95rem; }
  .founder, .founder-large { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .founder-large { text-align: start; justify-items: start; }
  .founder img { width: 170px; }
  .hero::before { width: 210px; border-width: 9px; inset-inline-end: -120px; top: -96px; }
  .hero-logo { display: none; }
  .hero-text { position: relative; }
  .downloads a { grid-template-columns: 26px 1fr; }
  .downloads small { grid-column: 2; }
  .calendar th, .calendar td { padding: 10px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .wa-float, .jump, .site-footer { display: none; }
}

/* תנועה: הכול פעיל רק תחת .motion, שנוסף כשהמשתמש לא ביקש לצמצם תנועה. בלי JavaScript התוכן גלוי כרגיל. */
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
:root { --ease: cubic-bezier(.2, .75, .2, 1); --intro-delay: 0s; }
.motion:not(.no-intro) { --intro-delay: 1.35s; }

.scroll-progress { position: fixed; inset-inline: 0; top: 0; height: 4px; z-index: 40; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--sun), var(--pink)); transform: scaleX(var(--scroll, 0)); transform-origin: left; }
[dir="rtl"] .scroll-progress i { transform-origin: right; }
.site-header { transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(11, 79, 133, .1); }

.intro { display: none; }
.motion:not(.no-intro) .intro { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; background: var(--navy-deep); color: var(--white); text-align: center; animation: introOut .55s var(--ease) 1.05s forwards; cursor: pointer; }
.intro img { width: min(220px, 55vw); background: var(--white); border-radius: 50%; padding: 18px; aspect-ratio: 1; object-fit: contain; animation: introLogo .8s var(--ease) both; }
.intro p { margin: 0; font-family: var(--font-head); font-size: clamp(1.2rem, 4vw, 1.7rem); animation: rise .7s var(--ease) .3s both; }
@keyframes introLogo { from { opacity: 0; transform: scale(.8) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

.word { display: inline-block; overflow: hidden; padding-block: .08em; margin-block: -.08em; vertical-align: top; }
.word > span { display: inline-block; }
.motion .word > span { animation: wordUp .85s var(--ease) calc(var(--intro-delay) + var(--i) * 70ms) backwards; }
@keyframes wordUp { from { transform: translateY(105%); } }
.motion .eyebrow, .motion .hero .lead, .motion .hero .actions, .motion .page-hero .lead, .motion .page-hero .tab-label { animation: rise .8s var(--ease) calc(var(--intro-delay) + .25s) backwards; }
.motion .hero-art > img:first-child, .motion .page-hero-art img { animation: openUp 1.3s var(--ease) calc(var(--intro-delay) + .15s) backwards; }
.motion .hero-logo { animation: pop .6s var(--ease) calc(var(--intro-delay) + 1s) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } }
@keyframes openUp { from { clip-path: inset(100% 0 0 0 round 28px); transform: scale(1.04); } to { clip-path: inset(0 0 0 0 round 28px); } }
@keyframes pop { from { opacity: 0; transform: scale(.5); } }
.motion .hero::before { transform: translateY(var(--drift, 0)); }

/* כניסה בגלילה. הרשימה זהה לזו שב-site.js */
.motion body:not([data-page="registerForm"]) main :is(h2, .section .lead, .section > .wrap > .tab-label, .card, .pillar, .schedule li, .adapt li, .steps li, .rule, .downloads li, .prose p, .ticks li, .callout, .table-scroll, .hours div, .contact-list li, blockquote, figcaption, .fact, .timeline li):not(.open-text h2):not(.tree-list *):not(.in) { opacity: 0; }
.motion main .in { animation: rise .85s var(--ease) var(--d, 0s) backwards; }
.clip-box { display: block; }
.motion .clip-box > img:not(.in) { clip-path: inset(100% 0 0 0); }
.motion .clip-box > img.in { animation: openUp 1.3s var(--ease) backwards; }

.card, .pillar, .btn, .downloads a { transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(11, 79, 133, .15); }
.btn:hover { transform: translateY(-2px); }
.downloads a:hover { transform: translateX(-4px); }
[dir="ltr"] .downloads a:hover { transform: translateX(4px); }

.float-letter { position: absolute; font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 13vw, 11rem); line-height: 1; color: var(--green); opacity: .16; pointer-events: none; user-select: none; }
.hero .l1 { top: 8%; inset-inline-start: 2%; }
.hero .l2 { bottom: 4%; inset-inline-start: 38%; color: var(--pink); }
.hero .l3 { bottom: 14%; inset-inline-end: 1%; color: var(--blue); }
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; }
.cta-band .float-letter { color: var(--white); opacity: .08; }
.cta-band .l1 { top: 6%; inset-inline-start: 6%; }
.cta-band .l2 { bottom: 0; inset-inline-end: 7%; }

.marquee { overflow: hidden; background: var(--green); color: var(--navy-deep); padding-block: 10px; }
.marquee-track { display: flex; width: max-content; }
.marquee-track > div { display: flex; flex: none; }
.marquee span { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; white-space: nowrap; padding-inline: 22px; position: relative; }
.marquee span::after { content: ''; position: absolute; inset-inline-end: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--navy); }
.marquee-track { animation: marquee 34s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marqueeRtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marqueeRtl { to { transform: translateX(50%); } }

/* הקטע שנפתח בגלילה */
.open-scroll { position: relative; }
.open-pin { position: relative; min-height: 70vh; display: grid; place-items: center; overflow: hidden; background: var(--cream); }
.open-frame { position: absolute; inset: 0; }
.open-frame img { width: 100%; height: 100%; object-fit: cover; }
.open-text { position: relative; z-index: 1; width: min(860px, 100%); padding: 24px; text-align: center; color: var(--white); text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.open-text h2 { color: var(--white); font-size: clamp(1.8rem, 5vw, 3.2rem); }
.open-text p { font-size: clamp(1.15rem, 2.6vw, 1.5rem); margin: 0; }
.open-frame::after { content: ''; position: absolute; inset: 0; background: rgba(8, 58, 99, .55); }
.scrub .open-scroll { height: 220vh; }
.scrub .open-pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.scrub .open-frame { clip-path: inset(var(--inset-y, 24%) var(--inset-x, 24%) round var(--round, 36px)); }
.scrub .open-frame img { transform: scale(var(--zoom, 1.22)); }
.scrub .open-frame::after { opacity: var(--shade, 0); }
.scrub .open-text { opacity: var(--shade, 0); transform: translateY(var(--text-y, 24px)); }

/* רצועת הציטוט נפתחת מהמרכז לרוחב מלא */
.motion .quote-band { clip-path: inset(0 var(--band, 0%) round 24px); }

@media (max-width: 900px) {
  .float-letter { font-size: 5rem; }
  .hero .l2 { display: none; }
  .scrub .open-scroll { height: 170vh; }
  .open-frame img { object-position: 24% center; }
}
@media print {
  .tree-item { --p: 1 !important; }
  .tree-list { --grow: 1 !important; }
  .intro, .scroll-progress, .marquee { display: none !important; }
  .motion * { opacity: 1 !important; clip-path: none !important; animation: none !important; }
  .scrub .open-scroll { height: auto; }
}
