:root {
  --navy: #1f2a5c; --purple: #4d3389; --ink: #17182b; --muted: #5b5e7a; --bg: #f7f7fb; --card: #ffffff;
  --accent: #4f6bff; --ok: #1c9c7c; --line: #e4e5f0; --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f2f2f8; --muted: #b3b5cc; --bg: #0f1020; --card: #1a1b33; --line: #2b2d4d; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Hebrew", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* language switch */
html[data-lang="he"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="he"] { display: none !important; }
html[data-lang="he"] { direction: rtl; }
html[data-lang="en"] { direction: ltr; }

header.top { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav.links { display: flex; gap: 18px; align-items: center; font-size: 15px; }
nav.links a { color: var(--ink); opacity: .85; }
.lang { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }

.hero { background: linear-gradient(170deg, var(--navy), var(--purple)); color: #fff; padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 0 0 16px; font-weight: 900; letter-spacing: -.01em; }
.hero p.lead { font-size: 20px; opacity: .92; margin: 0 0 28px; max-width: 34em; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 16px; }
.btn.primary { background: #fff; color: var(--navy); }
.btn.ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn:hover { text-decoration: none; filter: brightness(.96); }
.hero .phone { justify-self: center; width: min(300px, 70vw); border-radius: 36px; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 6px solid #0b0c1a; }
.badge-note { font-size: 13px; opacity: .8; margin-top: 10px; }

section { padding: 64px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; font-weight: 800; }
section p.sub { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 40em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { font-size: 28px; margin-bottom: 8px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.gallery img { border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.12); }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; font-size: 16px; }
details p { margin: 10px 0 0; color: var(--muted); }

.privacy-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.privacy-box ul { margin: 8px 0 0; padding-inline-start: 20px; color: var(--muted); }
.ok { color: var(--ok); font-weight: 700; }

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); margin-inline-end: 14px; }

article.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
article.doc h1 { font-size: 34px; margin: 0 0 6px; }
article.doc .meta { color: var(--muted); margin-bottom: 28px; }
article.doc h2 { font-size: 22px; margin: 32px 0 8px; }
article.doc h3 { font-size: 17px; margin: 22px 0 6px; }
article.doc p, article.doc li { color: var(--ink); }
article.doc hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
article.doc section[lang="he"] { direction: rtl; }
article.doc section[lang="en"] { direction: ltr; }

@media (max-width: 760px) {
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .phone { order: -1; width: min(220px, 60vw); }
  .steps { grid-template-columns: 1fr; }
  .privacy-box { grid-template-columns: 1fr; }
  nav.links a:not(.keep) { display: none; }
  section { padding: 44px 0; }
}
