/* =========================================================
   שלב 1א - גופנים באחסון עצמי (רישיון OFL, ראו fonts/)
   טעינה מהשרת שלנו: מהיר יותר ובלי פנייה לשרת חיצוני
   ========================================================= */
@font-face { font-family: "Frank Ruhl Libre"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/frank-ruhl-libre-hebrew-500-normal.woff2") format("woff2"); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: "Frank Ruhl Libre"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/frank-ruhl-libre-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Frank Ruhl Libre"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/frank-ruhl-libre-hebrew-700-normal.woff2") format("woff2"); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: "Frank Ruhl Libre"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/frank-ruhl-libre-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Frank Ruhl Libre"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/frank-ruhl-libre-hebrew-900-normal.woff2") format("woff2"); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: "Frank Ruhl Libre"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/frank-ruhl-libre-latin-900-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-hebrew-hebrew-400-normal.woff2") format("woff2"); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-hebrew-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-hebrew-hebrew-600-normal.woff2") format("woff2"); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-hebrew-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-hebrew-hebrew-700-normal.woff2") format("woff2"); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-hebrew-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* קירילית לגרסה הרוסית: PT Serif ו-IBM Plex Sans (רישיון OFL), תחת אותם שמות משפחה */
@font-face { font-family: "Frank Ruhl Libre"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/pt-serif-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Frank Ruhl Libre"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/pt-serif-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Frank Ruhl Libre"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/pt-serif-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

/* =========================================================
   שלב 1 - טוקנים: צבעים, גופנים, מרווחים
   קונספט: בטון ישראלי, דיו של שרטוט, וצהוב "מגורים" מתשריט תב"ע.
   כל צבע באתר נגזר מכאן. לשינוי מראה האתר - משנים רק את הקובץ הזה.
   ========================================================= */

:root {
  /* צבעים - מצב בהיר */
  --bg: #ECEEEA;          /* בטון בהיר */
  --veil: rgba(236, 238, 234, .94);      /* שכבה מעל צילום, בצד הטקסט */
  --veil-soft: rgba(236, 238, 234, .62);
  --site-photo-opacity: .09;
  --surface: #F8F9F6;     /* משטח כרטיסים */
  --surface-2: #E1E5DE;   /* משטח משני / רקע טבלה */
  --ink: #18202B;         /* דיו שרטוט - טקסט ראשי */
  --ink-2: #4A5462;       /* טקסט משני */
  --line: #C5CBC2;        /* קווי הפרדה */
  --accent: #E0A526;      /* צהוב ייעוד "מגורים" - כפתורים ושלט */
  --on-accent: #18202B;   /* טקסט על צהוב */
  --accent-text: #7A5300; /* צהוב כהה לקישורים וטקסט על רקע בהיר */
  --link-blue: #1D5BB8;   /* קישור שפותח תוכן (למשל טבלת המסלולים) */
  --soft-bg: #F8E9C2;     /* כפתור בהיר: תפריט וצור קשר */
  --soft-ink: #3B2C05;
  --soft-line: #E6C77A;
  --green: #2F6F4E;       /* שצ"פ - הצלחה/אישור */
  --red: #9E3434;         /* דרך - שגיאה/אזהרה */
  --sign: #1B2430;        /* שלט פרויקט */
  --on-sign: #F2F0E6;     /* טקסט על שלט */
  --sign-line: #3A4655;
  --focus: #1F5FBF;
  --shadow: 0 1px 0 rgba(24, 32, 43, .06), 0 8px 24px rgba(24, 32, 43, .08);

  /* צבעי אזורים (צ'יפים במאגר) */
  --r-north: #2F6F4E;
  --r-haifa: #2B6585;
  --r-sharon: #5B7A2E;
  --r-dan: #7A5300;
  --r-shfela: #8A4F2A;
  --r-jlm: #6C5A3A;
  --r-south: #9E3434;
  --r-national: #18202B;

  /* גופנים */
  --font-display: "Frank Ruhl Libre", "PT Serif", "David Libre", "Times New Roman", serif;
  --font-body: "IBM Plex Sans Hebrew", "IBM Plex Sans", "Assistant", "Arial Hebrew", Arial, sans-serif;

  /* סולם טיפוגרפי (יחס 1.25) */
  --step--1: .9375rem;
  --step-0: 1.125rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: 3.052rem;

  /* מידות */
  --wrap: 1180px;
  --text: 68ch;
  --radius-s: 4px;
  --radius-m: 10px;
  --gap: clamp(16px, 3vw, 32px);
  --header-h: 68px;
}

/* מצב כהה - לפי הגדרת המערכת */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12171E;
    --veil: rgba(18, 23, 30, .93);
    --veil-soft: rgba(18, 23, 30, .6);
    --site-photo-opacity: .07;
    --surface: #1A212B;
    --surface-2: #222B36;
    --ink: #E9ECE6;
    --ink-2: #A9B2BC;
    --line: #313B47;
    --accent: #F0B739;
    --on-accent: #18202B;
    --accent-text: #F0B739;
  --link-blue: #8AB8FF;
  --soft-bg: #F3DFA8;
  --soft-ink: #2E2304;
  --soft-line: #D9B45C;
    --link-blue: #8AB8FF;
    --soft-bg: #F3DFA8;
    --soft-ink: #2E2304;
    --soft-line: #D9B45C;
    --green: #5FB287;
    --red: #E07A7A;
    --sign: #222C38;
    --on-sign: #F2F0E6;
    --sign-line: #3E4A59;
    --focus: #7FB0FF;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --r-north: #5FB287;
    --r-haifa: #6FB0D4;
    --r-sharon: #A2C26A;
    --r-dan: #F0B739;
    --r-shfela: #E0A07A;
    --r-jlm: #CDB892;
    --r-south: #E07A7A;
    --r-national: #E9ECE6;
    color-scheme: dark;
  }
}

/* מצב כהה - בבחירה מפורשת */
:root[data-theme="dark"] {
  --bg: #12171E;
  --veil: rgba(18, 23, 30, .93);
  --veil-soft: rgba(18, 23, 30, .6);
  --site-photo-opacity: .07;
  --surface: #1A212B;
  --surface-2: #222B36;
  --ink: #E9ECE6;
  --ink-2: #A9B2BC;
  --line: #313B47;
  --accent: #F0B739;
  --on-accent: #18202B;
  --accent-text: #F0B739;
  --link-blue: #8AB8FF;
  --green: #5FB287;
  --red: #E07A7A;
  --sign: #222C38;
  --on-sign: #F2F0E6;
  --sign-line: #3E4A59;
  --focus: #7FB0FF;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --r-north: #5FB287;
  --r-haifa: #6FB0D4;
  --r-sharon: #A2C26A;
  --r-dan: #F0B739;
  --r-shfela: #E0A07A;
  --r-jlm: #CDB892;
  --r-south: #E07A7A;
  --r-national: #E9ECE6;
  color-scheme: dark;
}

/* =========================================================
   שלב 2 - בסיס: איפוס, טיפוגרפיה, מעטפת, כותרת עליונה ותחתונה
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

/* רקע עדין לכל האתר מצילום הבניין שנבחר (נקבע ב-site.config.json, sitePhoto) */
.site-photo {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--site-photo-opacity, .09);
  filter: saturate(.85);
}

/* פס עליון מעל כותרת דביקה בטלפונים */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--surface);
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  font-weight: 700;
}
h1 { font-size: clamp(var(--step-4), 6vw, 4.25rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(var(--step-3), 4vw, var(--step-4)); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; }

p { margin: 0; max-width: var(--text); }
ul, ol { margin: 0; padding-inline-start: 1.25em; }
li + li { margin-top: .35em; }

.lead { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }
.num { font-variant-numeric: tabular-nums; }

/* מעטפת וסקשנים */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
/* כשיש רקע צילום לאתר, הרצועות החלופיות שקופות מעט כדי שהצילום ייראה דרכן בעדינות */
.has-site-photo .section--alt { background: color-mix(in srgb, var(--surface) 82%, transparent); }
.has-site-photo .dir-tools { background: color-mix(in srgb, var(--surface) 90%, transparent); }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 2rem; }

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  background: var(--accent);
  color: var(--on-accent);
  padding: .6rem 1rem;
  z-index: 100;
  border-radius: var(--radius-s);
}
.skip-link:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }

/* ---------- כותרת עליונה ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.brand__mark { width: 34px; height: 34px; flex: none; color: var(--ink); }
.brand__mark .win { fill: var(--accent); }
.brand__text { display: grid; line-height: 1.1; min-width: 0; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand__by { font-size: .75rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: .25rem; }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: .1rem; }
.nav__list li + li { margin-top: 0; }
.nav__link {
  display: block;
  padding: .45rem .6rem;
  color: var(--ink);
  text-decoration: none;
  font-size: .925rem;
  border-radius: var(--radius-s);
  white-space: nowrap;
}
.nav__link:hover { background: var(--surface-2); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); font-weight: 600; }

button.nav__link { background: none; border: 0; font: inherit; font-size: .925rem; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.nav__item--active > .nav__link { box-shadow: inset 0 -3px 0 var(--accent); font-weight: 600; }
.nav__chev { width: .8rem; height: .8rem; transition: transform .15s ease; }
.nav__sub-toggle[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__item--has-sub { position: relative; }
.nav__sub {
  list-style: none;
  margin: 0;
  padding: .4rem;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 270px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  display: none;
  z-index: 5;
}
.nav__sub li + li { margin-top: 0; }
.nav__sub-toggle[aria-expanded="true"] + .nav__sub,
.nav__item--has-sub:hover > .nav__sub,
.nav__item--has-sub:focus-within > .nav__sub { display: block; }
.nav__sublink { display: block; padding: .55rem .75rem; color: var(--ink); text-decoration: none; border-radius: var(--radius-s); font-size: .95rem; }
.nav__sublink:hover { background: var(--surface-2); }
.nav__sublink[aria-current="page"] { font-weight: 700; box-shadow: inset -3px 0 0 var(--accent); }

.nav__toggle {
  display: none;
  margin-inline-start: auto;
  background: var(--soft-bg);
  border: 1px solid var(--soft-line);
  color: var(--soft-ink);
  border-radius: 999px;
  padding: .32rem .8rem .32rem .7rem;
  font: 600 .92rem/1.1 var(--font-body);
  cursor: pointer;
}
.nav__toggle svg { width: 17px; height: 17px; }
@media (max-width: 640px) { .nav__toggle { padding: .26rem .65rem .26rem .58rem; font-size: .86rem; } .nav__toggle svg { width: 15px; height: 15px; } }
.nav__toggle[aria-expanded="true"] { background: var(--sign); color: var(--on-sign); border-color: var(--sign); }

@media (max-width: 1080px) {
  .nav__toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .nav {
    position: fixed;
    inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .75rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
  }
  .nav[data-open="true"] { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__link { padding: .8rem .5rem; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link[aria-current="page"], .nav__item--active > .nav__link { box-shadow: inset -4px 0 0 var(--accent); padding-inline-start: .9rem; }
  button.nav__link { width: 100%; font-size: 1rem; font-weight: 700; color: var(--ink-2); cursor: default; }
  .nav__chev { display: none; }
  .nav__sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 1rem 0 0; min-width: 0; background: none; }
  .nav__sublink { padding: .7rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav .btn { margin-top: .75rem; }
}

/* ---------- כותרת עמוד פנימי ---------- */
.page-head { padding-block: clamp(40px, 7vw, 80px) clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 22ch; }
.page-head .lead { margin-top: 1rem; }
.page-head--photo { position: relative; isolation: isolate; overflow: hidden; background-position: 38% 38%; background-size: cover; background-repeat: no-repeat; }
.page-head--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, var(--veil) 0%, var(--veil) 48%, var(--veil-soft) 70%, rgba(0, 0, 0, 0) 100%); }
html[dir="ltr"] .page-head--photo::before { background: linear-gradient(to right, var(--veil) 0%, var(--veil) 48%, var(--veil-soft) 70%, rgba(0, 0, 0, 0) 100%); }
@media (max-width: 760px) { .page-head--photo::before { background: var(--veil); } }
.crumbs { font-size: var(--step--1); color: var(--ink-2); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-2); }

/* ---------- כותרת תחתונה ---------- */
.site-footer {
  background: var(--sign);
  color: var(--on-sign);
  padding-block: 40px calc(88px + env(safe-area-inset-bottom, 0px));
  margin-top: 0;
}
.site-footer a { color: var(--on-sign); }
.footer-title { font-family: var(--font-display); font-size: var(--step-1); margin-bottom: .6rem; color: var(--on-sign); }
.footer-contact { display: grid; gap: .5rem; max-width: 46rem; }
.footer-contact__list { list-style: none; padding: 0; margin: .25rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem 1.75rem; }
.footer-contact__list li + li { margin-top: 0; }
.footer-legal {
  border-top: 1px solid var(--sign-line);
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  font-size: var(--step--1);
  opacity: .85;
  display: grid;
  gap: .5rem;
}
.footer-legal p { max-width: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   שלב 3 - רכיבים: כפתורים, תגיות, טבלאות, הפניות לחוק, אקורדיון,
   ציר שלבים, טפסים, חלון השארת פרטים ואייקונים צפים
   ========================================================= */

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: var(--radius-s);
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--on-sign { background: transparent; color: var(--on-sign); border-color: var(--on-sign); }
.btn--small { padding: .45rem .8rem; font-size: .9rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- תגיות ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .8rem;
  line-height: 1.6;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--surface);
  white-space: nowrap;
}
.tag--region::before {
  content: "";
  width: .55rem; height: .55rem;
  border-radius: 2px;
  background: var(--tag-color, var(--ink-2));
}
.tag--type { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; }

/* ---------- הפניה לסעיף חוק ---------- */
.law-ref {
  display: inline-block;
  padding: 0 .45rem;
  margin-inline-start: .15rem;
  border-inline-start: 3px solid var(--accent);
  background: var(--surface-2);
  font-size: .88em;
  font-weight: 600;
  color: var(--ink);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  white-space: normal;
}
a.law-ref { text-decoration: none; }
a.law-ref:hover { background: color-mix(in srgb, var(--accent) 25%, var(--surface-2)); }

/* ---------- תיבת הערה ---------- */
.note {
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--ink);
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-s);
}
.note--warn { border-inline-start-color: var(--red); }
.note--ok { border-inline-start-color: var(--green); }
.note--key { border-inline-start-color: var(--accent); background: var(--surface); font-size: 1.04em; }
.note strong:first-child { display: block; margin-bottom: .25rem; }

/* ---------- טבלה ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: .95rem;
}
.table th, .table td { padding: .85rem 1rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--surface-2); font-weight: 700; font-size: .9rem; }
.table tbody th { font-weight: 600; color: var(--ink-2); width: 18%; }
.table tr:last-child > * { border-bottom: 0; }

/* ---------- אקורדיון ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+";
  margin-inline-start: auto;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-text);
}
.acc details[open] summary::after { content: "-"; }
.acc__body { padding: 0 0 1.5rem; display: grid; gap: .9rem; }

/* ---------- ציר שלבים (רצף אמיתי) ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 3.5rem 1.75rem 0; margin: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sign);
  color: var(--on-sign);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.steps li::after {
  content: "";
  position: absolute;
  inset-inline-start: 1.15rem;
  top: 2.6rem;
  bottom: .2rem;
  width: 2px;
  background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h4 { margin-bottom: .25rem; }

/* ---------- רשת תוכן כללית ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  gap: .8rem;
  align-content: start;
}

/* ---------- טפסים ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .8rem; color: var(--ink-2); font-weight: 400; }
.input, .textarea, .select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: .7rem .8rem;
}
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.textarea { min-height: 96px; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: .82rem; }

.segmented { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.segmented legend { margin-bottom: .4rem; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--line);
  padding: .55rem .9rem;
  border-radius: var(--radius-s);
  cursor: pointer;
  font-weight: 600;
  background: var(--bg);
}
.segmented input:checked + label { background: var(--sign); color: var(--on-sign); border-color: var(--sign); }
.segmented input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

.chips-input { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; padding: 0; margin: 0; }
.chips-input input { position: absolute; opacity: 0; pointer-events: none; }
.chips-input label {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .88rem;
  cursor: pointer;
  background: var(--bg);
  font-weight: 400;
}
.chips-input input:checked + label { border-color: var(--accent-text); background: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.chips-input input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; }
.check input { margin-top: .3rem; accent-color: var(--accent-text); width: 1.05rem; height: 1.05rem; flex: none; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

.form-status { padding: .9rem 1rem; border-radius: var(--radius-s); font-weight: 600; }
.form-status--ok { background: color-mix(in srgb, var(--green) 15%, var(--surface)); color: var(--green); }
.form-status--err { background: color-mix(in srgb, var(--red) 12%, var(--surface)); color: var(--red); }

/* ---------- חלון השארת פרטים ---------- */
.lead-dialog {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  border: 0;
  padding: 0;
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.lead-dialog[open] { display: flex; flex-direction: column; }
.lead-dialog::backdrop { background: rgba(18, 23, 30, .55); }
.lead-dialog__head {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
  background: var(--sign); color: var(--on-sign);
}
.lead-dialog__head h2 { color: var(--on-sign); font-size: var(--step-2); }
.lead-dialog__head p { opacity: .85; font-size: .92rem; margin-top: .25rem; }
.lead-dialog__close {
  margin-inline-start: auto;
  background: none; border: 1px solid var(--sign-line); color: var(--on-sign);
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  font-size: 1.3rem; line-height: 1; cursor: pointer; flex: none;
}
.lead-dialog__body { padding: 1.25rem 1.5rem 1.5rem; overflow-y: auto; }
.lead-dialog .input, .lead-dialog .textarea, .lead-dialog .select,
.lead-dialog .segmented label, .lead-dialog .chips-input label { background: var(--bg); }

/* ---------- כפתור צף "צור קשר" (פינה שמאלית תחתונה; הנגישות בימנית) ---------- */
.contact-fab {
  position: fixed;
  left: max(16px, calc(env(safe-area-inset-left, 0px) + 12px));
  bottom: calc(16px + var(--consent-h, 0px) + env(safe-area-inset-bottom, 0px));
  z-index: 44;
  display: grid;
  justify-items: left; /* הכפתור נשאר צמוד לפינה גם כשהרשימה פתוחה */
  gap: .6rem;
}
.contact-fab__toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 0; cursor: pointer;
  padding: .48rem 1rem .48rem .62rem;
  border-radius: 999px;
  background: var(--soft-bg); color: var(--soft-ink);
  border: 1px solid var(--soft-line);
  font: 700 .92rem/1 var(--font-body);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
  direction: ltr; /* האייקון צמוד לקצה המסך */
}
.contact-fab__toggle span { direction: rtl; }
html[dir="ltr"] .contact-fab__toggle span { direction: ltr; }
.contact-fab__toggle svg { width: 1.45rem; height: 1.45rem; flex: none; }
.contact-fab__toggle:hover { filter: brightness(1.06); }
.contact-fab__toggle:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.contact-fab__toggle[aria-expanded="true"] { background: var(--sign); color: var(--on-sign); }
.contact-fab__menu {
  width: min(19rem, calc(100vw - 32px));
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  padding: .4rem;
  display: grid;
}
.contact-fab__menu:not([hidden]) { animation: fab-in .16s ease-out; }
@keyframes fab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .contact-fab__menu:not([hidden]) { animation: none; } }
.fab-item {
  display: flex; align-items: center; gap: .7rem;
  width: 100%;
  padding: .55rem .6rem;
  border: 0; border-radius: var(--radius-s);
  background: none; color: var(--ink);
  font: 600 .95rem/1.25 var(--font-body);
  text-align: start; text-decoration: none; cursor: pointer;
}
.fab-item:hover, .fab-item:focus-visible { background: var(--surface-2, var(--bg)); }
.fab-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fab-item + .fab-item { border-top: 1px solid var(--line); border-radius: 0; }
.fab-item__icon {
  width: 2.25rem; height: 2.25rem; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sign); color: var(--on-sign);
}
.fab-item__icon svg { width: 1.15rem; height: 1.15rem; }
.fab-item__icon--wa { background: #25D366; color: #0B3D20; }
.fab-item [dir="ltr"] { font-weight: 400; color: var(--ink-2); font-size: .88em; }
@media (max-width: 640px) {
  .contact-fab__toggle { padding: .4rem .8rem .4rem .52rem; font-size: .86rem; }
  .contact-fab__toggle svg { width: 1.2rem; height: 1.2rem; }
}

/* ---------- חלון צור קשר ---------- */
.contact-quick { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.contact-quick a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-weight: 600; font-size: .92rem; text-decoration: none;
}
.contact-quick a:hover, .contact-quick a:focus-visible { border-color: var(--accent); }
.contact-quick svg { width: 1.05rem; height: 1.05rem; color: var(--accent); flex: none; }
.contact-quick__wa svg { color: #1DA851; }

/* ---------- מקור ועדכון ---------- */
.source-line { font-size: var(--step--1); color: var(--ink-2); }
.source-line a { color: var(--ink-2); }

/* ---------- הערת "הדברים מובאים בתמצית" ---------- */
.brief-note {
  font-size: .86rem;
  color: var(--ink-2);
  border-inline-start: 3px solid var(--accent);
  padding: .35rem .75rem;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  max-width: var(--text);
  margin-top: .75rem;
}
.page-head .brief-note { margin-top: 1rem; }
.form-notice { font-size: .78rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- פס עליון: שפות וטלפון ---------- */
.topbar { background: var(--sign); color: var(--on-sign); font-size: .82rem; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.1rem; direction: rtl; }
.langs { display: flex; gap: .35rem; align-items: center; }
.lang { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .45rem; border-radius: 999px; color: var(--on-sign); text-decoration: none; opacity: .78; line-height: 1; }
.lang svg { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); flex: none; }
.lang:hover, .lang:focus-visible { opacity: 1; background: rgba(255, 255, 255, .08); }
.lang.is-current { opacity: 1; background: rgba(255, 255, 255, .12); font-weight: 600; }
.topbar__contact {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 0; cursor: pointer;
  padding: .26rem .75rem .26rem .6rem;
  border-radius: 999px;
  background: var(--soft-bg); color: var(--soft-ink);
  font: 600 .82rem/1 var(--font-body);
}
.topbar__contact:hover { filter: brightness(1.06); }
.topbar__contact:focus-visible { outline: 2px solid var(--on-sign); outline-offset: 2px; }
.topbar__end { display: flex; align-items: center; gap: .45rem; }
.topbar__admin { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--on-sign); opacity: .55; }
.topbar__admin:hover, .topbar__admin:focus-visible { opacity: 1; background: rgba(255, 255, 255, .1); }
.topbar__admin:focus-visible { outline: 2px solid var(--on-sign); outline-offset: 2px; }
@media (max-width: 520px) { .lang span { display: none; } .lang { padding: .25rem .3rem; } }

/* ---------- הודעת עוגיות (בכניסה הראשונה) ---------- */
.cookie-notice {
  position: fixed; inset: auto 0 0 0; z-index: 48;
  background: var(--surface); color: var(--ink);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(10, 16, 24, .16);
  padding-block: .8rem calc(.8rem + env(safe-area-inset-bottom, 0px));
}
.cookie-notice__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; }
.cookie-notice p { margin: 0; max-width: 62rem; font-size: .92rem; line-height: 1.55; }
.cookie-notice a { color: var(--link-blue); }
.cookie-notice__actions { display: flex; gap: .5rem; flex: none; }

/* =========================================================
   שלב 9 - עיצוב ייעודי לעמודים
   9א. עמוד הבית: פתיח ושלט פרויקט
   9ב. עמוד הבית: מסלולים, שלבים, קהלים, המשרד
   9ג. מאגר החברות
   9ד. עמודי תוכן (דיירים, חקיקה, עו״ד, מפקח, טילים)
   ========================================================= */

/* ---------- 9א. פתיח ---------- */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(40px, 7vw, 88px); }
.hero__copy { display: grid; gap: 1.25rem; min-width: 0; }
.hero__title { font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: 1.04; }
.hero__title span { display: block; }
.hero__title .hero__title-2 { color: var(--ink-2); font-weight: 700; font-size: .5em; line-height: 1.25; margin-top: .5rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .92rem; color: var(--ink-2); list-style: none; padding: 0; }
.hero__facts li + li { margin-top: 0; }
.hero__facts b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- 9ב. מסלולים, שלבים, קהלים ---------- */
.section-head { display: grid; gap: .75rem; margin-bottom: clamp(24px, 4vw, 40px); align-content: start; justify-items: start; }
.track-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.compare thead th:not(:first-child) { min-width: 210px; }

.steps-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.steps-wrap .section-head { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px); }
@media (max-width: 860px) { .steps-wrap .section-head { position: static; } }
.steps-wrap > * { min-width: 0; }
@media (max-width: 860px) { .steps-wrap { grid-template-columns: 1fr; } }

.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.audience > div { padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: .9rem; align-content: start; background: var(--surface); }
.audience > div + div { border-inline-start: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } .audience > div + div { border-inline-start: 0; border-top: 1px solid var(--line); } }

.link-list { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.link-list li { margin: 0; border-bottom: 1px solid var(--line); }
.link-list a { display: flex; gap: 1rem; padding: 1rem 0; color: var(--ink); text-decoration: none; align-items: baseline; }
.link-list a:hover strong { text-decoration: underline; text-decoration-color: var(--accent); }
.link-list a span { color: var(--ink-2); font-size: .92rem; margin-inline-start: auto; text-align: end; }

/* ---------- 9ג. מאגר החברות ---------- */
.dir-tools {
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
}
.dir-tools__row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: .75rem; align-items: end; }
@media (max-width: 860px) { .dir-tools__row { grid-template-columns: 1fr 1fr; } .dir-tools__row .field:first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .dir-tools__row { grid-template-columns: 1fr; } }
.dir-count { font-size: .92rem; color: var(--ink-2); margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.dir-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; text-decoration: underline; cursor: pointer; }

.dir-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.dir-list > li { margin: 0; }
.co {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1rem 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.co__main { display: grid; gap: .55rem; align-content: start; min-width: 0; }
.co__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.co__name small { display: block; font-family: var(--font-body); font-size: .8rem; color: var(--ink-2); font-weight: 400; margin-top: .15rem; text-align: start; }
.co__cities { font-size: .88rem; color: var(--ink-2); }
.co__reg { font-size: .82rem; color: var(--ink-2); }
.co__contact { display: grid; gap: .35rem; font-size: .92rem; align-content: start; min-width: 0; }
.co__line { display: flex; gap: .55rem; align-items: flex-start; min-width: 0; }
.co__line svg { width: 1rem; height: 1rem; flex: none; margin-top: .25rem; color: var(--ink-2); }
.co__line a, .co__line span { overflow-wrap: anywhere; }
.co__person { padding: .55rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); margin-top: .25rem; }
.co__person b { display: block; }
.co__missing { color: var(--ink-2); font-size: .85rem; }
@media (max-width: 760px) { .co { grid-template-columns: 1fr; } }
.dir-empty { padding: 3rem 0; text-align: center; color: var(--ink-2); display: grid; gap: 1rem; justify-items: center; }

/* ---------- 9ד. עמודי תוכן ---------- */
.content-grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.toc {
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px);
  font-size: .92rem;
  border-inline-start: 2px solid var(--line);
  padding-inline-start: 1rem;
}
.toc p { font-weight: 700; margin-bottom: .5rem; }
.toc ol { list-style: none; padding: 0; }
.toc li + li { margin-top: .45rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } .toc { position: static; } }

.prose { display: grid; gap: 1.1rem; min-width: 0; }
.prose > section { display: grid; gap: 1rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose > section:last-child { border-bottom: 0; }
.prose h2 { font-size: var(--step-3); }
.prose h3 { font-size: var(--step-1); margin-top: .5rem; }
.prose ul li::marker { color: var(--accent-text); }

.law-card { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); padding: clamp(1.25rem, 3vw, 1.75rem); display: grid; gap: .9rem; }
.law-card__cite { font-size: .88rem; color: var(--ink-2); }
.law-card dl { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .6rem 1.25rem; margin: 0; }
.law-card dt { font-weight: 700; font-size: .92rem; }
.law-card dd { margin: 0; }
@media (max-width: 620px) { .law-card dl { grid-template-columns: 1fr; gap: .2rem; } .law-card dd { margin-bottom: .6rem; } }

.checklist { list-style: none; padding: 0; display: grid; gap: .7rem; }
.checklist li { margin: 0; padding-inline-start: 2rem; position: relative; }
.checklist li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0; top: .28rem;
  width: 1.2rem; height: 1.2rem;
  border-radius: 3px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2rem;
  text-align: center;
}
.redflags li::before { content: "!"; background: var(--red); color: var(--surface); }

.sup-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sup-list li { margin: 0; }
@media (max-width: 760px) { .sup-list { grid-template-columns: 1fr; } }
.sup { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); padding: 1.25rem; display: grid; gap: .6rem; height: 100%; align-content: start; }
.sup__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }

.side { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px); align-content: start; }
.side .toc { position: static; }
@media (max-width: 900px) { .side { position: static; } }

.author-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
  margin-top: 1rem;
}
.author-box__mark {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--sign);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
}

.cta-band { background: var(--sign); color: var(--on-sign); border-radius: var(--radius-m); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2rem; align-items: center; }
.cta-band h2, .cta-band h3 { color: var(--on-sign); }
.cta-band p { opacity: .85; }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- צור קשר ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--gap); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--sign);
  color: var(--on-sign);
  border-radius: var(--radius-m);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.1rem;
}
.contact-card h2 { color: var(--on-sign); }
.contact-card__intro { font-size: var(--step-1); line-height: 1.5; }
.contact-card__list { margin: 0; display: grid; gap: .8rem; }
.contact-card__list div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; border-top: 1px solid var(--sign-line); padding-top: .8rem; }
.contact-card__list dt { opacity: .7; font-size: .9rem; }
.contact-card__list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-card a { color: var(--on-sign); }
.contact-form-panel h2 { font-size: var(--step-2); }

/* ---------- עמוד הערבויות ---------- */
.guarantee { border: 1px solid var(--line); border-inline-start: 4px solid var(--accent); border-radius: var(--radius-m); background: var(--surface); padding: 1rem 1.25rem; margin-block: 1rem; }
.guarantee h3 { margin-top: 0; font-size: var(--step-1); }
.guarantee > :last-child { margin-bottom: 0; }

/* ---------- עמוד הבית: פתיח עם תוכן האתר וצילום ---------- */
.hero--portal { padding-block: clamp(28px, 4vw, 48px) clamp(36px, 5vw, 64px); }
.hero__layout { display: grid; grid-template-columns: minmax(240px, 290px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.hero__main { display: grid; gap: clamp(20px, 2.5vw, 32px); min-width: 0; }
.hero--portal .hero__copy { max-width: 46rem; }
.hero--portal .hero__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }

.site-dir { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1rem 1.1rem 1.1rem; position: sticky; top: calc(var(--header-h, 70px) + 16px); }
.site-dir__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 2px solid var(--accent); }
.site-dir ul { list-style: none; margin: 0; padding: 0; }
.site-dir li { margin: 0; }
.site-dir__group { padding-block: .45rem; border-bottom: 1px solid var(--line); }
.site-dir__group:last-child { border-bottom: 0; }
.site-dir__label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: .2rem; }
.site-dir__label--link { color: var(--ink); text-decoration: none; font-size: 1rem; }
.site-dir__label--link:hover { color: var(--accent-text); }
.site-dir a { display: block; padding: .28rem 0; color: var(--ink); text-decoration: none; font-size: .98rem; line-height: 1.35; }
.site-dir a:hover, .site-dir a:focus-visible { color: var(--accent-text); text-decoration: underline; }
.site-dir__group--single > a { font-weight: 600; }
.site-dir__regions { display: flex; flex-wrap: wrap; gap: .25rem .6rem; }
.site-dir__regions a { font-size: .85rem; color: var(--ink-2); padding: .1rem 0; }
@media (max-width: 900px) {
  .hero__layout { grid-template-columns: 1fr; }
  .site-dir { position: static; order: 2; }
  .hero__main { order: 1; }
}

/* פתיח עמוד הבית: צילום הבניין כרקע בלבד, מתחת לשכבה בהירה */
.hero--photo { position: relative; isolation: isolate; background-size: cover; background-position: 50% 45%; background-repeat: no-repeat; }
.hero--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 66%, transparent), color-mix(in srgb, var(--bg) 82%, transparent)); }

/* תוכן שנפתח ונסגר בלחיצה על משפט (details/summary) */
.reveal { margin-top: .25rem; }
.reveal__toggle { display: inline; cursor: pointer; list-style: none; color: var(--link-blue); font-size: var(--step-1); line-height: 1.55; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.reveal__toggle::-webkit-details-marker { display: none; }
.reveal__toggle::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-inline-start: .5em; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); transition: transform .15s ease; }
.reveal[open] > .reveal__toggle::after { transform: translateY(.05em) rotate(-135deg); }
.reveal__toggle:hover { text-decoration-thickness: 2px; }
.reveal__toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.reveal__body { margin-top: 1.25rem; display: grid; gap: 1rem; }
@media (prefers-reduced-motion: reduce) { .reveal__toggle::after { transition: none; } }

/* קישור "חזרה לתפריט הראשי" בכותרת מגיע לכאן, מתחת לכותרת הצפה */
.site-dir { scroll-margin-top: calc(var(--header-h, 70px) + 16px); }

/* =========================================================
   שלב 10 - מקומות פרסום
   wide = באנר רחב (1200×300), box = מלבן צד (600×500)
   כשאין מודעה פעילה מוצג איור של בניין, בלי טקסט. תווית "מודעה" מתווספת רק למודעה פעילה.
   ========================================================= */

.ad-slot { position: relative; margin: 0; }
.ad-slot__label {
  position: absolute;
  top: .5rem;
  inset-inline-start: .5rem;
  z-index: 2;
  font-size: .7rem;
  padding: .1rem .45rem;
  border-radius: 3px;
  background: rgba(24, 32, 43, .72);
  color: #F2F0E6;
  letter-spacing: .02em;
}
.ad-slot__frame {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-decoration: none;
  color: inherit;
}
.ad-slot--wide .ad-slot__frame { aspect-ratio: 4 / 1; }
.ad-slot--box .ad-slot__frame { aspect-ratio: 6 / 5; }
@media (max-width: 640px) { .ad-slot--wide .ad-slot__frame { aspect-ratio: 2 / 1; } }

.ad-slot__frame img,
.ad-slot__frame picture { width: 100%; height: 100%; object-fit: cover; display: block; max-width: 100%; }

.ad-desktop-only { display: block; }
@media (max-width: 900px) { .ad-desktop-only { display: none; } }

.section--ad { padding-block: 0 clamp(32px, 5vw, 56px); }
.dir-list > li.dir-ad { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }

/* מקום פרסום ריק אינו תופס מקום: גם המקטע שעוטף אותו מוסתר */
.section--ad:not(:has(.ad-slot:not([hidden]))) { display: none; }

/* =========================================================
   סרגל נגישות ומצבי תצוגה
   ========================================================= */

.a11y-toggle {
  position: fixed;
  right: max(12px, calc(env(safe-area-inset-right, 0px) + 12px));
  bottom: calc(16px + var(--consent-h, 0px) + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #1F5FBF;
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.a11y-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.a11y-panel {
  position: fixed;
  right: max(12px, calc(env(safe-area-inset-right, 0px) + 12px));
  bottom: calc(76px + var(--consent-h, 0px) + env(safe-area-inset-bottom, 0px));
  z-index: 46;
  width: min(300px, calc(100vw - 24px));
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  padding: .9rem;
  display: grid;
  gap: .5rem;
}
.a11y-panel__head { display: flex; align-items: center; justify-content: space-between; }
.a11y-panel__title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.a11y-panel__close { background: none; border: 1px solid var(--line); color: var(--ink); width: 2rem; height: 2rem; border-radius: 50%; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.a11y-panel__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.a11y-panel__size { display: flex; align-items: center; gap: .4rem; font-variant-numeric: tabular-nums; }
.a11y-panel__size button { min-width: 2.6rem; height: 2.2rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: var(--radius-s); font: 700 .95rem var(--font-body); cursor: pointer; }
.a11y-opt, .a11y-reset {
  text-align: start;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius-s);
  font: 600 .95rem var(--font-body);
  cursor: pointer;
}
.a11y-opt[aria-pressed="true"] { background: var(--sign); color: var(--on-sign); border-color: var(--sign); }
.a11y-opt[aria-pressed="true"]::after { content: " ✓"; }
.a11y-reset { background: none; text-align: center; }
.a11y-link { text-align: center; font-size: .9rem; color: var(--accent-text); padding: .2rem; }

/* ---------- מצבי תצוגה ---------- */
html.a11y-text-1 { font-size: 115%; }
html.a11y-text-2 { font-size: 130%; }
html.a11y-text-3 { font-size: 145%; }

html.a11y-contrast {
  --bg: #000; --surface: #000; --surface-2: #111; --ink: #fff; --ink-2: #f2f2f2; --line: #fff;
  --accent: #ffd400; --on-accent: #000; --accent-text: #ffd400; --sign: #000; --on-sign: #fff; --sign-line: #fff;
  --green: #7CFF7C; --red: #FF8A8A; --focus: #ffd400;
}
html.a11y-contrast img, html.a11y-contrast .hero--photo { filter: grayscale(1) contrast(1.2); }
html.a11y-contrast .btn, html.a11y-contrast .tag, html.a11y-contrast .input { border-color: #fff !important; }

html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; background: color-mix(in srgb, var(--accent) 30%, transparent); }
html.a11y-font, html.a11y-font * { font-family: Arial, "Arial Hebrew", Helvetica, sans-serif !important; letter-spacing: .01em; }
html.a11y-nomotion *, html.a11y-nomotion *::before, html.a11y-nomotion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-focus :focus { outline: 4px solid #ff6a00 !important; outline-offset: 3px !important; }

@media (max-width: 640px) {
  .a11y-toggle { width: 2.75rem; height: 2.75rem; }
}
@media print { .a11y-toggle, .a11y-panel, .contact-fab { display: none !important; } }


