/* ============ צבעים וגופנים ============
   בהשראת כריכת "התחדשות הנפש": סגול עמוק, כתום, זהב, טורקיז ויער */
:root {
  color-scheme: light;
  --paper: #fbf5ea;
  --paper-2: #f5ead7;
  --card: #fffdf8;
  --ink: #2a1a2e;
  --ink-soft: #5b4a55;
  --line: #e8d9c0;

  --night: #1e1030;        /* סגול לילה */
  --plum: #3a1f55;         /* סגול הכריכה */
  --plum-2: #4e2c6f;
  --orange: #e8712a;
  --amber: #f4b942;
  --gold-soft: #f6d48a;
  --gold-text: #8a4b12;    /* טקסט כתום־זהוב על רקע בהיר */
  --teal: #1f7c76;
  --forest: #12382d;
  --forest-accent: #1d6248;
  --forest-tint: #e2efe4;
  --indigo: #1f1846;
  --indigo-accent: #4a2f8a;
  --indigo-tint: #ece6f7;
  --cream: #fdf4e3;

  --todo-bg: #fff1a8;
  --todo-ink: #5a4500;
  --focus: #0b5cad;

  --serif: "Frank Ruhl Libre", "David Libre", "David", "Times New Roman", serif;
  --sans: "Assistant", "Segoe UI", "Arial Hebrew", Arial, sans-serif;

  --radius: 16px;
  --shadow: 0 2px 4px rgba(40, 15, 50, .08), 0 14px 36px rgba(40, 15, 50, .14);
}

/* ============ בסיס ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum-2); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; }
h3 { font-size: 1.3rem; font-weight: 700; margin-top: 1.6em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: min(1160px, 100%); margin-inline: auto; padding-inline: 20px; }
.narrow { width: min(800px, 100%); }
.center { text-align: center; }
.nw { white-space: nowrap; unicode-bidi: isolate; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* סימון פרטים חסרים (טיוטה בלבד) */
mark.todo {
  background: var(--todo-bg); color: var(--todo-ink);
  border: 1px dashed #c9a400; border-radius: 6px;
  padding: 1px 8px; font: 600 .92em/1.6 var(--sans);
}
.draft-banner {
  background: var(--todo-bg); color: var(--todo-ink);
  text-align: center; padding: 8px 16px; font-size: .95rem;
  border-bottom: 1px solid #e0c64a;
}

/* ============ כפתורים ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; flex-wrap: wrap;
  min-height: 50px; padding: 10px 28px; border-radius: 999px;
  font: 700 1.08rem/1.3 var(--sans); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn-primary {
  background: linear-gradient(135deg, #f8c75a, var(--amber) 45%, #ef9a3a);
  color: var(--night);
  box-shadow: 0 6px 18px rgba(232, 113, 42, .35);
}
.btn-primary:hover { color: var(--night); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232, 113, 42, .45); }
.btn-block { width: 100%; }
.btn-missing { background: #ece3d3; color: var(--ink-soft); cursor: not-allowed; font-weight: 600; box-shadow: none; }
.btn-missing:hover { transform: none; box-shadow: none; color: var(--ink-soft); }
.btn-missing mark.todo { font-size: .8rem; }

/* ============ כותרת עליונה ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 16, 48, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(246, 212, 138, .2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font: 900 1.35rem var(--serif); color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--gold-soft); }
.site-header > .container > a:not(.brand) { color: var(--cream); }
#site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
#site-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: 1rem;
}
#site-nav a:hover { background: rgba(255, 255, 255, .1); color: var(--gold-soft); }
#site-nav .nav-cta { background: var(--amber); color: var(--night); padding-inline: 20px; border-radius: 999px; margin-inline-start: 6px; }
#site-nav .nav-cta:hover { background: var(--gold-soft); color: var(--night); }
.site-header :focus-visible { outline-color: var(--gold-soft); }
.menu-btn {
  display: none; min-height: 44px; padding: 8px 18px;
  font: 700 1rem var(--sans); color: var(--cream);
  background: transparent; border: 1px solid rgba(246, 212, 138, .5); border-radius: 999px; cursor: pointer;
}

/* ============ פתיחה: יער בצבעי הכריכה ============ */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(100svh, 1100px);
  display: flex; align-items: flex-end;
  color: var(--cream); text-align: center;
  background: var(--night);
}
.hero-art, .hero-art .scene, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-art img { object-fit: cover; object-position: 50% 20%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 50% 58%, rgba(30, 16, 48, .55), transparent 70%),
    linear-gradient(to top, rgba(30, 16, 48, .97) 0%, rgba(30, 16, 48, .85) 40%, rgba(30, 16, 48, .4) 65%, rgba(30, 16, 48, .05) 90%);
}
/* מרווח עליון גדול, כדי שהציפורים מהכריכה ייראו מעל הכותרת */
.hero-content { padding-top: clamp(320px, 54vh, 560px); padding-bottom: clamp(40px, 6vw, 72px); }
.eyebrow { color: var(--gold-soft); font-weight: 700; letter-spacing: .02em; margin-bottom: .4em; font-size: 1.1rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.hero h1 {
  font-size: clamp(3rem, 10vw, 6.4rem); font-weight: 900; margin-bottom: .1em; color: #fff7e6;
  text-shadow: 0 2px 24px rgba(244, 185, 66, .45), 0 2px 4px rgba(0, 0, 0, .4);
}
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px auto 22px; }
.ornament span { width: 80px; height: 1px; background: var(--amber); }
.ornament i { width: 10px; height: 10px; background: var(--amber); transform: rotate(45deg); }
.hero-sub { font: 500 clamp(1.3rem, 3vw, 1.75rem)/1.5 var(--serif); max-width: 40ch; margin-inline: auto; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.hero-exp { color: #f1e4d6; max-width: 60ch; margin-inline: auto; font-size: 1.15rem; }
.hero-start {
  display: inline-block; font-weight: 700; color: var(--night);
  background: var(--gold-soft);
  padding: 6px 20px; border-radius: 999px; margin-top: .4em;
}

/* עלים נושרים */
.leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.leaf {
  position: absolute; top: -40px; inset-inline-start: var(--x);
  width: calc(18px * var(--s)); height: calc(10px * var(--s));
  background: var(--c); border-radius: 0 100% 0 100%; opacity: .9;
  animation: fall var(--d) linear var(--delay) infinite;
}
@keyframes fall {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(40px, 28vh) rotate(90deg); }
  50%  { transform: translate(-30px, 56vh) rotate(200deg); }
  75%  { transform: translate(35px, 84vh) rotate(290deg); }
  100% { transform: translate(-10px, 115vh) rotate(380deg); }
}

.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; text-align: start; }
.choice {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); text-decoration: none; color: var(--cream);
  border: 1px solid rgba(246, 212, 138, .35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.choice--forest { background: linear-gradient(160deg, #1b4a3a, var(--forest)); }
.choice--safed { background: linear-gradient(160deg, #3a2470, var(--indigo)); }
.choice:hover { transform: translateY(-4px); border-color: var(--amber); color: var(--cream); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.choice-art { display: block; height: 150px; overflow: hidden; position: relative; }
.choice-art .scene, .choice-art img { width: 100%; height: 100%; }
.choice-art img { object-fit: cover; }
.choice-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 24px 22px; flex: 1; }
.pill {
  align-self: flex-start; font-size: .85rem; font-weight: 700;
  padding: 2px 12px; border-radius: 999px; background: rgba(246, 212, 138, .18); color: var(--gold-soft);
}
.choice-name { font: 900 2rem/1.15 var(--serif); margin-top: 6px; color: #fff7e6; }
.choice-sub { color: #eadfd2; line-height: 1.5; }
.choice-meta { font-weight: 700; margin-top: 6px; }
.choice-cta { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--amber); }

/* ============ אזורים כלליים ============ */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.kicker { color: var(--gold-text); font-weight: 700; margin-bottom: .3em; }
.lead { font: 500 1.35rem/1.6 var(--serif); }
.note { color: var(--ink-soft); font-size: 1rem; }

/* ============ קורס ============ */
.course { padding-bottom: clamp(64px, 9vw, 110px); color: var(--cream); }
.course--forest { --bg: var(--forest); --accent: var(--forest-accent); --tint: var(--forest-tint); background: var(--forest); }
.course--safed  { --bg: var(--indigo); --accent: var(--indigo-accent); --tint: var(--indigo-tint); background: var(--indigo); }
.course-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(520px, 82vh, 760px);
  display: flex; align-items: flex-end;
}
.course-hero .scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.course-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 16%, transparent 40%);
}
.course-hero .kicker {
  display: inline-block; color: var(--gold-soft);
  background: rgba(15, 8, 25, .45); padding: 2px 14px; border-radius: 999px;
}
/* קורס עם צילום: התמונה קבועה בחלון ונחשפת לאורך כל הקורס */
.course--photo { position: relative; isolation: isolate; background: var(--bg); }
.course-bg { position: absolute; inset: 0; z-index: -2; }
.course-bg img {
  position: sticky; top: 0; display: block;
  width: 100%; height: 100vh; object-fit: cover;
  filter: brightness(.88);
}
/* הכהיה מאחורי הטקסט בצד ימין בלבד, כדי שלא ייווצר קו מעבר מעל הכרטיס */
.course--photo .course-hero::after { content: none; }
/* בקורס האר״י: השקיעה נשארת חמה למעלה, וההצללה בסגול־לילה במקום ירוק */
.course--safed .course-bg img { object-position: 50% 42%; }
.course--safed .course-bg::after {
  background:
    linear-gradient(to top, rgba(31, 24, 70, .75) 0%, transparent 45%),
    linear-gradient(to left, rgba(31, 24, 70, .85) 0%, rgba(31, 24, 70, .5) 45%, transparent 75%);
}
.course-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(8, 30, 22, .82) 0%, rgba(8, 30, 22, .5) 45%, transparent 75%);
}
.cover-birds {
  position: absolute; z-index: 1; top: clamp(90px, 14vh, 140px); inset-inline-end: clamp(16px, 7vw, 110px);
  width: clamp(150px, 20vw, 250px); aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 5px solid var(--amber);
  box-shadow: 0 0 0 10px rgba(244, 185, 66, .25), 0 20px 50px rgba(0, 0, 0, .45);
  animation: perch 7s ease-in-out infinite alternate;
}
@keyframes perch { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-10px) rotate(2deg); } }
.course-hero-text > * { max-width: 760px; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.course-hero-text { padding-bottom: 140px; }
.course h2 {
  color: #fff7e6; font-size: clamp(2.8rem, 8vw, 5.2rem); margin-bottom: .1em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}
.course-subtitle { font: 700 clamp(1.2rem, 2.6vw, 1.55rem)/1.45 var(--serif); color: var(--amber); margin-bottom: .8em; }
.course-hero .lead { max-width: 46ch; color: #f6ecdc; }

.course-panel {
  position: relative; margin-top: -100px;
  background: var(--paper); color: var(--ink);
  border-radius: 24px; padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
}
.course-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 48px; align-items: start; }
.course-main > :first-child { margin-top: 0; }
.course-main h3 { color: var(--accent); }
.intro { font: 500 1.25rem/1.6 var(--serif); }

.q-list, .check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.q-list li, .check-list li { position: relative; padding-inline-start: 34px; margin-bottom: .6em; }
.q-list li::before {
  content: "?"; position: absolute; inset-inline-start: 0; top: .15em;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #fff; font: 700 .9rem/1 var(--sans);
}
.q-list li { font-family: var(--serif); font-size: 1.25rem; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 6px; top: .6em;
  width: 11px; height: 11px; background: var(--amber); transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(244, 185, 66, .25);
}
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font: 700 1.1rem var(--serif); padding: 6px 18px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--indigo-accent), #8a3d7c);
}
.chips li:nth-child(3n+2) { background: linear-gradient(135deg, #8a3d7c, var(--orange)); }
.chips li:nth-child(3n) { background: linear-gradient(135deg, var(--teal), var(--indigo-accent)); }

details.topics, details.faq-item, details.more { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-top: 1.6em; }
details > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; font-weight: 700; font-size: 1.12rem; min-height: 52px;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s; margin-top: -4px;
}
details[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.topics { border: 0; background: var(--accent); color: #fff; }
details.topics > summary { color: #fff; }
details.topics ol { margin: 0; padding: 4px 22px 18px; padding-inline-start: 54px; }
details.topics li { padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .2); }
details.topics li::marker { color: var(--amber); font-weight: 700; }
details.topics :focus-visible { outline-color: var(--gold-soft); }

.course-card {
  position: sticky; top: 84px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  padding: 0 24px 24px; border: 1px solid var(--line);
}
.course-card h3 {
  margin: 0 -24px 12px; padding: 16px 24px; color: #fff; font-size: 1.25rem;
  background: linear-gradient(135deg, var(--accent), var(--bg));
}
.facts { margin: 0 0 18px; }
.facts > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.5; }
.facts dt { color: var(--ink-soft); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; }
.price-box { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; margin-bottom: 16px; }
.price { font: 900 2.6rem/1.1 var(--serif); color: var(--ink); margin: 0; }
.price-note { font-size: .95rem; color: var(--ink-soft); }
.price-note.link { color: var(--gold-text); font-weight: 700; margin-top: 6px; }

/* ============ השוואה ============ */
.compare { background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.compare h2 { text-align: center; color: var(--plum); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 1.02rem; line-height: 1.5; }
th, td { padding: 14px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead td { background: var(--plum); }
thead th { font: 900 1.35rem var(--serif); color: #fff7e6; }
.th-forest { background: var(--forest-accent); }
.th-safed { background: var(--indigo-accent); }
tbody th { color: var(--ink-soft); font-weight: 600; width: 22%; }
.compare-bundle { text-align: center; margin-top: 24px; font-weight: 600; }

/* ============ על המרצה ============ */
.about { background: var(--paper); }
.about h2 { color: var(--plum); }
.about h3 { color: var(--teal); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.portrait { margin: 0; position: relative; }
.portrait::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: 0; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--orange), #9c3b62 50%, var(--plum));
}
.portrait img {
  position: relative; z-index: 1;
  border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  width: 100%; box-shadow: var(--shadow);
}
.portrait figcaption { position: relative; font-size: .9rem; color: var(--ink-soft); margin-top: 34px; }

/* ============ המלצות ============ */
.testimonials { background: var(--paper-2); }
.testimonials h2 { text-align: center; color: var(--plum); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; margin-top: 20px; align-items: start; }
.quote {
  margin: 0; background: var(--card); border-radius: var(--radius);
  padding: 30px 28px 22px; position: relative; box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
}
.quote::before {
  content: "״"; position: absolute; top: 2px; inset-inline-start: 18px;
  font: 900 3.8rem/1 var(--serif); color: var(--orange); opacity: .6;
}
.quote blockquote { margin: 0; }
.quote blockquote p { font: 500 1.18rem/1.7 var(--serif); margin-top: 1em; }
.quote figcaption { color: var(--ink-soft); font-size: .95rem; font-weight: 600; }
.quote-missing { border: 1px dashed #c9b48a; box-shadow: none; display: grid; place-items: center; min-height: 110px; background: transparent; }
.quote-missing::before { content: none; }

/* ============ הספר: הסגול של הכריכה ============ */
.book {
  color: var(--cream);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(232, 113, 42, .28), transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(31, 124, 118, .3), transparent 50%),
    var(--plum);
}
.book h2 { color: #fff7e6; font-size: clamp(2.4rem, 6vw, 3.8rem); }
.book h3 { color: var(--gold-soft); }
.book .kicker { color: var(--amber); }
.book .course-subtitle { color: var(--gold-soft); }
.book .note { color: #e6d8ea; }
.book a:not(.btn) { color: var(--gold-soft); }
.book-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 64px; align-items: start; margin-bottom: 64px; }
.book-cover img {
  border-radius: 6px; transform: rotate(-2deg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 30px 60px rgba(0, 0, 0, .5), 0 0 80px rgba(244, 185, 66, .25);
}
.book details.more { margin: 0 0 1.4em; background: rgba(255, 255, 255, .07); border-color: rgba(246, 212, 138, .3); color: var(--cream); }
.book details.more p { padding: 0 22px; }
.book details :focus-visible, .book :focus-visible { outline-color: var(--gold-soft); }
.book-actions { margin: 8px 0 8px; }
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost { color: var(--gold-soft); border: 2px solid rgba(246, 212, 138, .55); background: transparent; }
.btn-ghost:hover { color: var(--night); background: var(--gold-soft); }

/* הספר בתקשורת */
.media { margin-top: 72px; }
.media-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 30px; }
.media-filter {
  font: 600 1rem/1 var(--sans); color: var(--cream); cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(246, 212, 138, .4);
  border-radius: 999px; padding: 10px 18px; min-height: 44px;
}
.media-filter span { opacity: .75; font-weight: 400; margin-inline-start: .2em; }
.media-filter:hover { background: rgba(255, 255, 255, .14); }
.media-filter[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--night); }
.media-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px;
}
.media-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(246, 212, 138, .22);
  border-radius: var(--radius); transition: transform .25s ease, background .25s ease;
}
.media-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .11); }
.media-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: rgba(0, 0, 0, .25); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-body { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.media-type { display: flex; align-items: center; gap: .45em; margin: 0 0 6px; font-size: .9rem; font-weight: 700; color: var(--amber); }
.media-date { color: #e6d8ea; font-weight: 400; }
.media-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.media-card h4 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.35; color: #fff7e6; }
.media-with { margin: 0 0 14px; color: #e6d8ea; font-size: .95rem; }
.book a.media-link { margin-top: auto; align-self: flex-start; font-weight: 700; color: var(--gold-soft); text-decoration: none; border-bottom: 2px solid rgba(246, 212, 138, .5); padding-bottom: 2px; }
.book a.media-link:hover { border-bottom-color: var(--gold-soft); }
.book a.media-more { font-size: .9rem; margin-top: 8px; align-self: flex-start; }
/* כרטיס מוביל: רחב, עם התמונה בצד */
.media-featured { grid-column: 1 / -1; flex-direction: row; }
.media-featured .media-thumb { aspect-ratio: auto; flex: 0 0 38%; min-height: 340px; position: relative; }
.media-featured .media-thumb img { position: absolute; inset: 0; }
.media-featured .media-body { justify-content: center; padding: 28px 40px; }
.media-featured a.media-link { margin-top: 18px; font-size: 1.1rem; }
.media > h3 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.media-featured h4 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
@media (max-width: 640px) {
  .media-featured { flex-direction: column; }
  .media-featured .media-thumb { aspect-ratio: 4 / 3; min-height: 0; flex: none; }
  .media-featured .media-body { padding: 16px 20px 20px; }
  /* בטלפון: כרטיס קומפקטי, תמונה קטנה לצד הטקסט */
  .media-grid { gap: 14px; }
  .media-card:not(.media-featured) { flex-direction: row; }
  .media-card:not(.media-featured) .media-thumb { flex: 0 0 104px; aspect-ratio: auto; }
  .media-card:not(.media-featured) .media-body { padding: 12px 14px 14px; }
  .media-card:not(.media-featured) h4 { font-size: 1.02rem; }
  .media-card:not(.media-featured) .media-with { font-size: .88rem; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .media-card, .media-card:hover { transition: none; transform: none; } }
/* קיר המלצות: עמודות בלי רווחים בין כרטיסים בגבהים שונים */
.book .quotes { display: block; columns: 3 300px; column-gap: 22px; }
.book .quotes .quote { break-inside: avoid; margin-bottom: 22px; }
.book .quote { background: rgba(255, 255, 255, .08); color: var(--cream); box-shadow: none; border-top-color: var(--amber); }
.book .quote::before { color: var(--amber); }
.book .quote figcaption { color: #e6d8ea; }
.book .quote-missing { background: transparent; border-color: rgba(246, 212, 138, .4); }

/* ============ שאלות נפוצות ============ */
.faq h2 { text-align: center; color: var(--plum); }
details.faq-item { margin-top: 12px; border-inline-start: 4px solid var(--teal); }
details.faq-item[open] { border-inline-start-color: var(--orange); }
details.faq-item p { padding: 0 22px; }
details.faq-item p:last-child { padding-bottom: 6px; }

/* ============ הרשמה ============ */
.register {
  color: var(--cream);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(232, 113, 42, .3), transparent 55%),
    linear-gradient(135deg, var(--night), #2c1a4a 50%, #10333a);
}
.register h2 { text-align: center; color: #fff7e6; font-size: clamp(2.4rem, 6vw, 3.6rem); }
.reg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.reg-card {
  background: var(--card); color: var(--ink); border-radius: var(--radius);
  padding: 0 24px 24px; display: flex; flex-direction: column; text-align: center; box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.reg-card h3 { margin: 0 -24px 14px; padding: 18px 20px; font-size: 1.5rem; color: #fff7e6; }
.reg-card--forest h3 { background: linear-gradient(135deg, var(--forest-accent), var(--forest)); }
.reg-card--safed h3 { background: linear-gradient(135deg, var(--indigo-accent), var(--indigo)); }
.reg-card--bundle h3 { background: linear-gradient(135deg, var(--orange), #9c3b62); }
.reg-meta { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.reg-card .price { margin: auto 0 16px; }
.referral { text-align: center; margin-top: 28px; font-size: 1.15rem; }
.referral strong { color: var(--amber); }
.reg-info { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
.contact-box {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(246, 212, 138, .25); border-radius: var(--radius);
  padding: 22px 26px;
}
.contact-box h3 { margin-top: 0; color: var(--gold-soft); }
.register a { color: var(--gold-soft); }
.register .reg-card a { color: var(--night); }
.register :focus-visible { outline-color: var(--gold-soft); }
.contact-link { font-weight: 700; margin-inline-end: 18px; }

/* ============ תחתית ============ */
.site-footer { background: #140a20; color: #eadfe8; padding: 44px 0; text-align: center; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer :focus-visible { outline-color: var(--gold-soft); }
.site-footer mark.todo { font-size: .85rem; }
.footer-name { font: 900 1.5rem var(--serif); color: var(--gold-soft); }
.footer-links { list-style: none; padding: 0; display: flex; gap: 8px 24px; justify-content: center; flex-wrap: wrap; }
.footer-btns { display: flex; gap: 12px 16px; justify-content: center; flex-wrap: wrap; margin: 22px 0 18px; }
.site-footer .footer-btns .btn-primary { color: var(--night); }
.site-footer .footer-btns .btn-ghost:hover { color: var(--night); }
.copyright { opacity: .85; margin: 0; }

/* פס הרשמה בטלפון */
.mobile-bar { display: none; }

/* ============ עמודי משנה ============ */
.page { padding: 48px 0 80px; }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--plum); }
.page h2 { font-size: 1.6rem; margin-top: 1.6em; color: var(--teal); }
.page .draft-note {
  background: var(--todo-bg); color: var(--todo-ink); border: 1px dashed #c9a400;
  border-radius: var(--radius); padding: 14px 18px;
}
.page ul { padding-inline-start: 1.2em; }

/* ============ אנימציה עדינה ============ */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .leaves { display: none; }
}

/* ============ טאבלט וטלפון ============ */
@media (max-width: 960px) {
  .course-grid { grid-template-columns: 1fr; gap: 32px; }
  .course-card { position: static; }
  .reg-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .reg-info { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .portrait { max-width: 400px; margin-inline: auto; width: calc(100% - 22px); }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  #site-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    background: var(--night); border-bottom: 1px solid rgba(246, 212, 138, .25); box-shadow: var(--shadow);
  }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  #site-nav a { padding: 12px; font-size: 1.1rem; }
  #site-nav .nav-cta { text-align: center; margin: 6px 0 0; }
}
@media (max-width: 720px) {
  body { font-size: 1.0625rem; padding-bottom: 76px; }
  .choices { grid-template-columns: 1fr; }
  .choice-art { height: 120px; }
  /* בטלפון הציור בגובה קבוע בראש הדף, כדי שלא יוגדל מדי לאורך כל הפתיחה */
  .hero-art img {
    height: 820px; object-position: 36% 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
  }
  .hero::after {
    background: linear-gradient(to bottom, transparent 0, transparent 230px, rgba(30, 16, 48, .55) 330px, rgba(30, 16, 48, .75) 560px, rgba(30, 16, 48, .95) 820px);
  }
  .hero-content { padding-top: 300px; }
  .course-hero { min-height: 560px; }
  .course-hero::after { background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 30%, transparent 72%); }
  .course-bg::after { background: rgba(8, 30, 22, .6); }
  .course--safed .course-bg::after { background: rgba(31, 24, 70, .6); }
  .cover-birds { top: 28px; }
  .course-hero-text { padding-bottom: 110px; }
  .course-panel { margin-top: -70px; border-radius: 20px; }
  .book-grid { grid-template-columns: 1fr; gap: 36px; }
  .book-cover { max-width: 240px; margin-inline: auto; }
  .mobile-bar {
    display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(30, 16, 48, .94); border-top: 1px solid rgba(246, 212, 138, .3);
    transition: transform .25s ease;
  }
  .mobile-bar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
  .mobile-bar .btn { min-height: 50px; }
}
