/* Roitman Finance — מערכת העיצוב
   פריסה: פתיחה כהה עם צילום גדול של גל, ואחריה מקטעים רחבים שמתחלפים בין לבן שבור ללבן; כהה חוזר בפודקאסט ובסיום. */
:root {
  --ink: #111315;          /* רקע ראשי: פתיחה, פודקאסט, סיום */
  --ink-raised: #1b1f23;
  --paper: #F5F5F1;        /* רקע קריאה */
  --white: #FFFFFF;
  --text: #15191F;
  --text-soft: #47505A;
  --on-dark: #FFFFFF;
  --on-dark-soft: #C9D1D8;
  --action: #245A81;       /* כפתורים וקישורים */
  --action-hover: #1B4665;
  --detail: #B8C7D3;       /* קווים וסימונים */
  --line: rgba(21, 25, 31, .14);
  --line-dark: rgba(184, 199, 211, .24);
  --field-border: #8A96A1;
  --error: #A8261D;
  --ok: #1E6B45;

  --font: "Heebo", "Assistant", "Arial Hebrew", Arial, sans-serif;
  --radius: 8px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(56px, 8vw, 104px);
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.15; font-weight: 800; text-wrap: balance; letter-spacing: -.01em; }
a { color: var(--action); text-underline-offset: .2em; }
a:hover { color: var(--action-hover); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-header :focus-visible, .cta-bar :focus-visible { outline-color: var(--detail); }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -80px; z-index: 200;
  background: var(--white); color: var(--text); padding: 12px 20px; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.on-dark { background: var(--ink); color: var(--on-dark); }
.on-dark a:not(.btn) { color: var(--on-dark); }
.on-dark .form-card a:not(.btn) { color: var(--action); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 700; color: var(--action); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.on-dark .eyebrow { color: var(--detail); }
.section-title { font-size: clamp(28px, 3.2vw, 42px); }
.section-lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--text-soft); max-width: 62ch; margin-top: 16px; }
.on-dark .section-lead { color: var(--on-dark-soft); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.prose > * + * { margin-top: 1em; }
.prose { max-width: 68ch; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: var(--radius);
  border: 2px solid transparent; font-weight: 700; font-size: 17px; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--action); color: var(--white); }
.btn--primary:hover { background: var(--action-hover); color: var(--white); }
.btn--ghost { border-color: var(--line-dark); color: var(--on-dark); background: transparent; }
.btn--ghost:hover { border-color: var(--on-dark); color: var(--on-dark); }
.btn--outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn--outline:hover { background: var(--text); color: var(--white); }
.btn[disabled] { opacity: .65; cursor: progress; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow::after { content: "←"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(-4px); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- כותרת עליונה ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  height: var(--header-h); background: var(--ink); color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color .25s, border-color .25s;
}
.home .site-header { position: fixed; inset-inline: 0; }
.home .site-header.is-top { background: transparent; border-bottom-color: transparent; }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: block; flex: none; }
.logo img { height: 46px; width: auto; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.main-nav a {
  color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: 17px;
  padding: 10px 2px; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--detail); color: var(--on-dark); }
.header-cta { min-height: 46px; padding: 10px 20px; font-size: 16px; }
.menu-toggle {
  display: none; margin-inline-start: auto; width: 48px; height: 48px; border-radius: var(--radius);
  background: transparent; border: 1px solid var(--line-dark); color: var(--on-dark);
  align-items: center; justify-content: center;
}
.mobile-menu { display: none; }

/* ---------- פתיחה ---------- */
.hero { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  min-height: clamp(680px, 54vw, 800px);
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-block: calc(var(--header-h) + 48px) 72px;
  padding-inline-start: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter)));
  padding-inline-end: clamp(16px, 2vw, 32px);
  position: relative; z-index: 2;
}
.hero-name { font-size: 17px; font-weight: 500; color: var(--on-dark-soft); display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }
.hero-name strong { color: var(--on-dark); font-weight: 700; }
.hero-name span[aria-hidden] { width: 28px; height: 2px; background: var(--detail); }
.hero h1 { font-size: clamp(38px, 4.7vw, 70px); font-weight: 900; line-height: 1.06; letter-spacing: -.02em; }
.hero-lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--on-dark-soft); max-width: 30em; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-media { position: relative; min-height: 320px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 18%; }
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to left, var(--ink) 0%, rgba(17,19,21,.55) 14%, rgba(17,19,21,0) 36%),
    linear-gradient(to top, rgba(17,19,21,.6) 0%, rgba(17,19,21,0) 26%),
    linear-gradient(to bottom, rgba(17,19,21,.55) 0%, rgba(17,19,21,0) 20%);
}
.hero-caption {
  position: absolute; z-index: 2; inset-inline-end: clamp(20px, 3vw, 40px); bottom: 28px;
  font-size: 14px; color: var(--on-dark-soft); display: flex; align-items: center; gap: 10px;
}
.hero-caption::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--detail); border-inline-start: 0; border-top: 0; }

/* ---------- היכרות ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro-photo { position: relative; }
.intro-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.intro-photo::after {
  content: ""; position: absolute; inset-inline-start: -14px; bottom: -14px; width: 38%; height: 30%;
  border: 2px solid var(--action); border-top: 0; border-inline-end: 0; pointer-events: none;
}
.intro-text .lead { font-size: clamp(20px, 2vw, 26px); line-height: 1.5; font-weight: 500; }
.intro-text p + p { margin-top: 18px; color: var(--text-soft); }
.intro-text .link-arrow { margin-top: 28px; }

/* ---------- שירותים ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 28px;
  transition: border-color .2s, transform .2s;
}
.section--paper .card { background: var(--white); }
.card:hover { border-color: var(--action); transform: translateY(-2px); }
.card-icon { width: 52px; height: 52px; color: var(--action); }
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 23px; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { font-size: 16.5px; color: var(--text-soft); line-height: 1.65; }
.card .card-more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--action); display: inline-flex; gap: 8px; }
.card .card-more::after { content: "←"; }
.card-photo { margin: -28px -28px 4px; }
.card-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px 9px 0 0; }

/* ---------- שלבי תהליך ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { counter-increment: step; border-top: 2px solid var(--text); padding-top: 20px; }
.step::before {
  content: counter(step, decimal-leading-zero); display: block;
  font-size: 44px; font-weight: 900; line-height: 1; color: var(--detail); margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { font-size: 16.5px; color: var(--text-soft); }
.steps-foot { margin-top: 36px; }
.step-list { counter-reset: step; display: grid; gap: 0; }
.step-list > li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); }
.step-list > li:last-child { border-bottom: 1px solid var(--line); }
.step-list > li::before { content: counter(step, decimal-leading-zero); font-size: 30px; font-weight: 900; line-height: 1.1; color: var(--action); font-variant-numeric: tabular-nums; }
.step-list h3 { font-size: 20px; margin-bottom: 6px; }

/* ---------- דוגמה מהשטח ---------- */
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.case > div { padding: clamp(28px, 4vw, 56px); }
.case-challenge { background: var(--ink); color: var(--on-dark); }
.case h3 { font-size: 15px; font-weight: 700; color: var(--action); margin-bottom: 20px; letter-spacing: 0; }
.case-challenge h3 { color: var(--detail); }
.case-challenge p { font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; line-height: 1.35; }
.case-challenge p + p { margin-top: 14px; }
.case-challenge p:last-child { font-weight: 400; color: var(--on-dark-soft); font-size: clamp(19px, 1.8vw, 23px); }
.case-punch { font-size: clamp(26px, 3vw, 40px); font-weight: 900; line-height: 1.2; margin-bottom: 22px; }
.case-punch span { display: block; }
.case-punch span:last-child { color: var(--action); }
.case-thinking p { color: var(--text-soft); max-width: 46ch; }
.case-thinking p + p { margin-top: 12px; }
.case-thinking .link-arrow { margin-top: 26px; }

/* ---------- יתרונות ---------- */
.advantages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.advantage { border-inline-start: 2px solid var(--action); padding-inline-start: 22px; }
.advantage h3 { font-size: 23px; margin-bottom: 10px; }
.advantage p { font-size: 17px; color: var(--text-soft); }

/* ---------- המלצות ---------- */
.t-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.t-controls { display: flex; align-items: center; gap: 12px; }
.t-controls[hidden] { display: none; }
.t-btn { width: 52px; height: 52px; border-radius: var(--radius); border: 1px solid var(--text); background: transparent; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s; }
.t-btn:hover:not([disabled]) { background: var(--text); color: var(--white); }
.t-btn[disabled] { opacity: .35; cursor: default; }
.t-count { font-size: 15px; color: var(--text-soft); min-width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }
.t-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-block: 4px 16px; scrollbar-width: thin; scrollbar-color: var(--detail) transparent;
  margin-top: clamp(28px, 4vw, 48px);
}
.t-card {
  flex: 0 0 calc((100% - 40px) / 3); min-width: 0; scroll-snap-align: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.section--paper .t-card { background: var(--white); }
.t-card blockquote { font-size: 17px; line-height: 1.7; }
.t-card blockquote p + p { margin-top: .8em; }
.t-body.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden; }
.t-more { align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--action); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.t-more[hidden] { display: none; }
.t-card footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.t-name { font-weight: 700; }
.t-source { font-size: 14px; color: var(--text-soft); }

/* ---------- פודקאסט ---------- */
.podcast-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.podcast-text p { color: var(--on-dark-soft); margin-top: 18px; }
.podcast-text .btn { margin-top: 28px; }
.video-card { position: relative; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; border: 1px solid var(--line-dark); }
.video-card img, .video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  color: var(--white) !important; text-decoration: none; background: linear-gradient(to top, rgba(17,19,21,.72), rgba(17,19,21,.12) 60%);
  font-weight: 700; font-size: clamp(17px, 1.6vw, 21px); text-align: center; padding: 16px;
}
.video-play .play-icon { width: clamp(64px, 8vw, 96px); height: clamp(64px, 8vw, 96px); border-radius: 50%; background: var(--action); display: flex; align-items: center; justify-content: center; transition: transform .2s, background-color .2s; }
.video-play:hover .play-icon { transform: scale(1.06); background: var(--action-hover); }
.video-play svg { width: 38%; height: 38%; margin-inline-end: -6%; }
.video-fallback { margin-top: 14px; font-size: 15px; color: var(--on-dark-soft); }

/* ---------- שאלות נפוצות ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-list { border-top: 2px solid var(--text); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 14px; height: 14px; border-left: 2.5px solid var(--action); border-bottom: 2.5px solid var(--action);
  transform: rotate(-45deg) translate(2px, -2px); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(135deg) translate(-2px, 2px); }
.faq-item summary:hover { color: var(--action); }
.faq-answer { padding: 0 4px 26px; max-width: 68ch; color: var(--text-soft); }
.faq-answer p + p { margin-top: .9em; }

/* ---------- פנייה ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-info h2 { font-size: clamp(30px, 3.6vw, 48px); }
.contact-info > p { color: var(--on-dark-soft); margin-top: 18px; max-width: 34ch; }
.contact-list { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.contact-list li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--line-dark); align-items: baseline; }
.contact-list .k { font-size: 15px; color: var(--on-dark-soft); }
.contact-list .v { font-weight: 700; font-size: 19px; overflow-wrap: anywhere; }
.contact-list .v a { text-decoration: none; }
.contact-list .v a:hover { text-decoration: underline; }
.contact-list [dir="ltr"] { unicode-bidi: isolate; display: inline-block; }
.section--paper .contact-list, .section--white .contact-list { border-top-color: var(--line); }
.section--paper .contact-list li, .section--white .contact-list li { border-bottom-color: var(--line); }
.section--paper .contact-list .k, .section--white .contact-list .k { color: var(--text-soft); }
.section--paper .contact-list .v a, .section--white .contact-list .v a { color: var(--text); }

.form-card { background: var(--paper); color: var(--text); border-radius: 12px; padding: clamp(22px, 3vw, 40px); }
.section--paper .form-card, .aside .form-card { background: var(--white); border: 1px solid var(--line); }
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card .form-intro { font-size: 16px; color: var(--text-soft); margin-bottom: 22px; }
.lead-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: 16px; }
.field .opt { font-weight: 400; color: var(--text-soft); font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--text);
  background: var(--white); border: 1.5px solid var(--field-border); border-radius: var(--radius);
}
.field textarea { min-height: 108px; resize: vertical; line-height: 1.5; }
.field input[type="tel"], .field input[type="email"] { direction: ltr; text-align: right; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(36, 90, 129, .35); outline-offset: 0; border-color: var(--action); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field .hint { font-size: 14px; color: var(--text-soft); }
.field .error { font-size: 15px; color: var(--error); font-weight: 500; min-height: 0; }
.field .error:empty { display: none; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.5; color: var(--text-soft); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--action); }
.hp-field { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius); padding: 14px 16px; font-size: 16px; line-height: 1.55; }
.form-status:empty { display: none; }
.form-status.is-error { background: #FBEAE8; color: #7A1A13; border: 1px solid #E5B5B0; }
.form-status.is-ok { background: #E6F2EC; color: #14472E; border: 1px solid #A9CDB9; }
.form-status.is-info { background: #E7EEF3; color: #1B3F59; border: 1px solid #B8C7D3; }
.form-status a { color: inherit; font-weight: 700; }
.form-note { font-size: 14px; color: var(--text-soft); }

/* ---------- סיום ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-soft); border-top: 1px solid var(--line-dark); padding-block: 56px 32px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 40px; }
.site-footer h2 { font-size: 15px; font-weight: 700; color: var(--on-dark); margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 30ch; }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; font-size: 14px; }

/* ---------- עמודים פנימיים ---------- */
.page-hero { background: var(--paper); padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 900; }
.page-hero .summary { font-size: clamp(19px, 1.7vw, 22px); color: var(--text-soft); max-width: 60ch; margin-top: 20px; line-height: 1.6; }
.breadcrumbs { font-size: 15px; margin-bottom: 22px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 10px; color: var(--text-soft); }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 500; }

.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.service-main > * + * { margin-top: clamp(36px, 4vw, 52px); }
.service-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.service-mark {
  aspect-ratio: 16 / 6; min-height: 150px; border-radius: 10px; background: var(--ink); color: var(--detail);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(22px, 4vw, 48px); position: relative; overflow: hidden;
}
.service-mark svg { width: clamp(72px, 12vw, 132px); height: auto; flex: none; }
.service-mark span { color: var(--on-dark); font-size: clamp(22px, 3vw, 38px); font-weight: 900; line-height: 1.15; max-width: 12em; }
.service-mark::after { content: ""; position: absolute; inset-inline-end: 22px; top: 22px; width: 64px; height: 64px; border: 2px solid var(--line-dark); border-inline-start: 0; border-bottom: 0; }
.service-section h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 16px; }
.service-section .prose p { color: var(--text); }
.def-list { display: grid; gap: 0; margin-top: 20px; border-top: 1px solid var(--line); }
.def-list > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 8px 24px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.def-list dt { font-weight: 800; font-size: 19px; }
.def-list dd { color: var(--text-soft); font-size: 17px; }
.note { margin-top: 22px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-inline-start: 3px solid var(--action); border-radius: var(--radius); font-size: 16px; color: var(--text-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chips li { border: 1.5px solid var(--text); border-radius: 999px; padding: 6px 18px; font-weight: 700; font-size: 16px; }
.chips-title { font-weight: 700; margin-top: 24px; }
.aside { position: sticky; top: calc(var(--header-h) + 24px); }
.aside .form-card h3 { font-size: 22px; }
.aside-phone { margin-top: 16px; font-size: 16px; color: var(--text-soft); }
.aside-phone a { font-weight: 700; }
.related { border-top: 2px solid var(--text); padding-top: 24px; }
.related h2 { font-size: 22px; margin-bottom: 14px; }
.related ul { display: flex; flex-wrap: wrap; gap: 12px; }
.related a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-weight: 700; text-decoration: none; color: var(--text); }
.related a:hover { border-color: var(--action); color: var(--action); }
.related a::after { content: "←"; }

/* אודות */
.about-hero { background: var(--ink); color: var(--on-dark); }
.about-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.about-hero h1 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 900; }
.about-hero h1 span { display: block; }
.about-hero h1 span:last-child { color: var(--detail); }
.about-hero .summary { color: var(--on-dark-soft); font-size: clamp(18px, 1.6vw, 21px); margin-top: 24px; max-width: 46ch; }
.about-hero .breadcrumbs a, .about-hero .breadcrumbs li + li::before { color: var(--on-dark-soft); }
.about-hero .breadcrumbs [aria-current] { color: var(--on-dark); }
.about-hero figure img { width: 100%; aspect-ratio: 15 / 16; object-fit: cover; object-position: 50% 0; border-radius: 10px; }
.about-hero figcaption { margin-top: 12px; font-size: 15px; color: var(--on-dark-soft); }
.about-hero figcaption strong { color: var(--on-dark); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.split h2 { font-size: clamp(26px, 2.8vw, 38px); }
.split h2 span { display: block; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.principle { border-top: 2px solid var(--text); padding-top: 18px; }
.principle h3 { font-size: 22px; margin-bottom: 8px; }
.principle p { color: var(--text-soft); font-size: 17px; }
.quote { border-inline-start: 3px solid var(--detail); padding-inline-start: clamp(18px, 3vw, 36px); max-width: 30em; }
.quote p { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; line-height: 1.35; }
.quote cite { display: block; margin-top: 16px; font-style: normal; color: var(--on-dark-soft); font-size: 17px; }
.cta-band { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(26px, 3vw, 40px); max-width: 16em; }

.legal { max-width: 76ch; }
.legal h2 { font-size: 22px; margin-top: 40px; margin-bottom: 10px; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: .9em; }
.legal ul { list-style: disc; padding-inline-start: 1.3em; display: grid; gap: 6px; }
.notfound { text-align: start; padding-block: clamp(64px, 10vw, 140px); }
.notfound .code { font-size: clamp(72px, 14vw, 168px); font-weight: 900; line-height: 1; color: var(--detail); font-variant-numeric: tabular-nums; }
.notfound h1 { font-size: clamp(30px, 4vw, 48px); margin-top: 12px; }
.notfound p { margin-top: 16px; color: var(--text-soft); }
.notfound .hero-actions { margin-top: 28px; }

/* ---------- סרגל פנייה תחתון (נייד) ---------- */
.cta-bar { display: none; }

/* ---------- תנועה ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-in { animation: rise .32s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- טווח ביניים ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-card { flex-basis: calc((100% - 20px) / 2); }
  .service-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
  .service-layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .podcast-grid, .faq-grid, .contact-grid, .split, .case { grid-template-columns: minmax(0, 1fr); }
  .advantages, .principles { grid-template-columns: minmax(0, 1fr); }
  .steps--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- נייד ---------- */
@media (max-width: 767px) {
  :root { --gutter: 20px; --section: clamp(48px, 13vw, 64px); --header-h: 64px; }
  body { font-size: 17px; }
  .logo img { height: 40px; }
  .home .site-header.is-top { background: var(--ink); border-bottom-color: var(--line-dark); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-media { order: -1; margin-top: var(--header-h); min-height: 0; aspect-ratio: 4 / 3; }
  .hero-media img { object-position: 50% 20%; }
  .hero-media::before { background: linear-gradient(to top, var(--ink) 0%, rgba(17,19,21,0) 30%); }
  .hero-caption { display: none; }
  .hero-text { padding: 8px var(--gutter) 48px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 44px); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section-title { font-size: clamp(28px, 7.6vw, 32px); }
  .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .intro-photo { max-width: 420px; }
  .intro-photo::after { inset-inline-start: -8px; bottom: -8px; }
  .cards, .steps, .steps--6 { grid-template-columns: minmax(0, 1fr); }
  .t-card { flex-basis: 100%; padding: 22px; }
  .t-head { align-items: flex-start; }
  .about-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .about-hero figure { max-width: 420px; }
  .def-list > div { grid-template-columns: minmax(0, 1fr); }
  .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .service-mark { aspect-ratio: auto; }
  .step-list > li { grid-template-columns: 44px minmax(0, 1fr); }

  body.has-cta-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .cta-bar {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--ink); border-top: 1px solid var(--line-dark);
    transition: transform .25s;
  }
  .cta-bar .btn { min-height: 50px; padding: 8px 12px; font-size: 16px; }
  .cta-bar.is-hidden { transform: translateY(110%); visibility: hidden; }
}

/* ---------- תפריט נייד ---------- */
@media (max-width: 1100px) {
  .mobile-menu {
    display: flex; flex-direction: column; gap: 8px;
    position: fixed; inset: 0; z-index: 150; background: var(--paper); color: var(--text);
    padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .mobile-menu-top img { height: 44px; width: auto; }
  .menu-close { width: 48px; height: 48px; border-radius: var(--radius); background: transparent; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
  .mobile-menu nav a { display: block; padding: 16px 4px; font-size: 22px; font-weight: 800; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-menu nav .sub a { font-size: 17px; font-weight: 500; padding: 12px 16px; color: var(--text-soft); }
  .mobile-menu .btn { margin-top: 20px; width: 100%; }
  .mobile-menu .menu-phone { margin-top: 14px; text-align: center; font-size: 17px; }
  .mobile-menu .menu-phone a { font-weight: 700; color: var(--text); }
  body.menu-open { overflow: hidden; }
}
