/* ==========================================================================
   Thinko Web: עיצוב
   מקורות: docs/identity-guide.md (צבעים, גופן, לוגו) ו-design/*.dc.html (פריסה).
   כל הגדלים ב-rem, כדי שכפתור "הגדלת טקסט" יגדיל את כל האתר.
   ========================================================================== */

/* ---------- גופן: Rubik, מאוחסן באתר (OFL 1.1, הרישיון ב-fonts/rubik/OFL.txt) ---------- */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("/assets/fonts/rubik/rubik-hebrew-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/rubik/rubik-hebrew-wght-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: "Rubik";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("/assets/fonts/rubik/rubik-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/rubik/rubik-latin-wght-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;
}

/* ---------- משתני עיצוב ---------- */
:root {
  /* מותג: לפי מדריך הזהות, בשמות הקבועים */
  --thinko-petrol: #0B5E6B;
  --thinko-petrol-dark: #073E47;
  --thinko-honey: #B8820F;        /* ה-T בלוגו, על רקע בהיר בלבד */
  --thinko-honey-light: #F2C35A;  /* ה-T על רקע פטרול */
  --thinko-ink: #1A1F36;
  --thinko-ink-muted: #4A5068;
  --thinko-cream: #F6F4EE;
  --thinko-white: #FFFFFF;

  /* פסטלים: מלוח "הוכחה" במדריך הזהות, לרקעי אייקונים וכרטיסים */
  --thinko-pastel-teal: #DCEFF1;
  --thinko-pastel-butter: #F6EBC9;
  --thinko-pastel-lavender: #E2E6F8;
  --thinko-pastel-mint: #E3F1E3;
  --thinko-pastel-blush: #F3DDE6;

  /* קווים: מקובצי העיצוב (קווים דקורטיביים בלבד, לא גבולות של שדות) */
  --thinko-line: #E6E2D8;
  --thinko-line-strong: #D9D4C7;
  --thinko-line-placeholder: #9DBFC4;
  /* צבע תפקודי לשגיאה. אושר על ידי בעל המוצר (16.10.2026), ונמצא במדריך הזהות ("צבעים תפקודיים").
     לא דבש ולא פטרול (המדריך: אסור כצבע מצב). ניגודיות: 6.57:1 על לבן, 5.98:1 על קרם. תמיד עם אייקון וטקסט */
  --thinko-error: #B42318;

  /* גופן */
  --thinko-font: "Rubik", "Segoe UI", sans-serif;

  /* פריסה */
  --content-max: 85rem;     /* 1,360px */
  --gutter: 4rem;           /* 64px */
  --section-pad: 6rem;      /* 96px */
  --radius-card: 1.25rem;   /* 20px */
  --radius-card-lg: 1.5rem; /* 24px */
  --radius-btn: 0.75rem;    /* 12px */
  --shadow-soft: 0 2px 10px rgba(26, 31, 54, 0.06);
  --measure: 40rem;         /* אורך שורה נוח לקריאה */

  /* צבעי שימוש (מתחלפים במצב ניגודיות גבוהה) */
  --c-text: var(--thinko-ink);
  --c-muted: var(--thinko-ink-muted);
  --c-heading: var(--thinko-petrol);
  --c-link: var(--thinko-petrol);
  --c-link-hover: var(--thinko-petrol-dark);
  --c-bg: var(--thinko-white);
  --c-bg-alt: var(--thinko-cream);
  --c-field-border: var(--thinko-ink-muted); /* 7.96:1, עומד בדרישת 3:1 לגבולות שדות */
  --c-focus: var(--thinko-petrol);
}

/* ---------- בסיס ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--thinko-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
}

h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
img, svg { max-width: 100%; }

a { color: var(--c-link); }
a:hover { color: var(--c-link-hover); }

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--thinko-petrol);
  color: var(--thinko-white);
  font-weight: 600;
  border-radius: var(--radius-btn);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--thinko-white); }

/* ---------- פריסה ---------- */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); background: var(--c-bg); }
.section--cream { background: var(--c-bg-alt); }
.section--petrol { background: var(--thinko-petrol); color: var(--thinko-white); }
.section--tight-top { padding-top: 0; }

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--c-heading);
}
.section--petrol .section-title,
.section--petrol p { color: var(--thinko-white); }

.stack { display: flex; flex-direction: column; gap: 3rem; }
.stack--sm { gap: 1.25rem; }
.stack--md { gap: 1.75rem; }

.eyebrow { font-size: 1rem; font-weight: 600; color: var(--c-muted); }

.lead { font-size: 1.3125rem; line-height: 1.6; max-width: 35rem; }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1rem; }

/* שני טורים: טקסט, ולצדו איור או כרטיס */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 3.5rem;
  align-items: center;
}
.split > * { flex: 1 1 26rem; min-width: 0; }
.split__text { max-width: var(--measure); display: flex; flex-direction: column; gap: 1.25rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr));
  gap: 1.5rem;
}
.card-grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

/* ---------- ראש העמוד ---------- */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--c-bg);
  border-bottom: 1px solid var(--thinko-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 1.25rem var(--gutter);
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--c-text);
  text-decoration: none;
  font-size: 1rem;
}
.main-nav a:hover { color: var(--c-link); text-decoration: underline; text-underline-offset: 0.3em; }
.main-nav a[aria-current="page"] { color: var(--c-link); font-weight: 600; }

.site-header__actions { display: flex; gap: 0.75rem; align-items: center; }

.icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  border: 1px solid var(--thinko-line-strong);
  background: var(--thinko-white);
  color: var(--thinko-petrol);
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover { border-color: var(--thinko-petrol); }
.icon-btn[aria-expanded="true"] { background: var(--thinko-pastel-teal); border-color: var(--thinko-petrol); }

.menu-toggle { display: none; }

/* ---------- הלוגו ---------- */
.logo {
  font-family: var(--thinko-font);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.logo--primary .logo__t { color: var(--thinko-honey); }
.logo--primary .logo__rest { color: var(--thinko-petrol); }
.logo--dark { font-size: 1.875rem; }
.logo--dark .logo__t { color: var(--thinko-honey-light); }
.logo--dark .logo__rest { color: var(--thinko-white); }
a.logo { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- כפתור הנגישות והחלונית ---------- */
.a11y { position: relative; }
.a11y__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  width: 15rem;
  padding: 1rem;
  background: var(--thinko-white);
  border: 1px solid var(--thinko-line-strong);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(26, 31, 54, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.a11y__panel[hidden] { display: none; }
.a11y__title { font-weight: 600; color: var(--c-heading); margin-bottom: 0.25rem; }
.a11y__option {
  font: inherit;
  font-size: 1rem;
  text-align: start;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.625rem;
  border: 1px solid var(--c-field-border);
  background: var(--thinko-white);
  color: var(--c-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.a11y__option::after {
  content: "";
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--c-field-border);
}
.a11y__option[aria-pressed="true"] {
  background: var(--thinko-pastel-teal);
  border-color: var(--thinko-petrol);
  font-weight: 600;
}
.a11y__option[aria-pressed="true"]::after {
  background: var(--thinko-petrol);
  border-color: var(--thinko-petrol);
  box-shadow: inset 0 0 0 3px var(--thinko-white);
}

/* ---------- כפתורים וקישורים ---------- */
.btn {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--thinko-petrol); color: var(--thinko-white); }
.btn--primary:hover { background: var(--thinko-petrol-dark); color: var(--thinko-white); }
.btn--light { background: var(--thinko-white); color: var(--thinko-petrol); }
.btn--light:hover { background: var(--thinko-cream); color: var(--thinko-petrol-dark); }
.btn--lg { font-size: 1.125rem; min-height: 3.25rem; padding: 1rem 2rem; border-radius: 0.875rem; }

.section--petrol :focus-visible { outline-color: var(--thinko-white); }
/* טופס על כרטיס לבן בתוך אזור פטרול: מסגרת המיקוד חוזרת לצבע הרגיל, כי לבן על לבן לא נראה */
.section--petrol .form :focus-visible { outline-color: var(--c-focus); }

.arrow-link {
  font-weight: 600;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
}

/* ---------- פתיחה (hero) ---------- */
.hero {
  background: var(--c-bg-alt);
  padding-block: var(--section-pad);
  padding-inline-start: var(--gutter);
  overflow: hidden;
}
/* האיור נמתח עד קצה המסך, והטקסט מיושר לרוחב התוכן */
.hero__inner {
  margin-inline-start: max(0px, calc((100% - var(--content-max) - var(--gutter)) / 2));
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
}
.hero__text {
  flex: 1 1 28.75rem;
  min-width: 0;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero__art { flex: 1 1 32.5rem; min-width: 0; }
/* פינות מעוגלות רק בצד הפנימי (ימין), והצד השמאלי צמוד לקצה המסך */
.hero__art .placeholder { height: 30rem; border-radius: 0 1.75rem 1.75rem 0; }
[dir="ltr"] .hero__art .placeholder { border-radius: 1.75rem 0 0 1.75rem; }
.hero-title {
  font-size: 3.75rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--c-heading);
}
.hero-title--xl { font-size: 4rem; line-height: 1.05; }
.hero-sub { font-size: 1.875rem; font-weight: 500; line-height: 1.35; }

/* פתיחה פשוטה, בלי איור (עמודי מידע) */
.page-hero { background: var(--c-bg-alt); padding-block: 5rem; }
.page-hero .hero-title { font-size: 3rem; }
.page-hero__inner { display: flex; flex-direction: column; gap: 1.25rem; max-width: 45rem; }

/* ---------- מקומות שמורים לאיורים ולדמויות ---------- */
.placeholder {
  background: var(--thinko-white);
  border: 2px dashed var(--thinko-line-placeholder);
  border-radius: var(--radius-card-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 2rem;
  text-align: center;
  min-height: 20rem;
}
.placeholder--on-white { background: var(--thinko-cream); }
.placeholder__title { font-weight: 600; font-size: 1.125rem; color: var(--thinko-petrol); }
.placeholder__note { font-size: 0.9375rem; line-height: 1.6; color: var(--c-muted); max-width: 20rem; }

.character {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--thinko-petrol);
  flex: none;
}
.character--teal { background: var(--thinko-pastel-teal); }
.character--lavender { background: var(--thinko-pastel-lavender); }
.character--sm { width: 10rem; height: 10rem; }
.character--md { width: 9.375rem; height: 9.375rem; }
.character--lg { width: 17.5rem; height: 17.5rem; font-size: 1.125rem; }
.character--lg2 { width: 14.375rem; height: 14.375rem; font-size: 1.125rem; }
.characters { display: flex; gap: 1.5rem; justify-content: center; align-items: flex-end; flex-wrap: wrap; }

/* ---------- כרטיסים ---------- */
.card {
  background: var(--c-bg-alt);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card--white { background: var(--thinko-white); box-shadow: var(--shadow-soft); }
.card--lg { border-radius: var(--radius-card-lg); padding: 2.5rem; }
.card h3 { font-size: 1.375rem; font-weight: 600; color: var(--c-text); }
.card p { color: var(--c-muted); }
.card--lg .section-title { font-size: 1.875rem; }
.card--lg p { color: var(--c-text); font-size: 1.125rem; }

.icon-tile {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--thinko-petrol);
}
.tone-teal { background: var(--thinko-pastel-teal); }
.tone-butter { background: var(--thinko-pastel-butter); }
.tone-lavender { background: var(--thinko-pastel-lavender); }
.tone-mint { background: var(--thinko-pastel-mint); }
.tone-blush { background: var(--thinko-pastel-blush); }

/* שלבי השיעור */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.875rem), 1fr));
  gap: 1.25rem;
}
.step {
  background: var(--thinko-white);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-soft);
}
.step__num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--thinko-petrol);
  color: var(--thinko-white);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__title { font-size: 1.25rem; font-weight: 600; }
.step__text { font-size: 1rem; line-height: 1.6; color: var(--c-muted); }

/* רשימת אריחים בפסטל (מה מקבל התלמיד) */
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  gap: 1rem;
}
.tiles li {
  border-radius: 1.125rem;
  padding: 1.5rem;
  font-size: 1.1875rem;
  font-weight: 600;
  min-height: 6rem;
  display: flex;
  align-items: center;
}

/* רשימה עם סימני V */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.875rem; font-size: 1.1875rem; line-height: 1.6; }
.checklist li { display: flex; gap: 0.875rem; align-items: flex-start; }
.icon--check { flex: none; margin-top: 0.2rem; color: var(--thinko-petrol); }

/* דמות עם שם ומשפט */
.char-card {
  background: var(--thinko-white);
  border-radius: var(--radius-card-lg);
  padding: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
  box-shadow: var(--shadow-soft);
}
.char-card__text { flex: 1 1 11.25rem; min-width: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.char-card h3 { font-size: 1.625rem; font-weight: 700; }
.char-card p { font-size: 1.125rem; line-height: 1.6; color: var(--c-muted); }

/* ---------- פס "בואו נדבר" ---------- */
.talk { padding-block: 5rem; }
.talk__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: center;
  justify-content: space-between;
}
.talk__text { flex: 1 1 26rem; min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.talk .section-title { font-size: 2.125rem; }
.talk p { font-size: 1.1875rem; line-height: 1.6; }

/* פס "בואו נדבר" עם טופס (דף הבית) */
.talk-form__inner { display: flex; flex-wrap: wrap; gap: 3.5rem; align-items: flex-start; }
.talk-form__text { flex: 1 1 22.5rem; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.talk-form__text p { font-size: 1.1875rem; }
.talk-form__form { flex: 1 1 32.5rem; min-width: 0; }

/* ---------- טופס ---------- */
.form {
  background: var(--thinko-white);
  color: var(--c-text);
  border-radius: var(--radius-card-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form--on-white { box-shadow: var(--shadow-soft); border: 1px solid var(--thinko-line); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.875rem;
  min-height: 2.75rem;
  border: 1px solid var(--c-field-border);
  border-radius: 0.625rem;
  background: var(--thinko-white);
  color: var(--c-text);
  width: 100%;
}
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; }
.field--check { flex-direction: row; align-items: center; gap: 0.625rem; }
.field--check input { width: 1.5rem; height: 1.5rem; min-height: 0; margin: 0; accent-color: var(--thinko-petrol); flex: none; }
.field--check label { font-weight: 400; }
.form .btn { font-size: 1.0625rem; min-height: 3rem; padding-inline: 2.25rem; }
.form__status:empty { display: none; }
.form__status { font-size: 0.9375rem; color: var(--c-muted); }

/* הודעת שגיאה ליד שדה: אייקון וטקסט, לא צבע בלבד */
.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--thinko-error);
}
/* גם בטופס שבתוך אזור פטרול, שבו כל הפסקאות לבנות */
.form .field__error { color: var(--thinko-error); }
.field__error[hidden] { display: none; }
.field__error-icon { flex: none; margin-top: 0.0625rem; }
.field--check { flex-wrap: wrap; }
.field--check .field__error { flex-basis: 100%; }
/* שדה שגוי: הגבול בצבע השגיאה, ועבה יותר (לא רק שינוי צבע) */
.field [aria-invalid="true"]:not([type=checkbox]) { border-color: var(--thinko-error); box-shadow: inset 0 0 0 1px var(--thinko-error); }
.field--check [aria-invalid="true"] { outline: 2px solid var(--thinko-error); outline-offset: 2px; }
.field--check [aria-invalid="true"]:focus-visible { outline-color: var(--c-focus); }

/* ---------- עמודי מידע ---------- */
.info-list { display: flex; flex-direction: column; gap: 1.5rem; max-width: 50rem; }
.info-item { display: flex; flex-direction: column; gap: 0.5rem; }
.info-item h2 { font-size: 1.375rem; font-weight: 600; color: var(--c-heading); }

.class-card { gap: 0.75rem; }
.class-card .class-card__grades { font-weight: 600; color: var(--c-text); }

.contact-details { display: flex; flex-direction: column; gap: 0.75rem; font-size: 1.125rem; }

/* ---------- תחתית ---------- */
.site-footer { background: var(--thinko-petrol-dark); color: var(--thinko-white); padding-block: 3rem; }
.site-footer a { color: var(--thinko-white); }
.site-footer a:hover { color: var(--thinko-white); text-decoration-thickness: 2px; }
.site-footer :focus-visible { outline-color: var(--thinko-white); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.site-footer__contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.9375rem; }
.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  max-width: 40rem;
}
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer__contact a { display: inline-block; padding-block: 0.625rem; }

/* ==========================================================================
   טלפון וטאבלט צר: הכול בטור אחד, התפריט מתקפל, איורים גדולים מוסתרים
   ========================================================================== */
@media (max-width: 47.5em) {
  :root { --gutter: 1.25rem; --section-pad: 3.5rem; }

  .site-header__inner { padding-block: 0.75rem; gap: 0.75rem; }
  .logo { font-size: 1.75rem; }
  .site-header__actions { gap: 0.5rem; }
  .btn--header { padding-inline: 0.875rem; font-size: 0.9375rem; }

  .js .menu-toggle { display: inline-flex; }
  .js .main-nav { display: none; flex-basis: 100%; }
  .js .main-nav.is-open { display: block; }
  .main-nav { order: 3; flex-basis: 100%; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li + li { border-top: 1px solid var(--thinko-line); }
  .main-nav a { display: flex; min-height: 3rem; font-size: 1.0625rem; }

  .hero { padding-inline-end: var(--gutter); }
  .hero__art, .hide-mobile { display: none; }
  .hero-title, .hero-title--xl { font-size: 2.25rem; }
  .page-hero { padding-block: 3rem; }
  .page-hero .hero-title { font-size: 2.25rem; }
  .hero-sub { font-size: 1.5rem; }
  .lead { font-size: 1.1875rem; }
  .section-title, .talk .section-title, .card--lg .section-title { font-size: 1.625rem; }

  .card, .card--lg, .char-card { padding: 1.5rem; }
  .form { padding: 1.5rem; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .talk { padding-block: 3.5rem; }

  .character--lg { width: 10rem; height: 10rem; }
  .character--lg2 { width: 8.5rem; height: 8.5rem; }
}

/* ==========================================================================
   מצבי נגישות (מכפתור הנגישות)
   ========================================================================== */

/* הגדלת טקסט: כל הגדלים ב-rem, ולכן הכול גדל יחד */
html.a11y-text-lg { font-size: 125%; }

/* ניגודיות גבוהה: רק צבעים מהפלטה. רקעים בהירים לבנים, טקסט בדיו, קישורים מודגשים בקו */
html.a11y-contrast {
  --c-text: var(--thinko-ink);
  --c-muted: var(--thinko-ink);
  --c-heading: var(--thinko-petrol-dark);
  --c-link: var(--thinko-petrol-dark);
  --c-link-hover: var(--thinko-ink);
  --c-bg-alt: var(--thinko-white);
  --c-field-border: var(--thinko-ink);
  --c-focus: var(--thinko-ink);
}
html.a11y-contrast a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
html.a11y-contrast .btn,
html.a11y-contrast .logo { text-decoration: none; }
html.a11y-contrast .card,
html.a11y-contrast .step,
html.a11y-contrast .char-card,
html.a11y-contrast .tiles li,
html.a11y-contrast .form,
html.a11y-contrast .a11y__panel {
  background: var(--thinko-white);
  border: 2px solid var(--thinko-ink);
  box-shadow: none;
}
html.a11y-contrast .section--petrol,
html.a11y-contrast .site-footer { background: var(--thinko-petrol-dark); }
html.a11y-contrast .icon-btn,
html.a11y-contrast .btn--light { border-color: var(--thinko-ink); }
html.a11y-contrast .placeholder { border-color: var(--thinko-ink); }
html.a11y-contrast :focus-visible { outline-width: 4px; }
html.a11y-contrast .section--petrol :focus-visible,
html.a11y-contrast .site-footer :focus-visible { outline-color: var(--thinko-white); }
html.a11y-contrast .section--petrol .form :focus-visible { outline-color: var(--c-focus); }

/* עצירת אנימציות: מהכפתור, או מהגדרת המערכת של המבקר */
html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-no-motion { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- תוספות לעמודים ---------- */
.hero-title--section { font-size: 2.5rem; }
.characters-box { min-height: 21.25rem; }
@media (max-width: 47.5em) {
  .hero-title--section { font-size: 1.875rem; }
}
.hero__art--md .placeholder { height: 26.25rem; }
.placeholder--md { min-height: 20rem; }
.muted-lg { font-size: 1.125rem; color: var(--c-muted); }
.muted { color: var(--c-muted); }
.about-next p { font-size: 1.375rem; line-height: 1.5; }
.contact-layout { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: flex-start; }
.contact-layout__form { flex: 2 1 32.5rem; min-width: 0; }
.contact-layout__details { flex: 1 1 18rem; min-width: 0; }
.contact-layout .form { background: var(--c-bg-alt); }
html.a11y-contrast .contact-layout .form { background: var(--thinko-white); }
/* אזור לחיצה של לפחות 44x44 גם למילים קצרות בתפריטים */
.main-nav a, .site-footer__nav a { min-width: 2.75rem; justify-content: center; }
@media (max-width: 47.5em) { .main-nav a { justify-content: flex-start; } }
@media (max-width: 47.5em) {
  .character--md { width: 7.5rem; height: 7.5rem; font-size: 0.9375rem; }
  .characters-box { min-height: 0; padding: 1.5rem 1rem; }
}
/* בטלפון החלונית נפתחת לכל רוחב הראש, כדי שלא תצא מהמסך */
@media (max-width: 47.5em) {
  .a11y { position: static; }
  .a11y__panel { inset-inline: var(--gutter); width: auto; top: calc(100% - 0.25rem); }
}

/* שדה המלכודת: מחוץ למסך (לא display:none, כי חלק מהתוכנות מדלגות על שדות כאלה) */
.form__hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__status--error { color: var(--c-text); font-weight: 600; }
.form-success { font-size: 1.25rem; font-weight: 600; color: var(--c-heading); }
.form-success:focus { outline: none; }

/* ---------- גרסה אנגלית ---------- */
.hero__note { font-size: 1rem; color: var(--c-muted); }

/* קישור בין השפות, בראש העמוד ליד כפתור הנגישות */
.lang-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.75rem; padding-inline: 0.5rem; font-weight: 600; font-size: 0.9375rem; color: var(--c-link); }

/* במחשב הקישור לשפה בראש העמוד, ובטלפון בתוך התפריט המתקפל (החלטה מ-15.10.2026) */
.lang-item--mobile { display: none; }
/* כניסה: קישור טקסט, פחות בולט מ"השאירו פרטים". בטלפון: בתוך התפריט */
.login-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.75rem; padding-inline: 0.625rem; font-weight: 500; font-size: 1rem; color: var(--c-link); text-decoration: none; border-radius: var(--radius-btn); }
.login-link:hover, .login-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
.login-item--mobile { display: none; }
/* עמוד הכניסה: שתי בחירות גדולות. התלמידים גדולה וברורה במיוחד */
.login-choices { display: grid; grid-template-columns: 3fr 2fr; gap: 1.5rem; align-items: stretch; }
.login-choice { display: flex; align-items: center; gap: 1.25rem; padding: 2rem; border-radius: var(--radius-card-lg); text-decoration: none; color: var(--thinko-petrol-dark); border: 2px solid var(--thinko-line-strong); background: var(--thinko-white); }
.login-choice:hover { border-color: var(--thinko-petrol); }
.login-choice__label { font-weight: 700; line-height: 1.2; }
.login-choice__arrow { margin-inline-start: auto; font-size: 1.75rem; }
.login-choice__icon { display: inline-flex; flex: none; }
.login-choice--students { min-height: 13rem; background: var(--thinko-pastel-teal); border-color: var(--thinko-petrol); }
.login-choice--students .login-choice__label { font-size: 2.5rem; }
.login-choice--staff { min-height: 13rem; }
.login-choice--staff .login-choice__label { font-size: 1.5rem; }
html.a11y-contrast .login-choice { border-color: var(--thinko-ink); }
@media (max-width: 47.5em) {
  .lang-link--desktop { display: none; }
  .lang-item--mobile { display: list-item; }
  .login-item--mobile { display: list-item; }
  .login-link--desktop { display: none; }
  .login-choices { grid-template-columns: 1fr; }
  .login-choice { padding: 1.5rem; }
  .login-choice--students { min-height: 10rem; }
  .login-choice--students .login-choice__label { font-size: 2rem; }
  .login-choice--staff { min-height: 0; }
  .login-choice--staff .login-choice__label { font-size: 1.25rem; }
}

/* רשימות בעמודי מידע (הצהרת נגישות) */
.statement-list { margin: 0; padding-inline-start: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }

/* ---------- איורים ודמויות (קבצים אמיתיים במקום המקומות השמורים) ---------- */
.art-img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-card-lg); background: var(--thinko-cream); }
.hero__art .art-img { height: 30rem; border-radius: 0 1.75rem 1.75rem 0; object-position: 60% 50%; }
[dir="ltr"] .hero__art .art-img { border-radius: 1.75rem 0 0 1.75rem; }
.hero__art--md .art-img { height: 26.25rem; }
.art-img.placeholder--md { height: 20rem; min-height: 0; }
.character--img { overflow: hidden; }
.character--img img { width: 72%; height: 72%; object-fit: contain; }

/* דף הבית: כשקובצי הדמויות קיימים, התיבה היא כרטיס רגיל בקרם, ולא מקום שמור עם מסגרת מקווקוות */
.characters-box--real { background: var(--c-bg-alt); border-radius: var(--radius-card-lg); padding: 2.5rem 2rem; display: flex; align-items: center; justify-content: center; min-height: 21.25rem; }

/* ---------- הלוגו עם הסלוגן "חוויה בלמידה" (גרסה א, החלטה מ-15.10.2026) ---------- */
/* גודל הנעילה = גודל הלוגו. הסלוגן 40% ממנו, צמוד, מיושר לימין (לקצה של ה-o) */
.lockup { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; text-decoration: none; font-size: 2rem; line-height: 1; min-height: 2.75rem; }
.lockup .logo { font-size: 1em; }
.lockup__slogan { font-family: var(--thinko-font); font-weight: 400; font-size: 0.4em; margin-top: 0.08em; line-height: 1.1; white-space: nowrap; color: var(--thinko-ink-muted); }
.lockup--dark .lockup__slogan { color: var(--thinko-white); }
.site-footer .lockup { font-size: 1.875rem; }
/* בטלפון: הלוגו קטן יותר (28px), והסלוגן 12px ולא 40% (החלטה מ-15.10.2026). rem, כדי שיגדל גם עם "הגדלת טקסט" */
@media (max-width: 47.5em) { .site-header .lockup { font-size: 1.75rem; } .site-header .lockup__slogan { font-size: 0.75rem; } }
html.a11y-contrast .lockup { text-decoration: none; }
