@font-face { font-family: "Kidush"; src: url("assets/FbKidush-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Kidush"; src: url("assets/FbKidush-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "StamAri"; src: url("assets/StamAri.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "StamAriWide"; src: url("assets/StamAriWide.ttf") format("truetype"); font-display: block; }

/* צבעי הלוגו / חתימת המייל: נחושת, חום עמוק וזהב */
:root {
  --parch: #F6EEDC;
  --parch-2: #ECDDBD;
  --parch-edge: #D9C79C;
  --ink: #1A120C;
  --text: #2E2016;
  --muted: #6E5A48;
  --navy: #3A1C0B;      /* חום עמוק (שם המשתנה נשמר לתאימות) */
  --navy-2: #5A2A0A;
  --navy-line: #74401C;
  --gold: #B88A2C;
  --gold-2: #E8C878;
  --gold-deep: #8A5A14;
  --copper: #8B4A1C;
  --copper-2: #A85A28;
  --white: #FFFDF8;
  --radius: 14px;
  --head: "Kidush", "Frank Ruehl CLM", "David", serif;
  --body: "Rubik", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--parch); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--ink); line-height: 1.2; margin: 0; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; right: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { right: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- סרגל עליון ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px;
  display: flex; align-items: center; gap: 24px; padding: 0 28px;
  background: rgba(58, 28, 11, 0); transition: background .35s, box-shadow .35s;
}
.topbar.scrolled { background: rgba(58, 28, 11, .94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(232, 200, 120, .25); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--head); font-size: 22px; color: var(--gold-2); }
.brand-text small { font-size: 12px; color: #E9D9BC; letter-spacing: .04em; }
.mainnav { display: flex; gap: 4px; margin-inline-start: 12px; }
.mainnav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; color: #F3E6CC; }
.mainnav a:hover { background: rgba(232, 200, 120, .16); }
.access { margin-inline-start: auto; display: flex; gap: 8px; }
.btn-login, .btn-admin {
  text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  white-space: nowrap; transition: transform .2s, background .2s, color .2s;
}
.btn-login { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--navy); }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.btn-admin { border: 1.5px solid var(--gold-2); color: var(--gold-2); }
.btn-admin:hover { background: var(--gold-2); color: var(--navy); }

/* ---------- כפתורים ---------- */
.btn-gold, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px;
  border-radius: 12px; font: 600 17px var(--body); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); box-shadow: 0 6px 18px rgba(138, 100, 24, .25); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(138, 100, 24, .32); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(27, 22, 17, .35); }
.btn-ghost:hover { background: rgba(27, 22, 17, .06); }

/* ---------- סצנת הקולמוס ---------- */
.scribe { position: relative; height: 1000vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: center; padding: 96px 16px 40px;
  background:
    radial-gradient(ellipse at 50% 38%, #A85A28 0%, #7E3D16 42%, #4A220B 78%, #2E1406 100%);
}
.stage::before { /* מרקם עור, כמו המדליון של הלוגו */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .18 0 0 0 0 .06 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stage::after { /* מסגרת זהב דקה */
  content: ""; position: absolute; inset: 84px 18px 18px; pointer-events: none;
  border: 1px solid rgba(232, 200, 120, .35); border-radius: 22px;
  box-shadow: inset 0 0 0 5px rgba(232, 200, 120, .06);
}
.sheet {
  position: relative; z-index: 1; width: min(1060px, 100%); margin-top: 48px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 70px 28px 30px; border-radius: 6px;
  background:
    radial-gradient(ellipse at 50% 40%, #FFF9EC 0%, #F6EEDC 55%, #E9D8B4 100%);
  box-shadow: 0 30px 80px rgba(20, 8, 2, .55), 0 0 0 1px rgba(184, 138, 44, .5), inset 0 0 60px rgba(150, 105, 50, .25);
}
.sheet::before { /* מרקם קלף */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .45; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .22 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-logo {
  position: absolute; top: -64px; left: 50%; transform: translateX(-50%);
  width: 124px; height: auto; filter: drop-shadow(0 10px 18px rgba(20, 8, 2, .45));
}
.kicker { margin: 0; font-size: 14px; letter-spacing: .08em; color: var(--muted); }
.word-wrap { width: 100%; max-width: 980px; position: relative; }
#scribe-svg { display: block; width: 100%; height: auto; overflow: visible; }
.after { opacity: 0; transform: translateY(18px); transition: none; max-width: 640px; }
.after h1 { font-size: clamp(30px, 4.2vw, 50px); margin-top: 8px; }
.after p { color: var(--muted); font-size: 18px; margin: 12px auto 22px; }
.after-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.after.off { pointer-events: none; visibility: hidden; }
.scroll-hint {
  position: absolute; z-index: 2; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px; pointer-events: none;
  text-align: center; padding: 0 24px;
}
.scroll-hint strong { font-family: var(--head); font-weight: 700; font-size: clamp(38px, 6.2vw, 84px); color: var(--ink); line-height: 1.12;
  max-width: 14ch; text-shadow: 0 2px 0 rgba(255, 249, 236, .8); }
.scroll-hint span { font-size: clamp(17px, 1.7vw, 22px); color: var(--gold-deep); font-weight: 600; letter-spacing: .02em; animation: breathe 2.4s ease-in-out infinite; }
.scroll-hint i { margin-top: 8px; width: 24px; height: 38px; border: 1.5px solid var(--gold-deep); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-deep); animation: wheel 1.6s infinite; }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- כותרות מקטע ---------- */
section { position: relative; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 6px 0 12px; }
.sec-head p { color: var(--muted); margin: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--gold-deep); }
.eyebrow::before, .eyebrow::after { content: "✦"; margin: 0 8px; font-size: 10px; color: var(--gold); }
.sec-head.light h2 { color: #fff; }
.sec-head.light .eyebrow { color: var(--gold-2); }

/* ---------- מה מחפשים ---------- */
.seek { padding: 110px 0 90px; background: linear-gradient(180deg, var(--parch), var(--white) 40%); }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tile {
  font: inherit; text-align: right; cursor: pointer; color: var(--text);
  display: flex; flex-direction: column; gap: 6px; padding: 24px 20px 20px;
  background: #fff; border: 1px solid #E6DCC6; border-radius: var(--radius);
  box-shadow: 0 2px 0 rgba(139, 110, 60, .06);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tile:hover, .tile:focus-visible { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(60, 40, 10, .12); border-color: var(--gold); }
.ico { width: 46px; height: 46px; fill: none; stroke: var(--copper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.t-name { font-family: var(--head); font-size: 26px; font-weight: 700; color: var(--ink); }
.t-desc { font-size: 14px; color: var(--muted); min-height: 44px; }
.t-stock { font-size: 14px; color: #22543D; margin-top: 4px; }
.t-stock b { font-size: 20px; }
.t-go { margin-top: auto; padding-top: 14px; border-top: 1px solid #EFE7D6; font-size: 14px; font-weight: 600; color: var(--gold-deep); }
.t-go::after { content: " ←"; transition: margin .2s; }
.tile:hover .t-go::after { margin-inline-start: 6px; }
.demo-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; }

/* ---------- אודות ---------- */
.about { padding: 100px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-text h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 6px 0 18px; }
.about-text p { font-size: 18px; color: #4A4236; }
.pillars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pillars li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; background: var(--parch); border-radius: var(--radius); border: 1px solid #E6DCC6; }
.p-num { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold-2); font-family: var(--head); font-size: 24px; font-weight: 700; }
.pillars h3 { font-size: 22px; }
.pillars p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- פיקוח ---------- */
.quality { padding: 100px 0; background: radial-gradient(ellipse at 50% 0%, var(--copper), var(--navy-2) 45%, var(--navy) 85%); color: #F0E2C8; }
.gates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: g; }
.gates li { position: relative; padding: 28px 22px; border: 1px solid var(--navy-line); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.gates li span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-2); font-weight: 700; margin-bottom: 14px; }
.gates h3 { color: #fff; font-size: 23px; margin-bottom: 6px; }
.gates p { margin: 0; font-size: 15px; color: #D9C3A0; }
.counters { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; border-top: 1px solid var(--navy-line); padding-top: 44px; }
.counters b { display: block; font-family: var(--head); font-size: clamp(44px, 6vw, 68px); color: var(--gold-2); line-height: 1; }
.counters span { font-size: 15px; color: #D9C3A0; }

/* ---------- איך זה עובד ---------- */
.steps { padding: 100px 0; background: var(--parch); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.flow li { counter-increment: s; position: relative; padding: 30px 26px 26px; background: var(--white); border-radius: var(--radius); border: 1px solid #E6DCC6; }
.flow li::before { content: counter(s, hebrew); font-family: var(--head); font-weight: 700; font-size: 54px; line-height: 1; color: var(--gold); display: block; margin-bottom: 10px; }
.flow h3 { font-size: 24px; }
.flow p { margin: 6px 0 0; color: var(--muted); }

/* ---------- טופס ---------- */
.contact { padding: 100px 0 110px; background: linear-gradient(180deg, var(--parch), var(--parch-2)); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact-intro h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 6px 0 14px; }
.contact-intro p { color: var(--muted); font-size: 18px; }
.form-card { background: var(--white); border-radius: 18px; padding: 32px; box-shadow: 0 24px 60px rgba(60, 40, 10, .12); border: 1px solid #E6DCC6; }
#inquiry { display: flex; flex-direction: column; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field em { color: #B03A2E; font-style: normal; }
.field input, .field select, .field textarea {
  font: 16px var(--body); color: var(--text); padding: 12px 14px; min-height: 48px; border-radius: 10px;
  border: 1.5px solid #DCCFB2; background: #FFFEFB; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 160, 74, .2); }
.field.invalid input { border-color: #B03A2E; }
.field select.flash { animation: flash 1.2s; }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 160, 74, 0); } 30% { box-shadow: 0 0 0 6px rgba(201, 160, 74, .45); } }
.form-error { margin: 0; color: #B03A2E; font-size: 15px; }
.btn-submit { width: 100%; margin-top: 4px; }
.btn-submit[disabled] { opacity: .6; cursor: wait; }
.success { text-align: center; padding: 30px 10px; outline: none; }
.success svg { width: 96px; height: 96px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.success circle { stroke: #2F7D5B; stroke-width: 3; stroke-dasharray: 214; stroke-dashoffset: 214; animation: draw .7s ease-out forwards; }
.success path { stroke: #2F7D5B; stroke-width: 5; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s .55s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { font-size: 30px; margin: 14px 0 6px; }
.success p { color: var(--muted); margin: 0 0 20px; }

/* ---------- פוטר ---------- */
.footer { background: var(--navy); color: #D9C3A0; padding: 40px 0; }
.foot-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 64px; height: 64px; object-fit: contain; }
.foot-brand b { display: block; color: #fff; font-family: var(--head); font-size: 20px; }
.foot-brand span { font-size: 14px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: var(--gold-2); }

/* ---------- הופעה בגלילה ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.tiles .reveal:nth-child(2), .gates .reveal:nth-child(2), .flow .reveal:nth-child(2), .pillars .reveal:nth-child(2) { transition-delay: .08s; }
.tiles .reveal:nth-child(3), .gates .reveal:nth-child(3), .flow .reveal:nth-child(3), .pillars .reveal:nth-child(3) { transition-delay: .16s; }
.tiles .reveal:nth-child(4), .gates .reveal:nth-child(4) { transition-delay: .24s; }
.tiles .reveal:nth-child(5) { transition-delay: .32s; }

/* ---------- רספונסיבי ---------- */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mainnav { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar { height: 64px; padding: 0 14px; gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text small { display: none; }
  .brand-text b { font-size: 19px; }
  .btn-login, .btn-admin { padding: 7px 11px; font-size: 13px; }
  .wrap { padding: 0 16px; }
  .scribe { height: 800vh; }
  .stage { padding: 80px 10px 24px; }
  .stage::after { inset: 72px 6px 8px; border-radius: 14px; }
  .sheet { margin-top: 40px; padding: 52px 8px 22px; }
  .hero-logo { width: 88px; top: -46px; }
  .after p { font-size: 16px; margin: 8px auto 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile { padding: 18px 14px 14px; }
  .t-name { font-size: 22px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .gates, .flow { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr; gap: 28px; }
  .row { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .seek, .about, .quality, .steps, .contact { padding: 72px 0; }
}
@media (max-width: 400px) {
  .brand-text { display: none; }
}

/* ---------- סמן עכבר בצורת נוצת כתיבה (קצה הנוצה = נקודת הלחיצה) ---------- */
html, body, body *:not(input):not(textarea):not(select) {
  cursor: url("assets/quill-cursor.png") 3 44, auto !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scribe { height: auto; }
  .stage { position: relative; height: auto; min-height: 100vh; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint { display: none; }
}

/* ---------- הלוגו החדש של האיגוד ---------- */
.brand .brand-logo { height: 72px; margin: -6px 0; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.hero-logo { width: 132px !important; height: 132px !important; object-fit: contain; padding: 14px; box-sizing: border-box;
  top: -70px !important; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #FFFBF2 0%, #F6EEDC 70%, #EADBB8 100%);
  box-shadow: 0 10px 24px rgba(20, 8, 2, .45), 0 0 0 3px #B88A2C, 0 0 0 6px rgba(246, 238, 220, .35); filter: none !important; }
.foot-brand img { width: auto !important; height: 84px !important; }
@media (max-width: 720px) {
  .brand .brand-logo { height: 42px; }
  .hero-logo { width: 104px !important; height: 104px !important; top: -56px !important; padding: 11px; }
  .foot-brand img { height: 68px !important; }
}

/* ---------- המשפט שצף אחרי גימיק הכתיבה (לבד, בגדול) ---------- */
.after-zone { position: relative; width: 100%; display: flex; justify-content: center; }
.scribe-lead {
  position: absolute; inset: 0; margin: 0; z-index: 2; pointer-events: none; opacity: 0;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 4%;
  font-family: var(--head); font-weight: 700; font-size: clamp(26px, 3.6vw, 50px); line-height: 1.45; color: var(--copper);
  text-shadow: 0 2px 0 rgba(255, 249, 236, .9), 0 12px 30px rgba(139, 74, 28, .18);
}
.scribe-lead.on { animation: lead-float 5s ease-in-out infinite; }
@keyframes lead-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* ---------- קטלוג: הזמנה לפתוח את הספר הדיגיטלי ---------- */
.catalog { padding: 96px 0; background: var(--white); }
.catalog-teaser { display: flex; align-items: center; gap: 48px; max-width: 900px; margin: 0 auto; padding: 36px 40px;
  border-radius: 24px; text-decoration: none; color: var(--text); background: var(--parch); border: 1px solid #E6DCC6;
  transition: box-shadow .3s, transform .3s; }
.catalog-teaser:hover { box-shadow: 0 24px 50px rgba(60, 40, 10, .14); transform: translateY(-3px); }
.mini-book { flex: none; width: 190px; aspect-ratio: 3 / 4; border-radius: 4px 12px 12px 4px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 18px;
  background: linear-gradient(105deg, #5A2A0A, #3A1C0B 60%, #2A1205); color: var(--gold-2);
  box-shadow: inset 8px 0 14px rgba(0, 0, 0, .45), 10px 18px 30px rgba(40, 20, 5, .35), 3px 3px 0 #EADBB8, 6px 6px 0 #D9C79C;
  transform: perspective(900px) rotateY(-14deg); transition: transform .5s; }
.catalog-teaser:hover .mini-book { transform: perspective(900px) rotateY(-4deg); }
.mini-book::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(232, 200, 120, .55); border-radius: 4px; }
.mb-seal { width: 54px; height: 54px; border-radius: 50%; padding: 8px; background: radial-gradient(circle at 50% 40%, #FFFBF2, #EADBB8); box-shadow: 0 0 0 2px var(--gold); }
.mb-seal img { width: 100%; height: 100%; object-fit: contain; }
.mini-book b { font-family: var(--head); font-size: 21px; line-height: 1.15; }
.mini-book small { font-size: 12px; color: #E9D6B6; }
.ct-text { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ct-title { font-family: var(--head); font-weight: 700; font-size: clamp(26px, 3vw, 36px); color: var(--ink); line-height: 1.2; }
.ct-desc { color: var(--muted); font-size: 17px; }
.ct-text .btn-gold { margin-top: 8px; }

/* ---------- זכוכית ---------- */
.glass { background: rgba(255, 250, 240, .14); border: 1px solid rgba(255, 240, 215, .35);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 30px 70px rgba(30, 12, 2, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }

/* ---------- הישארו מעודכנים — זכוכית על רקע כתב סת"ם ---------- */
.news { padding: 110px 0; background: #3A1C0B; overflow: hidden; isolation: isolate; }
.news-bg { position: absolute; inset: -30px; z-index: -1; background: url("assets/catalog/3031-1.jpg") center / cover;
  filter: blur(2px) sepia(.55) brightness(.55) contrast(1.1); transform: scale(1.05); }
.news-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(168, 90, 40, .55), rgba(58, 28, 11, .78) 70%); }
.news-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding: 44px 48px; border-radius: 26px; color: #F7ECD8; }
.news-intro h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); margin: 6px 0 10px; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.news-intro p { margin: 0; font-size: 17px; color: #F1E2C6; }
.news .eyebrow, .news-pop .eyebrow { color: var(--gold-2); }
.news-form { display: flex; flex-direction: column; gap: 14px; }
.news-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.news-fields .field:last-child { grid-column: 1 / -1; }
.news .field span, .news-pop .field span { color: #F7ECD8; }
.news .field em, .news-pop .field em { color: var(--gold-2); }
.news .field input, .news-pop .field input { background: rgba(255, 253, 248, .9); border-color: rgba(255, 240, 215, .5); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #F1E2C6; line-height: 1.5; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--gold); }
.consent a { color: var(--gold-2); }
.news .form-error, .news-pop .form-error { color: #FFD3C4; }
.news .btn-gold, .news-pop .btn-gold { align-self: flex-start; min-width: 200px; }
.news .btn-gold[disabled], .news-pop .btn-gold[disabled] { opacity: .6; }
.news-done { text-align: center; outline: none; }
.news-done h3 { color: var(--gold-2); font-size: 30px; margin-bottom: 6px; }
.news-done p { margin: 0; color: #F1E2C6; }

/* ---------- חלון קופץ ביציאה ---------- */
.news-pop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px;
  background: rgba(30, 12, 2, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s; }
.news-pop.on { opacity: 1; }
.news-pop-card { position: relative; width: min(560px, 100%); max-height: calc(100svh - 36px); overflow: auto;
  border-radius: 26px; padding: 34px 32px 28px; color: #F7ECD8; text-align: center;
  background: linear-gradient(160deg, rgba(168, 90, 40, .72), rgba(58, 28, 11, .82));
  transform: translateY(26px) scale(.96); transition: transform .45s cubic-bezier(.2, .9, .3, 1.2); }
.news-pop.on .news-pop-card { transform: none; }
.news-pop-card .news-form { text-align: right; margin-top: 18px; }
.news-pop-card h2 { color: #fff; font-size: clamp(26px, 4vw, 34px); margin: 4px 0 8px; }
.news-pop-sub { margin: 0; color: #F1E2C6; }
.news-pop-ico { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; padding: 10px; margin-bottom: 6px;
  background: radial-gradient(circle at 50% 40%, #FFFBF2, #EADBB8); box-shadow: 0 0 0 2px var(--gold), 0 8px 20px rgba(0, 0, 0, .3); }
.news-pop-ico img { width: 100%; height: 100%; object-fit: contain; }
.news-pop-x { position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 240, 215, .4);
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.news-pop-x:hover { background: rgba(255, 255, 255, .25); }
.news-pop .btn-gold { align-self: stretch; }
html.pop-open { overflow: hidden; }

/* ---------- מסך עולה על גבי מסך — רק בשני מעברים: "פיקוח" על "אודות", "ניוזלטר" על "צור קשר" ---------- */
html.stacked .stack-under { position: sticky; top: var(--st, 0px); }
html.stacked .stack-under > .wrap {
  transform: scale(calc(1 - var(--cover, 0) * .06)); opacity: calc(1 - var(--cover, 0) * .55);
  transform-origin: 50% 0; will-change: transform, opacity;
}
html.stacked .stack-over { position: relative; z-index: 1; border-radius: 34px 34px 0 0; box-shadow: 0 -24px 60px rgba(40, 18, 4, .28); }
html.stacked main > section:not(.stack-under):not(.scribe) { position: relative; z-index: 1; }
html.stacked .footer { position: relative; z-index: 2; }
/* במסכים נמוכים — בלי שורת ההסבר הקטנה, כדי שהכפתורים יישארו במסך */
@media (max-height: 880px) { .after > h1 + p { display: none; } .after h1 { margin-bottom: 16px; } }
.lead-slot { width: 100%; }
@media (max-width: 760px) {
  .catalog, .news { padding: 64px 0; }
  .catalog-teaser { flex-direction: column; gap: 26px; padding: 30px 20px; text-align: center; }
  .ct-text { align-items: center; }
  .mini-book { width: 150px; }
  .news-box { grid-template-columns: 1fr; gap: 24px; padding: 28px 18px; }
  .news-fields { grid-template-columns: 1fr; }
  .news .btn-gold { align-self: stretch; }
  .news-pop-card { padding: 30px 18px 22px; }
  html.stacked .stack-over { border-radius: 24px 24px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scribe-lead.on { animation: none; }
  .news-pop, .news-pop-card { transition: none; }
}

/* ---------- פס התקדמות הגלילה בראש המסך ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; background: rgba(58, 28, 11, .12); }
.read-progress i { display: block; height: 100%; width: 100%; transform-origin: right center; transform: scaleX(var(--rp, 0));
  background: linear-gradient(270deg, var(--gold), var(--gold-2) 60%, #FFF1C8); box-shadow: 0 0 10px rgba(232, 200, 120, .7); }

/* ---------- "דוגמאות הכתב" — חלון בצורת קשת שנפתח ---------- */
.catalog { --u: 0; background: radial-gradient(ellipse at 50% 0%, var(--copper-2), var(--navy-2) 55%, var(--navy) 100%);
  clip-path: inset(calc(var(--u) * 12%) calc(var(--u) * 36%) 0 calc(var(--u) * 36%) round calc(var(--u) * 50vw + 34px) calc(var(--u) * 50vw + 34px) 0 0); }
.catalog .sec-head h2 { color: #fff; }
.catalog .eyebrow { color: var(--gold-2); }
.catalog-teaser { box-shadow: 0 30px 70px rgba(10, 4, 0, .35); }

/* ---------- "איך זה עובד" — גלילה הצידה ---------- */
html.hscroll .steps { padding: 0; }
html.hscroll .steps-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip;
  display: flex; flex-direction: column; justify-content: center; padding-top: 60px; }
html.hscroll .steps .sec-head { margin-bottom: 34px; }
html.hscroll .flow { display: flex; gap: 28px; width: max-content; padding: 0 max(24px, 8vw);
  transform: translate3d(var(--hx, 0px), 0, 0); will-change: transform; }
html.hscroll .flow li { flex: none; width: min(62vw, 540px); min-height: 280px; padding: 40px 38px 34px;
  box-shadow: 0 18px 40px rgba(60, 40, 10, .1); }
html.hscroll .flow li::before { font-size: 72px; }
html.hscroll .flow h3 { font-size: 30px; }
html.hscroll .flow p { font-size: 18px; }
.hs-bar { display: none; }
html.hscroll .hs-bar { display: block; width: min(360px, 60vw); height: 4px; margin: 34px auto 0; border-radius: 2px; background: rgba(139, 74, 28, .15); overflow: hidden; }
html.hscroll .hs-bar i { display: block; height: 100%; width: 100%; transform-origin: right center; transform: scaleX(var(--hp, 0)); background: var(--gold); }

@media (max-width: 760px) {
  html.hscroll .flow li { width: 78vw; min-height: 240px; padding: 30px 24px 26px; }
  html.hscroll .flow h3 { font-size: 25px; }
  html.hscroll .flow p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog { clip-path: none; }
}

/* לוגו מונפש בתוך העיגול (SVG בתוך הדף — לא נחסם כתמונה חדשה) */
span.hero-logo { display: block; }
span.hero-logo svg { display: block; width: 100%; height: 100%; overflow: hidden; }


/* ---------- הלוגו המלא המונפש — במסגרת מרובעת מעוגלת בצדדים ---------- */
span.hero-logo { width: 370px !important; height: 160px !important; top: -82px !important; padding: 12px 40px !important;
  border-radius: 999px !important; display: flex; align-items: center; justify-content: center; }
span.hero-logo svg { width: 100%; height: 100%; overflow: hidden; }
.sheet { padding-top: 96px; }
@media (max-width: 720px) {
  span.hero-logo { width: 270px !important; height: 118px !important; top: -60px !important; padding: 9px 28px !important; }
  .sheet { padding-top: 70px; }
}

/* רצף של 12 שניות, כמו ה-GIF: עיגול נמשך → להבה → נוצה → כתיבת הטקסט עם נצנוץ → שורת הוועד → כוכב בקצה הלהבה → התפוגגות */
/* רק האלמנטים המונפשים — לא הקבוצה שממקמת את הסמל */
.lm-flame-in, .lm-flame, .lm-feather, .lm-r1, .lm-r2, .lm-r3, .lm-tip { transform-box: fill-box; }
.lm-all { animation: lm-all 12s linear infinite; }
.lm-ring-draw { stroke-dasharray: 1 1; animation: lm-ring 12s linear infinite; }
.lm-flame-in { transform-origin: 20% 95%; animation: lm-flame-in 12s cubic-bezier(.2,.9,.3,1.2) infinite; }
.lm-flame { transform-origin: 20% 95%; animation: lm-flick 3.4s ease-in-out infinite; }
.lm-feather { transform-origin: 6% 96%; animation: lm-feather 12s ease-out infinite, lm-sway 4s ease-in-out infinite; }
.lm-r1, .lm-r2, .lm-r3 { transform-origin: 100% 50%; }
.lm-r1 { animation: lm-r1 12s linear infinite; }
.lm-r2 { animation: lm-r2 12s linear infinite; }
.lm-r3 { animation: lm-r3 12s linear infinite; }
.lm-t4 { animation: lm-t4 12s ease-out infinite; }
.lm-pen { transform-box: view-box; animation: lm-pen 12s linear infinite; opacity: 0; }
.lm-shine { animation: lm-shine 12s ease-in-out infinite; }
.lm-tip { transform-origin: center; animation: lm-tip 12s ease-in-out infinite; opacity: 0; }
.lm-glow { animation: lm-glow 12s ease-in-out infinite; opacity: 0; }

@keyframes lm-all { 0%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes lm-ring { 0% { stroke-dashoffset: 1; } 7.5%, 99.9% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes lm-flame-in { 0%, 6% { opacity: 0; transform: scale(.35); } 10%, 99.9% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.35); } }
@keyframes lm-flick { 0%,100% { transform: scale(1,1); } 25% { transform: scale(1.012,1.03) rotate(-.5deg); } 55% { transform: scale(.994,1.008) rotate(.4deg); } 78% { transform: scale(1.008,1.022); } }
@keyframes lm-feather { 0%, 8.5% { opacity: 0; } 12.5%, 99.9% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lm-sway { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-4deg); } 55% { transform: rotate(3.2deg); } 80% { transform: rotate(-1.6deg); } }
@keyframes lm-r1 { 0%, 12% { transform: scaleX(0); } 20%, 99.9% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes lm-r2 { 0%, 20% { transform: scaleX(0); } 30%, 99.9% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes lm-r3 { 0%, 30% { transform: scaleX(0); } 38.5%, 99.9% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes lm-t4 { 0%, 38.5% { opacity: 0; } 42.5%, 99.9% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lm-pen {
  0%, 11.9% { opacity: 0; transform: translate(648px, 115px); }
  12.5% { opacity: 1; transform: translate(640px, 115px); }
  20% { opacity: 1; transform: translate(382px, 115px); }
  20.01% { transform: translate(648px, 224px); }
  30% { opacity: 1; transform: translate(240px, 224px); }
  30.01% { transform: translate(648px, 298px); }
  38.5% { opacity: 1; transform: translate(204px, 298px); }
  40%, 100% { opacity: 0; transform: translate(204px, 298px); }
}
@keyframes lm-shine { 0%, 46% { transform: translateX(-140px); } 56%, 80% { transform: translateX(260px); } 80.01%, 100% { transform: translateX(-140px); } }
@keyframes lm-tip { 0%, 43% { opacity: 0; transform: scale(.2) rotate(0deg); } 47% { opacity: 1; transform: scale(1.2) rotate(45deg); } 51% { opacity: .9; transform: scale(.8) rotate(80deg); } 55% { opacity: 0; transform: scale(.2) rotate(120deg); }
  70% { opacity: 0; transform: scale(.2) rotate(0deg); } 74% { opacity: 1; transform: scale(1.1) rotate(45deg); } 79%, 100% { opacity: 0; transform: scale(.2) rotate(100deg); } }
@keyframes lm-glow { 0%, 43% { opacity: 0; } 47% { opacity: .75; } 55%, 70% { opacity: 0; } 74% { opacity: .6; } 79%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .lm-all, .lm-ring-draw, .lm-flame-in, .lm-flame, .lm-feather, .lm-sway, .lm-r1, .lm-r2, .lm-r3, .lm-t4, .lm-shine { animation: none; }
  .lm-ring-draw { stroke-dashoffset: 0; }
  .lm-pen, .lm-tip, .lm-glow { animation: none; opacity: 0; }
}
