/* נדל״ן ראש העין — שלד ורכיבים. כל הצבעים, הגופנים והרדיוסים מגיעים מ-theme.css */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.15; margin: 0; letter-spacing: var(--head-tracking); }
p { margin: 0; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* ---------- כפתורים ושדות ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  height: 46px; padding: 0 20px; border-radius: var(--radius-btn); border: 1px solid transparent;
  font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .12s, background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.input, .select {
  height: 46px; width: 100%; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--field-bg); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; }
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.select { appearance: none; padding-left: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 16px 20px, 21px 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; cursor: pointer; white-space: nowrap; user-select: none;
}
.chip:hover { border-color: var(--ink); }
.chip.on, .chip:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input { display: none; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--radius-btn); background: var(--surface-2); }
.seg button { border: 0; background: none; height: 36px; padding: 0 16px; border-radius: calc(var(--radius-btn) - 2px); cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- כותרת עליונה ---------- */
#site-header { position: sticky; top: 0; z-index: 1000; background: var(--hdr-bg); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(12px); }
.hdr-inner { height: 68px; display: flex; align-items: center; gap: 28px; padding-inline: 24px; max-width: 1440px; margin-inline: auto; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 34px; height: 34px; border-radius: var(--radius-logo); background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }
.logo-mark .ico { width: 19px; height: 19px; }
.logo-word { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.logo-sub { font-size: 12px; color: var(--muted); border-inline-start: 1px solid var(--line-strong); padding-inline-start: 8px; margin-inline-start: 2px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 500; color: var(--ink-2); }
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a.active { color: var(--primary-text); background: var(--primary-soft); }
.hdr-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.hdr-fav { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; }
.hdr-fav:hover { background: var(--surface-2); }
.hdr-fav .ico { width: 22px; height: 22px; }
.fav-count { position: absolute; top: 2px; left: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: none; border-radius: 999px; cursor: pointer; }

/* ---------- כרטיס נכס ---------- */
.card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; border: var(--card-border); box-shadow: var(--card-shadow); transition: transform .2s, box-shadow .2s; position: relative; }
.card:hover { transform: translateY(var(--card-lift)); box-shadow: var(--card-shadow-hover); }
.card.hl { box-shadow: 0 0 0 2px var(--primary), var(--card-shadow-hover); }
.card-media { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--surface-2); border-radius: var(--card-media-radius); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: var(--radius-badge); background: var(--badge-bg); color: var(--badge-ink); font-size: 12px; font-weight: 700; }
.badge-drop { background: var(--accent); color: var(--on-accent); }
.badge-mine { background: var(--ink); color: var(--bg); }
.fav-btn { position: absolute; top: 10px; left: 10px; width: 38px; height: 38px; border-radius: 999px; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(0, 0, 0, .28); color: #fff; backdrop-filter: blur(6px); transition: transform .15s; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn .ico { width: 20px; height: 20px; }
.fav-btn.on .ico, .btn .on .ico { fill: var(--fav); stroke: var(--fav); }
.fav-btn.on { background: #fff; }
.card-photos { position: absolute; bottom: 10px; left: 10px; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .5); color: #fff; }
.card-body { display: block; padding: var(--card-pad); }
.card-price { font-family: var(--font-price); font-weight: var(--price-weight); font-size: 22px; letter-spacing: -.01em; }
.card-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.card-specs { display: flex; gap: 0; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.card-specs span + span::before { content: '·'; margin-inline: 7px; color: var(--muted); }
.card-addr { margin-top: 2px; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.card-meta .est { color: var(--primary-text); font-weight: 600; }
.cards { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

/* ---------- חלקים בדף הבית ---------- */
.section { padding-block: var(--section-pad); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: var(--h2-size); }
.section-head p { color: var(--muted); margin-top: 6px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--primary-text); }
.link-more { font-weight: 600; color: var(--primary-text); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-inner { position: relative; min-height: 560px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 80px 24px; color: #fff; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--hero-em); }
.hero .lead { font-size: 19px; margin-top: 14px; opacity: .92; max-width: 46ch; }
.hero-search { margin-top: 32px; width: min(720px, 100%); }
.hero-tabs { display: flex; gap: 4px; margin-bottom: 10px; justify-content: center; }
.hero-tabs button { border: 0; background: rgba(255, 255, 255, .16); color: inherit; height: 36px; padding: 0 18px; border-radius: 999px; cursor: pointer; font-weight: 600; backdrop-filter: blur(6px); }
.hero-tabs button.on { background: #fff; color: #111; }
.search-box { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface); color: var(--ink); border-radius: var(--radius-search); padding: 7px; padding-inline-start: 18px; box-shadow: var(--shadow-lg); border: var(--search-border); }
.search-box .ico { color: var(--muted); width: 22px; height: 22px; }
.search-box input { flex: 1; border: 0; outline: 0; background: none; height: 46px; font-size: 17px; min-width: 0; }
.search-box .btn { height: 48px; border-radius: calc(var(--radius-search) - 4px); }
.suggest { position: absolute; top: calc(100% + 6px); right: 0; left: 0; background: var(--surface); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; z-index: 20; text-align: right; }
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; font-size: 15px; }
.suggest a:hover, .suggest a.sel { background: var(--surface-2); }
.suggest a span { color: var(--muted); font-size: 13px; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.hero-quick a { font-size: 14px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.hero-quick a:hover { background: rgba(255, 255, 255, .26); }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.hero-stats div { display: grid; }
.hero-stats b { font-family: var(--font-num); font-size: 28px; font-weight: 700; }
.hero-stats span { font-size: 13px; opacity: .8; }

/* שכונות */
.hoods { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(4, 1fr); }
.hood { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 210px; display: flex; flex-direction: column; justify-content: end; padding: 20px; color: #fff; isolation: isolate; }
.hood img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.hood::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .05) 70%); }
.hood:hover img { transform: scale(1.06); }
.hood h3 { font-size: 22px; }
.hood-stats { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; margin-top: 6px; opacity: .92; }
.hood-stats span { white-space: nowrap; }
.hood-up { color: var(--up-on-dark); font-weight: 700; }
.hood:first-child { grid-column: span 2; grid-row: span 2; min-height: 440px; }
.hood:first-child h3 { font-size: 32px; }

/* נתוני שוק */
.market { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--grid-gap); }
.panel { background: var(--panel-bg); border: var(--card-border); border-radius: var(--radius); padding: 24px; box-shadow: var(--panel-shadow); }
.panel h3 { font-size: 19px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: var(--panel-bg); border: var(--card-border); border-radius: var(--radius); padding: 18px; box-shadow: var(--panel-shadow); }
.kpi b { display: block; font-family: var(--font-num); font-size: 26px; font-weight: 700; margin-top: 4px; letter-spacing: -.01em; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi .delta { font-size: 13px; font-weight: 700; color: var(--up); }
.chart-wrap { position: relative; margin-top: 12px; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.chart .line { stroke: var(--primary); stroke-width: 2.5; }
.chart .dot { fill: var(--primary); stroke: var(--panel-solid); stroke-width: 2; }
.chart .hl { stroke: var(--muted); stroke-dasharray: 3 3; }
.chart-tip { position: absolute; transform: translate(-50%, -130%); background: var(--ink); color: var(--bg); padding: 4px 9px; border-radius: 6px; font-size: 12px; pointer-events: none; white-space: nowrap; }
.hood-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.hood-table td, .hood-table th { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.hood-table th { color: var(--muted); font-weight: 500; font-size: 12px; }
.hood-table td:last-child, .hood-table th:last-child { text-align: left; }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 3px; }

/* באנר מכירה */
.cta { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--cta-bg); color: var(--cta-ink); }
.cta-text { padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.cta-text h2 { font-size: var(--h2-size); }
.cta-text p { opacity: .85; font-size: 17px; }
.cta-media { position: relative; min-height: 320px; }
.cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta .btn-primary { background: var(--cta-btn); color: var(--cta-btn-ink); }

/* ---------- תחתית ---------- */
#site-footer { margin-top: var(--section-pad); border-top: 1px solid var(--line); background: var(--footer-bg); }
.ftr-inner { max-width: 1240px; margin: 0 auto; padding: 48px 24px 24px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.ftr-inner h4 { font-size: 14px; margin-bottom: 12px; font-family: var(--font-body); font-weight: 700; }
.ftr-inner a { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; }
.ftr-inner a:hover { color: var(--ink); }
.ftr-brand p { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 36ch; }
.ftr-note { max-width: 1240px; margin: 0 auto; padding: 16px 24px 32px; font-size: 12px; color: var(--muted); }

.toast { position: fixed; bottom: 32px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 99px; font-size: 14px; z-index: 3000; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- עמוד חיפוש ---------- */
body[data-page="search"] { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body[data-page="search"] #site-footer { display: none; }
.filters { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 900; }
.filters-row { display: flex; align-items: center; gap: 8px; padding: 12px 24px; overflow-x: auto; scrollbar-width: none; }
.filters-row::-webkit-scrollbar { display: none; }
.filters .search-box { box-shadow: none; border: 1px solid var(--line-strong); padding: 3px; padding-inline-start: 14px; min-width: 260px; flex: 0 1 340px; border-radius: var(--radius-sm); }
.filters .search-box input { height: 38px; font-size: 15px; }
.filters .search-box .ico { width: 18px; height: 18px; }
.dd { position: relative; }
.dd > .chip .ico { width: 14px; height: 14px; transition: transform .2s; transform: rotate(-90deg); }
.dd.open > .chip .ico { transform: rotate(90deg); }
.dd-panel { display: none; position: fixed; z-index: 1500; margin-top: 8px; min-width: 300px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.dd.open .dd-panel { display: block; }
.dd-panel h4 { font-size: 14px; margin-bottom: 10px; font-family: var(--font-body); }
.dd-panel .row { display: flex; gap: 8px; align-items: center; }
.dd-panel .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dd-actions { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.dd-actions .btn { height: 36px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.chip.active-f { border-color: var(--primary); color: var(--primary-text); background: var(--primary-soft); }
.view-toggle { display: none; }
.results { flex: 1; display: grid; grid-template-columns: minmax(420px, 46%) 1fr; min-height: 0; }
.results-list { overflow-y: auto; padding: 20px 24px 80px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.results-head h1 { font-size: 22px; }
.results-head p { font-size: 14px; color: var(--muted); }
.results-list .cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.sort-sel { height: 38px; width: auto; font-size: 14px; }
#map { height: 100%; width: 100%; background: var(--surface-2); }
.map-pane { position: relative; }
.map-tools { position: absolute; top: 14px; right: 14px; z-index: 500; display: flex; gap: 8px; }
.map-tools .chip { box-shadow: var(--shadow-sm); background: var(--surface); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 8px; font-size: 22px; }
.empty .btn { margin-top: 16px; }

/* סיכות מחיר במפה */
.pin-wrap { background: none; border: 0; }
.pin { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; padding: 4px 9px; border-radius: var(--radius-pin); background: var(--pin-bg); color: var(--pin-ink); font: 700 12.5px/1.25 var(--font-body); box-shadow: 0 2px 8px rgba(0, 0, 0, .22); border: 1.5px solid var(--pin-border); transition: transform .15s, background-color .15s; cursor: pointer; }
.pin::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--pin-border); }
.pin.rent { background: var(--pin-rent-bg); }
.pin.fav::before { content: '♥ '; color: var(--fav); }
.pin.hl, .pin:hover { background: var(--pin-hl-bg); color: var(--pin-hl-ink); transform: translate(-50%, -100%) scale(1.12); z-index: 1000; }
.pin.seen { opacity: .72; }
.pin-label { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff !important; font-size: 13px; padding: 5px 10px; }
.pin-label::after { display: none; }
.dots .pin:not(.hl):not(:hover) { font-size: 0; padding: 0; width: 13px; height: 13px; border-radius: 50%; transform: translate(-50%, -50%); border-width: 2px; }
.dots .pin:not(.hl):not(:hover)::after, .dots .pin:not(.hl):not(:hover)::before { display: none; }
.leaflet-popup-content-wrapper { border-radius: var(--radius); padding: 0; overflow: hidden; background: var(--surface); color: var(--ink); }
.leaflet-popup-content { margin: 0; width: 260px !important; font-family: var(--font-body); }
.leaflet-popup-content .card { box-shadow: none; border: 0; border-radius: 0; }
.leaflet-popup-content .card:hover { transform: none; }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-container a.leaflet-popup-close-button { color: #fff; z-index: 5; top: 6px; right: 6px; width: 24px; height: 24px; background: rgba(0, 0, 0, .4); border-radius: 50%; font-size: 18px; line-height: 22px; text-align: center; }
.leaflet-container { font-family: var(--font-body); }

/* ---------- עמוד נכס ---------- */
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); padding-block: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.gallery button { border: 0; padding: 0; cursor: zoom-in; background: var(--surface-2); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.gallery button:hover img { transform: scale(1.03); filter: brightness(.92); }
.gallery button:first-child { grid-row: span 2; }
.gallery-all { position: absolute; bottom: 16px; left: 16px; }
.gallery-all.btn { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.listing-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; margin-top: 32px; align-items: start; }
.l-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; flex-wrap: wrap; }
.l-price { font-family: var(--font-price); font-size: 40px; font-weight: var(--price-weight); letter-spacing: -.02em; line-height: 1.1; }
.l-price small { font-size: 18px; color: var(--muted); font-weight: 500; }
.l-addr { font-size: 18px; margin-top: 6px; color: var(--ink-2); }
.l-actions { display: flex; gap: 8px; }
.l-actions .btn.on .ico { fill: var(--fav); stroke: var(--fav); }
.l-facts { display: flex; gap: 0; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel-bg); }
.l-facts div { flex: 1; padding: 14px 16px; display: grid; gap: 2px; border-inline-start: 1px solid var(--line); }
.l-facts div:first-child { border: 0; }
.l-facts b { font-size: 20px; font-family: var(--font-num); }
.l-facts span { font-size: 13px; color: var(--muted); }
.estimate { margin-top: 18px; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--primary-soft); color: var(--ink); }
.estimate .ico { width: 28px; height: 28px; color: var(--primary-text); }
.estimate b { font-family: var(--font-num); }
.estimate small { display: block; color: var(--muted); font-size: 13px; }
.l-section { padding-block: 32px; border-bottom: 1px solid var(--line); }
.l-section:last-child { border: 0; }
.l-section h2 { font-size: 24px; margin-bottom: 16px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feat { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 15px; }
.feat .ico { color: var(--primary-text); }
.feat.off { opacity: .45; text-decoration: line-through; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.details div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.details span { color: var(--muted); }
.hist { width: 100%; border-collapse: collapse; font-size: 15px; }
.hist td, .hist th { padding: 12px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.hist th { color: var(--muted); font-weight: 500; font-size: 13px; }
.hist td:last-child, .hist th:last-child { text-align: left; }
.mini-map { height: 300px; border-radius: var(--radius); overflow: hidden; z-index: 0; }
.mort { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.mort-out { text-align: center; padding: 24px; border-radius: var(--radius); background: var(--surface-2); }
.mort-out b { font-family: var(--font-num); font-size: 38px; display: block; letter-spacing: -.02em; }
.mort-out small { color: var(--muted); }
.mort-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin-top: 18px; }
.mort-bar i:first-child { background: var(--primary); }
.mort-bar i:last-child { background: var(--accent); }
.mort-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.mort-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 6px; background: var(--primary); }
.mort-legend span:last-child::before { background: var(--accent); }
.range { display: grid; gap: 6px; margin-bottom: 14px; }
.range label { display: flex; justify-content: space-between; font-size: 14px; }
.range label b { font-family: var(--font-num); }
input[type=range] { width: 100%; accent-color: var(--primary); }
.side { position: sticky; top: 92px; display: grid; gap: 16px; }
.agent { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.agent b { display: block; }
.agent span { font-size: 13px; color: var(--muted); }
.contact-form { display: grid; gap: 10px; }
.side-note { font-size: 12px; color: var(--muted); text-align: center; }
.lightbox { position: fixed; inset: 0; z-index: 5000; background: rgba(8, 8, 10, .94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: 6px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { right: 24px; top: 50%; }
.lb-next { left: 24px; top: 50%; }
.lb-count { position: absolute; bottom: 24px; color: #fff; font-size: 14px; opacity: .8; }

/* ---------- עמוד מכירה ---------- */
.sell-hero { padding-block: 56px 24px; text-align: center; }
.sell-hero h1 { font-size: clamp(32px, 4.6vw, 54px); max-width: 18ch; margin: 10px auto 0; }
.sell-hero p { color: var(--muted); font-size: 18px; margin-top: 12px; }
.sell-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.est-result { text-align: center; padding: 28px 20px; border-radius: var(--radius); background: var(--primary-soft); margin-top: 18px; }
.est-result b { display: block; font-family: var(--font-num); font-size: 44px; letter-spacing: -.02em; color: var(--primary-text); }
.est-range { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--primary-soft-2), var(--primary), var(--primary-soft-2)); margin: 18px 10% 6px; }
.est-labels { display: flex; justify-content: space-between; margin: 0 10%; font-size: 13px; color: var(--muted); font-family: var(--font-num); }
.photo-drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); cursor: pointer; }
.photo-drop:hover { border-color: var(--primary); color: var(--ink); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.step { padding: 22px; border-radius: var(--radius); background: #fff; border: var(--card-border); box-shadow: var(--card-shadow); }
.step i { font-style: normal; font-family: var(--font-num); font-weight: 800; font-size: 32px; color: var(--primary-text); }
.step h3 { font-size: 18px; margin: 6px 0; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- רספונסיבי ---------- */
@media (max-width: 1100px) {
  .hoods { grid-template-columns: repeat(2, 1fr); }
  .market, .cta, .listing-layout, .sell-grid { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 860px) {
  .wrap { padding-inline: 16px; }
  .hdr-inner { padding-inline: 16px; gap: 12px; height: 60px; }
  .logo-sub { display: none; }
  .main-nav { display: none; position: absolute; top: 60px; right: 0; left: 0; flex-direction: column; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px; }
  .menu-btn { display: grid; place-items: center; }
  .hdr-actions .btn { display: none; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 22px; }
  .hoods { grid-template-columns: 1fr; }
  .hood:first-child { grid-column: auto; grid-row: auto; min-height: 260px; }
  .ftr-inner { grid-template-columns: 1fr 1fr; padding-inline: 16px; }
  .ftr-brand { grid-column: 1 / -1; }
  .cta-text { padding: 28px; }
  .results { grid-template-columns: 1fr; }
  .results-list, .map-pane { grid-area: 1 / 1; }
  .results[data-view="list"] .map-pane { visibility: hidden; }
  .results[data-view="map"] .results-list { visibility: hidden; }
  .results-list { padding: 16px 16px 90px; background: var(--bg); z-index: 1; }
  .view-toggle { display: inline-flex; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1200; box-shadow: var(--shadow-lg); background: var(--ink); color: var(--bg); border: 0; height: 44px; padding: 0 20px; border-radius: 99px; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
  .filters-row { padding: 10px 16px; }
  .filters .search-box { min-width: 200px; }
  .dd-panel { left: 16px !important; right: 16px !important; min-width: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; border-radius: var(--radius); }
  .gallery button:first-child { grid-column: span 2; grid-row: auto; }
  .gallery button:nth-child(n+4) { display: none; }
  .l-price { font-size: 32px; }
  .l-facts { flex-wrap: wrap; }
  .l-facts div { flex: 1 1 33%; border-inline-start: 0; border-top: 1px solid var(--line); }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .details, .mort, .form-grid, .steps, .kpis { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
}
/* =========================================================
   שבירת הלבן: פס עליון, לוגו, רצועות צבע, כותרות עמוד, תחתית כהה
   ========================================================= */
.topbar { background: var(--navy); color: var(--on-navy-muted); font-size: 13px; }
.topbar-inner { max-width: 1440px; margin: 0 auto; padding: 0 24px; height: 34px; display: flex; align-items: center; gap: 18px; }
.topbar b { color: #fff; font-weight: 600; }
.topbar .tb-links { margin-inline-start: auto; display: flex; gap: 16px; }
.topbar a:hover { color: #fff; }
.topbar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34d399; margin-inline-end: 6px; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
#site-header { background: var(--hdr-bg); }

.logo { gap: 10px; }
.logo-mark { width: 40px; height: 40px; background: none; border-radius: 0; display: block; }
.logo-mark svg { width: 40px; height: 40px; display: block; }
.logo-text { display: grid; line-height: 1.1; }
.logo-name { font-weight: 800; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.logo-name span { color: var(--primary); }
.logo-tag { font-size: 11.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.on-dark .logo-name { color: #fff; }
.on-dark .logo-name span { color: #7dd3fc; }
.on-dark .logo-tag { color: var(--on-navy-muted); }

.band { padding-block: var(--section-pad); position: relative; }
.band-white { background: #fff; }
.band-sky { background: var(--sky); }
.band-sand { background: var(--sand); }
.band-mint { background: var(--mint); }
.band-navy {
  background: var(--navy); color: var(--on-navy);
  --ink: #fff; --ink-2: #cdd8f3; --muted: var(--on-navy-muted); --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .22);
  --panel-bg: var(--navy-2); --panel-solid: var(--navy-2); --card-border: 1px solid rgba(255, 255, 255, .08); --panel-shadow: none;
  --primary: #60a5fa; --primary-text: #93c5fd; --surface-2: rgba(255, 255, 255, .08); --up: #6ee7b7; --bg: var(--navy);
}
.band-navy .chart-tip { background: #fff; color: var(--navy); }
/* קווי מים עדינים — רמז למעיינות שעל שמם נקראת העיר */
.waves { position: relative; isolation: isolate; overflow: hidden; }
.waves::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' viewBox='0 0 240 60'%3E%3Cpath d='M0 30 Q30 12 60 30 T120 30 T180 30 T240 30' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 240px 60px;
}
.waves-blue::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' viewBox='0 0 240 60'%3E%3Cpath d='M0 30 Q30 12 60 30 T120 30 T180 30 T240 30' fill='none' stroke='%231d4ed8' stroke-opacity='.08' stroke-width='2'/%3E%3C/svg%3E"); opacity: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: -1; pointer-events: none; }

/* כותרת עמוד פנימי — רצועה כחולה כהה */
.page-hero { background: var(--navy); color: #fff; padding: 36px 0 76px; }
.page-hero .crumbs { color: var(--on-navy-muted); padding-block: 0 14px; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); }
.page-hero p.sub { color: var(--on-navy-muted); font-size: 18px; margin-top: 10px; max-width: 60ch; }
.page-hero .eyebrow { color: #7dd3fc; }
.lift { margin-top: -48px; position: relative; z-index: 2; }

/* קטגוריות מהירות */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat { background: #fff; border: var(--card-border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--card-shadow); transition: transform .2s, box-shadow .2s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.cat i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-style: normal; }
.cat i .ico { width: 22px; height: 22px; }
.cat b { font-size: 15.5px; }
.cat span { font-size: 13px; color: var(--muted); margin-top: -8px; }
.tone-sky { background: var(--sky); color: var(--primary); }
.tone-sand { background: var(--sand); color: var(--sand-ink); }
.tone-mint { background: var(--mint); color: var(--mint-ink); }
.tone-rose { background: var(--rose); color: var(--rose-ink); }
.tone-navy { background: var(--navy); color: #fff; }

/* כלים */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool { border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 210px; position: relative; overflow: hidden; transition: transform .2s; }
.tool:hover { transform: translateY(-3px); }
.tool .ico-big { width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .7); display: grid; place-items: center; }
.tool .ico-big .ico { width: 26px; height: 26px; }
.tool h3 { font-size: 21px; color: var(--ink); }
.tool p { color: var(--ink-2); font-size: 15px; }
.tool .link-more { margin-top: auto; color: inherit; }

/* פרויקטים */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.proj { background: #fff; border-radius: var(--radius); overflow: hidden; border: var(--card-border); box-shadow: var(--card-shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.proj:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.proj-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.proj-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-media .badge { background: var(--navy); color: #fff; }
.proj-body { padding: 18px; display: grid; gap: 10px; flex: 1; align-content: start; }
.proj-body h3 { font-size: 20px; }
.proj-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-facts span { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.proj-price { display: flex; justify-content: space-between; align-items: end; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 4px; }
.proj-price b { font-size: 22px; }
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--spring), var(--primary)); border-radius: 4px; }
.progress-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* מתווכים */
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.agent-card { background: #fff; border-radius: var(--radius); border: var(--card-border); box-shadow: var(--card-shadow); padding: 24px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.agent-card .avatar { width: 84px; height: 84px; font-size: 28px; }
.agent-card h3 { font-size: 19px; }
.agent-card .stats { display: flex; gap: 0; width: 100%; border-top: 1px solid var(--line); padding-top: 12px; }
.agent-card .stats div { flex: 1; display: grid; }
.agent-card .stats b { font-size: 18px; }
.agent-card .stats span { font-size: 12px; color: var(--muted); }

/* שאלות נפוצות / מדריך */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: var(--card-border); border-radius: var(--radius); padding: 0 20px; box-shadow: var(--card-shadow); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding-bottom: 18px; color: var(--ink-2); }
.faq details > div p + p { margin-top: 8px; }
.steps-v { counter-reset: st; display: grid; gap: 14px; }
.steps-v li { list-style: none; counter-increment: st; display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: #fff; border: var(--card-border); border-radius: var(--radius); padding: 18px; box-shadow: var(--card-shadow); }
.steps-v li::before { content: counter(st); width: 44px; height: 44px; border-radius: 12px; background: var(--sky); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.steps-v h3 { font-size: 17px; margin-bottom: 4px; }
.steps-v p { color: var(--ink-2); font-size: 15px; }
.steps-v { padding: 0; margin: 0; }

/* עמוד שכונה */
.hood-hero { position: relative; min-height: 380px; display: flex; align-items: end; color: #fff; isolation: isolate; }
.hood-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hood-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(14, 27, 61, .92), rgba(14, 27, 61, .2) 70%); }
.hood-hero .wrap { width: 100%; padding-bottom: 76px; }
.hood-hero h1 { font-size: clamp(36px, 5vw, 60px); }
.hood-hero .crumbs { color: rgba(255, 255, 255, .75); padding-block: 0 10px; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat-strip div { padding: 20px 22px; border-inline-start: 1px solid var(--line); display: grid; gap: 2px; }
.stat-strip div:first-child { border: 0; }
.stat-strip span { font-size: 13px; color: var(--muted); }
.stat-strip b { font-size: 26px; letter-spacing: -.01em; }
.stat-strip small { font-size: 12.5px; color: var(--up); font-weight: 700; }
.life { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.life div { border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.life .ico { width: 26px; height: 26px; }
.life b { font-size: 16px; color: var(--ink); }
.life p { font-size: 14.5px; color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.hood-map { height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: var(--card-border); z-index: 0; }
.hood-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.hood-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: var(--card-border); box-shadow: var(--card-shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.hood-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.hood-card .hc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.hood-card .hc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hood-card .hc-media h3 { position: absolute; bottom: 12px; right: 16px; color: #fff; font-size: 24px; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.hood-card .hc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 60%); }
.hood-card .hc-media h3 { z-index: 1; }
.hood-card .hc-body { padding: 16px; display: grid; gap: 12px; }
.hood-card .hc-body p { color: var(--ink-2); font-size: 14.5px; }
.hc-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: var(--radius-sm); }
.hc-stats div { padding: 10px; display: grid; text-align: center; }
.hc-stats b { font-size: 15px; }
.hc-stats span { font-size: 11.5px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12.5px; padding: 3px 10px; border-radius: 99px; background: var(--sky); color: var(--primary); font-weight: 500; }

/* מחשבונים */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.calc-out { border-radius: var(--radius); padding: 22px; text-align: center; }
.calc-out b { display: block; font-size: 36px; letter-spacing: -.02em; }
.calc-out small { color: var(--ink-2); }
.tax-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.tax-table td, .tax-table th { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.tax-table th { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.tax-table td:last-child, .tax-table th:last-child { text-align: left; }

/* אודות */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.values div { background: #fff; border-radius: var(--radius); border: var(--card-border); padding: 24px; display: grid; gap: 10px; box-shadow: var(--card-shadow); }
.values i { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-style: normal; }
.values .ico { width: 24px; height: 24px; }
.values h3 { font-size: 19px; }
.values p { color: var(--ink-2); font-size: 15px; }
.big-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.big-stats b { display: block; font-size: 44px; letter-spacing: -.03em; color: #fff; }
.big-stats span { color: var(--on-navy-muted); }

/* תחתית כהה */
#site-footer { background: var(--navy); color: var(--on-navy); border-top: 0; position: relative; isolation: isolate; overflow: hidden; }
#site-footer .ftr-inner a { color: var(--on-navy-muted); }
#site-footer .ftr-inner a:hover { color: #fff; }
#site-footer h4 { color: #fff; }
#site-footer .ftr-brand p { color: var(--on-navy-muted); }
#site-footer .ftr-note { color: var(--on-navy-muted); border-top: 1px solid rgba(255, 255, 255, .1); }
.ftr-inner { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
.ftr-news { display: flex; gap: 8px; margin-top: 16px; max-width: 360px; }
.ftr-news .input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; height: 42px; }
.ftr-news .input::placeholder { color: var(--on-navy-muted); }
.ftr-news .btn { height: 42px; }

.filters { background: #fff; }
.l-section h2, .section-head h2 { color: var(--ink); }

@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .tools, .values { grid-template-columns: 1fr; }
  .two-col, .calc-grid { grid-template-columns: 1fr; }
  .life { grid-template-columns: 1fr 1fr; }
  .ftr-inner { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 860px) {
  .topbar { display: none; }
  .logo-tag { display: none; }
  .logo-name { font-size: 18px; }
  .logo-mark, .logo-mark svg { width: 34px; height: 34px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip div:nth-child(3) { border-inline-start: 0; }
  .stat-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .life { grid-template-columns: 1fr; }
  .big-stats { grid-template-columns: 1fr 1fr; }
  .big-stats b { font-size: 34px; }
  .ftr-inner { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr; }
}

@media (max-width: 1240px) {
  .logo-tag { display: none; }
  .hdr-inner { gap: 16px; }
  .main-nav a { padding: 8px 9px; }
}
@media (max-width: 1040px) {
  .main-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; padding: 10px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px; }
  .menu-btn { display: grid; place-items: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- מסמכים משפטיים ---------- */
.legal-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.legal { padding: 36px 40px; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.legal h2 { font-size: 20px; margin: 28px 0 8px; color: var(--ink); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-inline-start: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); }
.legal mark { background: #fef3c7; color: #92400e; padding: 0 4px; border-radius: 4px; }
.legal-side { position: sticky; top: 92px; display: grid; gap: 14px; }
.legal-nav { display: grid; gap: 2px; }
.legal-nav a { padding: 8px 10px; border-radius: 8px; font-size: 15px; color: var(--ink-2); }
.legal-nav a:hover { background: var(--surface-2); }
.legal-nav a.active { background: var(--sky); color: var(--primary); font-weight: 700; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .legal-side { position: static; order: -1; } .legal { padding: 24px 20px; } }

/* ---------- אזור אישי ---------- */
.pt-auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pt-card { padding: 28px; }
.pt-mode { margin-bottom: 20px; width: 100%; }
.pt-mode button { flex: 1; }
.pt-form { display: grid; gap: 14px; }
.pt-form h2 { font-size: 22px; }
.pt-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; margin: 0; }
.pt-form legend { font-weight: 700; padding: 0 6px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid.four { grid-template-columns: repeat(4, 1fr); }
.pt-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-kind button { text-align: right; border: 2px solid var(--line); background: #fff; border-radius: var(--radius); padding: 14px; cursor: pointer; display: grid; gap: 2px; }
.pt-kind button b { font-size: 16px; }
.pt-kind button span { font-size: 13px; color: var(--muted); }
.pt-kind button.on { border-color: var(--primary); background: var(--sky); }
.pt-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.pt-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.pt-check a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.pt-msg { font-size: 14px; font-weight: 600; }
.pt-msg.bad { color: var(--rose-ink); }
.pt-msg.ok { color: var(--mint-ink); }
.input.bad { border-color: var(--rose-ink); }
.pt-demo { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-strong); display: flex; gap: 8px; font-size: 13px; color: var(--muted); align-items: center; }
.pt-why { display: grid; gap: 14px; }
.pt-why h3 { font-size: 18px; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; color: var(--ink); }
.pt-why ul { margin: 0; padding-inline-start: 20px; color: var(--ink-2); display: grid; gap: 6px; }
.pt-why .link-more { margin-top: 10px; }
.pt-how li { padding: 14px; }
.pt-dash { padding: 0; overflow: hidden; }
.pt-head { display: flex; gap: 14px; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.pt-hello { font-size: 20px; font-weight: 800; }
.pt-banner { margin: 16px 24px 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--sand); color: var(--sand-ink); font-size: 14.5px; }
.pt-banner.bad { background: var(--rose); color: var(--rose-ink); }
.pt-tabs { display: flex; gap: 4px; padding: 14px 20px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.pt-tabs button { border: 0; background: none; padding: 10px 14px 12px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.pt-tabs button.on { color: var(--primary); border-bottom-color: var(--primary); }
.pt-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; display: inline-grid; place-items: center; }
.pt-body { padding: 24px; }
.pt-body h2 { font-size: 20px; margin-bottom: 12px; }
.pt-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.pt-bar h2 { margin: 0; }
.pt-list { display: grid; gap: 10px; }
.pt-item { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; flex-wrap: wrap; }
.pt-item > img { width: 96px; height: 70px; object-fit: cover; border-radius: 8px; flex: none; }
.pt-item-main { flex: 1; min-width: 220px; display: grid; gap: 3px; }
.pt-item-title { font-weight: 700; }
.pt-item-title a { color: var(--primary); }
.pt-meta { font-size: 13.5px; color: var(--muted); }
.pt-meta a { color: var(--primary); }
.pt-note { font-size: 13px; color: var(--rose-ink); background: var(--rose); padding: 4px 8px; border-radius: 6px; justify-self: start; }
.pt-quote { font-size: 14px; color: var(--ink-2); background: var(--surface-2); padding: 6px 10px; border-radius: 8px; justify-self: start; }
.pt-log { font-size: 12.5px; color: var(--muted); }
.pt-log summary { cursor: pointer; }
.pt-item-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pt-chip { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.st-pending { background: var(--sand); color: var(--sand-ink); }
.st-active { background: var(--mint); color: var(--mint-ink); }
.st-bad { background: var(--rose); color: var(--rose-ink); }
.st-done { background: var(--sky); color: var(--primary); }
.pt-empty { padding: 28px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }
.pt-table-wrap { overflow-x: auto; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt-table th, .pt-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; }
.pt-table th { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.pt-table a { color: var(--primary); }
.pt-calc { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--sky); color: var(--ink); font-size: 15px; }
.pt-deal { padding: 20px; border-radius: var(--radius); background: var(--surface-2); margin-bottom: 26px; }
.sel-sm { height: 36px; font-size: 14px; width: auto; min-width: 130px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.thumb { position: relative; }
.thumb img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.thumb span { position: absolute; bottom: 4px; right: 4px; font-size: 10px; background: var(--navy); color: #fff; padding: 1px 6px; border-radius: 4px; }
.thumb button { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; font-size: 11px; }
.pt-gate-doc { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 16px 0; }
.publisher { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 14px; font-size: 14px; }
.publisher b { display: block; font-size: 15px; }
.consent-note { font-size: 12px; color: var(--muted); }
.consent-note a { color: var(--primary); text-decoration: underline; }
.hdr-user { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; }
.hdr-user:hover { background: var(--surface-2); }
.hdr-user .ico { width: 22px; height: 22px; }
.hdr-user .u-init { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.ftr-legal { max-width: 1240px; margin: 0 auto; padding: 0 24px 6px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.ftr-legal a { color: var(--on-navy-muted); }
.ftr-legal a:hover { color: #fff; }
@media (max-width: 1000px) {
  .pt-auth { grid-template-columns: 1fr; }
  .form-grid.three, .form-grid.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .form-grid.three, .form-grid.four, .pt-kind { grid-template-columns: 1fr; }
  .form-grid.four .field, .form-grid.three .field { grid-column: auto !important; }
  .pt-body, .pt-card { padding: 16px; }
  .pt-head { padding: 16px; }
}
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); }
.ticks li { padding-inline-start: 26px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; right: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--mint-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
