/* ===== Dor Amir Trading — Academy v2 ===== */
:root {
  --bg: #0e1115;
  --bg-soft: #12161c;
  --card: #151a21;
  --card-2: #181d25;
  --border: #272c35;
  --text: #edebe9;
  --muted: #a9a49c;
  --gold: #f4c025;
  --gold-2: #d48d11;
  --gold-grad: linear-gradient(135deg, #f4c025, #d48d11);
  --green: #34c98e;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Heebo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* height:auto — חובה יחד עם מידות ה-width/height שהבנייה מזריקה,
   כדי שהדפדפן ישמור יחס נכון וישריין מקום לתמונה עוד לפני שנטענה (מונע קפיצות בדף) */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* יעדי עוגן — שהכותרת הדביקה (64px) לא תסתיר את ראש הסקשן בקפיצה */
#lead-section, #curriculum, #course, [id][data-anchor] { scroll-margin-top: 80px; }

.skip-link {
  position: absolute; right: -9999px; top: 0;
  background: var(--gold); color: #0e1115; padding: 8px 16px; z-index: 200; border-radius: 0 0 8px 8px;
}
.skip-link:focus { right: 16px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 17, 21, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 15px;
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--text); background: var(--card-2); }
.main-nav a[aria-current="page"] { color: var(--gold); }
.nav-cta {
  background: var(--gold-grad); color: #0e1115 !important; font-weight: 700;
  padding: 9px 18px !important; border-radius: var(--radius-sm);
}
.nav-cta:hover { filter: brightness(1.06); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 8px 12px; margin-inline-start: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px;
  padding: 13px 26px; transition: transform .12s, filter .15s; text-align: center;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--gold-grad); color: #0e1115; box-shadow: 0 6px 20px rgba(244, 192, 37, .22); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--card-2); border-color: #3a404b; }
.btn-lg { font-size: 18px; padding: 15px 34px; }
.btn-whatsapp { background: #25d366; color: #06281a; }
.btn-whatsapp:hover { filter: brightness(1.06); }

/* ===== Hero ===== */
.hero { padding: 72px 0 48px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 340px at 50% -80px, rgba(244, 192, 37, .10), transparent 70%);
}
.hero > .container { position: relative; }
.hero .eyebrow {
  display: inline-block; background: rgba(244, 192, 37, .1); color: var(--gold);
  border: 1px solid rgba(244, 192, 37, .3); padding: 5px 14px; border-radius: 100px;
  font-size: 14px; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.hero h1 .accent { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip {
  background: var(--card); border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 16px; font-size: 14px; color: var(--muted);
}
.chip b { color: var(--text); }

/* why free */
.why-free {
  max-width: 660px; margin: 34px auto 0; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px; font-size: 15px; color: var(--muted); text-align: center;
}
.why-free b { color: var(--gold); }

/* ===== Progress bar (home) ===== */
.progress-widget {
  display: none; max-width: 660px; margin: 26px auto 0; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; text-align: right;
}
.progress-widget.active { display: block; }
.progress-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.progress-top .label { font-weight: 600; font-size: 15px; }
.progress-track { background: var(--bg); border-radius: 100px; height: 10px; overflow: hidden; border: 1px solid var(--border); }
.progress-fill { height: 100%; background: var(--gold-grad); border-radius: 100px; width: 0; transition: width .5s ease; }
.continue-link { color: var(--gold); font-weight: 600; font-size: 15px; white-space: nowrap; }
.continue-link:hover { text-decoration: underline; }

/* ===== Chapters & lesson grid ===== */
.chapters { padding: 30px 0 70px; }
.chapter { margin-bottom: 44px; }
.chapter-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.chapter-head .num {
  background: var(--card-2); border: 1px solid var(--border); color: var(--gold);
  font-weight: 700; font-size: 14px; border-radius: 8px; padding: 4px 12px; white-space: nowrap;
}
.chapter-head h2 { font-size: 22px; font-weight: 700; }
.chapter-head .line { flex: 1; height: 1px; background: var(--border); }

.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lesson-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.lesson-card:hover { transform: translateY(-3px); border-color: #3a404b; box-shadow: var(--shadow); }
.lesson-thumb { position: relative; aspect-ratio: 16/9; background: var(--bg-soft); }
.lesson-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lesson-num {
  position: absolute; top: 10px; right: 10px; background: rgba(14, 17, 21, .85); color: var(--gold);
  font-weight: 800; border-radius: 8px; padding: 2px 11px; font-size: 15px; border: 1px solid rgba(244, 192, 37, .35);
}
.lesson-done-badge {
  display: none; position: absolute; top: 10px; left: 10px; background: var(--green); color: #06281a;
  border-radius: 100px; padding: 2px 10px; font-size: 13px; font-weight: 700;
}
.lesson-card.done .lesson-done-badge { display: block; }
.lesson-card.done .lesson-thumb img { opacity: .55; }
.practical-badge {
  position: absolute; bottom: 10px; right: 10px; background: var(--gold-grad); color: #0e1115;
  border-radius: 100px; padding: 2px 12px; font-size: 13px; font-weight: 700;
}
.lesson-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lesson-body h3 { font-size: 16.5px; font-weight: 700; line-height: 1.4; }
.lesson-body p {
  font-size: 14px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== Section base ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ===== Lesson page ===== */
.lesson-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding: 28px 0 70px; align-items: start; }
.lesson-main { min-width: 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.back-link:hover { color: var(--gold); }
.video-wrap {
  position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); margin-bottom: 20px;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-missing {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; color: var(--muted); background: var(--card);
}
.iframe-tall { aspect-ratio: auto; height: 720px; }
.lesson-title-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.lesson-title-row .lesson-num-inline {
  background: var(--card-2); border: 1px solid rgba(244, 192, 37, .35); color: var(--gold);
  font-weight: 800; border-radius: 10px; padding: 3px 14px; font-size: 18px; flex-shrink: 0; margin-top: 3px;
}
.lesson-title-row h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.3; flex: 1; min-width: 240px; }
.about-lesson { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-top: 18px; }
.about-lesson h2 { font-size: 17px; color: var(--gold); margin-bottom: 8px; }
.about-lesson p { color: var(--muted); white-space: pre-line; }
.lesson-nav-btns { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.lesson-nav-btns .btn { flex: 1; min-width: 180px; }
.mark-done-btn.done { background: var(--green); color: #06281a; border-color: transparent; }

.disclosure-box {
  background: rgba(244, 192, 37, .06); border: 1px solid rgba(244, 192, 37, .3);
  border-radius: var(--radius); padding: 16px 20px; margin: 18px 0; font-size: 14.5px; color: var(--muted);
}
.disclosure-box b { color: var(--gold); }

/* sidebar */
.lesson-sidebar {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; position: sticky; top: 84px; max-height: calc(100vh - 108px); display: flex; flex-direction: column;
}
.sidebar-head { padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sidebar-head .count { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.sidebar-list { overflow-y: auto; padding: 6px; }
.sidebar-list::-webkit-scrollbar { width: 8px; }
.sidebar-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }
.sidebar-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.sidebar-item:hover { background: var(--card-2); color: var(--text); }
.sidebar-item.current { background: rgba(244, 192, 37, .08); color: var(--gold); font-weight: 600; }
.sidebar-item .si-num {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700;
}
.sidebar-item.done .si-num { background: var(--green); border-color: var(--green); color: #06281a; }
.sidebar-item .si-title { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-chapter { padding: 10px 12px 4px; font-size: 12.5px; font-weight: 700; color: var(--gold); letter-spacing: .02em; }

/* top banner on lesson pages */
.adv-banner {
  background: linear-gradient(90deg, rgba(244, 192, 37, .12), rgba(212, 141, 17, .06));
  border-bottom: 1px solid rgba(244, 192, 37, .25); text-align: center; padding: 9px 16px; font-size: 14.5px;
}
.adv-banner a { color: var(--gold); font-weight: 700; }
.adv-banner a:hover { text-decoration: underline; }

/* ===== Advanced page ===== */
.adv-hero { padding: 70px 0 50px; text-align: center; position: relative; overflow: hidden; }
.adv-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 340px at 50% -80px, rgba(244, 192, 37, .12), transparent 70%);
}
.adv-hero > .container { position: relative; }
.adv-video { max-width: 760px; margin: 36px auto 0; }

.curriculum { max-width: 820px; margin-inline: auto; }
.curriculum details {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.curriculum summary {
  list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  font-weight: 700; font-size: 16.5px; cursor: pointer; user-select: none;
}
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary .ch-num {
  background: var(--card-2); border: 1px solid rgba(244, 192, 37, .3); color: var(--gold);
  border-radius: 8px; padding: 2px 12px; font-size: 14px; white-space: nowrap;
}
.curriculum summary .arrow { margin-inline-start: auto; color: var(--muted); transition: transform .2s; }
.curriculum details[open] summary .arrow { transform: rotate(180deg); }
.curriculum .ch-body { padding: 0 20px 18px 20px; color: var(--muted); font-size: 15px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; }
.feature-card .icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* bio */
.bio { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; max-width: 900px; margin-inline: auto; }
.bio-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--card); }
/* יחס 2:3 (לאורך) — ממלא את העמודה לצד הטקסט, כמו בגרסה שעלתה לאוויר.
   מוגדר כאן במפורש ולא נשען על תגית ה-height (שם זה קרה במקרה).
   לתמונה ריבועית: להחליף ל-aspect-ratio: 1 */
.bio-photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.bio-text h2 { font-size: 28px; margin-bottom: 12px; }
.bio-text p { color: var(--muted); margin-bottom: 12px; }
.bio-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* results + testimonials */
.results-disclaimer { max-width: 700px; margin: 18px auto 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial-grid img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; }

/* not for everyone */
.honesty {
  max-width: 780px; margin-inline: auto; background: var(--card); border: 1px solid var(--border);
  border-inline-start: 4px solid var(--gold); border-radius: var(--radius); padding: 30px 32px;
}
.honesty h2 { font-size: 24px; margin-bottom: 12px; }
.honesty p { color: var(--muted); font-size: 16px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin-inline: auto; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.step .step-num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--gold-grad); color: #0e1115;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary {
  list-style: none; padding: 16px 20px; font-weight: 700; font-size: 16px; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .arrow { margin-inline-start: auto; color: var(--muted); transition: transform .2s; }
.faq details[open] summary .arrow { transform: rotate(180deg); }
.faq .faq-body { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* form */
.lead-form-wrap { max-width: 560px; margin-inline: auto; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 34px 32px; }
.lead-form-wrap h2 { text-align: center; font-size: 26px; margin-bottom: 6px; }
.lead-form-wrap .form-sub { text-align: center; color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.form-field input, .form-field select {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; font-size: 15px;
}
.form-field input:focus, .form-field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.form-field input.invalid { border-color: #e5484d; }
.field-error { color: #e5484d; font-size: 13px; margin-top: 4px; display: none; }
/* honeypot — מוסתר לחלוטין מבני אדם, גלוי רק לבוטים */
.hp-field {
  position: absolute !important; width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important;
  white-space: nowrap !important; opacity: 0;
}
.form-privacy { font-size: 13px; color: var(--muted); text-align: center; margin-top: 14px; }
.form-alt { text-align: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--muted); }
.form-alt a { color: #25d366; font-weight: 700; }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.active { display: block; }
.form-success .big { font-size: 40px; margin-bottom: 8px; }

/* sticky CTA (mobile) */
.sticky-cta {
  display: none; position: fixed; bottom: 0; right: 0; left: 0; z-index: 90;
  background: rgba(14, 17, 21, .92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.visible { display: block; }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 22px; left: 22px; z-index: 95; width: 56px; height: 56px;
  background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ===== Contact page ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin-inline: auto; }
.contact-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; transition: transform .15s, border-color .15s;
}
.contact-card:hover { transform: translateY(-3px); border-color: #3a404b; }
.contact-card .icon { font-size: 34px; margin-bottom: 12px; }
.contact-card h3 { margin-bottom: 6px; font-size: 17px; }
.contact-card p { color: var(--muted); font-size: 14px; }
.contact-card.highlight { border-color: rgba(244, 192, 37, .4); background: linear-gradient(180deg, rgba(244, 192, 37, .06), var(--card)); }

/* ===== Advanced teaser (home) ===== */
.adv-teaser {
  background: linear-gradient(135deg, rgba(244, 192, 37, .08), rgba(212, 141, 17, .03));
  border: 1px solid rgba(244, 192, 37, .25); border-radius: 16px; padding: 36px 32px; text-align: center;
}
.adv-teaser h2 { font-size: 26px; margin-bottom: 10px; }
.adv-teaser p { color: var(--muted); max-width: 560px; margin: 0 auto 20px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 44px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 10px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 50%; }
.footer-col h4 { font-size: 15px; margin-bottom: 12px; color: var(--text); }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 3px 0; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { color: var(--muted); font-size: 14px; }
.disclaimer {
  border-top: 1px solid var(--border); padding-top: 20px; color: #767c87; font-size: 12.5px; line-height: 1.7;
}
.disclaimer p { margin-bottom: 6px; }
.copyright { margin-top: 12px; color: #5c626d; font-size: 12.5px; }

/* ===== 404 / legal ===== */
.page-simple { max-width: 760px; margin-inline: auto; padding: 60px 20px; }
.page-simple h1 { font-size: 30px; margin-bottom: 18px; }
.page-simple h2 { font-size: 20px; margin: 26px 0 8px; }
.page-simple p, .page-simple li { color: var(--muted); font-size: 15.5px; margin-bottom: 10px; }
.page-simple ul { padding-inline-start: 22px; }
.center-404 { text-align: center; padding: 100px 20px; }
.center-404 .code { font-size: 90px; font-weight: 800; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center-404 h1 { font-size: 26px; margin: 10px 0 8px; }
.center-404 p { color: var(--muted); margin-bottom: 26px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .lesson-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .testimonial-grid, .steps, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { position: static; max-height: 420px; order: 2; }
  .bio { grid-template-columns: 1fr; text-align: center; }
  .bio-photo { max-width: 260px; margin-inline: auto; }
  .bio-links { justify-content: center; }
}
@media (max-width: 640px) {
  .main-nav {
    display: none; position: absolute; top: 64px; right: 0; left: 0; flex-direction: column;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; gap: 2px; align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .menu-btn { display: block; }
  .lesson-grid, .feature-grid, .testimonial-grid, .steps, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 48px 0 36px; }
  .section { padding: 48px 0; }
  .iframe-tall { height: 640px; }
  .wa-float { bottom: 80px; }
}

/* ===== Exam banner card (בדף הבית, בין השערים) ===== */
.exam-banner-card {
  display: flex; align-items: center; gap: 18px; margin: 24px 0 8px;
  background: linear-gradient(135deg, rgba(244, 192, 37, .09), rgba(212, 141, 17, .03));
  border: 1px solid rgba(244, 192, 37, .3); border-radius: 14px; padding: 20px 24px;
  transition: transform .15s, border-color .15s;
}
.exam-banner-card:hover { transform: translateY(-2px); border-color: rgba(244, 192, 37, .55); }
.exam-banner-icon {
  font-size: 26px; width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px;
  background: rgba(244, 192, 37, .12); display: flex; align-items: center; justify-content: center;
}
.exam-banner-body { flex: 1; min-width: 0; }
.exam-banner-kicker { color: var(--gold); font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.exam-banner-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.exam-banner-body p { color: var(--muted); font-size: 14px; }
.exam-banner-cta { color: var(--gold); font-weight: 700; white-space: nowrap; font-size: 15px; }
@media (max-width: 640px) {
  .exam-banner-card { flex-wrap: wrap; gap: 12px; padding: 18px; }
  .exam-banner-cta { width: 100%; }
}

/* ===== Exams / Quiz ===== */
.exam-wrap { max-width: 760px; margin: 0 auto; padding: 28px 0 70px; }
.exam-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 34px 32px; box-shadow: var(--shadow);
}
.exam-badge {
  display: inline-block; background: rgba(244, 192, 37, .1); color: var(--gold);
  border: 1px solid rgba(244, 192, 37, .3); padding: 5px 14px; border-radius: 100px;
  font-size: 13.5px; font-weight: 700; margin-bottom: 16px;
}
.exam-intro h1, .exam-quiz-head h1 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.exam-sub { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.exam-prev {
  background: rgba(52, 201, 142, .08); border: 1px solid rgba(52, 201, 142, .3);
  border-radius: var(--radius); padding: 12px 18px; font-size: 15px; margin-bottom: 20px;
}
.exam-prev b { color: var(--green); }
.exam-why {
  background: var(--bg-soft); border: 1px solid var(--border); border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 24px;
}
.exam-why h2 { font-size: 18px; margin-bottom: 10px; color: var(--gold); }
.exam-why p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.exam-why p:last-child { margin-bottom: 0; }
.exam-why b { color: var(--text); }

.exam-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.exam-actions .btn { flex: 0 1 auto; }
.btn-skip { background: transparent; color: var(--muted); border: 1px solid var(--border); font-size: 14px; }
.btn-skip:hover { color: var(--text); }

.exam-skip-warn {
  display: none; margin-top: 18px; background: rgba(244, 192, 37, .06);
  border: 1px solid rgba(244, 192, 37, .3); border-radius: var(--radius); padding: 18px 20px;
}
.exam-skip-warn.show { display: block; }
.exam-skip-warn p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }

/* quiz */
.exam-quiz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.exam-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.exam-q {
  border-top: 1px solid var(--border); padding: 24px 0; scroll-margin-top: 80px;
}
.exam-q.unanswered { background: rgba(229, 72, 77, .05); border-radius: var(--radius); padding-inline: 14px; }
.exam-q-num { color: var(--gold); font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.exam-q-text { font-size: 17.5px; font-weight: 600; line-height: 1.5; margin-bottom: 14px; }
.exam-q-img { margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; }
.exam-q-img img { width: 100%; display: block; }
.exam-opts { display: flex; flex-direction: column; gap: 10px; }
.exam-opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px;
  background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .12s, background .12s;
}
.exam-opt:hover { border-color: #3a404b; }
.exam-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.exam-opt-mark {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted);
  margin-top: 2px; position: relative; transition: border-color .12s;
}
.exam-opt input:checked + .exam-opt-mark { border-color: var(--gold); }
.exam-opt input:checked + .exam-opt-mark::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold);
}
.exam-opt input:checked ~ .exam-opt-text { color: var(--text); }
.exam-opt:has(input:checked) { border-color: var(--gold); background: rgba(244, 192, 37, .06); }
.exam-opt-text { font-size: 15.5px; color: var(--muted); line-height: 1.5; }

/* graded states */
.exam-opt.is-correct { border-color: var(--green); background: rgba(52, 201, 142, .1); }
.exam-opt.is-correct .exam-opt-mark { border-color: var(--green); }
.exam-opt.is-correct .exam-opt-text { color: var(--text); }
.exam-opt.is-wrong { border-color: #e5484d; background: rgba(229, 72, 77, .1); }
.exam-opt.is-wrong .exam-opt-mark { border-color: #e5484d; }
.exam-q-feedback { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.exam-q-feedback:empty { display: none; }
.fb-ok { color: var(--green); font-weight: 700; }
.fb-no { color: #e5484d; font-weight: 700; }

.exam-unanswered {
  display: none; color: #e5484d; font-size: 14.5px; margin: 16px 0; padding: 12px 16px;
  background: rgba(229, 72, 77, .08); border: 1px solid rgba(229, 72, 77, .3); border-radius: var(--radius-sm);
}
.exam-unanswered.show { display: block; }
.exam-submit { width: 100%; margin-top: 24px; }

/* results */
.exam-result { text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 34px 32px; margin-bottom: 22px; }
.exam-result h2 { font-size: 26px; margin: 6px 0 10px; }
.exam-result-msg { color: var(--muted); font-size: 16px; max-width: 560px; margin: 0 auto 8px; line-height: 1.6; }
.exam-result-count { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.exam-result .exam-actions { justify-content: center; }
.exam-score-ring {
  width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 14px;
  background: conic-gradient(var(--ring-color, var(--gold)) calc(var(--pct) * 1%), var(--border) 0);
  display: flex; align-items: center; justify-content: center;
}
.exam-score-ring::before { content: ''; position: absolute; width: 104px; height: 104px; border-radius: 50%; background: var(--card); }
.exam-score-num { position: relative; font-size: 34px; font-weight: 800; }
.exam-score-num span { font-size: 15px; color: var(--muted); font-weight: 500; }
.exam-result-perfect { --ring-color: var(--green); }
.exam-result-perfect .exam-score-num { color: var(--green); }
.exam-result-pass { --ring-color: var(--gold); }
.exam-result-retry { --ring-color: #e5848a; }
.exam-result-retry .exam-score-num { color: #e5848a; }

@media (max-width: 640px) {
  .exam-card, .exam-result { padding: 24px 18px; }
  .exam-wrap { padding: 18px 0 60px; }
  .exam-actions .btn { width: 100%; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
