/* Babazadeh Carpets
   כיוון: חם וחווייתי, בצבעי ההשראה (ירוק עמוק, אדום-חלודה, זהב וקרם).
   ארבעת צבעי הבסיס נערכים מאזור הניהול, וכל השאר נגזר מהם. */
:root {
  --ink: #173A30;      /* דיו: ירוק עמוק. כותרות ורקעים כהים */
  --blue: #1F4757;     /* משני: כחול-פטרול של שוליים בשטיח */
  --yellow: #A63A28;   /* הדגשה ראשית: אדום-חלודה. כפתורים */
  --teal: #D4AF5F;     /* הדגשה משנית: זהב */

  --brand: var(--ink);
  --accent: var(--yellow);
  --accent-2: var(--teal);
  --accent-light: color-mix(in srgb, var(--yellow) 78%, #fff);
  --accent-dark: color-mix(in srgb, var(--yellow) 82%, #000);
  --gold-text: color-mix(in srgb, var(--teal) 55%, var(--ink));
  --bg: #FBF6EC;
  --surface: #F3EADA;
  --text: var(--ink);
  --muted: color-mix(in srgb, var(--ink) 72%, #fff);
  --line: color-mix(in srgb, var(--teal) 35%, #fff);
  --wa: #25D366;

  --font-head: 'Rubik', 'Heebo', system-ui, sans-serif;
  --font-body: 'Heebo', 'Rubik', system-ui, sans-serif;
  --font-brand: 'Archivo Black', 'Rubik', sans-serif;

  --shadow-card: 0 30px 70px color-mix(in srgb, var(--ink) 18%, transparent);
  --shadow-pop: 0 18px 40px color-mix(in srgb, var(--ink) 35%, transparent);
  --shadow-soft: 0 18px 45px -22px color-mix(in srgb, var(--ink) 55%, transparent);
  --r-card: 24px;
  --r-box: 32px;
}
html[data-lang="ar"], html[data-lang="fa"] { --font-body: 'Rubik', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- תוויות וכותרות ---------- */
.eyebrow { font-size: 15px; font-weight: 700; color: var(--gold-text); letter-spacing: .02em; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: var(--teal); }
.title { font-weight: 900; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.08; letter-spacing: -.5px; color: var(--ink); }
.title em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
/* הדגשה ב': צבע מלא וקו מעוגל מתחת */
.title em::after {
  content: ''; position: absolute; inset-inline: 2%; bottom: -.08em; height: .14em; border-radius: 999px;
  background: var(--teal); opacity: .85; transform-origin: right; transform: scaleX(0); transition: transform .8s .3s cubic-bezier(.2,.7,.2,1);
}
[dir="ltr"] .title em::after { transform-origin: left; }
.in .title em::after, .title.in em::after, .head.in .title em::after { transform: scaleX(1); }
.title--hero { font-size: clamp(36px, 6.4vw, 76px); color: #fff; }
.title--hero em { color: var(--teal); }
.title--hero em::after { background: var(--accent-light); }
.title--light { color: #fff; }
.title--light em { color: var(--ink); }
.title--light em::after { background: var(--teal); }
html[data-lang="ar"] .title, html[data-lang="fa"] .title { letter-spacing: 0; line-height: 1.25; }

.head { max-width: 720px; margin-bottom: 40px; }
.head__sub { color: var(--muted); margin-top: 16px; font-size: 18px; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0;
  font-family: var(--font-head); font-weight: 800; font-size: 16px; text-decoration: none;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.btn--accent { color: #fff; background: linear-gradient(135deg, var(--accent-light), var(--accent-dark)); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn--ink { color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--ink) 80%, #fff), var(--ink)); box-shadow: 0 10px 24px color-mix(in srgb, var(--ink) 35%, transparent); }
.btn--glass { color: #fff; background: rgb(255 255 255 / .12); border: 2px solid rgb(255 255 255 / .35); }
.btn--glass:hover { background: rgb(255 255 255 / .2); }
.btn--wa { color: #fff; background: linear-gradient(135deg, #3BE07A, #1DA851); box-shadow: 0 10px 24px rgb(29 168 81 / .35); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[dir="ltr"] .ico--dir { transform: scaleX(-1); }

/* ---------- תפריט צף ---------- */
.nav-wrap { position: fixed; inset-inline: 0; top: 12px; z-index: 50; padding-inline: 12px; transition: top .3s; }
.nav {
  max-width: 1180px; margin-inline: auto; display: flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 8px; padding-inline-start: 18px; border-radius: 999px;
  background: rgb(23 58 48 / .55); background: color-mix(in srgb, var(--ink) 55%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / .14); color: #fff; transition: background .3s, box-shadow .3s;
}
.nav-wrap--solid .nav { background: color-mix(in srgb, var(--ink) 94%, transparent); box-shadow: var(--shadow-pop); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.logo__img { max-height: 40px; width: auto; }
.logo--has-img .logo__mark, .logo--has-img .logo__text { display: none; }
.logo__mark { width: 34px; height: 34px; color: var(--teal); flex: none; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { display: grid; line-height: 1; direction: ltr; text-align: start; }
.logo__text b { font-family: var(--font-brand); font-weight: 400; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.logo__text small { font-family: var(--font-head); font-weight: 700; font-size: 10.5px; letter-spacing: .42em; text-transform: uppercase; color: var(--teal); margin-top: 4px; }
.nav__links { display: none; gap: 4px; margin-inline-start: auto; }
.nav__links a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 16px; color: rgb(255 255 255 / .88); }
.nav__links a:hover { background: rgb(255 255 255 / .1); color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav__links + .nav__actions { margin-inline-start: 0; }
.nav__wa span { display: none; }
.nav__wa { width: 44px; padding: 0; }

/* בורר השפה */
.lang { position: relative; }
.lang summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid rgb(255 255 255 / .3); cursor: pointer; font-weight: 700; font-size: 15px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang__list {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 170px; padding: 8px;
  background: var(--bg); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow-pop); display: grid; gap: 2px;
}
.lang__list a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.lang__list a:hover { background: var(--surface); }
.lang__list a[aria-current] { background: var(--ink); color: #fff; }

/* ---------- פתיחה ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, color-mix(in srgb, var(--blue) 70%, transparent), transparent 70%),
    var(--ink);
  padding: 120px 0 80px;
}
.hero::after { /* רשת עדינה בדוגמת קשרים */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background-image: radial-gradient(circle, var(--teal) 1.2px, transparent 1.4px); background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; }
.hero__lead { font-size: 18px; color: rgb(255 255 255 / .84); max-width: 560px; margin-top: 20px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 15px; color: rgb(255 255 255 / .85); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 25%, transparent); fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* עיטור ה': טבעות מקווקוות, כמו מדליון של שטיח */
.ring { position: absolute; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--teal) 45%, transparent); pointer-events: none; }
.hero__deco { position: absolute; inset: 0; pointer-events: none; }
.ring--1 { width: 560px; height: 560px; inset-inline-end: -180px; top: 60px; animation: spin 90s linear infinite; }
.ring--2 { width: 400px; height: 400px; inset-inline-end: -100px; top: 140px; border-style: dotted; border-width: 3px; animation: spin 70s linear infinite reverse; }
.ring--3 { width: 120px; height: 120px; inset-inline-start: 6%; bottom: 40px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__art { position: relative; width: min(100%, 380px); margin-inline: auto; }
.hero__frame {
  position: relative; aspect-ratio: 300 / 440; border-radius: 10px;
  filter: drop-shadow(0 40px 50px rgb(0 0 0 / .45));
  transform: rotate(-4deg);
}
[dir="ltr"] .hero__frame { transform: rotate(4deg); }
.hero__photo { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 6px solid var(--surface); }
.hero__photo:not([hidden]) + .rug-art { display: none; }
.rug-art { width: 100%; height: 100%; }
/* האיור: השטיח נפרש מלמעלה למטה */
.rug-art__body, .rug-art__fringe { animation: unroll 1.6s .2s cubic-bezier(.3,.7,.2,1) both; }
@keyframes unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

.tag {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: var(--bg); color: var(--ink);
  font-weight: 700; font-size: 15px; box-shadow: var(--shadow-pop);
}
.tag--1 { top: 12%; inset-inline-start: -14px; flex-direction: column; gap: 0; width: 104px; height: 104px; border-radius: 50%; justify-content: center; text-align: center; line-height: 1.15; font-size: 13px; background: var(--accent); color: #fff; }
.tag--1 b { font-family: var(--font-brand); font-weight: 400; font-size: 34px; line-height: 1; }
.tag--2 { bottom: 16%; inset-inline-end: -16px; }
.tag--2 svg { width: 20px; height: 20px; fill: var(--blue); }
.tag--3 { bottom: -14px; inset-inline-start: 18%; background: var(--teal); color: var(--ink); }

/* ---------- הסיפור ---------- */
.story { padding: 90px 0 40px; }
.story__box {
  display: grid; gap: 40px; align-items: center; padding: 48px 26px; border-radius: var(--r-box);
  background: var(--surface); position: relative; overflow: hidden;
}
.story__num { position: relative; display: grid; place-items: center; width: min(280px, 70vw); aspect-ratio: 1; margin-inline: auto; }
.story__num b { font-family: var(--font-brand); font-weight: 400; font-size: clamp(110px, 20vw, 170px); line-height: 1; color: var(--ink); position: relative; z-index: 1; }
.ring--story { inset: 0; border-color: color-mix(in srgb, var(--teal) 70%, transparent); border-width: 3px; animation: spin 80s linear infinite; }
.ring--story::after { content: ''; position: absolute; inset: 18px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.alps { position: absolute; width: 62%; bottom: 20%; z-index: 0; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
.alps__snow { stroke: var(--accent); opacity: .8; }
.story__text p:not(.eyebrow) { color: var(--muted); margin-top: 16px; font-size: 18px; }
.story__text .title { margin-bottom: 8px; }
.story__facts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.story__facts div { display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; padding-inline: 10px 20px; border-radius: 999px; background: var(--bg); box-shadow: var(--shadow-soft); }
.story__facts b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--teal); font-family: var(--font-brand); font-weight: 400; font-size: 20px; }
.story__facts span { font-weight: 700; font-size: 16px; }

/* ---------- האוסף ---------- */
.collection { padding: 80px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 30px; }
.chip { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--ink); font-weight: 700; font-size: 15px; transition: background .2s, border-color .2s; }
.chip:hover { border-color: var(--teal); }
.chip--on { background: var(--ink); border-color: var(--ink); color: #fff; }
.rugs { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
/* כרטיסים א': מסגרת עבה בגוון זהב בהיר, וטבעת זוהרת במעבר עכבר */
.rug {
  display: flex; flex-direction: column; border-radius: var(--r-card); background: #fff;
  border: 3px solid var(--line); overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.rug:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 0 0 6px color-mix(in srgb, var(--teal) 22%, transparent), var(--shadow-card); }
.rug__open { position: relative; display: block; padding: 0; border: 0; background: var(--surface); }
.rug__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.rug__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.rug:hover .rug__img img { transform: scale(1.04); }
.rug__code { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--teal); font-weight: 700; font-size: 14px; unicode-bidi: plaintext; }
.rug__status { position: absolute; top: 12px; inset-inline-end: 12px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.rug--sold .rug__img img { filter: grayscale(.6); opacity: .75; }
.rug__body { padding: 18px 18px 20px; display: grid; gap: 6px; flex: 1; }
.rug__body h3 { font-size: 21px; font-weight: 800; }
.rug__meta { color: var(--muted); font-size: 15px; }
.rug__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.rug__price { font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 16px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 56px 24px; border-radius: var(--r-box); border: 3px dashed var(--line); background: #fff; }
.empty > svg { width: 64px; height: 84px; fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.empty h3 { font-size: 26px; font-weight: 800; }
.empty p { color: var(--muted); max-width: 480px; }

/* ---------- איך קונים ---------- */
.how { padding: 20px 0 80px; }
.how > .wrap { padding: 56px 26px; border-radius: var(--r-box); background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.how > .wrap::before { content: ''; position: absolute; width: 340px; height: 340px; inset-inline-start: -120px; bottom: -160px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--teal) 40%, transparent); }
.how .title { color: #fff; }
.how .title em { color: var(--teal); }
.how .title em::after { background: var(--accent-light); }
.how .eyebrow { color: var(--teal); }
.steps { display: grid; gap: 16px; position: relative; }
/* כרטיסים ד': כרטיס כהה עם ספרה ענקית */
.step { padding: 28px 26px; border-radius: var(--r-card); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); }
.step__n { display: block; font-family: var(--font-brand); font-weight: 400; font-size: 64px; line-height: 1; color: var(--teal); margin-bottom: 14px; }
.step h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.step p { color: rgb(255 255 255 / .78); }

/* ---------- שאלות ---------- */
.faq { padding: 0 0 90px; }
.faq__box { display: grid; gap: 10px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { border-radius: 22px; background: var(--surface); padding: 0 22px; transition: background .2s; }
.faq__item[open] { background: #fff; box-shadow: var(--shadow-soft); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--teal); font-size: 22px; line-height: 1; transition: transform .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 22px; color: var(--muted); }

/* ---------- יצירת קשר ---------- */
.contact { position: relative; overflow: hidden; padding: 80px 0; background: linear-gradient(140deg, var(--accent-light), var(--accent-dark)); color: #fff; }
.contact__bg {
  position: absolute; inset-inline: 0; top: 50%; transform: translateY(-50%); text-align: center; pointer-events: none;
  font-family: var(--font-brand); font-size: clamp(90px, 18vw, 260px); line-height: 1; white-space: nowrap; direction: ltr;
  color: transparent; -webkit-text-stroke: 2px rgb(255 255 255 / .16);
}
.contact__grid { position: relative; display: grid; gap: 40px; align-items: center; }
.contact__lead { font-size: 19px; color: rgb(255 255 255 / .9); margin-top: 16px; max-width: 520px; }
.contact__lines { display: grid; gap: 12px; margin-top: 28px; max-width: 420px; }
.wa-line { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 22px; background: rgb(255 255 255 / .12); border: 2px solid rgb(255 255 255 / .3); text-decoration: none; transition: background .2s, transform .2s; }
.wa-line:hover { background: rgb(255 255 255 / .2); transform: translateY(-2px); }
.wa-line__ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--wa); flex: none; }
.wa-line__ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; }
.wa-line span:last-child { display: grid; }
.wa-line small { font-size: 14px; opacity: .85; }
.wa-line b { font-family: var(--font-head); font-size: 22px; font-weight: 800; text-align: start; }
[dir="rtl"] .wa-line b { text-align: end; justify-self: start; }

.lead { display: grid; gap: 14px; padding: 30px 26px; border-radius: 28px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 70px rgb(40 10 5 / .3); }
.lead__title { font-size: 25px; font-weight: 800; margin-bottom: 4px; }
.lead__field { display: grid; gap: 6px; font-size: 15px; font-weight: 700; color: var(--muted); }
.lead__field input, .lead__field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--line);
  background: #fff; font: inherit; font-size: 17px; font-weight: 400; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.lead__field textarea { min-height: 80px; resize: vertical; }
.lead__field input:focus, .lead__field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 25%, transparent); }
.lead__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lead__submit { width: 100%; margin-top: 4px; }
.lead__submit:disabled { opacity: .6; }
.lead__msg { min-height: 1.4em; font-size: 15px; font-weight: 700; color: var(--blue); }
.lead__msg--bad { color: #B42318; }
.lead__done { padding: 28px 10px; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 25px; }

/* ---------- כותרת תחתונה ---------- */
.footer { background: var(--ink); color: rgb(255 255 255 / .82); padding: 56px 0 28px; }
.footer__grid { display: grid; gap: 28px; }
.footer__line { margin-top: 14px; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer__admin { font-size: 15px; color: rgb(255 255 255 / .6); }
.footer__copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .12); font-size: 15px; color: rgb(255 255 255 / .55); }

/* ---------- וואטסאפ צף ---------- */
.wa-float {
  position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 40; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #3BE07A, #1DA851);
  box-shadow: 0 12px 28px rgb(29 168 81 / .45);
}
[dir="rtl"] .wa-float { inset-inline-end: auto; left: 18px; }
[dir="ltr"] .wa-float { right: 18px; }
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #3BE07A; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- חלון של שטיח ---------- */
.rug-modal { width: min(1040px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 28px; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-card); }
.rug-modal::backdrop { background: color-mix(in srgb, var(--ink) 75%, transparent); backdrop-filter: blur(4px); }
.rm { display: grid; position: relative; }
.rm__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); font-size: 28px; line-height: 1; box-shadow: var(--shadow-pop); }
.rm__gallery { background: var(--surface); padding: 16px; display: grid; gap: 10px; }
.rm__img { width: 100%; max-height: 62dvh; object-fit: contain; border-radius: 14px; }
.rm__thumbs { display: flex; gap: 8px; overflow-x: auto; }
.rm__thumb { flex: none; width: 64px; height: 64px; padding: 0; border-radius: 12px; overflow: hidden; border: 3px solid transparent; background: none; }
.rm__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rm__thumb--on { border-color: var(--teal); }
.rm__info { padding: 26px 24px 28px; display: grid; gap: 14px; align-content: start; }
.rm__code { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--teal); font-weight: 700; font-size: 14px; unicode-bidi: plaintext; }
.rm__title { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.rm__specs { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--line); }
.rm__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rm__specs dt { color: var(--muted); }
.rm__specs dd { margin: 0; font-weight: 700; text-align: end; }
.rm__note { color: var(--muted); white-space: pre-line; }
.rm__price { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--accent); }

/* ---------- הופעה בגלילה ---------- */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }
.rug.rv.in { transition-delay: calc(min(var(--i, 0), 6) * 60ms); }

/* ---------- מחשב ---------- */
@media (min-width: 760px) {
  .nav__wa span { display: inline; }
  .nav__wa { width: auto; padding: 8px 18px; }
  .story__box { grid-template-columns: 300px 1fr; padding: 64px 56px; gap: 56px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .how > .wrap { padding: 72px 56px; }
  .rm { grid-template-columns: 1.3fr 1fr; }
  .rm__gallery { padding: 20px; }
  .rm__info { padding: 64px 32px 32px; }
  .footer__grid { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .hero { padding: 150px 0 110px; min-height: 100svh; display: flex; align-items: center; }
  .hero > .wrap { width: min(1180px, 100% - 80px); }
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
  .hero__art { width: 100%; max-width: 400px; }
  .contact__grid { grid-template-columns: 1fr 440px; gap: 64px; }
  .faq__box { grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
  .story { padding-top: 110px; }
  .collection { padding: 110px 0; }
  .contact { padding: 110px 0; }
}
@media (max-width: 559px) {
  .rugs { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .rug { border-width: 2px; border-radius: 18px; }
  .rug__body { padding: 12px 12px 14px; gap: 4px; }
  .rug__body h3 { font-size: 17px; }
  .rug__meta { font-size: 13.5px; line-height: 1.45; }
  .rug__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .rug__foot .btn { min-height: 44px; padding: 6px 10px; font-size: 14px; }
  .rug__code, .rug__status { top: 8px; font-size: 12.5px; padding: 3px 9px; }
  .rug__code { inset-inline-start: 8px; }
  .rug__status { inset-inline-end: 8px; }
}
@media (max-width: 420px) {
  .logo__text b { font-size: 15px; }
  .lang summary { padding: 0 10px; }
  .tag--1 { width: 88px; height: 88px; inset-inline-start: -6px; }
  .tag--1 b { font-size: 28px; }
  .tag--2 { inset-inline-end: -6px; }
}

/* אזור הניהול פתוח במחשב: האתר זז הצידה */
@media (min-width: 1100px) {
  .adm-open .nav-wrap { left: 600px; }
  .adm-open .nav__links, .adm-open .wa-float { display: none; }
}

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