/* =====================================================================
   שני צדי השולחן: העולם החזותי החדש של azmaimoon.com
   נבנה מול הדימוי המאושר .impeccable/mocks/comp-1b.jpg (1376x768).
   העמוד מתחיל ב-10% של הדימוי (10% העליונים הם מסגרת דפדפן מצוירת).
   המשטח .desk תופס את התחום 20%..80% של הדימוי, ולכן כל אחוז גובה
   בתוכו הוא (comp_y - 20) / 60.
   ===================================================================== */

/* הכותרות: Karantina, הגופן הדחוס היחיד ברשימת הדירוג של font-match,
   ומה שהדימוי המאושר מראה. משקל 400 כי המדידה מצאה את 700 כבד מדי. */
@font-face {
  font-family: "Karantina";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Karantina400-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Karantina";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Karantina400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Karantina";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Karantina-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Karantina";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Karantina-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F3F3F1;
  --ink: #171715;
  --navy: #181828;
  --gold: #B29D6D;
  --gold-text: #7F6D43;
  --gold-rule: #A08A54;
  --stamp: #B3261E;
  --muted: #6C6960;

  --font-display: "Karantina", "Assistant", Arial, sans-serif;
  --font-body: "Assistant", "Heebo", Arial, "Segoe UI", sans-serif;
  --font-num: "Barlow", "Assistant", Arial, sans-serif;

  --nav-h: 77px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--paper) url("../plates/paper-ground.png") repeat;
  background-size: 276px 154px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  direction: rtl;
}
::selection { background: rgba(178, 157, 109, .35); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-rule); outline-offset: 3px; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -48px; background: var(--navy); color: var(--cream); padding: 8px 14px; z-index: 50; }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- פס ניווט ---------- */
.nav {
  position: relative;
  height: var(--nav-h);
  background: var(--navy);
  border-bottom: 1px solid var(--gold);
  display: grid;
  grid-template-columns: 15% 1fr auto;
  align-items: center;
  padding-inline: 18% 4.6%;
  color: #F7F7F5;
}
.nav .logo { justify-self: start; display: block; height: 66px; }
.nav .logo img { height: 100%; width: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; justify-self: start; margin-inline-start: 2%; }
.nav-list a { color: #F7F7F5; text-decoration: none; font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.nav-list a:hover { color: var(--gold); }
.lang { justify-self: end; display: flex; gap: 2px; }
.lang button { font: inherit; font-size: 12px; color: rgba(247,247,245,.75); background: transparent; border: 0; padding: 2px 7px; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--gold); font-weight: 700; }

/* ---------- המשטח: שני צדי השולחן ---------- */
.desk {
  position: relative;
  /* גובה לפי רוחב, לא לפי חלון: 39vw הוא יחס הדימוי (537/1376), ולכן
     המסך הראשון שומר על הפרופורציה שלו מ-1280 עד 1600 ובצילום עמוד מלא. */
  height: clamp(480px, 39vw, 720px);
  overflow: hidden;
  isolation: isolate;
}

/* הצד שכותב: פלטת הטופס, נטויה, נחתכת בתחתית המשטח כמו בדימוי */
.plate-form {
  position: absolute; margin: 0;
  left: 48%; top: -3%; width: 41%; height: 140%;
}


.side-label {
  position: absolute; margin: 0;
  font-family: var(--font-display); font-weight: 700;
  color: var(--gold-text); font-size: 24px; letter-spacing: .02em; line-height: 1;
}
.side-label.writer { left: 80%; top: 10%; width: 15.4%; text-align: right; } /* מעל עמודת ההערות, מחוץ לנייר */
.side-label.receiver { left: 33.3%; top: 9%; width: 12%; text-align: right; }

/* הערות השוליים: ארבע הסברים בזהב, כל אחת בשורה שלה כמו בדימוי,
   עם קו מוביל דק וראש חץ שמצביע אל הטופס. הקו הוא קו, לא איור. */
.notes {
  position: absolute; margin: 0; padding: 0; list-style: none;
  left: 80%; top: 0; width: 15.4%; height: 100%;
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  color: var(--gold-text); font-size: 18px; line-height: 1.1; text-align: right;
}
.notes li { position: absolute; right: 0; width: 100%; padding-left: 8px; }
/* מיקומים נמדדו מול שורות הטבלה בנייר: שווי רכישה, פחת, ניכויים, מועד לתשלום */
.notes li:nth-child(1) { top: 49%; }
.notes li:nth-child(2) { top: 56.3%; }
.notes li:nth-child(3) { top: 63.7%; }
.notes li:nth-child(4) { top: 85.9%; }
.notes li::before {
  content: ""; position: absolute; top: .6em; right: 100%; margin-right: 6px;
  width: 42px; height: 1px; background: var(--gold);
}
.notes li::after {
  content: ""; position: absolute; top: calc(.6em - 3px); right: calc(100% + 44px);
  width: 6px; height: 6px; border-left: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* הקו הנטוי: קו אחד, 2px זהב */
.divider {
  position: absolute; left: 51%; top: -15%; height: 130%; width: 2px;
  background: var(--gold);
  transform: rotate(18deg); transform-origin: center;
  pointer-events: none;
}
.handle {
  position: absolute; left: 52%; top: 53%; width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid var(--gold); background: #F7F7F5;
  color: var(--gold-text); cursor: ew-resize; padding: 0; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(23, 23, 21, .18);
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1);
}
.handle:active { transform: translate(-50%, -50%) scale(.97); }
.handle svg { width: 22px; height: 22px; }

/* הצד שמקבל */
.headline {
  position: absolute; margin: 0;
  left: 14.3%; top: 14%; width: 31%;
  font-family: var(--font-display); font-weight: 700;
  font-size: 46px; line-height: .98; letter-spacing: 0;
  color: var(--ink); text-align: right; white-space: nowrap;
}
.counter {
  position: absolute; margin: 0;
  left: 16%; top: 35.5%; width: 24%;
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto;
  justify-content: end; align-items: baseline; column-gap: 8px;
  text-align: right;
}
.counter .days {
  grid-row: 1; font-family: var(--font-num); font-weight: 700; font-size: 62px; line-height: .9;
  color: var(--gold-text); font-variant-numeric: tabular-nums;
}
.counter .unit { grid-row: 1; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); align-self: end; padding-bottom: 6px; }
.counter .cap { grid-column: 1 / -1; grid-row: 2; font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 2px; }

.instruction {
  position: absolute; margin: 0;
  left: 18.3%; top: 54.5%; width: 27%;
  font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.15;
  color: var(--ink); text-align: right; white-space: nowrap;
}

.wa {
  position: absolute;
  left: 20.3%; top: 62.5%; width: 25%; height: 9.3%; min-height: 46px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--navy); color: #F7F7F5; text-decoration: none;
  border: 1px solid var(--gold); outline: 1px solid var(--navy); outline-offset: 2px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background 160ms ease;
}
.wa:hover { background: #22223a; }
.wa:active { transform: scale(.98); }
.wa svg { width: 20px; height: 20px; flex: none; }
.wa .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* ---------- הסקשן הבא: תחילת "התהליך שלנו" ---------- */
.process {
  position: relative;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  min-height: 154px;
  display: grid; grid-template-columns: 60% 40%;
  direction: ltr; /* המסמך בצד שמאל של המסך, כמו בדימוי */
  align-items: end;
}
.plate-doc { margin: 0; grid-column: 1; height: 154px; overflow: hidden; }
.plate-doc img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.process-copy { grid-column: 2; direction: rtl; text-align: right; padding: 18px 8% 10px 4%; align-self: end; }
.process h2 {
  margin: 0 0 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--ink);
}
.process p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .handle, .wa { transition: none; }
}

/* =====================================================================
   הסקשנים שמתחת לקפל. אותה מערכת: נייר אחד, דיו אחד, זהב לקווים,
   Karantina לכותרות, Barlow לספרות. אין כרטיסים, אין אריחי אייקון.
   ===================================================================== */
.wrap { width: min(1180px, 100% - 2 * clamp(16px, 5vw, 72px)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--ink); }

.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section h2 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 4.4vw, 58px); line-height: .96; color: var(--ink);
}
.section-lead { margin: 14px 0 0; font-size: 18px; line-height: 1.55; max-width: 58ch; }
.fine { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 18px 0 0; max-width: 70ch; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* קישור בקו, לא כפתור */
.rule-link {
  display: inline-block; margin-top: 18px; padding-bottom: 2px;
  font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--gold); transition: border-color 160ms ease;
}
.rule-link:hover { border-bottom-color: var(--ink); }

/* ---------- איך זה עובד: המסמך המטושטש והשלבים ---------- */
.process { min-height: 0; align-items: start; }
.plate-doc { height: 100%; min-height: 300px; }
.process-copy { padding: clamp(28px, 4vw, 56px) 8% 40px 4%; align-self: start; }
.process h2 { font-size: clamp(38px, 4vw, 52px); margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px;
  align-items: baseline; padding: 12px 0; border-top: 1px solid rgba(23,23,21,.18);
  font-size: 16px; line-height: 1.5;
}
.steps li:last-child { border-bottom: 1px solid rgba(23,23,21,.18); }
.step-n { font-family: var(--font-num); font-weight: 700; font-size: 26px; line-height: 1; color: var(--gold-text); }

/* ---------- תחומי עיסוק: מסגרת קבועה, חלון אחד ---------- */
.dossier {
  display: grid; grid-template-columns: 34% 1fr;
  border: 1px solid var(--ink); background: var(--paper);
  min-height: 380px;
}
.dossier-tabs { display: flex; flex-direction: column; border-inline-end: 1px solid var(--ink); }
.dossier-tabs [role="tab"] {
  position: relative; text-align: start; font: inherit; font-weight: 600; font-size: 17px;
  color: var(--ink); background: transparent; border: 0; cursor: pointer;
  padding: 18px 22px 18px 16px; border-bottom: 1px solid rgba(23,23,21,.18);
  transition: background 160ms ease;
}
.dossier-tabs [role="tab"]:last-child { border-bottom: 0; }
.dossier-tabs [role="tab"]:hover { background: rgba(178,157,109,.10); }
.dossier-tabs [role="tab"][aria-selected="true"] {
  font-weight: 700; background: rgba(178,157,109,.16);
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.dossier-tabs [role="tab"]:focus-visible { outline-offset: -3px; }
.dossier-window { position: relative; padding: clamp(26px, 3.6vw, 48px) clamp(24px, 3.6vw, 56px); }
.pane h3 {
  margin: 0 0 14px; font-family: var(--font-display); font-weight: 700;
  font-size: 40px; line-height: 1; color: var(--ink);
}
.pane p { margin: 0; max-width: 60ch; font-size: 17px; line-height: 1.6; }

/* ---------- תוצאות: שורות פנקס ---------- */
.ledger { margin: 0; }
.ledger-row {
  display: grid; grid-template-columns: minmax(280px, 38%) 1fr; column-gap: clamp(24px, 4vw, 64px);
  align-items: baseline; padding: 22px 0; border-top: 1px solid var(--ink);
}
.ledger-row:last-child { border-bottom: 1px solid var(--ink); }
.ledger dt {
  font-family: var(--font-display); font-weight: 700; font-size: 30px;
  line-height: 1; color: var(--ink);
}
.ledger dt .num { font-family: var(--font-num); font-size: 26px; letter-spacing: -.01em; }
.ledger dd { margin: 0; font-size: 17px; line-height: 1.55; max-width: 52ch; }

/* ---------- אודות: דיוקן קטן במסגרת זהב, טקסט במידת קריאה ---------- */
.about-grid { display: grid; grid-template-columns: 30% 1fr; column-gap: clamp(32px, 5vw, 80px); align-items: start; }
.portrait { margin: 0; position: sticky; top: 24px; }
.portrait img { width: 100%; height: auto; outline: 1px solid var(--gold); outline-offset: 8px; }
.portrait figcaption { margin-top: 22px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.portrait figcaption strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--ink); margin-bottom: 6px; }
.about-body p { margin: 0 0 16px; max-width: 64ch; font-size: 17px; line-height: 1.65; }
.about-body .what { border-top: 1px solid var(--gold); padding-top: 16px; margin-top: 22px; }
.creds { margin-top: 32px; }
.creds h3, .contact-side h3 {
  margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; color: var(--ink);
}
.creds ul { list-style: none; margin: 0; padding: 0; max-width: 64ch; }
.creds li { padding: 9px 0; border-top: 1px solid rgba(23,23,21,.18); font-size: 16px; }
.creds li:last-child { border-bottom: 1px solid rgba(23,23,21,.18); }

/* ---------- ניסיון: ציר זמן על קו זהב ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; top: 4px; bottom: 4px; inset-inline-start: 0; width: 2px; background: var(--gold); }
.timeline > li { position: relative; padding: 0 0 30px; padding-inline-start: 34px; }
.timeline > li::before {
  content: ""; position: absolute; top: 10px; inset-inline-start: -5px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--gold);
}
.timeline > li.is-current::before { background: var(--gold); }
.timeline .period { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: var(--gold-text); }
.timeline h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--ink); }
.timeline .org { margin: 4px 0 0; font-size: 16px; color: var(--muted); }
.timeline .sub { margin: 10px 0 0; padding-inline-start: 18px; font-size: 15px; line-height: 1.55; max-width: 62ch; }
.timeline .sub li { padding: 3px 0; }

/* ---------- יצירת קשר: טופס על נייר, קווים תחתונים ---------- */
.contact-grid { display: grid; grid-template-columns: 34% 1fr; column-gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-side { grid-column: 1; }
.lead-form { grid-column: 2; }
.lead-form h3 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.field label b { color: var(--gold-text); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: 8px 0; border-radius: 0;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--gold-rule); }
.form-error { color: var(--ink); border-top: 1px solid var(--gold); padding-top: 8px; font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 700; font-size: 15px;
  padding: 13px 22px; cursor: pointer; text-decoration: none;
  transition: transform 160ms cubic-bezier(.23,1,.32,1), background 160ms ease;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn-navy { background: var(--navy); color: #F7F7F5; border: 1px solid var(--gold); }
.btn-navy:hover { background: #22223a; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: rgba(23,23,21,.06); }
.direct { margin: 0 0 28px; }
.direct dt { font-size: 13px; font-weight: 700; color: var(--gold-text); margin-top: 12px; }
.direct dd { margin: 0; font-size: 20px; }
.direct a, .offices li { text-decoration: none; color: var(--ink); }
.direct a { border-bottom: 1px solid var(--gold); }
.offices { list-style: none; margin: 0; padding: 0; }
.offices li { padding: 8px 0; border-top: 1px solid rgba(23,23,21,.18); font-size: 15px; }
.offices li:last-child { border-bottom: 1px solid rgba(23,23,21,.18); }

/* ---------- פוטר: אותו נייר, קו דיו למעלה ---------- */
.site-footer { border-top: 1px solid var(--ink); padding: 48px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); }
.footer-brand img { width: 150px; height: auto; margin-bottom: 14px; }
.footer-credentials { margin: 0 0 6px; font-weight: 700; font-size: 14px; }
.footer-tagline { margin: 0; color: var(--muted); font-size: 14px; }
/* שורת ההערה לכוכבית: מסמנת שהשמות שאחרי "עו״ד" הם תחומי עיסוק ולא תארים */
.footer-note { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.footer-credentials sup { font-size: .7em; vertical-align: super; line-height: 0; }
.footer-col h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1; }
.footer-col h3 + ul + h3 { margin-top: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 3px 0; }
.footer-col a { text-decoration: none; color: var(--ink); }
.footer-col a:hover { color: var(--gold-text); }
.footer-bottom { margin-top: 36px; padding-top: 16px; border-top: 1px solid rgba(23,23,21,.18); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: baseline; }
.footer-bottom .fine { margin: 0; }
.rights { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- רוחבים צרים: הכל נערם. המסך הראשון מטופל בשלב responsive ---------- */
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; }
  .plate-doc { height: 160px; min-height: 0; }
  .process-copy { grid-column: 1; padding-inline: 5%; }
  .dossier { grid-template-columns: 1fr; }
  .dossier-tabs { border-inline-end: 0; border-bottom: 1px solid var(--ink); }
  .ledger-row, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .ledger-row { row-gap: 8px; }
  .portrait { position: static; max-width: 260px; margin-bottom: 28px; }
  .contact-side, .lead-form { grid-column: 1; } /* עמודה אחת, בלי עמודה משתמעת שגולשת */
  .contact-side { margin-top: 36px; }
  .footer-grid { row-gap: 28px; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .pane h3 { font-size: 32px; }
}

/* =====================================================================
   תנועה. שלושה דברים בלבד: הקו הנגרר, הקו שנמשך עם הגלילה, והמצב ללא תנועה.
   ===================================================================== */

/* הקו הנטוי נשלט ממשתנה אחד: --cx, מיקום מרכזו באחוזי רוחב המשטח.
   --k הוא ההיסט האופקי של קצה הקו בפיקסלים (חצי גובה כפול tan 18°), נקבע ב-JS. */
.desk { --cx: 51%; --k: 90px; }
.divider { left: var(--cx); }
.handle { left: calc(var(--cx) + 1%); }

/* שכבת הצד שכותב: הערות הזהב קיימות רק מימין לקו. גרירת הקו ימינה
   מוחקת אותן בהדרגה, וזו הקריאה של מי שמקבל: נייר בלי סימונים. */
.layer-writer {
  position: absolute; inset: 0; margin: 0; pointer-events: none;
  clip-path: polygon(calc(var(--cx) + var(--k)) 0, 100% 0, 100% 100%, calc(var(--cx) - var(--k)) 100%);
}
.layer-writer .notes { pointer-events: auto; }
.handle { touch-action: none; user-select: none; }
.handle:focus-visible { outline: 2px solid var(--gold-rule); outline-offset: 3px; }
.desk.is-dragging { cursor: ew-resize; }
.desk.is-dragging .handle { transform: translate(-50%, -50%) scale(1.04); }

/* הקו שנמשך עם הגלילה: זהב אחד, מהמסמך במסך הראשון עד מספר הוואטסאפ ביצירת קשר.
   מיקומו וגובהו נמדדים ב-JS ונכתבים למשתנים; המידה נמשכת לפי הגלילה. */
body { position: relative; }

/* הניווט מסמן את הסקשן הפעיל בקו זהב */
.nav-list a { position: relative; padding-bottom: 4px; }
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform 200ms cubic-bezier(.23,1,.32,1);
}
.nav-list a[aria-current="true"]::after, .nav-list a:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .handle, .wa, .btn, .rule-link, .dossier-tabs [role="tab"], .nav-list a::after {
    transition: none;
  }
  .spine path { stroke-dashoffset: 0 !important; }
}

/* =====================================================================
   רוחבים צרים: המסך הראשון נערם. המסמך למעלה, קו אופקי, ואז הצד שמקבל.
   סדר ה-DOM כבר נכון, ולכן כל מה שהיה מוחלט חוזר לזרימה.
   ===================================================================== */
@media (max-width: 900px) {
  .nav {
    height: auto; grid-template-columns: 1fr auto; padding: 10px 4% 0; row-gap: 4px;
  }
  .nav .logo { height: 52px; }
  .nav nav { grid-column: 1 / -1; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav-list { gap: 18px; margin: 0; padding: 8px 0 10px; white-space: nowrap; }
  .nav-list a { font-size: 14px; }
  .lang { grid-row: 1; grid-column: 2; }

  .desk { height: auto; overflow: visible; padding: 22px 5% 34px; --cx: 100%; }
  .desk > * { position: static; width: auto; height: auto; }

  .desk .side-label.writer, .desk .side-label.receiver { font-size: 20px; margin: 0 0 10px; text-align: right; width: auto; }
  .plate-form { max-width: 340px; margin: 0 auto 6px; }
  .layer-writer { position: static; clip-path: none; margin: 16px 0 0; }
  .notes { position: static; width: auto; height: auto; font-size: 18px; line-height: 1.2; }
  .notes li { position: static; width: auto; padding: 8px 20px 8px 0; border-top: 1px solid rgba(178,157,109,.5); }
  .notes li:last-child { border-bottom: 1px solid rgba(178,157,109,.5); }
  .notes li::before { top: 50%; right: 0; margin: 0; width: 10px; transform: translateY(-50%); }
  .notes li::after { display: none; }

  .divider { display: block; position: static; width: 100%; height: 2px; transform: none; margin: 28px 0 22px; }
  .handle { display: none; }

  .headline { font-size: clamp(36px, 9.6vw, 48px); white-space: normal; margin-bottom: 18px; }
  .counter { display: grid; grid-template-columns: auto auto; justify-content: end; margin-bottom: 18px; width: auto; }
  .counter .days { font-size: 56px; }
  .instruction { font-size: 22px; white-space: normal; margin-bottom: 18px; width: auto; }
  .wa { display: flex; width: 100%; height: auto; min-height: 52px; padding: 12px 16px; font-size: 15px; white-space: normal; text-align: center; }

  .spine { display: none; }
}

@media (max-width: 420px) {
  .wa { font-size: 14px; }
  .section h2 { font-size: 36px; }
}

/* המסך הראשון בין 1280 ל-1600: הכל באחוזים, הגובה נצמד לחלון, והמידות
   הטיפוגרפיות נשארות בגבולות המדודים של הדימוי. */
@media (min-width: 901px) and (max-width: 1180px) {
  .headline { font-size: 40px; }
  .instruction { font-size: 21px; }
  .notes { font-size: 16px; }
  .wa { font-size: 14px; }
}

/* =====================================================================
   סבב תיקוני הגימור (17.09.2026)
   1. הטופס הוא נייר HTML: עברית תקינה, ניתן לתרגום ולעריכה, בלי טקסט משובש.
   2. הקו: נתיב SVG אחד מהאלכסון בירו, דרך האלכסון של "איך זה עובד",
      לאורך גבול הסקשן ובמורד השוליים עד מספר הוואטסאפ.
   ===================================================================== */

/* ---------- הנייר ---------- */
.paper {
  position: absolute; left: 12%; top: 3%; width: 76%; aspect-ratio: 1 / 1.36;
  padding: 6% 7% 7%;
  /* נייר מצולם: קפלים, צל ופינה מורמת מהפלטה; הטקסט המדויק מעליו ב-HTML */
  background: #FBFAF6 url("../plates/paper-blank.png") center / cover no-repeat;
  color: #1B2E4B;
  font-family: var(--font-body); font-size: clamp(11px, 1.05vw, 16px); line-height: 1.45;
  transform: rotate(-7deg); transform-origin: 50% 40%;
  box-shadow: 0 30px 60px -30px rgba(23, 23, 21, .55), 0 2px 4px rgba(23, 23, 21, .12);
  overflow: hidden;
}
.paper-title {
  margin: 0; text-align: center; font-weight: 700; font-size: 1.6em; letter-spacing: .04em;
  text-decoration: underline; text-underline-offset: .18em;
}
.paper-sub { margin: 0 0 .8em; text-align: center; font-size: .95em; }
.paper-head { margin: 0 0 .8em; display: grid; grid-template-columns: auto 1fr; column-gap: .8em; row-gap: .25em; align-items: center; }
.paper-head dt { font-weight: 700; }
.paper-head dt::after { content: ":"; }
.paper-head dd { margin: 0; }
.paper-section { margin: 0 0 .3em; font-weight: 700; border-bottom: 1px solid #1B2E4B; padding-bottom: .15em; }
.paper-table { width: 100%; border-collapse: collapse; }
.paper-table th, .paper-table td { border: 1px solid rgba(27, 46, 75, .55); padding: .62em .55em; text-align: right; vertical-align: middle; }
.paper-table th { font-weight: 700; width: 46%; }
.bar { display: inline-block; width: var(--w, 40%); height: .8em; background: #16161a; border-radius: 2px; vertical-align: middle; }
.stamp {
  position: absolute; left: 9%; bottom: 7%; width: 30%; aspect-ratio: 1;
  border: 3px double var(--stamp); border-radius: 50%; color: var(--stamp);
  display: grid; place-items: center; align-content: center; row-gap: .2em;
  transform: rotate(-14deg); opacity: .85; mix-blend-mode: multiply;
}
.stamp b { font-family: var(--font-display); font-weight: 700; font-size: 2em; line-height: 1; }
.stamp .bar { height: .35em; background: var(--stamp); opacity: .7; }

/* ---------- "איך זה עובד": המסמך נחתך באלכסון שממשיך את הקו ---------- */
.process { --exit: 45%; --run: 240px; position: relative; overflow: hidden; }
.plate-doc {
  position: absolute; inset: 0; grid-column: auto; height: auto; min-height: 0;
  clip-path: polygon(0 0, var(--exit) 0, calc(var(--exit) - var(--run)) 100%, 0 100%);
}
.process-copy { position: relative; grid-column: 2; }

/* ---------- הקו: נתיב SVG אחד ---------- */
.spine {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; overflow: visible;
  color: var(--gold);
}
.spine[hidden] { display: none; }

@media (max-width: 900px) {
  .paper {
    position: relative; left: auto; top: auto; width: 88%; margin: 0 auto;
    transform: rotate(-3deg); font-size: 12.5px;
  }
  .plate-form { max-width: 360px; margin: 0 auto 6px; }
  .notes li::before, .notes li::after { display: none; }
  .notes li { padding-inline-end: 0; }
  .plate-doc { clip-path: none; position: relative; height: 160px; }
}

/* ---------- אנגלית (LTR) וערבית: כיוון הגוף עוקב אחרי dir של המסמך ---------- */
html[dir="ltr"] body { direction: ltr; }
html[dir="ltr"] .headline, html[dir="ltr"] .instruction, html[dir="ltr"] .counter,
html[dir="ltr"] .side-label.receiver, html[dir="ltr"] .process-copy { text-align: left; }
html[dir="ltr"] .process-copy { direction: ltr; }
html[dir="ltr"] .counter { justify-content: start; }
html[dir="ltr"] .notes { font-size: 15px; }
html[lang="ar"] .notes { font-size: 14px; line-height: 1.15; }
html[lang="ar"] .headline { font-size: 40px; line-height: 1.1; }
html[lang="ar"] .instruction { font-size: 21px; }
@media (max-width: 900px) {
  html[dir="ltr"] .side-label.writer, html[dir="ltr"] .side-label.receiver { text-align: left; }
  html[dir="ltr"] .notes { text-align: left; }
  html[dir="ltr"] .notes li { padding: 8px 0 8px 20px; }
  html[dir="ltr"] .notes li::before { right: auto; left: 0; }
}

/* אנגלית: שורות ארוכות יותר, ולכן הכותרת נשברת והתווית רחבה יותר */
html[dir="ltr"] .headline { white-space: normal; font-size: 34px; width: 36%; line-height: 1.04; }
html[dir="ltr"] .side-label.receiver { left: 14.3%; width: 24%; }
html[dir="ltr"] .counter { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
html[dir="ltr"] .counter .cap { flex-basis: 100%; }
html[dir="ltr"] .instruction { white-space: normal; font-size: 22px; }
html[dir="ltr"] .wa { font-size: 14px; }

/* =====================================================================
   רצועת השירותים. לא כרטיסים: פס רציף אחד על הנייר, מחולק בקווי דיו
   אנכיים, שנגלל לצדדים. אין אייקונים, אין צל, אין רדיוס.
   ===================================================================== */
.services { padding-block: clamp(40px, 5vw, 64px); }
.services-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  margin-bottom: 20px;
}
.services h2 { font-size: clamp(32px, 3.4vw, 44px); }
.rail-nav { display: flex; gap: 8px; flex: none; align-self: center; }
.rail-btn {
  width: 40px; height: 40px; padding: 0; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold-text); cursor: pointer;
  transition: background 160ms ease, transform 160ms cubic-bezier(.23, 1, .32, 1);
}
.rail-btn:hover { background: rgba(178, 157, 109, .14); }
.rail-btn:active { transform: scale(.96); }
.rail-btn[disabled] { opacity: .32; cursor: default; }
.rail-btn[disabled]:hover { background: transparent; }
.rail-btn svg { width: 20px; height: 20px; }
/* החצים מצביעים לפי כיוון הקריאה */
html[dir="rtl"] .rail-btn[data-dir="prev"] svg { transform: scaleX(-1); }
html[dir="rtl"] .rail-btn[data-dir="next"] svg { transform: scaleX(-1); }

/* הרצועה היא פיסת נייר שמונחת על השולחן: קו הזהב הרציף עובר מתחתיה */
.rail {
  position: relative; z-index: 3; background: var(--paper);
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 0;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline: 2px solid var(--gold-rule); outline-offset: 3px; }

.service {
  flex: 0 0 clamp(250px, 27%, 330px);
  scroll-snap-align: start;
  padding: 24px clamp(18px, 2vw, 28px) 26px;
  border-inline-start: 1px solid rgba(23, 23, 21, .18);
  display: flex; flex-direction: column;
}
.service:first-child { border-inline-start: 0; padding-inline-start: 0; }
.service h3 {
  margin: 0 0 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.02;
  color: var(--ink);
}
.service p { margin: 0 0 auto; font-size: 15px; line-height: 1.55; color: var(--ink); }
.service .rule-link { margin-top: 16px; align-self: flex-start; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .rail { scroll-behavior: auto; }
  .rail-btn { transition: none; }
}

@media (max-width: 900px) {
  .services-head { flex-wrap: wrap; gap: 12px; }
  .service { flex-basis: min(78%, 300px); }
  .service:first-child { padding-inline-start: 0; }
}

/* =====================================================================
   עמודי תוכן (ייפוי כוח מתמשך וכיוצא בו). אותה מערכת: נייר, קווי דיו,
   זהב לקווים, Karantina לכותרות. בלי כרטיסים ובלי אייקונים.
   ===================================================================== */
/* עמוד תוכן בלי בורר שפה: שתי עמודות, בלי עמודה ריקה. ברוחב צר חלה הערמת הניווט הרגילה */
@media (min-width: 901px) {
  .nav-plain { grid-template-columns: 15% 1fr; padding-inline: 18% 6%; }
}

.topic-head { padding-block: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px); }
.topic-head h1 {
  margin: 0 0 18px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 5.6vw, 76px); line-height: .94; color: var(--ink);
}
.lede-big { margin: 0 0 14px; max-width: 62ch; font-size: 20px; line-height: 1.5; font-weight: 600; }
.lede-note { margin: 0 0 26px; max-width: 70ch; font-size: 14px; line-height: 1.5; color: var(--muted); }
.topic-head .btn { text-decoration: none; }

.section h3.sub {
  margin: 28px 0 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; color: var(--ink);
}
.section > .wrap > p { max-width: 68ch; font-size: 17px; line-height: 1.65; }

/* טבלאות השוואה: קווי דיו, בלי רקעים מתחלפים */
.table-scroll { overflow-x: auto; scrollbar-width: thin; }
.table-scroll:focus-visible { outline: 2px solid var(--gold-rule); outline-offset: 3px; }
.compare {
  width: 100%; min-width: 620px; border-collapse: collapse; margin-top: 4px;
  font-size: 15px; line-height: 1.5; text-align: start;
}
.compare th, .compare td {
  border-top: 1px solid rgba(23, 23, 21, .18);
  padding: 12px 14px 12px 0; vertical-align: top; text-align: start;
}
.compare thead th {
  border-top: 0; border-bottom: 1px solid var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.15;
  color: var(--ink); padding-bottom: 8px;
}
.compare tbody th {
  font-weight: 700; width: 22%; color: var(--gold-text);
}
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 1px solid var(--ink); }

/* הבלטה: קו זהב עליון, לא תיבה צבעונית */
.callout {
  margin: 26px 0 0; max-width: 72ch;
  border-top: 1px solid var(--gold); padding-top: 14px;
  font-size: 16px; line-height: 1.6;
}

/* רשימת הגדרות */
.spec { margin: 0; }
.spec dt {
  font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.15;
  color: var(--ink); border-top: 1px solid rgba(23, 23, 21, .18); padding-top: 14px; margin-top: 14px;
}
.spec dd { margin: 6px 0 0; max-width: 68ch; font-size: 16px; line-height: 1.6; }
.spec dt:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

.ruled { list-style: none; margin: 10px 0 0; padding: 0; max-width: 62ch; }
.ruled li { padding: 9px 0; border-top: 1px solid rgba(23, 23, 21, .18); font-size: 16px; line-height: 1.55; }
.ruled li:last-child { border-bottom: 1px solid rgba(23, 23, 21, .18); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); align-items: start; }
.two-col p { max-width: 54ch; font-size: 16px; line-height: 1.6; }

.steps-wide li { grid-template-columns: 34px 1fr; align-items: start; }
.steps-wide li span:last-child { font-size: 16px; line-height: 1.6; max-width: 88ch; }
.steps-wide b { font-weight: 700; }

.topic-head + .section, .contact .contact-side { max-width: none; }
.section.contact .contact-side { max-width: 420px; }

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; row-gap: 22px; }
  .compare { min-width: 560px; }
  .topic-head h1 { font-size: clamp(38px, 10vw, 52px); }
  .lede-big { font-size: 18px; }
}

/* ---------- פס ההסכמה למדידת פרסום. אותה שפה: נייר, קו דיו, זהב ---------- */
.consent {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  background: var(--paper); border-top: 1px solid var(--ink);
  padding: 16px clamp(16px, 5vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  box-shadow: 0 -8px 24px -18px rgba(23, 23, 21, .5);
}
.consent p { margin: 0; flex: 1 1 340px; font-size: 15px; line-height: 1.5; max-width: 68ch; }
.consent .rule-link { margin: 0; font-size: 14px; flex: none; }
.consent-actions { display: flex; gap: 10px; flex: none; margin-inline-start: auto; }
.consent .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 560px) {
  .consent { padding: 14px 16px; }
  .consent-actions { margin-inline-start: 0; width: 100%; }
  .consent .btn { flex: 1; justify-content: center; }
}
