/* ==========================================================
   תוכנות מבית מכון תורת מלך — עיצוב ראשי
   ========================================================== */

:root {
  --navy-950: #08131f;
  --navy-900: #0d1b2c;
  --navy-800: #13263b;
  --navy-700: #1d3a55;
  --navy-600: #2a4d6e;
  --gold-600: #b08a35;
  --gold-500: #c9a24a;
  --gold-400: #dcbc6c;
  --gold-200: #f1e2b8;
  --parchment: #f7f2e6;
  --paper: #fffdf8;
  --line: #e7dfcc;
  --ink: #17212e;
  --muted: #5d6878;
  --white: #ffffff;

  /* צבעי מוצרים */
  --sefer: #17a2af;
  --mechadesh: #25566e;
  --azkir: #3d77c2;
  --sochen: #b08a35;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 44, .06), 0 2px 8px rgba(13, 27, 44, .05);
  --shadow: 0 10px 30px -12px rgba(13, 27, 44, .25);
  --shadow-lg: 0 30px 60px -20px rgba(13, 27, 44, .35);

  --font-display: "Frank Ruhl Libre", "David Libre", serif;
  --font-body: "Heebo", "Assistant", system-ui, sans-serif;

  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  direction: rtl;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  body { font-size: 16px; }
}

.skip-link {
  position: fixed; inset-inline-start: 8px; top: 8px; transform: translateY(-200%);
  background: var(--gold-500); color: var(--navy-900); padding: 8px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { transform: none; }

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

/* ---------- כותרת עליונה ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.site-header.is-light {
  background: rgba(255, 253, 248, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-color: var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); transition: color .3s; }
.brand-text span { font-size: .78rem; color: var(--gold-400); letter-spacing: .02em; }
.is-solid .brand-text strong,
.is-light .brand-text strong { color: var(--navy-900); }
.is-solid .brand-text span,
.is-light .brand-text span { color: var(--gold-600); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: .95rem; font-weight: 500;
  color: rgba(255, 255, 255, .85); transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.is-solid .nav a,
.is-light .nav a { color: var(--navy-700); }
.is-solid .nav a:hover,
.is-light .nav a:hover { background: rgba(13, 27, 44, .06); color: var(--navy-900); }
.nav a[aria-current="page"] { color: var(--gold-500) !important; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25);
  background: transparent; color: var(--white); align-items: center; justify-content: center;
}
.is-solid .menu-toggle, .is-light .menu-toggle { color: var(--navy-900); border-color: var(--line); }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 116px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); padding: 12px 16px 20px; gap: 2px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { color: var(--navy-800) !important; padding: 12px 14px; border-radius: 12px; }
  .header-actions .btn-donate span { display: none; }
}

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 8px 24px -8px rgba(201, 162, 74, .7), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-gold:hover { box-shadow: 0 14px 30px -10px rgba(201, 162, 74, .85), inset 0 1px 0 rgba(255,255,255,.35); }

.btn-navy { background: var(--navy-800); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-navy:hover { background: var(--navy-700); box-shadow: var(--shadow); }

.btn-ghost-light { border-color: rgba(255,255,255,.3); color: var(--white); background: rgba(255,255,255,.04); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }

.btn-outline { border-color: var(--line); color: var(--navy-800); background: var(--white); }
.btn-outline:hover { border-color: var(--gold-500); color: var(--navy-900); }

.btn-donate {
  padding: 10px 18px; font-size: .95rem;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-950);
  box-shadow: 0 6px 18px -8px rgba(201,162,74,.8);
}
.btn-donate svg { width: 18px; height: 18px; }

.btn-lg { padding: 17px 32px; font-size: 1.08rem; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(201,162,74,.22), transparent 60%),
    linear-gradient(to top, var(--navy-950) 0%, rgba(8,19,31,0) 38%),
    linear-gradient(to left, rgba(8,19,31,.96) 0%, rgba(8,19,31,.9) 34%, rgba(8,19,31,.62) 62%, rgba(8,19,31,.5) 100%),
    url("../img/hero-bg.webp") center 35% / cover no-repeat,
    var(--navy-950);
  color: var(--white);
  padding: 200px 0 150px;
}
@media (max-width: 920px) {
  .hero {
    background:
      linear-gradient(to top, var(--navy-950) 0%, rgba(8,19,31,.82) 45%, rgba(8,19,31,.72) 100%),
      url("../img/hero-bg-sm.webp") center / cover no-repeat,
      var(--navy-950);
  }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23c9a24a' stroke-opacity='.10' stroke-width='1'%3E%3Cpath d='M60 6 L114 60 L60 114 L6 60 Z'/%3E%3Cpath d='M60 24 L96 60 L60 96 L24 60 Z'/%3E%3Ccircle cx='60' cy='60' r='6'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px;
  background: rgba(201,162,74,.12); border: 1px solid rgba(201,162,74,.35); color: var(--gold-200);
  font-size: .9rem; font-weight: 500; margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(220,188,108,.2); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 900; margin-bottom: 22px; }
.hero h1 .gold {
  background: linear-gradient(120deg, var(--gold-200), var(--gold-400) 40%, var(--gold-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: rgba(255,255,255,.78); max-width: 34em; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-emblem { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hero-emblem .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(201,162,74,.25);
}
.hero-emblem .ring:nth-child(2) { inset: 9%; border-style: dashed; border-color: rgba(201,162,74,.2); animation: spin 80s linear infinite; }
.hero-emblem .ring:nth-child(3) { inset: 19%; background: radial-gradient(circle, rgba(8,19,31,.85) 35%, rgba(8,19,31,.45) 70%, transparent 100%); border-color: rgba(201,162,74,.4); }
.hero-emblem img { position: relative; width: 52%; filter: drop-shadow(0 20px 40px rgba(201,162,74,.35)); animation: float 7s ease-in-out infinite; }
.orbit {
  position: absolute; width: 76px; height: 76px; border-radius: 22px; background: var(--white);
  display: grid; place-items: center; padding: 10px; box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease);
}
.orbit img { width: 100%; height: 100%; object-fit: contain; filter: none; animation: none; }
.orbit:hover { transform: scale(1.08) !important; }
.orbit.o1 { top: 4%; inset-inline-end: 14%; animation: bob 6s ease-in-out infinite; }
.orbit.o2 { top: 38%; inset-inline-start: -2%; animation: bob 7s ease-in-out infinite .6s; }
.orbit.o3 { bottom: 4%; inset-inline-end: 18%; animation: bob 6.5s ease-in-out infinite 1.2s; }
.orbit.o4 { top: 42%; inset-inline-end: -3%; animation: bob 7.5s ease-in-out infinite 1.8s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-stats {
  margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden;
}
.hero-stats { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-stats div { background: rgba(8,19,31,.7); padding: 22px 20px; text-align: center; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--gold-400); line-height: 1.1; }
.hero-stats span { font-size: .9rem; color: rgba(255,255,255,.65); }

@media (max-width: 920px) {
  .hero { padding: 160px 0 110px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-emblem { max-width: 380px; margin-inline: auto; width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
}
@media (max-width: 480px) {
  .orbit { width: 58px; height: 58px; border-radius: 16px; padding: 7px; }
}

/* ---------- סקשנים ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--parchment); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; color: var(--gold-600); font-weight: 600;
  font-size: .92rem; letter-spacing: .04em; margin-bottom: 14px;
}
.kicker::before, .kicker::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--navy-900); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 640px) { .section { padding: 76px 0; } .section-head { margin-bottom: 40px; } }

/* ---------- כרטיסי מוצרים ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }

.product-card {
  --accent: var(--navy-700);
  position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.product-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(500px 220px at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.product-card::after {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.product-card:hover::before { opacity: 1; }
.product-card:hover::after { transform: scaleY(1); }

.product-card .logo-box {
  aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center; padding: 18px;
  background: linear-gradient(160deg, #fff, var(--parchment)); border: 1px solid var(--line);
}
.product-card .logo-box img { max-height: 100%; object-fit: contain; }
.product-card h3 { font-size: 1.7rem; margin-bottom: 4px; color: var(--navy-900); }
.product-card .tagline { color: var(--accent); font-weight: 600; font-size: .98rem; margin-bottom: 10px; }
.product-card p.desc { color: var(--muted); font-size: .98rem; margin-bottom: 18px; }
.product-card .card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.product-card .btn { padding: 11px 20px; font-size: .95rem; }

.badge {
  position: absolute; top: 20px; inset-inline-end: 20px; padding: 5px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 600;
}
.badge-live { background: #e7f6ee; color: #1b7a48; }
.badge-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22a35d; margin-inline-end: 6px; vertical-align: middle; }
.badge-soon { background: var(--gold-200); color: #7a5b17; }

.product-card.sefer { --accent: var(--sefer); }
.product-card.mechadesh { --accent: var(--mechadesh); }
.product-card.azkir { --accent: var(--azkir); }
.product-card.sochen { --accent: var(--sochen); }

@media (max-width: 520px) {
  .product-card { grid-template-columns: 1fr; padding: 26px 22px; text-align: center; }
  .product-card .logo-box { width: 130px; margin-inline: auto; }
  .product-card .card-actions { justify-content: center; }
}

/* ---------- ערכים / יתרונות ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value {
  padding: 32px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value .icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--gold-400);
}
.value .icon svg { width: 26px; height: 26px; }
.value h3 { font-size: 1.3rem; color: var(--navy-900); }
.value p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* ---------- תרומה ---------- */
.donate-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); padding: 64px 56px; color: var(--white);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(201,162,74,.35), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.donate-band::after {
  content: ""; position: absolute; inset-inline-end: -60px; bottom: -80px; width: 320px; height: 320px; z-index: -1;
  background: url("../logos/torat-melech.png") center/contain no-repeat; opacity: .07;
}
.donate-band h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.donate-band p { color: rgba(255,255,255,.75); margin: 0; max-width: 40em; }
@media (max-width: 760px) {
  .donate-band { grid-template-columns: 1fr; padding: 44px 26px; text-align: center; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 26px;
  transition: box-shadow .3s, border-color .3s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold-500) 45%, var(--line)); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 1.08rem; color: var(--navy-900);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--parchment); color: var(--gold-600); font-size: 1.3rem; font-weight: 400; transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: 22px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- יצירת קשר ---------- */
.contact-card {
  max-width: 760px; margin-inline: auto; text-align: center; padding: 52px 32px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.contact-card .mail {
  display: inline-flex; align-items: center; gap: 12px; margin: 10px 0 24px; padding: 14px 24px; border-radius: 999px;
  background: var(--parchment); border: 1px dashed var(--gold-500); font-weight: 600; color: var(--navy-800);
  direction: ltr; font-size: 1.05rem; word-break: break-all;
}
.contact-card .mail svg { width: 22px; height: 22px; color: var(--gold-600); flex: none; }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- פוטר ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 56px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); display: block; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .9rem;
}
.footer-bottom .ltr { direction: ltr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ==========================================================
   דף מוצר
   ========================================================== */
.product-hero {
  --accent: var(--navy-700);
  position: relative; overflow: hidden; isolation: isolate;
  padding: 190px 0 90px;
  background:
    radial-gradient(800px 420px at 90% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(201,162,74,.14), transparent 60%),
    linear-gradient(180deg, var(--parchment), var(--paper));
  border-bottom: 1px solid var(--line);
}
.product-hero.sefer { --accent: var(--sefer); }
.product-hero.mechadesh { --accent: var(--mechadesh); }
.product-hero.azkir { --accent: var(--azkir); }
.product-hero.sochen { --accent: var(--sochen); }

.product-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--gold-600); }
.breadcrumbs span { margin-inline: 8px; opacity: .5; }
.product-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); color: var(--navy-900); margin-bottom: 8px; }
.product-hero .tagline { font-size: 1.3rem; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.product-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-bottom: 30px; }
.product-hero .meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: .92rem; color: var(--muted); }
.product-hero .meta span { display: inline-flex; align-items: center; gap: 7px; }
.product-hero .meta svg { width: 17px; height: 17px; color: var(--accent); }

.product-logo-stage {
  position: relative; aspect-ratio: 1; max-width: 420px; margin-inline: auto; width: 100%;
  display: grid; place-items: center; border-radius: 40px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.product-logo-stage::before {
  content: ""; position: absolute; inset: -14px; border-radius: 52px; z-index: -1;
  background: conic-gradient(from 180deg, var(--accent), var(--gold-400), var(--accent));
  opacity: .25; filter: blur(22px);
}
.product-logo-stage img { width: 66%; max-height: 72%; object-fit: contain; }

@media (max-width: 920px) {
  .product-hero { padding: 160px 0 64px; }
  .product-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .product-hero .lead { margin-inline: auto; }
  .product-hero .meta, .product-hero .hero-cta { justify-content: center; }
  .product-logo-stage { max-width: 300px; }
}

/* רשת תכונות */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  --accent: var(--navy-700);
  padding: 28px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.feature .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 12%, white); color: var(--accent);
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; line-height: 1.65; }
.theme-sefer .feature { --accent: var(--sefer); }
.theme-mechadesh .feature { --accent: var(--mechadesh); }
.theme-azkir .feature { --accent: var(--azkir); }
.theme-sochen .feature { --accent: var(--sochen); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* גלריה */
.gallery-main {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.gallery-main .chrome {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #eef0f3; border-bottom: 1px solid #dde1e6;
}
.gallery-main .chrome i { width: 11px; height: 11px; border-radius: 50%; background: #d4d8de; }
.gallery-main .chrome span { margin-inline-start: auto; font-size: .82rem; color: #6b7480; }
.gallery-main button.view { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-main img { width: 100%; height: auto; aspect-ratio: 1920 / 1032; object-fit: cover; transition: opacity .3s; }
.gallery-caption { text-align: center; color: var(--muted); margin-top: 18px; font-weight: 500; min-height: 1.7em; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(var(--cols, 8), 1fr); gap: 12px; margin-top: 18px; }
.gallery-thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: none;
  opacity: .6; transition: opacity .2s, border-color .2s, transform .2s;
}
.gallery-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.gallery-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gallery-accent, var(--sefer)); }
.theme-mechadesh .gallery-thumbs { --gallery-accent: var(--mechadesh); }
.gallery-thumbs img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .gallery-thumbs { grid-template-columns: repeat(var(--cols-sm, 4), 1fr); gap: 8px; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8,19,31,.92); display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox.is-open { display: flex; animation: fade .25s; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox .close {
  position: absolute; top: 18px; inset-inline-start: 18px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 1.6rem; line-height: 1;
}
@keyframes fade { from { opacity: 0; } }

/* הורדות */
.downloads { display: grid; gap: 18px; }
.download-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  padding: 24px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: box-shadow .3s, border-color .3s;
}
.download-item:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold-500) 40%, var(--line)); }
.download-item.primary {
  border: 1px solid color-mix(in srgb, var(--gold-500) 55%, var(--line));
  background: linear-gradient(135deg, #fff, #fdf8ec);
  box-shadow: var(--shadow);
}
.download-item .file-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold-400);
}
.download-item .file-icon svg { width: 26px; height: 26px; }
.download-item h3 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 700; margin: 0 0 2px; color: var(--navy-900); }
.download-item .tag {
  display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: var(--parchment); color: var(--gold-600); margin-inline-start: 8px; vertical-align: middle;
}
.download-item .tag.required { background: #fdecec; color: #b03a3a; }
.download-item p { margin: 0; color: var(--muted); font-size: .94rem; }
.download-item .file-meta { font-size: .84rem; color: var(--muted); margin-top: 4px; direction: rtl; }
.download-item .file-meta b { font-weight: 600; color: var(--navy-700); }
@media (max-width: 680px) {
  .download-item { grid-template-columns: 1fr; text-align: center; padding: 24px 20px; }
  .download-item .file-icon { margin-inline: auto; }
  .download-item .btn { width: 100%; }
}

.download-group-title {
  display: flex; align-items: center; gap: 14px; margin: 48px 0 18px; font-family: var(--font-display);
  font-size: 1.5rem; color: var(--navy-900);
}
.download-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.download-group-title:first-child { margin-top: 0; }

/* צעדים */
.steps { counter-reset: step; display: grid; gap: 16px; max-width: 860px; margin-inline: auto; }
.step {
  position: relative; padding: 24px 28px 24px 28px; padding-inline-start: 86px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 24px; top: 22px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-950);
}
.step h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; color: var(--navy-900); }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }

.callout {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius);
  background: #fff8e6; border: 1px solid #f0dca6; color: #6b5420; max-width: 860px; margin: 28px auto 0;
}
.callout svg { width: 24px; height: 24px; flex: none; color: var(--gold-600); margin-top: 3px; }
.callout p { margin: 0; }
.callout strong { color: #4f3d12; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--navy-900); }
.split p { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-200); color: #7a5b17; font-size: .8rem; font-weight: 700; margin-top: 3px;
}

.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mode {
  padding: 22px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.mode:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mode .emoji { font-size: 2rem; line-height: 1; margin-bottom: 10px; display: block; }
.mode h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; color: var(--navy-900); }
.mode p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 960px) { .mode-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mode-grid { grid-template-columns: 1fr; } }

.soon-box {
  max-width: 760px; margin-inline: auto; text-align: center; padding: 48px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff, #fdf8ec); border: 1px dashed var(--gold-500);
}
.soon-box h2 { color: var(--navy-900); }
.soon-box p { color: var(--muted); }

/* ---------- חלון תרומה ---------- */
.modal {
  position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(8,19,31,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; animation: fade .25s; }
.modal-card {
  position: relative; width: 100%; max-width: 520px; background: var(--paper); border-radius: var(--radius-lg);
  padding: 44px 36px 36px; text-align: center; box-shadow: var(--shadow-lg); animation: pop .35s var(--ease);
}
.modal-card img { width: 84px; margin: 0 auto 14px; }
.modal-card h2 { color: var(--navy-900); font-size: 1.9rem; }
.modal-card p { color: var(--muted); }
.modal-card .close {
  position: absolute; top: 14px; inset-inline-start: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--parchment); color: var(--navy-800); font-size: 1.4rem; line-height: 1;
}
.modal-card .btn { width: 100%; margin-top: 8px; }
@keyframes pop { from { transform: translateY(16px) scale(.97); opacity: 0; } }

/* ---------- אנימציית הופעה ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 300;
  background: var(--navy-900); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: .95rem;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); box-shadow: var(--shadow-lg);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%); }

@media (max-width: 480px) {
  .orbit.o2 { inset-inline-start: 2%; }
  .orbit.o4 { inset-inline-end: 2%; }
  .split .features { grid-template-columns: 1fr !important; }
}

/* ---------- פס פרסומת עליון ---------- */
.promo-ribbon {
  display: block; height: 40px; color: var(--white); overflow: hidden;
  background: linear-gradient(90deg, #3a2a0e, var(--navy-950) 30%, var(--navy-950) 70%, #3a2a0e);
  border-bottom: 1px solid rgba(201,162,74,.35); font-size: .9rem;
}
.promo-ribbon-inner { height: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; white-space: nowrap; }
.promo-ribbon img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold-400); flex: none; }
.promo-tag { background: var(--gold-500); color: var(--navy-950); font-weight: 700; font-size: .72rem; padding: 2px 9px; border-radius: 999px; flex: none; }
.promo-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.promo-text strong { color: var(--gold-200); font-weight: 600; }
.promo-extra { color: rgba(255,255,255,.7); }
.promo-cta { color: var(--gold-400); font-weight: 700; flex: none; transition: transform .2s; }
.promo-ribbon:hover .promo-cta { transform: translateX(-4px); }
@media (max-width: 760px) { .promo-extra { display: none; } }
@media (max-width: 420px) { .promo-tag { display: none; } .promo-ribbon { font-size: .82rem; } }

/* ---------- באנר הקורס בדף הבית ---------- */
.course-section { position: relative; z-index: 2; margin-top: -70px; padding-bottom: 20px; }
.course-banner {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.35fr 1fr; align-items: stretch; min-height: 300px;
  border-radius: var(--radius-lg); color: var(--white);
  background: linear-gradient(120deg, #2b1f0b, var(--navy-950) 55%);
  border: 1px solid rgba(201,162,74,.35); box-shadow: var(--shadow-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.course-banner:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -24px rgba(13,27,44,.5); }
.course-banner .content { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.course-banner .kicker { color: var(--gold-400); margin-bottom: 10px; }
.course-banner h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 12px; }
.course-banner h2 .gold { color: var(--gold-400); }
.course-banner p { color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 32em; margin-bottom: 20px; }
.course-banner .perks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 26px; padding: 0; list-style: none; font-size: .93rem; color: var(--gold-200); }
.course-banner .perks li::before { content: "✦"; color: var(--gold-500); margin-inline-end: 7px; }
.course-banner .photo { position: relative; min-height: 260px; }
.course-banner .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.course-banner .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(8,19,31,1) 0%, rgba(8,19,31,.35) 35%, rgba(8,19,31,0) 70%);
}
@media (max-width: 860px) {
  .course-section { margin-top: -50px; }
  .course-banner { grid-template-columns: 1fr; }
  .course-banner .photo { order: -1; min-height: 240px; }
  .course-banner .photo::after { background: linear-gradient(to top, rgba(8,19,31,1) 0%, rgba(8,19,31,0) 60%); }
  .course-banner .content { padding: 8px 24px 32px; text-align: center; align-items: center; }
  .course-banner .perks { justify-content: center; }
}
.promo-short { display: none; }
@media (max-width: 520px) { .promo-long { display: none; } .promo-short { display: inline; } }

.theme-sochen .gallery-thumbs { --gallery-accent: var(--sochen); }
.mode-grid.pipeline { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) { .mode-grid.pipeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .mode-grid.pipeline { grid-template-columns: repeat(2, 1fr); } }

/* ---------- פרטי העברה בנקאית ---------- */
.bank-card { text-align: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 18px 6px; margin-top: 6px; }
.bank-title { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy-900); padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.bank-title svg { width: 22px; height: 22px; color: var(--gold-600); }
.bank-row { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.bank-row:last-child { border-bottom: 0; }
.bank-label { color: var(--muted); font-size: .9rem; }
.bank-value { font-weight: 700; color: var(--navy-900); font-size: 1.08rem; letter-spacing: .02em; }
.bank-copy { border: 1px solid var(--line); background: var(--parchment); color: var(--navy-800); border-radius: 999px; padding: 5px 14px; font-size: .82rem; font-weight: 600; transition: border-color .2s, background .2s; }
.bank-copy:hover { border-color: var(--gold-500); background: var(--gold-200); }
.bank-note { font-size: .88rem; margin: 16px 0 0; }
.bank-note a { color: var(--gold-600); font-weight: 600; }

/* פס עליון: קישור + טלפון */
.promo-link { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.promo-phone {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 3px 12px; border-radius: 999px; font-weight: 700; color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-200), var(--gold-400));
  transition: transform .2s, box-shadow .2s;
}
.promo-phone svg { width: 15px; height: 15px; }
.promo-phone:hover { transform: translateY(-1px); box-shadow: 0 4px 14px -4px rgba(220,188,108,.8); }
@media (max-width: 520px) {
  .promo-ribbon-inner { gap: 8px; }
  .promo-cta { display: none; }
  .promo-phone { padding: 2px 10px; }
}
.theme-azkir .gallery-thumbs { --gallery-accent: var(--azkir); }
