/* =========================================================
   ג'י-טה קראטה – עיצוב ראשי
   הצבעים מוגדרים כאן למעלה, ושינוי שלהם משנה את כל האתר.
   ========================================================= */
:root {
  --ink: #0a1730;          /* כחול-לילה: טקסט, כותרת עליונה, פוטר ומקטעים כהים */
  --ink-soft: #14274a;
  --paper: #ffffff;        /* רקע האתר */
  --paper-dark: #eef4fb;   /* רקע תכלת בהיר למקטעים מתחלפים */
  --brand: #1565c0;        /* כחול: קישורים, הדגשות וכפתורים משניים */
  --brand-dark: #0d47a1;
  --accent-light: #7cc0ff; /* תכלת להדגשות על רקע כהה */
  --gold: #f6c915;         /* זהב הנמר מהלוגו: כפתורי הפעולה בלבד */
  --gold-dark: #dfb200;
  --whatsapp: #0f7d3c; /* ירוק כהה מספיק לטקסט לבן (ניגודיות 5:1) */
  --muted: #5b6b7f;
  --white: #ffffff;
  --line: #d6e2f0;

  /* "הדרך": צבעי החגורות בפס ההתקדמות שמתחת לתפריט */
  --belt-1: #ffffff;
  --belt-2: #8a5a2b;
  --belt-3: #000000;

  --font-body: "Heebo", system-ui, sans-serif;
  --font-display: "Heebo", system-ui, sans-serif;
  --font-brush: "Karantina", "Heebo", sans-serif;      /* כותרות ענק ומספרים */
  --font-quote: "Frank Ruhl Libre", "Heebo", serif;    /* ציטוטים */

  --radius: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
  --container: 1160px;
  --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px, ביחידות שמתרחבות עם הגדלת הטקסט */
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.accent { color: var(--brand); }
.eyebrow { margin: 0 0 .6rem; color: var(--brand); font-weight: 700; font-size: .85rem; letter-spacing: .1em; }

.skip-link { position: absolute; inset-inline-start: -999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { inset-inline-start: 0; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-block;
  padding: .8em 1.7em;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(246, 201, 21, .35); }
.btn-small { padding: .45em 1.1em; font-size: .95rem; }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); box-shadow: none; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); border-color: var(--brand); color: var(--white); box-shadow: none; }
.btn-light { background: var(--white); color: var(--brand); border-color: var(--white); }
.btn-light:hover { background: var(--paper); border-color: var(--paper); color: var(--brand-dark); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* ---------- כותרת וניווט ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(10, 23, 48, .97); backdrop-filter: blur(8px); color: var(--white); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand img { border-radius: 50%; background: #fff; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.brand-text small { font-size: .68rem; letter-spacing: .18em; opacity: .65; }

.main-nav { display: flex; align-items: center; gap: 1.2rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: .3rem; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a,
.main-nav > ul > li > button {
  display: block;
  background: none; border: 0; color: inherit; font: inherit; font-weight: 500; cursor: pointer;
  padding: .6rem .8rem; text-decoration: none; opacity: .88; border-radius: var(--radius);
}
.main-nav > ul > li > button::after { content: ""; display: inline-block; margin-inline-start: .4em; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.main-nav > ul > li > a:hover,
.main-nav > ul > li > button:hover,
.main-nav li.active > button,
.main-nav a[aria-current="page"] { opacity: 1; color: #fff; background: rgba(255, 255, 255, .08); }
.main-nav li.active > button { box-shadow: inset 0 -2px 0 var(--gold); }

.sub {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 230px;
  background: var(--ink); border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); padding: .4rem 0 !important;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .55rem 1.1rem; text-decoration: none; opacity: .85; }
.sub a:hover, .sub a[aria-current="page"] { opacity: 1; background: rgba(255, 255, 255, .08); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--white); transition: transform .25s, opacity .25s; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: .5rem 16px 2rem;
    transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .main-nav > ul > li > a, .main-nav > ul > li > button { width: 100%; text-align: start; padding: .9rem .2rem; font-size: 1.05rem; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; display: none; padding: 0 0 .6rem !important; }
  .has-sub.open > .sub { display: block; }
  .sub a { padding: .5rem 1.2rem; }
  .main-nav .btn { margin-top: 1.2rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- פס עובדות ---------- */
.facts { background: var(--brand); color: var(--white); padding-block: 1.8rem; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.fact strong { display: block; font-family: var(--font-brush); font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: .02em; }
.fact span { font-size: .93rem; opacity: .92; }
@media (max-width: 640px) { .facts-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; } }

/* ---------- כותרת עמוד פנימי ---------- */
.page-hero { background: var(--ink); color: var(--white); padding-block: clamp(2.6rem, 6vw, 4.2rem); position: relative; overflow: hidden; }

.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
.page-lead { margin: .8rem 0 0; opacity: .82; max-width: 700px; font-size: 1.08rem; }
.page-hero-memorial .eyebrow { color: #bbb; }

/* ---------- מקטעים ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-dark { background: var(--ink); color: var(--white); }
.section-paper { background: var(--paper-dark); }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-head p:not(.eyebrow) { max-width: 640px; margin-inline: auto; color: var(--muted); }
.section-dark .section-head p:not(.eyebrow) { color: rgba(255, 255, 255, .7); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 1rem 0; }
.check-list li { position: relative; padding-inline-start: 1.8rem; margin-bottom: .5rem; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 10px; height: 10px; background: var(--brand); border-radius: 50%; }

/* ---------- כרטיסים ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); display: flex; flex-direction: column; text-decoration: none; transition: transform .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.card-body p { margin: 0; color: var(--muted); font-size: .96rem; }
.card-body .more { display: inline-block; margin-top: .9rem; color: var(--brand); font-weight: 700; font-size: .95rem; }
.section-dark .card { background: var(--ink-soft); color: var(--white); box-shadow: none; }
.section-dark .card-body p { color: rgba(255, 255, 255, .72); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .3rem; }
.section-dark .tag { color: var(--accent-light); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.value { background: var(--white); padding: 1.8rem 1.4rem; border-radius: var(--radius); border-top: 4px solid var(--brand); box-shadow: 0 2px 10px rgba(0, 0, 0, .04); }
.value p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

/* ---------- דוג'ו / חוגים ---------- */
.dojos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.dojo { background: var(--white); border-radius: var(--radius); padding: 1.7rem; border-inline-start: 5px solid var(--brand); box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.dojo h3 { margin-bottom: .2rem; }
.dojo .where { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.dojo table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.dojo td { padding: .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.dojo td:last-child { text-align: end; font-weight: 700; white-space: nowrap; direction: ltr; }
.dojo .who { font-size: .95rem; margin: 0; }
.section-dark .dojo { background: var(--ink-soft); color: #fff; }
.section-dark .dojo td { border-color: rgba(255, 255, 255, .12); }
.section-dark .dojo .where { color: rgba(255, 255, 255, .65); }

.notice { background: var(--paper-dark); border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); border-radius: var(--radius); padding: 1rem 1.3rem; margin-block: 1.5rem; }
.notice p:last-child { margin: 0; }

/* ---------- אנשים ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.6rem; }
.person { text-align: center; }
.person img, .person .no-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0, 0, 0, .1); margin-bottom: .9rem; background: var(--paper-dark); }
.person .no-photo { display: grid; place-items: center; font-family: serif; font-size: 3rem; color: #b7cbe4; }
.person h3 { font-size: 1.12rem; margin: 0; }
.person p { margin: 0; color: var(--brand); font-weight: 500; font-size: .92rem; }
.lead-person { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: 3.5rem; }
.lead-person img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 720px) { .lead-person { grid-template-columns: 1fr; } .lead-person img { max-width: 320px; } }

.staff-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; }
.staff-list li { background: var(--white); padding: 1rem 1.2rem; border-radius: var(--radius); border-inline-start: 4px solid var(--brand); }
.staff-list strong { display: block; }
.staff-list span { color: var(--muted); font-size: .93rem; }

.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.doc-list a { display: flex; align-items: center; gap: 1rem; background: var(--white); padding: 1rem 1.2rem; border-radius: var(--radius); text-decoration: none; font-weight: 500; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); transition: transform .2s; }
.doc-list a:hover { transform: translateX(-4px); }
.doc-list a::before { content: attr(data-type); flex: none; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .5rem; border-radius: 4px; letter-spacing: .05em; }

/* ---------- תוכן כתוב (מאמרים) ---------- */
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose img { margin: 1.6rem auto; border-radius: var(--radius); box-shadow: 0 4px 18px rgba(0, 0, 0, .12); cursor: zoom-in; }
.prose a { color: var(--brand); }
.prose blockquote { margin: 1.8rem 0; padding: 1.2rem 1.6rem; border-inline-start: 4px solid var(--brand); background: var(--white); font-family: var(--font-quote); font-size: 1.25rem; line-height: 1.6; border-radius: var(--radius); }
.prose blockquote p:last-child { margin: 0; }
.prose blockquote cite { display: block; margin-top: .6rem; font-family: var(--font-body); font-size: .9rem; color: var(--muted); font-style: normal; }
.prose .video { margin-block: 1.8rem; }
.prose [dir="ltr"] { text-align: left; }
.byline { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.scans img { width: 100%; }
.back-link { display: inline-block; margin-top: 2.5rem; color: var(--brand); font-weight: 700; text-decoration: none; }

/* ---------- מילון ---------- */
.gloss-nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.gloss-nav a { padding: .4rem 1rem; background: var(--white); border-radius: 99px; text-decoration: none; font-size: .93rem; font-weight: 500; border: 1px solid var(--line); }
.gloss-nav a:hover { border-color: var(--brand); color: var(--brand); }
.gloss-group { margin-bottom: 2.8rem; }
.gloss-group h2 { font-size: 1.5rem; padding-bottom: .5rem; border-bottom: 3px solid var(--brand); display: inline-block; }
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .6rem; margin: 1rem 0 0; }
.gloss div { background: var(--white); padding: .8rem 1.1rem; border-radius: var(--radius); display: flex; gap: .8rem; align-items: baseline; }
.gloss dt { font-weight: 700; color: var(--brand-dark); flex: none; min-width: 6.2em; }
.gloss dd { margin: 0; color: var(--ink-soft); }

/* ---------- קאטות ---------- */
.kata-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.2rem; }
.kata { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 0; padding: 0; font: inherit; cursor: zoom-in; text-align: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); transition: transform .2s, box-shadow .2s; }
.kata:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kata img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; padding: .5rem; }
.kata span { display: block; padding: .7rem; font-weight: 700; border-top: 1px solid var(--line); }

/* ---------- סרטונים ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #222 center/cover no-repeat; box-shadow: 0 4px 16px rgba(0, 0, 0, .15); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .22); border: 0; cursor: pointer; width: 100%; transition: background .2s; }
.video-play:hover { background: rgba(0, 0, 0, .05); }
.video-play::before { content: ""; width: 68px; height: 48px; border-radius: 12px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat; transition: transform .2s; }
.video-play:hover::before { transform: scale(1.1); }
.video figcaption { margin-top: .6rem; font-weight: 500; line-height: 1.4; }
.video figcaption small { display: block; font-weight: 400; color: var(--muted); }
.section-dark .video figcaption small { color: rgba(255, 255, 255, .6); }
.video-group { margin-bottom: 3.2rem; }
.video-group > h2 { font-size: 1.6rem; margin-bottom: 1.2rem; padding-inline-start: .8rem; border-inline-start: 5px solid var(--brand); }
.video-wide { max-width: 780px; margin-inline: auto; }

/* ---------- גלריה ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.gallery-item { padding: 0; border: 0; background: var(--paper-dark); cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-tall .gallery-item img { aspect-ratio: 3 / 4; }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .93); display: grid; place-items: center; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 92vh; max-width: 94vw; width: auto; border-radius: 4px; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; line-height: 1; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox-close { top: .8rem; left: 1rem; font-size: 2.6rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 3.5rem; padding: 1rem; }
.lightbox-prev { right: .5rem; }
.lightbox-next { left: .5rem; }
.lightbox.single .lightbox-nav { display: none; }

/* ---------- ציר אירועים ---------- */
.timeline { position: relative; max-width: 860px; margin-inline: auto; padding-inline-start: 2rem; border-inline-start: 3px solid var(--line); }
.event { position: relative; margin-bottom: 3rem; }
.event::before { content: ""; position: absolute; inset-inline-start: calc(-2rem - 9px); top: .45rem; width: 15px; height: 15px; background: var(--brand); border-radius: 50%; border: 3px solid var(--paper); }
.event h2 { font-size: 1.35rem; margin-bottom: .8rem; }
.event .gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.event p { color: var(--ink-soft); }

/* ---------- חברים מספרים ---------- */
.testimonial { background: var(--white); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); margin-bottom: 1.8rem; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.testimonial::after { content: ""; display: block; clear: both; }
.testimonial img { float: inline-start; width: 150px; margin: 0 0 1rem 0; margin-inline-end: 1.5rem; border-radius: var(--radius); cursor: zoom-in; }
.testimonial h2 { font-size: 1.3rem; color: var(--brand-dark); }
.testimonial [dir="ltr"] { text-align: left; }
@media (max-width: 520px) { .testimonial img { float: none; margin: 0 0 1rem; } }

/* ---------- פס קריאה לפעולה ---------- */
.cta { background: var(--brand-dark); color: var(--white); padding-block: 3.2rem; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: .3rem; }
.cta p { margin: 0; opacity: .92; max-width: 620px; }

/* ---------- צור קשר ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { display: flex; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.contact-list span { min-width: 80px; color: var(--muted); flex: none; }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-form { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.contact-form input, .contact-form textarea { font: inherit; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-dark); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.contact-form .actions { margin-top: .2rem; }
.contact-form .hint { margin: 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- פוטר ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding-top: 4rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: .9rem; }
.site-footer .muted { color: rgba(255, 255, 255, .5); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-block: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; opacity: .7; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- אנימציית כניסה ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- התאמות לערכת הכחול-לבן ---------- */
/* על רקע לבן, כרטיסים לבנים צריכים מסגרת כדי להיראות */
.card, .value, .kata, .testimonial, .contact-form, .gloss div, .gloss-nav a, .doc-list a, .prose blockquote { border: 1px solid var(--line); }
.value { border-top: 4px solid var(--brand); }
.prose blockquote { border-inline-start: 4px solid var(--brand); }
.dojo, .staff-list li { box-shadow: 0 0 0 1px var(--line), 0 2px 12px rgba(11, 31, 58, .06); }
.section-dark .card, .section-dark .dojo { border-color: transparent; box-shadow: none; }
/* טקסט מודגש על רקע כהה */
.hero .eyebrow, .hero .accent, .page-hero .eyebrow, .section-dark .eyebrow { color: var(--accent-light); }
.page-hero-memorial .eyebrow { color: #bbb; }
.section-dark .dojo { border-inline-start-color: var(--accent-light); }

/* =========================================================
   גרסה 2 – "הנמר והדרך"
   זהב הנמר לכפתורי הפעולה, משיכות מכחול, פס החגורות, אתגר.
   ========================================================= */

/* ---------- "הדרך": פס התקדמות בצבעי החגורות ---------- */
.belt { position: absolute; inset-inline: 0; bottom: -4px; height: 4px; background: rgba(255, 255, 255, .16); pointer-events: none; }
.belt span { position: absolute; inset: 0; background: linear-gradient(to left, var(--belt-1) 0 45%, var(--belt-2) 58% 82%, var(--belt-3) 92% 100%); clip-path: inset(0 0 0 calc(100% - var(--p, 0%))); }
.belt i { position: absolute; top: 50%; right: var(--p, 0%); width: 12px; height: 12px; margin: -6px -6px 0 0; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(10, 23, 48, .9); }

/* ---------- קצה מכחול בין מקטעים ---------- */
.facts, .section-dark, .section-paper, .cta, .site-footer, .edge { position: relative; }
.facts::before, .section-dark::before, .section-paper::before, .cta::before, .site-footer::before, .edge::before {
  content: ""; position: absolute; inset-inline: 0; bottom: calc(100% - 1px); height: clamp(18px, 3.2vw, 40px);
  background: inherit; pointer-events: none;
  -webkit-mask: var(--brush-edge) center bottom / 100% 100% no-repeat; mask: var(--brush-edge) center bottom / 100% 100% no-repeat;
}
.edge { background: var(--paper); }

/* ---------- Hero (דף הבית) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: radial-gradient(120% 90% at 85% 10%, #1b3a70 0%, var(--ink) 55%, #060f22 100%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; min-height: min(calc(100svh - var(--header-h)), 780px); padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6.5rem); }
.hero h1 { font-family: var(--font-brush); font-weight: 700; font-size: clamp(3.6rem, 9.5vw, 7.4rem); line-height: .92; letter-spacing: .01em; margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--gold); position: relative; display: inline-block; padding-bottom: .12em; }
.hero h1 .accent::after { content: ""; position: absolute; inset-inline: -2%; bottom: -.06em; height: .2em; background: var(--gold); -webkit-mask: var(--brush-stroke) center / 100% 100% no-repeat; mask: var(--brush-stroke) center / 100% 100% no-repeat; }
.hero .eyebrow { color: var(--accent-light); }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); opacity: .92; max-width: 34em; }
.hero-note { margin: 1.3rem 0 0; font-size: .95rem; color: rgba(255, 255, 255, .7); }
.hero-note b { color: var(--gold); font-weight: 500; margin-inline: .5em; }
.hero-kanji { position: absolute; left: 2%; top: 50%; transform: translateY(calc(-50% + var(--shift, 0px))); writing-mode: vertical-rl; font-family: serif; font-size: clamp(8rem, 22vw, 19rem); line-height: 1; color: rgba(255, 255, 255, .045); z-index: 1; user-select: none; }
.hero-photo { position: relative; aspect-ratio: 4 / 3; transform: rotate(-3deg); }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translate(-4%, 6%) rotate(2deg); -webkit-mask: var(--brush-swath) center / 100% 100% no-repeat; mask: var(--brush-swath) center / 100% 100% no-repeat; }
.hero-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; -webkit-mask: var(--brush-swath) center / 100% 100% no-repeat; mask: var(--brush-swath) center / 100% 100% no-repeat; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 2.4rem 3.6rem; gap: 2.2rem; }
  .hero-photo { max-width: 520px; width: 92%; margin-inline: auto; }
  .hero .actions .btn { flex: 1 1 100%; text-align: center; }
}
/* כניסה */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.hero-text > * { animation: rise .7s both; }
.hero-text > :nth-child(2) { animation-delay: .1s; }
.hero-text > :nth-child(3) { animation-delay: .22s; }
.hero-text > :nth-child(4) { animation-delay: .34s; }
.hero-text > :nth-child(5) { animation-delay: .46s; }
.hero-photo::before { animation: wipe .9s .25s both cubic-bezier(.7, 0, .2, 1); }
.hero-photo img { animation: wipe 1s .5s both cubic-bezier(.7, 0, .2, 1); }
.hero h1 .accent::after { animation: wipe .7s .8s both; }

/* ---------- כפתורים עם סמל ---------- */
.btn svg { width: 1.2em; height: 1.2em; vertical-align: -.22em; margin-inline-end: .45em; fill: currentColor; }
.btn-wa { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: #0b6530; border-color: #0b6530; box-shadow: 0 8px 22px rgba(15, 125, 60, .35); }

/* ---------- כותרת עמוד פנימי: עיגול דיו ---------- */
.page-hero::before { content: ""; position: absolute; inset-inline-end: -70px; top: 50%; width: 340px; height: 340px; margin-top: -170px; background: var(--gold); opacity: .5; transform: rotate(25deg); -webkit-mask: var(--brush-enso) center / contain no-repeat; mask: var(--brush-enso) center / contain no-repeat; }
.page-hero-memorial::before { background: #888; opacity: .35; }
.page-hero h1 { font-weight: 900; }

/* ---------- פס עובדות ---------- */
.facts { padding-block: 2.2rem 2rem; }

/* ---------- שלושה צעדים ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); counter-reset: step; }
.steps li { counter-increment: step; text-align: center; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 108px; height: 108px; margin: 0 auto .9rem; font-family: var(--font-brush); font-weight: 700; font-size: 3.6rem; line-height: 1; color: var(--ink); background: radial-gradient(circle, var(--gold) 0 46%, transparent 47%); }
.steps li::after { content: ""; position: absolute; top: 0; left: 50%; width: 108px; height: 108px; margin-left: -54px; background: var(--ink); -webkit-mask: var(--brush-enso) center / contain no-repeat; mask: var(--brush-enso) center / contain no-repeat; }
.steps li:nth-child(2)::after { transform: rotate(110deg); }
.steps li:nth-child(3)::after { transform: rotate(-95deg); }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .steps li { display: grid; grid-template-columns: 84px 1fr; column-gap: 1rem; text-align: start; align-items: center; }
  .steps li::before { grid-row: span 2; width: 84px; height: 84px; margin: 0; font-size: 2.8rem; }
  .steps li::after { left: auto; inset-inline-start: 0; width: 84px; height: 84px; margin: -42px 0 0; top: 50%; }
  .steps h3 { align-self: end; }
  .steps p { align-self: start; }
}

/* ---------- טופס קצר לתיאום שיעור ניסיון ---------- */
.lead-form { background: var(--ink); color: var(--white); padding: clamp(1.4rem, 3.5vw, 2.2rem); border-radius: 14px; box-shadow: var(--shadow); display: grid; gap: 1rem; position: relative; overflow: hidden; }
.lead-form::before { content: "道"; position: absolute; left: -10px; top: -34px; font-family: serif; font-size: 11rem; line-height: 1; color: rgba(255, 255, 255, .05); pointer-events: none; }
.lead-form > * { position: relative; }
.lead-form h3 { font-size: 1.45rem; margin: 0; }
.lead-form h3 span { color: var(--gold); }
.lead-form label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.lead-form input[type="tel"], .lead-form input:not([type]) { font: inherit; padding: .75rem .9rem; border: 2px solid transparent; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.lead-form input:focus-visible { outline: 0; border-color: var(--gold); }
.lead-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lead-form legend { padding: 0; margin-bottom: .45rem; font-weight: 500; font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { display: block; cursor: pointer; position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: block; padding: .5rem 1.05rem; border: 2px solid rgba(255, 255, 255, .35); border-radius: 99px; font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.chips label:hover span { border-color: #fff; }
.chips input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.chips input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.lead-form .btn { width: 100%; text-align: center; font-size: 1.08rem; }
.lead-form .hint { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .65); text-align: center; }
/* גרסה בהירה בתוך טופס צור קשר */
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-form legend { padding: 0; margin-bottom: .45rem; font-weight: 500; font-size: .95rem; }
.contact-form .chips span { border-color: var(--line); background: var(--paper-dark); }
.contact-form .chips label:hover span { border-color: var(--brand); }
.contact-form .chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- פס הקריאה לפעולה עם הטופס ---------- */
.cta { padding-block: clamp(3rem, 7vw, 5rem); }
.cta-split { display: grid; grid-template-columns: 1fr minmax(300px, 440px); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta h2 { font-family: var(--font-brush); font-weight: 700; font-size: clamp(2.8rem, 6.5vw, 4.6rem); line-height: .95; margin-bottom: .8rem; }
.cta h2 span { color: var(--gold); }
.cta .check-list li::before { background: var(--gold); }
@media (max-width: 820px) { .cta-split { grid-template-columns: 1fr; } }

/* ---------- אתגר ---------- */
.challenge { overflow: visible; }
.challenge .container { position: relative; z-index: 1; }
.challenge-kanji { position: absolute; right: 1%; bottom: 0; font-family: serif; font-size: clamp(9rem, 24vw, 20rem); line-height: 1; color: rgba(255, 255, 255, .04); pointer-events: none; user-select: none; }
.challenge .section-head h2 { font-family: var(--font-brush); font-weight: 700; font-size: clamp(3rem, 8vw, 5.4rem); line-height: .95; }
.challenge .section-head h2 span { color: var(--gold); }
.challenge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.challenge-card { background: var(--ink-soft); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; align-items: center; text-align: center; }
.challenge-card h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.challenge-card > p { color: rgba(255, 255, 255, .78); margin-bottom: 1.2rem; max-width: 30em; }
.challenge-card .btn-row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: auto; }
.challenge-card .challenge-done { color: var(--gold); font-weight: 700; font-size: 1.15rem; margin: 0 0 1rem; }
@media (max-width: 820px) { .challenge-grid { grid-template-columns: 1fr; } }
/* שעון 30 השניות */
.timer { position: relative; width: 170px; height: 170px; margin: .2rem auto 1rem; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 9; }
.timer .track { stroke: rgba(255, 255, 255, .12); }
.timer .bar { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.timer strong { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-brush); font-weight: 700; font-size: 5rem; line-height: 1; padding-top: .08em; }
.challenge-card .timer-cue { min-height: 1.75em; margin: 0 0 1rem; font-weight: 700; font-size: 1.15rem; color: var(--accent-light); }
/* חידון הספירה */
.challenge-card .quiz-q { font-size: 1.2rem; margin: 0 0 .9rem; min-height: 2.2em; color: #fff; }
.quiz-q b { color: var(--gold); font-size: 1.5em; font-family: var(--font-brush); font-weight: 700; letter-spacing: .03em; margin-inline: .2em; }
.quiz-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; width: 100%; max-width: 420px; margin-bottom: 1rem; }
.quiz-options button { font: inherit; font-weight: 700; font-size: 1.1rem; padding: .85rem .4rem; border-radius: var(--radius); border: 2px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.quiz-options button:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-2px); }
.quiz-options button.right { background: var(--whatsapp); border-color: var(--whatsapp); }
.quiz-options button.wrong { background: #c0392b; border-color: #c0392b; }
.quiz-progress { display: flex; gap: .4rem; justify-content: center; margin-bottom: 1rem; }
.quiz-progress i { width: 26px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.quiz-progress i.ok { background: var(--gold); }
.quiz-progress i.no { background: #c0392b; }

/* ---------- וואטסאפ צף (מחשב) ופס פעולה תחתון (טלפון) ---------- */
.wa-float { position: fixed; left: 22px; bottom: 22px; z-index: 45; display: flex; align-items: center; gap: .6rem; height: 58px; padding: 0 17px; border-radius: 29px; background: var(--whatsapp); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 8px 26px rgba(0, 0, 0, .28); transition: transform .2s, background .2s; }
.wa-float:hover { transform: translateY(-3px); background: #0b6530; }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--whatsapp); animation: ping 2.6s infinite; pointer-events: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.25, 1.6); opacity: 0; } }
.action-bar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  .action-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.5fr; background: var(--ink); box-shadow: 0 -4px 18px rgba(0, 0, 0, .25); padding-bottom: env(safe-area-inset-bottom); }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 58px; padding: .3rem .4rem; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; line-height: 1.15; text-align: center; }
  .action-bar a + a { border-inline-start: 1px solid rgba(255, 255, 255, .12); }
  .action-bar svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
  .action-bar .bar-wa svg { fill: #3fdc7f; }
  .action-bar .bar-main { background: var(--gold); color: var(--ink); border: 0; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .main-nav > .btn { display: none; }
}

/* ---------- מחירון ---------- */
.prices { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.prices caption { text-align: start; font-weight: 700; padding-bottom: .3rem; }
.prices td { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.dojo .prices td:last-child { direction: rtl; text-align: end; font-weight: 800; white-space: nowrap; color: var(--brand-dark); }

/* ---------- נגיעות תנועה ---------- */
.card .tag { font-size: 1.5rem; font-family: serif; transition: transform .3s; }
a.card:hover .tag { transform: scale(1.25) rotate(-6deg); }
.dojo { transition: transform .25s, box-shadow .25s; }
.dojo:hover { transform: translateY(-4px); }
.split img { transition: transform .5s; }
.split:hover img { transform: scale(1.015) rotate(-.4deg); }

@media (prefers-reduced-motion: reduce) {
  .hero-text > *, .hero-photo::before, .hero-photo img, .hero h1 .accent::after, .wa-float::before { animation: none; }
  .timer .bar { transition: none; }
}

/* האתגר: רקע כהה יותר, כדי שייבדל מלוח האימונים שמעליו */
.section-dark.challenge { background: #060f22; }
.contact-form .btn svg { fill: currentColor; }

/* תיקוני פריסה */
.hero-kanji { top: 0; height: 100%; text-align: center; white-space: nowrap; font-size: clamp(6rem, 16vw, 14rem); transform: translateY(var(--shift, 0px)); }
@media (max-width: 760px) {
  .page-hero::before { width: 190px; height: 190px; margin-top: -95px; inset-inline-end: -55px; opacity: .32; }
  .hero-kanji { left: -2%; opacity: .7; }
}
[hidden] { display: none !important; }
.dojos { align-items: start; }

/* סרטון שיושב באתר עצמו */
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* =========================================================
   נגישות
   ========================================================= */
/* טבעת מיקוד בשני צבעים: נראית גם על רקע בהיר וגם על רקע כהה */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold); }
.site-header :focus-visible, .section-dark :focus-visible, .hero :focus-visible, .cta :focus-visible, .site-footer :focus-visible, .lead-form :focus-visible, .action-bar :focus-visible, .lightbox :focus-visible, .page-hero :focus-visible { outline-color: var(--gold); box-shadow: 0 0 0 6px var(--ink); }
.lead-form input:focus-visible { box-shadow: none; }

/* כפתור ותפריט הנגישות */
.a11y { position: fixed; right: 22px; bottom: 22px; z-index: 60; }
.a11y-toggle { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 2px solid #fff; background: var(--brand-dark); color: #fff; cursor: pointer; box-shadow: 0 8px 26px rgba(0, 0, 0, .28); transition: transform .2s; }
.a11y-toggle:hover { transform: scale(1.07); }
.a11y-toggle svg { width: 30px; height: 30px; fill: currentColor; }
.a11y-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(320px, calc(100vw - 24px)); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; background: #fff; color: #0a1730; border: 2px solid #0a1730; border-radius: 14px; box-shadow: 0 16px 44px rgba(0, 0, 0, .35); padding: 1rem; font-size: 16px; line-height: 1.5; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.a11y-head h2 { margin: 0; font-size: 20px; }
.a11y-close { width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: inherit; border-radius: 8px; }
.a11y-close:hover { background: #eef4fb; }
.a11y-size { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.a11y-size output { min-width: 4.2em; text-align: center; font-weight: 700; }
.a11y-panel ul { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .45rem; }
.a11y-panel button[data-a11y], .a11y-size button, .a11y-reset { width: 100%; min-height: 46px; padding: .5rem .8rem; font: inherit; font-weight: 700; text-align: start; color: #0a1730; background: #eef4fb; border: 2px solid #c3d3e8; border-radius: 8px; cursor: pointer; }
.a11y-size button { text-align: center; font-size: 18px; }
.a11y-panel button[data-a11y]:hover, .a11y-size button:hover, .a11y-reset:hover { border-color: #0a1730; }
.a11y-panel button[data-a11y]::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-inline-end: .6rem; vertical-align: -3px; border: 2px solid #0a1730; border-radius: 4px; background: #fff; }
.a11y-panel button[aria-pressed="true"] { background: #0a1730; border-color: #0a1730; color: #fff; }
.a11y-panel button[aria-pressed="true"]::before { background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230a1730' stroke-width='4' d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--gold); }
.a11y-reset { text-align: center; background: #fff; }
.a11y-panel > a { display: block; margin-top: .7rem; text-align: center; color: #0d47a1; font-weight: 700; }
@media (max-width: 760px) {
  .a11y { right: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); }
  .a11y-toggle { width: 48px; height: 48px; }
  .a11y-toggle svg { width: 26px; height: 26px; }
}

/* ----- טקסט מוגדל: מפנים מקום בתפריט העליון ----- */
html.a11y-big .main-nav > .btn { display: none; }
html.a11y-big .hero h1, html.a11y-big .cta h2, html.a11y-big .challenge .section-head h2 { overflow-wrap: anywhere; }

/* ----- ניגודיות גבוהה ----- */
html.a11y-contrast {
  --ink: #000; --ink-soft: #000; --paper: #fff; --paper-dark: #fff; --brand: #00309c; --brand-dark: #00206b;
  --accent-light: #fff; --gold: #ffd800; --gold-dark: #ffe95c; --whatsapp: #004d1f; --muted: #1c1c1c; --line: #000;
}
html.a11y-contrast .hero, html.a11y-contrast .section-dark.challenge { background: #000; }
html.a11y-contrast .site-header { background: #000; }
html.a11y-contrast .facts, html.a11y-contrast .cta { background: #00206b; }
html.a11y-contrast .hero-lead, html.a11y-contrast .hero-note, html.a11y-contrast .page-lead, html.a11y-contrast .fact span, html.a11y-contrast .cta p,
html.a11y-contrast .site-footer, html.a11y-contrast .site-footer .muted, html.a11y-contrast .footer-bottom, html.a11y-contrast .brand-text small,
html.a11y-contrast .section-dark .section-head p:not(.eyebrow), html.a11y-contrast .section-dark .dojo .where, html.a11y-contrast .challenge-card > p,
html.a11y-contrast .lead-form .hint, html.a11y-contrast .section-dark .card-body p, html.a11y-contrast .main-nav a, html.a11y-contrast .main-nav button { opacity: 1; color: #fff; }
html.a11y-contrast .card, html.a11y-contrast .dojo, html.a11y-contrast .value, html.a11y-contrast .testimonial, html.a11y-contrast .contact-form, html.a11y-contrast .notice,
html.a11y-contrast .challenge-card, html.a11y-contrast .lead-form, html.a11y-contrast .gloss div, html.a11y-contrast .kata, html.a11y-contrast .staff-list li, html.a11y-contrast .doc-list a { border: 2px solid currentColor; box-shadow: none; }
html.a11y-contrast .section-dark .dojo, html.a11y-contrast .section-dark .card, html.a11y-contrast .challenge-card, html.a11y-contrast .lead-form { border-color: #fff; }
html.a11y-contrast .hero-kanji, html.a11y-contrast .challenge-kanji, html.a11y-contrast .lead-form::before, html.a11y-contrast .page-hero::before { display: none; }
html.a11y-contrast .contact-form input, html.a11y-contrast .contact-form textarea { background: #fff; border: 2px solid #000; }
html.a11y-contrast .btn-outline { border-width: 3px; }
html.a11y-contrast .video-play { background: rgba(0, 0, 0, .45); }

/* ----- גווני אפור (על שורש המסמך, כדי שרכיבים קבועים לא יזוזו) ----- */
html.a11y-gray { filter: grayscale(1); }

/* ----- הדגשת קישורים ----- */
html.a11y-links main a:not(.btn), html.a11y-links .site-footer a, html.a11y-links .main-nav a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; font-weight: 700; }
html.a11y-links main a:not(.btn):not(.card) { outline: 2px dashed currentColor; outline-offset: 2px; }
html.a11y-links a.card { outline: 3px dashed var(--brand); outline-offset: 2px; }

/* ----- גופן קריא ----- */
html.a11y-font { --font-body: Arial, "Helvetica Neue", sans-serif; --font-display: Arial, "Helvetica Neue", sans-serif; --font-brush: Arial, "Helvetica Neue", sans-serif; --font-quote: Arial, "Helvetica Neue", sans-serif; }
html.a11y-font body { letter-spacing: .02em; word-spacing: .08em; line-height: 1.9; }
html.a11y-font .hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.1; }
html.a11y-font .cta h2, html.a11y-font .challenge .section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; }
html.a11y-font .fact strong { font-size: clamp(1.8rem, 4vw, 2.6rem); }
html.a11y-font .steps li::before { font-size: 2.4rem; }
html.a11y-font .timer strong { font-size: 3.4rem; }

/* ----- עצירת אנימציות ----- */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion .reveal { opacity: 1; transform: none; }

/* ----- סמן גדול ----- */
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11h-7l4 8-3 1.5-4-8-5 5z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 7 3, auto !important; }

/* =========================================================
   שלב 2: "בשביל מי האימון?" ועמודי הקהלים
   ========================================================= */
.audience { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.audience-card { position: relative; border-top: 5px solid var(--gold); }
.audience-card img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; width: 100%; transition: transform .5s; }
.audience-card:hover img { transform: scale(1.05); }
.audience-card h3 { font-size: 1.45rem; margin-bottom: .25rem; }
.audience-card .more { color: var(--brand-dark); }
@media (max-width: 980px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .audience-grid { grid-template-columns: 1fr; gap: 1rem; }
  .audience-card { flex-direction: row; align-items: stretch; border-top: 0; border-inline-start: 5px solid var(--gold); }
  .audience-card img { width: 38%; aspect-ratio: auto; flex: none; }
  .audience-card .card-body { padding: 1rem 1.1rem; }
}

/* ציטוט גדול בעמודי הקהלים */
.pull { padding-block: clamp(2.6rem, 6vw, 4.2rem); }
.pull-quote { margin: 0; position: relative; padding-inline-start: clamp(2.6rem, 7vw, 4.6rem); }
.pull-quote::before { content: "\201D"; position: absolute; inset-inline-start: 0; top: -.18em; font-family: var(--font-quote); font-size: clamp(5rem, 12vw, 8rem); line-height: 1; color: var(--gold); }
.pull-quote p { font-family: var(--font-quote); font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.5; margin: 0 0 .9rem; }
.pull-quote cite { font-style: normal; color: var(--accent-light); font-weight: 500; }
.pull-quote cite a { color: #fff; }
html.a11y-contrast .pull-quote cite { color: #fff; }

/* ---------- אמון: ציטוטים, שאלות נפוצות, השיעור הראשון, מפות ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.quote { margin: 0; padding: 1.6rem 1.5rem 1.4rem; background: var(--ink-soft); border-radius: var(--radius); border-top: 4px solid var(--gold); display: flex; flex-direction: column; }
.quote p { font-family: var(--font-quote); font-size: 1.15rem; line-height: 1.55; margin: 0 0 1rem; flex: 1; }
.quote p::before { content: "\201D"; display: block; font-size: 3rem; line-height: .6; color: var(--gold); margin-bottom: .4rem; }
.quote cite { font-style: normal; color: var(--accent-light); font-weight: 500; font-size: .95rem; }
html.a11y-contrast .quote { background: #000; border: 1px solid #fff; }
html.a11y-contrast .quote cite { color: #fff; }

.faq { display: grid; gap: .8rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 1.3rem; font-weight: 700; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq details a { color: var(--brand); font-weight: 500; }

.lesson { list-style: none; margin: 0 auto; padding: 0; max-width: 780px; counter-reset: lesson; }
.lesson li { counter-increment: lesson; position: relative; padding-inline-start: 4.2rem; padding-bottom: 1.6rem; }
.lesson li::before { content: counter(lesson); position: absolute; inset-inline-start: 0; top: 0; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); font-family: var(--font-brush); font-weight: 700; font-size: 1.7rem; line-height: 1; }
.lesson li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 1.4rem; top: 3rem; bottom: .2rem; width: 2px; margin-inline-start: -1px; background: var(--line); }
.lesson h3 { margin-bottom: .2rem; padding-top: .35rem; }
.lesson p { margin: 0; color: var(--muted); }
.lesson a { color: var(--brand); }

.maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.map { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }
.map figcaption { padding: 1rem 1.2rem; font-size: .95rem; }
.map figcaption a { color: var(--brand); font-weight: 700; }

/* ---------- מה חדש ---------- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 1.4rem; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
a.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-main { grid-row: span 2; }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-main img { aspect-ratio: auto; flex: 1; min-height: 260px; }
.news-body { padding: 1.1rem 1.3rem 1.3rem; }
.news-body time { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .8rem; padding: .1rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.news-body h3 { margin-bottom: .3rem; }
.news-body p { margin: 0; color: var(--muted); font-size: .96rem; }
.news-body .more { color: var(--brand); font-weight: 700; white-space: nowrap; }
@media (max-width: 820px) { .news-grid { grid-template-columns: 1fr; } .news-main { grid-row: auto; } .news-main img { min-height: 0; aspect-ratio: 16 / 9; } }

/* סיפורים ארוכים: ההמשך נפתח בלחיצה */
.more-story summary { cursor: pointer; display: inline-block; color: var(--brand); font-weight: 700; margin: .2rem 0 .4rem; list-style: none; }
.more-story summary::-webkit-details-marker { display: none; }
.more-story summary::after { content: " ↓"; }
.more-story[open] summary { display: none; }

/* ---------- פינת הילדים ---------- */
.game-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .game-split { grid-template-columns: 1fr; } .game-split .cover { max-width: 320px; margin-inline: auto; } }
.game { display: flex; flex-direction: column; align-items: center; text-align: center; }
.levels { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.2rem; }
.levels button { font: inherit; font-weight: 700; cursor: pointer; padding: .5rem 1.1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--ink); line-height: 1.2; }
.levels button small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.levels button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); }
.levels button[aria-pressed="true"] small { color: var(--ink); }
.levels-dark button { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.levels-dark button small { color: rgba(255, 255, 255, .7); }
.levels-dark button[aria-pressed="true"] { color: var(--ink); }
.puzzle-board { --n: 3; position: relative; width: min(100%, 520px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; background: var(--ink); padding: 3px; border-radius: 10px; box-shadow: var(--shadow); transition: gap .4s, padding .4s; }
.puzzle-board .tile { border: 0; padding: 0; cursor: pointer; border-radius: 3px; background-color: var(--paper-dark); background-repeat: no-repeat; transition: transform .15s, box-shadow .15s; }
.puzzle-board .tile:hover:not(:disabled) { transform: scale(.97); }
.puzzle-board .tile.picked { box-shadow: inset 0 0 0 4px var(--gold); transform: scale(.93); }
.puzzle-board .tile:disabled { cursor: default; }
.puzzle-board.solved { gap: 0; padding: 0; }
.puzzle-board.solved .tile { border-radius: 0; }
.puzzle-board.peek::after { content: ""; position: absolute; inset: 3px; background: var(--img) center / cover; border-radius: 6px; }
.game-status { font-weight: 700; font-size: 1.1rem; margin: 1rem 0; min-height: 1.75em; }
.game .btn-row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.cover { margin: 0; text-align: center; }
.cover img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; transform: rotate(-2deg); }
.cover figcaption { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.quiz-card .quiz-options { grid-template-columns: 1fr; max-width: 460px; }
.quiz-card .quiz-q b { font-size: 1.6em; }

/* משחק זיכרון */
.memory-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; width: min(100%, 560px); }
.memory-board[data-pairs="12"] { grid-template-columns: repeat(6, 1fr); width: min(100%, 760px); }
@media (max-width: 560px) { .memory-board[data-pairs="12"] { grid-template-columns: repeat(4, 1fr); } }
.mcard { aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; perspective: 800px; }
.mcard-in { position: relative; display: block; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.mcard.up .mcard-in { transform: rotateY(180deg); }
.mcard-back, .mcard-front { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mcard-back { display: grid; place-items: center; background: var(--ink); color: var(--gold); font-family: serif; font-size: clamp(1rem, 4vw, 1.8rem); box-shadow: 0 3px 10px rgba(0, 0, 0, .15); border: 3px solid var(--gold); }
.mcard-front { width: 100%; height: 100%; object-fit: cover; transform: rotateY(180deg); box-shadow: 0 3px 10px rgba(0, 0, 0, .15); }
.mcard.match .mcard-front { outline: 4px solid var(--whatsapp); outline-offset: -4px; }
.mcard:hover:not(.up) .mcard-back { border-color: #fff; }
html.a11y-motion .mcard-in { transition: none; }

/* דפי צביעה */
.coloring { display: grid; grid-template-columns: 170px 1fr; gap: 1.6rem; align-items: start; }
.coloring template { display: none; }
.coloring-picker { display: grid; gap: .7rem; }
.coloring-picker button { display: grid; gap: .3rem; padding: .5rem; background: var(--white); border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 700; color: var(--ink); }
.coloring-picker button[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold); }
.coloring-picker svg { width: 100%; height: auto; pointer-events: none; }
.coloring-main { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.4rem; align-items: start; }
.coloring-canvas { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.coloring-canvas svg { display: block; width: 100%; height: auto; }
.coloring-canvas .f { cursor: pointer; transition: fill .15s; }
.coloring-canvas .f:hover { opacity: .85; }
.palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1.2rem; }
.swatch { aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .25); cursor: pointer; padding: 0; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink); transform: scale(1.08); }
.coloring-tools .btn-row { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 960px) { .coloring { grid-template-columns: 1fr; } .coloring-picker { grid-template-columns: repeat(5, 1fr); } .coloring-picker span { font-size: .72rem; } }
@media (max-width: 700px) { .coloring-main { grid-template-columns: 1fr; } .palette { grid-template-columns: repeat(8, 1fr); } }
.testimonial [dir="ltr"], .prose [dir="ltr"] { text-align: left; }
.check-list.cols-2 { columns: 2; column-gap: 2rem; } .check-list.cols-2 li { break-inside: avoid; }
.staff-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } .staff-compact li { padding: .7rem 1rem; } .staff-compact span { font-size: .9rem; color: var(--muted); }
.gallery-year + .gallery-year { margin-top: 2.6rem; } .gallery-year h2 { font-family: var(--font-brush); font-size: 2.4rem; margin-bottom: .8rem; color: var(--brand); }

/* כפתור מייל צף, מעל כפתור הוואטסאפ */
.mail-float { position: fixed; left: 22px; bottom: 92px; z-index: 45; display: flex; align-items: center; gap: .5rem; height: 44px; padding: 0 15px; border-radius: 22px; background: var(--ink); color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .2s; }
.mail-float:hover { transform: translateY(-2px); }
.mail-float svg { width: 20px; height: 20px; fill: var(--gold); flex: none; }
@media (max-width: 760px) {
  .mail-float { display: none; }
  .action-bar { grid-template-columns: 1fr 1fr 1fr 1.4fr; }
}

/* חלון "כתבו לנו" */
.mail-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.mail-dialog::backdrop { background: rgba(6, 15, 34, .7); }
.mail-dialog form { position: relative; margin: 0; box-shadow: none; }
.mail-dialog h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .3rem; font-size: 1.6rem; }
.mail-dialog h2 svg { width: 26px; height: 26px; fill: var(--gold); }
.mail-dialog .btn svg { width: 20px; height: 20px; fill: currentColor; }
.mail-to { margin: 0 0 1rem; color: #555; }
.mail-close { position: absolute; top: .4rem; left: .6rem; border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: #444; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.2em; margin: .6rem 0 0; font-weight: 600; }
.form-status.ok { color: #0b6530; }
.form-status.err { color: #b3261e; }
