:root {
  --dark: #161513;
  --dark-2: #22201d;
  --cream: #f1ede6;
  --cream-2: #e8e2d8;
  --text: #1c1a17;
  --soft: #6b655d;
  --line: #1c1a17;
  --accent: #5f7350;
  --head: 'Heebo', Arial, sans-serif;
  --body: 'Rubik', Arial, sans-serif;
  --side: clamp(18px, 4.5vw, 64px);
  --bar: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); }
body { margin: 0; background: var(--cream); color: var(--text); font: 300 17px/1.85 var(--body); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.2; font-weight: 400; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--side); }
.wrap-narrow { width: min(820px, 100%); margin-inline: auto; padding-inline: var(--side); }

/* כותרת בשני משקלים */
.duo { font-size: clamp(32px, 4.4vw, 54px); margin-bottom: 18px; }
.duo b { font-weight: 600; }
.duo span { font-weight: 200; }
.duo--light { color: #fff; }
.lead { color: var(--soft); max-width: 560px; margin-bottom: 44px; }
.lead a { color: var(--text); font-weight: 400; }

.pill { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 32px; border: 1.5px solid var(--text); border-radius: 999px; background: none; color: var(--text); font: 400 16px var(--body); text-decoration: none; cursor: pointer; transition: background .25s, color .25s; }
.pill::after { content: '←'; }
.pill:hover { background: var(--text); color: var(--cream); }
.pill--light { border-color: #fff; color: #fff; }
.pill--light:hover { background: #fff; color: var(--text); }

/* סרגל עליון */
.bar { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--bar); background: var(--dark); color: #fff; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: var(--side); }
.bar__menu { justify-self: end; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; display: grid; align-content: center; gap: 6px; padding: 10px; }
.bar__menu span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.bar__menu.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.bar__menu.is-open span:nth-child(2) { opacity: 0; }
.bar__menu.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.bar__icons { display: flex; gap: 26px; align-items: center; }
.bar__icons a { color: #fff; display: grid; place-items: center; width: 32px; height: 32px; transition: opacity .2s; }
.bar__icons a:hover { opacity: .7; }
.bar__icons svg, .foot__social svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg .fill, svg .dot { fill: currentColor; stroke: none; }
.bar__logo { justify-self: start; display: block; }
.bar__logo img { height: 54px; width: auto; }

/* תפריט נפתח */
.drop { position: fixed; top: var(--bar); inset-inline: 0; z-index: 55; background: #fff; box-shadow: 0 18px 30px rgba(0,0,0,.12); display: flex; flex-direction: column; animation: dropIn .25s ease; }
.drop[hidden] { display: none; }
.drop > a { padding: 18px var(--side); text-decoration: none; font: 400 18px var(--head); letter-spacing: .05em; border-bottom: 1px solid var(--cream-2); transition: background .2s, color .2s; }
.drop > a:hover { background: var(--dark); color: #fff; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } }

/* פתיחה */
.hero { position: relative; height: 100svh; min-height: 560px; display: grid; place-items: center; color: #fff; overflow: hidden; background: var(--dark); }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.hero__slides img.on { opacity: 1; animation: drift 9s ease-out both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; background: rgba(15,14,12,.5); }
.hero__content { position: relative; text-align: center; padding: var(--bar) var(--side) 0; display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: clamp(64px, 6vw, 84px); margin-bottom: 20px; }
.hero__name { font: 300 clamp(34px, 5.6vw, 76px)/1.1 var(--head); letter-spacing: .06em; margin-bottom: 14px; }
.hero__name span { font-weight: 200; }
.hero__sub { font: 300 clamp(14px, 1.5vw, 19px) var(--head); letter-spacing: .32em; margin: 0 0 4px; padding-left: .32em; }
.hero__he { font: 300 clamp(15px, 1.5vw, 19px) var(--body); letter-spacing: .12em; margin: 0; opacity: .9; }
.hero__down { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: #fff; width: 44px; height: 44px; display: grid; place-items: center; animation: bob 2.2s ease-in-out infinite; }
.hero__down svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* מי אנחנו */
.about { background: var(--dark); color: #fff; padding-block: clamp(80px, 10vw, 140px); }
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__text { order: -1; }
.about__text p { color: #cfc8bd; }
.about__text .pill { margin-top: 14px; border-color: #fff; color: #fff; }
.about__text .pill:hover { background: #fff; color: var(--text); }
.about__collage { position: relative; padding-bottom: 22%; }
.about__main { width: 80%; aspect-ratio: 4 / 5; object-fit: cover; margin-inline-start: 0; }
.about__small { position: absolute; left: 0; bottom: 0; width: 58%; aspect-ratio: 4 / 3; object-fit: cover; border: 8px solid var(--dark); }

/* משפט על תמונה */
.statement { position: relative; min-height: 70vh; display: grid; place-items: center; text-align: center; color: #fff; background: linear-gradient(rgba(15,14,12,.55), rgba(15,14,12,.55)), var(--bg) center / cover no-repeat; padding: 80px var(--side); }
.statement__line { font: 200 clamp(36px, 6.6vw, 92px)/1.1 var(--head); letter-spacing: .02em; margin-bottom: 40px; }
.statement__line b { font-weight: 600; display: block; }

/* פרויקטים */
.projects { padding-block: clamp(80px, 10vw, 140px); }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 40px; }
.pcard__img { display: block; width: 100%; padding: 0; border: 0; background: var(--cream-2); cursor: pointer; overflow: hidden; aspect-ratio: 3 / 2; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 24px 0 2px; }
.pcard__tag { color: var(--soft); font-size: 15px; margin-bottom: 20px; }

/* שירותים */
.services { background: var(--cream-2); padding-block: clamp(80px, 10vw, 140px); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.tile { background: var(--cream); padding: 34px 30px; border-top: 3px solid var(--text); }
.tile__icon { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.tile__icon svg { width: 58px; height: 58px; fill: none; stroke: #4c5d40; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile__icon .fill { fill: #b3b792; stroke: none; opacity: .6; }
.tile__icon .fill-2 { fill: #d2ab80; stroke: none; }
.tile h3 { font-size: 21px; font-weight: 500; margin-bottom: 10px; }
.tile p { color: var(--soft); font-size: 16px; margin: 0; }

/* שאלות נפוצות */
.faq { padding-block: clamp(80px, 10vw, 140px); }
.faq__wrap { max-width: 980px; }
.acc { border-top: 1.5px solid var(--line); }
.acc__item { border-bottom: 1.5px solid var(--line); }
.acc__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font: 400 clamp(17px, 1.7vw, 20px)/1.5 var(--head); }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary::after { content: ''; flex: none; width: 10px; height: 10px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg) translateY(-3px); transition: transform .3s; }
.acc__item[open] summary::after { transform: rotate(45deg); }
.acc__item p { color: var(--soft); padding: 0 0 26px; margin: 0; max-width: 820px; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } }

/* בלוג */
.blog { background: var(--cream-2); padding-block: clamp(80px, 10vw, 140px); }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.bcard__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.bcard:hover .bcard__img img { transform: scale(1.04); }
.bcard h3 { font-size: 22px; font-weight: 500; margin: 22px 0 10px; }
.bcard h3 a { text-decoration: none; }
.bcard p { color: var(--soft); font-size: 16px; }

/* צרו קשר */
.contact { position: relative; padding: clamp(110px, 14vw, 180px) var(--side); color: #fff; background: linear-gradient(rgba(15,14,12,.62), rgba(15,14,12,.62)), var(--bg) center / cover no-repeat; }
.contact__in { width: min(1000px, 100%); margin-inline: auto; }
.lineform { position: relative; display: flex; gap: 40px; align-items: flex-end; margin-top: 40px; }
.lineform input { flex: 1; min-width: 0; background: none; border: 0; border-bottom: 1.5px solid #fff; border-radius: 0; color: #fff; font: 300 19px var(--body); padding: 16px 0; }
.lineform input::placeholder { color: rgba(255,255,255,.75); }
.lineform input:focus { outline: none; }
.lineform input[aria-invalid="true"]::placeholder { color: #ffb4a8; }
.lineform button { flex: none; width: 48px; height: 48px; background: none; border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .25s; }
.lineform button:hover { transform: translateX(-6px); }
.lineform button svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lineform .trap { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; padding: 0; border: 0; flex: none; }
.lineform__msg { min-height: 1.6em; margin-top: 18px; color: rgba(255,255,255,.85); font-size: 15px; }

/* תחתית */
.foot { background: var(--dark); color: #cfc8bd; padding: 80px 0 30px; font-size: 16px; }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 50px; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.foot__col h3 { color: #fff; font: 500 18px var(--head); margin-bottom: 8px; }
.foot__col a { text-decoration: none; transition: color .2s; }
.foot__col a:hover { color: #fff; }
.foot__col small { font-size: 13px; opacity: .7; margin-top: -8px; }
.foot__logo { width: 180px; }
.foot__social { display: flex; gap: 18px; margin-top: 14px; }
.foot__social a { color: #fff; }
.foot__copy { text-align: center; font-size: 13px; opacity: .6; margin: 60px 0 0; }

/* וואטסאפ צף */
.wa { position: fixed; left: 18px; bottom: 18px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: transform .25s; }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; }
.wa svg .fill { fill: currentColor; }

/* עמוד מאמר */
.page-hero { min-height: 62vh; display: grid; place-items: center; text-align: center; color: #fff; padding: calc(var(--bar) + 60px) var(--side) 60px; background: linear-gradient(rgba(15,14,12,.6), rgba(15,14,12,.6)), var(--bg) center / cover no-repeat; }
.page-hero h1 { font: 500 clamp(30px, 4.4vw, 56px)/1.25 var(--head); max-width: 900px; }
.article { padding-block: 80px 40px; }
.article p, .article li { color: #4f4a43; }
.article h2 { font: 500 clamp(22px, 2.4vw, 30px) var(--head); margin: 44px 0 14px; }
.article ul { padding-inline-start: 22px; margin: 0 0 1.2em; }
.article li { margin-bottom: 8px; }
.article img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 36px 0; }
.article__more { padding-bottom: 90px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; border-top: 1.5px solid var(--line); padding-top: 40px; }
.article__more h2 { font: 600 24px var(--head); margin-bottom: 6px; }
.article__more a:not(.pill) { font: 300 19px var(--head); }
.article__more .pill { margin-top: 18px; }

/* גלריה */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--dark); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: var(--dark); }
.lightbox__head { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 20px var(--side) 14px; }
.lightbox__head h3 { font: 500 clamp(22px, 2.4vw, 30px) var(--head); margin-bottom: 4px; }
.lightbox__head p { margin: 0; color: #cfc8bd; font-size: 15px; max-width: 760px; }
.lightbox__head button { flex: none; width: 46px; height: 46px; border-radius: 50%; background: none; border: 1.5px solid #fff; color: #fff; font-size: 18px; cursor: pointer; }
.lightbox__stage { min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--side); touch-action: pan-y; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 100%; object-fit: contain; animation: fadeIn .4s ease; }
.lightbox__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--side) 20px; }
.lightbox__thumbs button { flex: 0 0 84px; height: 58px; padding: 0; border: 2px solid transparent; background: var(--dark-2); cursor: pointer; opacity: .5; color: #fff; }
.lightbox__thumbs button[aria-current="true"] { opacity: 1; border-color: #fff; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* הופעה בגלילה */
.fx { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.fx.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__text { order: 0; }
  .about__collage { max-width: 560px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .bgrid { grid-template-columns: 1fr 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid .foot__col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --bar: 66px; }
  body { font-size: 16px; }
  .bar__icons { gap: 18px; }
  .bar__logo img { height: 46px; }
  .pgrid, .tiles, .bgrid { grid-template-columns: 1fr; gap: 48px; }
  .tiles { gap: 16px; }
  .pill { width: 100%; justify-content: center; }
  .pcard .pill, .bcard .pill { width: auto; }
  .lineform { flex-wrap: wrap; gap: 20px 0; }
  .lineform input { flex: 1 1 100%; }
  .lineform button { margin-top: 8px; margin-inline-start: auto; }
  .foot__grid { grid-template-columns: 1fr; gap: 36px; }
  .foot { padding-bottom: 96px; }
  .lightbox__thumbs button { flex-basis: 66px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .fx { opacity: 1; transform: none; }
}

/* בחירת שפה */
.bar__end { justify-self: end; display: flex; align-items: center; gap: 22px; }
.bar__end .bar__menu { justify-self: auto; }
.langs { display: flex; align-items: center; font: 400 14px var(--body); letter-spacing: .06em; }
.langs a { text-decoration: none; padding: 6px 8px; opacity: .6; transition: opacity .2s; }
.langs a + a { border-inline-start: 1px solid currentColor; }
.langs a:hover, .langs a[aria-current="true"] { opacity: 1; }
.langs a[aria-current="true"] { font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }
.langs--bar { color: #fff; }
.langs--bar a + a { border-color: rgba(255,255,255,.4); }
.drop .langs--drop { padding: 14px var(--side); gap: 0; background: var(--cream); border-bottom: 1px solid var(--cream-2); }
.drop .langs--drop a { padding: 4px 14px; border-bottom: 0; font: 400 16px var(--body); background: none; color: var(--text); }
.drop .langs--drop a:first-child { padding-inline-start: 0; }
.drop .langs--drop a + a { border-inline-start: 1px solid var(--soft); }
.drop > a:first-of-type { background: var(--dark); color: #fff; }
.hero__he:empty, .about__ru:empty { display: none; }
.about__ru { color: #fff !important; font-weight: 400; border-inline-start: 2px solid #809671; padding-inline-start: 14px; }

/* רוסית: Heebo בלי אותיות קיריליות, לכן הכותרות ב-Rubik */
html[lang="ru"] { --head: 'Rubik', Arial, sans-serif; }
html[lang="ru"] .duo span { font-weight: 300; }
html[lang="ru"] .duo { font-size: clamp(28px, 3.8vw, 46px); }

/* אנגלית ורוסית: משמאל לימין */
html[dir="ltr"] .pill::after { content: '→'; }
html[dir="ltr"] .lineform button svg { transform: scaleX(-1); }
html[dir="ltr"] .lineform button:hover { transform: translateX(6px); }
html[dir="ltr"] .about__small { left: auto; right: 0; }
html[dir="ltr"] .acc__item summary::after { transform: rotate(-45deg) translateY(-3px); }
html[dir="ltr"] .acc__item[open] summary::after { transform: rotate(45deg); }

@media (max-width: 640px) {
  .langs--bar { display: none; }
}
