/* נתן אברהם — מרצה לחשמל */

:root {
  --bg: #06080d;
  --bg-2: #0b0f18;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef2f8;
  --muted: #95a0b4;
  --dim: #8590a4;
  --volt: #ffd23f;      /* צהוב חשמלי */
  --volt-2: #ffb703;
  --arc: #3ef0ff;       /* ציאן של קשת חשמלית */
  --arc-2: #2b8cff;
  --ok: #4ade80;
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--arc); outline-offset: 3px; border-radius: 6px; }
.f { direction: ltr; unicode-bidi: isolate; display: inline-block; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; color: var(--arc); background: rgba(62, 240, 255, .07); border: 1px solid rgba(62, 240, 255, .14); padding: 0 .45em; border-radius: 7px; white-space: nowrap; }

/* ---------- רקע חי ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .55;
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 720px; height: 720px; border-radius: 50%;
  left: var(--mx, 50%); top: var(--my, 20%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 210, 63, .10), rgba(62, 240, 255, .05) 40%, transparent 70%);
  transition: left .6s var(--ease), top .6s var(--ease);
}

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------- ניווט ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50;
  width: min(var(--max), 100% - 24px); margin: 12px auto 0;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 10px 10px 18px; padding-inline-start: 14px;
  background: rgba(10, 13, 20, .62);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(from 200deg, var(--volt), var(--arc), var(--arc-2), var(--volt));
  color: #06080d; font-weight: 900; font-size: 15px;
  box-shadow: 0 0 24px rgba(255, 210, 63, .35);
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; line-height: 1; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.menu-btn { display: none; margin-inline-start: auto; background: var(--surface-2); border: 1px solid var(--line); width: 42px; height: 42px; border-radius: 50%; }

/* ---------- כפתורים ---------- */
.btn {
  --b: var(--volt);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--volt), var(--volt-2)); color: #1a1300; box-shadow: 0 8px 30px -8px rgba(255, 196, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(255, 196, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- גיבור ---------- */
.hero { position: relative; padding: 90px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; padding-inline: 6px 14px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 14px;
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(74, 222, 128, .14); }
.eyebrow .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

h1 {
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: .98; letter-spacing: -.035em; font-weight: 900;
  margin: 22px 0 22px;
}
h1 .spark {
  background: linear-gradient(100deg, var(--volt) 10%, #fff3c4 40%, var(--arc) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer { 50% { background-position: 100% 0; } }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; }
.hero-chips span { font-size: 13.5px; color: var(--muted); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; background: var(--surface); }

/* כרטיס המעגל */
.circuit-card {
  position: relative; aspect-ratio: 1 / .92;
  border-radius: 32px; border: 1px solid var(--line-2);
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(62, 240, 255, .12), transparent 60%),
    radial-gradient(90% 70% at 10% 100%, rgba(255, 210, 63, .12), transparent 60%),
    linear-gradient(180deg, #0d121d, #080b12);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.circuit-card > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wire { fill: none; stroke: #263044; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.flow { fill: none; stroke: var(--volt); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 22; animation: flow 1.4s linear infinite; filter: drop-shadow(0 0 6px var(--volt)); }
.flow.cyan { stroke: var(--arc); filter: drop-shadow(0 0 6px var(--arc)); animation-duration: 1.9s; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.comp { fill: none; stroke: #c9d3e4; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bulb-glow { animation: bulb 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes bulb { 50% { opacity: .55; transform: scale(.92); } }
.svg-label { fill: var(--muted); font: 600 13px ui-monospace, Menlo, monospace; }

.float-pill {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px;
  background: rgba(12, 16, 26, .78); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 14px; box-shadow: 0 20px 50px -20px #000;
  animation: bob 6s ease-in-out infinite;
}
.float-pill b { font-size: 16px; }
.float-pill .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 210, 63, .14); color: var(--volt); }
.float-pill .ico.c { background: rgba(62, 240, 255, .12); color: var(--arc); }
.float-pill.p1 { top: 7%; inset-inline-end: 6%; }
.float-pill.p2 { bottom: 8%; inset-inline-start: 6%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- רצועת נושאים ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: rgba(255, 255, 255, .015); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: flex; align-items: center; gap: 48px; font-size: 20px; font-weight: 700; color: var(--dim); white-space: nowrap; }
.marquee-track span::after { content: "⚡"; font-size: 16px; color: var(--volt); opacity: .7; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- מקטעים ---------- */
section { scroll-margin-top: 90px; }
.section { padding: 110px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.kicker { color: var(--volt); font-weight: 700; font-size: 14px; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
h2 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.04; letter-spacing: -.03em; font-weight: 900; margin: 12px 0 0; }
.sec-head p { color: var(--muted); max-width: 440px; margin: 0; }

/* ---------- מעבדה ---------- */
.lab {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0;
  border: 1px solid var(--line-2); border-radius: 32px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
}
.lab-controls { padding: 40px; display: flex; flex-direction: column; gap: 28px; border-inline-end: 1px solid var(--line); }
.slider-row label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; margin-bottom: 12px; }
.slider-row label output { font: 800 26px ui-monospace, Menlo, monospace; direction: ltr; }
.slider-row label output small { font-size: 15px; color: var(--muted); margin-inline-start: 2px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--c, var(--volt)) var(--p, 50%), #1c2433 var(--p, 50%)); direction: ltr; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 5px solid var(--c, var(--volt)); box-shadow: 0 0 0 6px rgba(255, 210, 63, .12), 0 4px 14px rgba(0, 0, 0, .5); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid var(--c, var(--volt)); cursor: grab; }
.readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.readout { padding: 18px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.readout span { color: var(--muted); font-size: 13.5px; }
.readout b { display: block; direction: ltr; text-align: right; font: 800 30px ui-monospace, Menlo, monospace; letter-spacing: -.02em; margin-top: 4px; }
.readout.i b { color: var(--arc); }
.readout.p b { color: var(--volt); }
.lab-formula { color: var(--muted); font-size: 14.5px; }
.lab-stage { position: relative; min-height: 420px; background: radial-gradient(70% 60% at 50% 40%, rgba(255, 210, 63, calc(var(--glow, .3) * .35)), transparent 70%), #070a10; }
.lab-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#labFlow { animation-duration: var(--speed, 1.4s); }
.lab-warn { position: absolute; top: 18px; inset-inline-start: 18px; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 80, 80, .14); border: 1px solid rgba(255, 80, 80, .35); color: #ffb4b4; opacity: 0; transition: opacity .3s; }
.lab-warn.on { opacity: 1; }

/* ---------- תרגילים ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.search { flex: 1 1 260px; position: relative; }
.search input { width: 100%; padding: 14px 46px 14px 18px; padding-inline: 46px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 16px; }
.search input::placeholder { color: var(--dim); }
.search svg { position: absolute; inset-inline-start: 16px; top: 50%; translate: 0 -50%; width: 18px; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 14.5px; transition: all .2s; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.chip[aria-pressed=true] { background: var(--text); color: #06080d; border-color: var(--text); font-weight: 700; }

.ex-grid { display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.ex {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, transform .35s var(--ease), background .3s;
}
.ex::before { content: ""; position: absolute; inset: -1px; z-index: 2; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255, 210, 63, .6), transparent 40%, transparent 60%, rgba(62, 240, 255, .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.ex:hover { transform: translateY(-4px); background: var(--surface-2); }
.ex:hover::before { opacity: 1; }
/* השרטוט מתוך הדף — על נייר לבן, כמו במקור */
.ex-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; background: #fbfbf8; overflow: hidden; }
.ex-thumb img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; transition: transform .6s var(--ease); }
.ex:hover .ex-thumb img { transform: scale(1.04); }
.ex-zoom { position: absolute; inset-inline-start: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(6, 8, 13, .82); color: #fff; font-size: 13.5px; font-weight: 700; opacity: 0; transform: translateY(6px); transition: all .3s var(--ease); backdrop-filter: blur(6px); }
.ex-zoom svg { width: 16px; height: 16px; }
.ex:hover .ex-zoom, .ex-thumb:focus-visible .ex-zoom { opacity: 1; transform: none; }
.ex-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.ex-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.lvl { display: inline-flex; gap: 3px; margin-inline-start: auto; align-items: center; color: var(--dim); }
.lvl i { width: 6px; height: 14px; border-radius: 2px; background: #273042; }
.lvl i.on { background: var(--volt); box-shadow: 0 0 8px rgba(255, 210, 63, .6); }
.ex h3 { margin: 0 0 6px; font-size: 21px; line-height: 1.3; letter-spacing: -.01em; }
.ex p.src { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; }
.ex-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- צפייה בדפים ---------- */
.viewer { position: fixed; inset: 0; z-index: 100; overflow-y: auto; overscroll-behavior: contain; background: rgba(4, 6, 10, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: vin .25s var(--ease); }
@keyframes vin { from { opacity: 0; } }
.viewer-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px max(16px, calc((100% - 900px) / 2)); background: rgba(8, 11, 18, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.viewer-title { flex: 1; min-width: 0; }
.viewer-title b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-title span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-close { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.viewer-close:hover { background: rgba(255, 255, 255, .12); }
.viewer-pages { display: grid; gap: 22px; justify-items: center; padding: 26px 16px 80px; }
.viewer-pages figure { margin: 0; width: min(900px, 100%); }
.viewer-pages img { width: 100%; height: auto; background: #fff; border-radius: 10px; box-shadow: 0 30px 80px -30px #000; }
.viewer-pages figcaption { text-align: center; color: var(--dim); font-size: 13px; margin-top: 8px; }

/* ---------- מבחנים ---------- */
.exams { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.years { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 6px; }
.year-btn { text-align: start; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 16px; background: transparent; border: 1px solid transparent; font-size: 22px; font-weight: 800; color: var(--dim); transition: all .25s; }
.year-btn small { font-size: 13px; font-weight: 500; }
.year-btn:hover { color: var(--text); }
.year-btn[aria-pressed=true] { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.year-btn[aria-pressed=true] small { color: var(--volt); }

/* ---------- אודות ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: radial-gradient(80% 60% at 50% 30%, rgba(255, 210, 63, .25), transparent 70%), linear-gradient(160deg, #141b2a, #080b12);
  display: grid; place-items: center;
}
.portrait .initials { font-size: clamp(110px, 16vw, 180px); font-weight: 900; letter-spacing: -.05em; line-height: 1; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .name-plate { position: absolute; bottom: 18px; inset-inline: 18px; padding: 14px 18px; border-radius: 18px; background: rgba(8, 11, 18, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; }
.portrait .name-plate b { font-size: 19px; }
.portrait .name-plate span { color: var(--volt); font-size: 14px; }
.about-text p { font-size: 19px; color: #c5cddb; margin: 22px 0 30px; }
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.areas div { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.areas div::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--volt); transform: rotate(45deg); box-shadow: 0 0 10px var(--volt); flex: none; }

/* ---------- קורסים ---------- */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course { position: relative; padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease); }
.course:hover { transform: translateY(-6px); }
.course.featured { background: linear-gradient(180deg, rgba(255, 210, 63, .13), rgba(255, 210, 63, .02) 60%), var(--bg-2); border-color: rgba(255, 210, 63, .4); box-shadow: 0 30px 80px -40px rgba(255, 196, 0, .5); }
.course .ribbon { position: absolute; top: -12px; inset-inline-start: 28px; padding: 4px 14px; border-radius: 999px; background: var(--volt); color: #1a1300; font-size: 13px; font-weight: 800; }
.course h3 { font-size: 26px; margin: 6px 0 8px; letter-spacing: -.02em; }
.course p { color: var(--muted); margin: 0 0 22px; }
.course ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.course li { display: flex; gap: 10px; align-items: center; }
.course li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: rgba(74, 222, 128, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.course .btn { margin-top: auto; justify-content: center; }

/* ---------- יצירת קשר ---------- */
.contact {
  position: relative; overflow: hidden;
  border-radius: 40px; padding: 70px;
  background: radial-gradient(70% 90% at 100% 0%, rgba(255, 210, 63, .22), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(62, 240, 255, .16), transparent 60%), #0b0f18;
  border: 1px solid var(--line-2);
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
}
.contact h2 { font-size: clamp(36px, 5vw, 64px); }
.contact-ways { display: grid; gap: 12px; margin-top: 30px; }
.way { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); transition: all .25s; }
.way:hover { border-color: var(--line-2); transform: translateX(-4px); }
.way .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.way .ico svg { width: 22px; height: 22px; }
.way span { color: var(--muted); font-size: 13.5px; display: block; }
.way b { font-size: 18px; direction: ltr; unicode-bidi: isolate; }
.form { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: 28px; background: rgba(6, 8, 13, .55); border: 1px solid var(--line); }
.form label { font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.form input, .form select, .form textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 16px; }
.form textarea { min-height: 110px; resize: vertical; }
.form select option { background: #0b0f18; }
.form .btn { justify-content: center; margin-top: 6px; }
.form small { color: var(--dim); font-size: 13px; text-align: center; }

footer { padding: 50px 0 120px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }

/* כפתור חיוג צף */
.fab { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--volt), var(--volt-2)); color: #1a1300; box-shadow: 0 14px 40px -10px rgba(255, 196, 0, .8); transition: transform .25s var(--ease); }
.fab:hover { transform: scale(1.08) rotate(-6deg); }
.fab svg { width: 26px; height: 26px; }

/* חשיפה בגלילה */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- מובייל ---------- */
@media (max-width: 980px) {
  .hero-grid, .lab, .about, .contact, .exams { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .circuit-card { max-width: 560px; }
  .lab-controls { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .lab-stage { min-height: 320px; }
  .courses { grid-template-columns: 1fr; }
  .years { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .year-btn { flex: none; gap: 10px; }
  .contact { padding: 34px 22px; border-radius: 28px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); inset-inline: 0; flex-direction: column; padding: 10px; background: #0b0f18; border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 30px 60px -20px #000; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 17px; }
  .menu-btn { display: grid; place-items: center; }
  .nav .btn-primary { display: none; }
  .section { padding: 76px 0; }
  .ex-grid { grid-template-columns: 1fr; }
  .lab-controls { padding: 26px 20px; }
  .areas { grid-template-columns: 1fr; }
  .float-pill { font-size: 12.5px; padding: 8px 10px; }
  .float-pill .ico { width: 28px; height: 28px; }
  .float-pill b { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- דילוג לתוכן (נגישות) ---------- */
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; padding: 10px 18px; border-radius: 12px; background: var(--volt); color: #1a1300; font-weight: 800; }
.skip:focus { top: 16px; }

/* ---------- עמודי מדיניות ---------- */
.doc { width: min(760px, 100% - 32px); margin: 40px auto 80px; }
.doc .back { display: inline-flex; gap: 8px; color: var(--muted); margin-bottom: 26px; }
.doc .back:hover { color: var(--text); }
.doc h1 { font-size: clamp(34px, 6vw, 52px); margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 34px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; letter-spacing: -.01em; }
.doc p, .doc li { color: #c5cddb; }
.doc ul { padding-inline-start: 22px; display: grid; gap: 6px; }
.doc a { color: var(--arc); text-decoration: underline; text-underline-offset: 3px; }
.doc .contact-box { padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); display: grid; gap: 4px; }
.doc .contact-box b { direction: ltr; unicode-bidi: isolate; }
footer .wrap > span a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
footer .wrap > span a:hover { color: var(--text); }
.credit { width: 100%; text-align: center; font-size: 13px; }
.maker { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; font-size: 13px; }
.maker-logo { display: inline-flex; padding: 4px 10px; border-radius: 12px; background: #fff; transition: transform .25s var(--ease); }
.maker-logo:hover { transform: translateY(-2px); }
.maker-logo img { height: 34px; width: auto; }
.maker-wa { display: inline-flex; align-items: center; gap: 6px; color: #25d366; font-weight: 700; }
.maker-wa svg { width: 16px; height: 16px; }
.maker-wa:hover { text-decoration: underline; text-underline-offset: 3px; }
