:root {
  --navy: #0B1F33;
  --electric: #0878C9;
  --cta: #65733C;
  --cta-hover: #52612F;
  --ink: #17202A;
  --muted: #64748B;
  --paper: #F7F9FC;
  --paper-deep: #E9EEF3;
  --white: #FFFFFF;
  --line: rgba(11,31,51,.13);
  --shadow: 0 22px 70px rgba(11,31,51,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 100; inset: 8px auto auto 8px; transform: translateY(-160%); padding: 10px 16px; border-radius: 8px; color: var(--white); background: var(--electric); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 5vw;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: var(--navy);
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 92px; height: 60px; object-fit: contain; }
.header-links { display: flex; align-items: center; gap: 10px; }
.back-link, .header-phone { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.back-link { border: 1px solid rgba(255,255,255,.32); }
.header-phone { display: none; background: rgba(8,120,201,.22); border: 1px solid rgba(8,120,201,.45); }

.project-hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: grid;
  align-items: end;
  padding: 72px 5vw 52px;
  color: var(--white);
  background: var(--navy);
}
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,23,39,.2), rgba(7,23,39,.94)); }
.project-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .68; }
.project-hero-content { position: relative; z-index: 1; max-width: 1100px; width: 100%; margin: auto; }
.eyebrow { margin: 0 0 14px; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.72); font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.eyebrow span { width: 22px; height: 3px; display: block; border-radius: 20px; background: var(--electric); }
h1 { max-width: 780px; margin: 0 0 18px; font-size: clamp(3rem, 13vw, 6.8rem); line-height: .9; letter-spacing: -.06em; }
.project-hero p:not(.eyebrow) { max-width: 650px; margin: 0; color: rgba(255,255,255,.72); line-height: 1.75; }

.gallery-section { max-width: 1260px; margin: auto; padding: 68px 5vw 92px; }
.gallery-heading { margin-bottom: 28px; }
.gallery-heading p { margin: 0 0 8px; color: var(--electric); font-size: .78rem; font-weight: 800; }
.gallery-heading h2 { margin: 0; font-size: clamp(2.2rem, 8vw, 4.4rem); line-height: .95; letter-spacing: -.045em; }
.gallery-heading small { display: block; max-width: 560px; margin-top: 15px; color: var(--muted); line-height: 1.65; }
.stage-section + .stage-section { margin-top: 52px; }
.stage-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.stage-heading > span { min-width: 64px; padding: 8px 13px; border-radius: 999px; color: var(--white); text-align: center; font-size: .78rem; font-weight: 900; }
.stage-before > span { background: var(--navy); }
.stage-after > span { background: var(--electric); }
.stage-heading h3 { margin: 0; font-size: 1.18rem; }
.stage-heading p { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.work-gallery { display: grid; gap: 12px; }
.gallery-item { position: relative; min-height: 320px; overflow: hidden; padding: 0; border: 0; border-radius: 17px; background: var(--paper-deep); cursor: zoom-in; box-shadow: 0 8px 25px rgba(11,31,51,.08); }
.gallery-item img { width: 100%; height: 100%; min-height: 320px; display: block; object-fit: cover; transition: transform .35s ease; }
.gallery-item[data-stage]::before { content: attr(data-stage); position: absolute; z-index: 2; top: 12px; right: 12px; min-width: 58px; padding: 7px 11px; border-radius: 999px; color: var(--white); background: var(--navy); font-size: .72rem; font-weight: 900; text-align: center; box-shadow: 0 7px 18px rgba(11,31,51,.2); }
.gallery-item[data-stage="אחרי"]::before { background: var(--electric); }
.gallery-item::after { content: "להגדלה"; position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; color: var(--white); background: rgba(11,31,51,.78); font-size: .7rem; font-weight: 800; backdrop-filter: blur(8px); }
.gallery-item:hover img { transform: scale(1.02); }
.gallery-item:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; }
.comparison-list { display: grid; gap: 34px; }
.comparison-card { padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.comparison-card > h3 { margin: 0 0 14px; font-size: 1.08rem; }

.project-details { margin-top: 44px; display: grid; gap: 12px; }
.detail-card { padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.detail-card h3 { margin: 0 0 8px; font-size: 1rem; }
.detail-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.detail-card b { color: var(--electric); }

.closing-cta { padding: 54px 5vw; color: var(--white); background: var(--navy); }
.closing-cta-inner { max-width: 1260px; margin: auto; display: grid; gap: 24px; }
.closing-cta h2 { margin: 0 0 9px; font-size: clamp(2.2rem, 8vw, 4rem); line-height: .95; letter-spacing: -.04em; }
.closing-cta p { margin: 0; color: rgba(255,255,255,.62); }
.primary-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 13px 22px; border-radius: 12px; color: var(--white); background: var(--cta); font-weight: 800; box-shadow: 0 10px 28px rgba(101,115,60,.24); }
.primary-button:hover { background: var(--cta-hover); }
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 5vw; color: rgba(255,255,255,.6); background: #071727; font-size: .78rem; }
footer img { width: 90px; height: 55px; object-fit: contain; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.legal-links a { color: rgba(255,255,255,.78); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #69bfff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

.lightbox { width: min(96vw, 1100px); max-width: none; padding: 0; border: 0; border-radius: 18px; background: #071727; box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgba(3,10,18,.9); backdrop-filter: blur(5px); }
.lightbox img { width: 100%; max-height: 84vh; display: block; object-fit: contain; }
.lightbox-close { position: absolute; z-index: 2; top: 12px; left: 12px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: var(--white); background: rgba(7,23,39,.75); cursor: pointer; font-size: 1.55rem; }
.lightbox-controls { position: absolute; z-index: 2; inset: 50% 12px auto; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; direction: ltr; }
.lightbox-controls button { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: var(--white); background: rgba(7,23,39,.75); cursor: pointer; pointer-events: auto; }

@media (min-width: 700px) {
  .header-phone { display: inline-flex; }
  .project-hero { min-height: 610px; padding-bottom: 72px; }
  .work-gallery { grid-template-columns: repeat(2, 1fr); }
  .project-details { grid-template-columns: repeat(3, 1fr); }
  .closing-cta-inner { grid-template-columns: 1fr auto; align-items: center; }
  .primary-button { min-width: 220px; }
}

@media (min-width: 1020px) {
  .site-header { height: 82px; }
  .brand img { width: 108px; height: 68px; }
  .work-gallery { grid-template-columns: repeat(3, 1fr); }
  .comparison-pair { grid-template-columns: repeat(2, 1fr); }
  .gallery-item, .gallery-item img { min-height: 390px; }
  .comparison-list { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
