/* KATANA JUDO נתניה · מערכת עיצוב */
:root {
  --navy: #0b1a4a;
  --navy-2: #12286b;
  --royal: #2347d6;
  --royal-2: #3b5ef0;
  --yellow: #ffd400;
  --yellow-2: #ffe55c;
  --ink: #0e1430;
  --muted: #5a6385;
  --line: #e3e7f2;
  --paper: #f5f7fc;
  --white: #fff;
  --ok: #17a05d;
  --danger: #d33b3b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(11, 26, 74, .28);
  --shadow-lg: 0 30px 60px -20px rgba(11, 26, 74, .45);
  --max: 1180px;
  --header-h: 68px;
  --tab-h: 0px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--tab-h);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- טיפוגרפיה ---------- */
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 900; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--royal);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--yellow); border-radius: 2px; }
.on-dark .eyebrow { color: var(--yellow); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.on-dark .lead { color: #c5cdf0; }
.hl { background: linear-gradient(transparent 62%, var(--yellow) 62%); padding-inline: .08em; }
.on-dark .hl { background: none; color: var(--yellow); }

/* ---------- כפתורים ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); font-weight: 800; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(255, 212, 0, .7);
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(255, 212, 0, .8); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--royal-2); outline-offset: 3px;
}
.btn-royal { --bg: var(--royal); --fg: #fff; box-shadow: 0 8px 20px -8px rgba(35, 71, 214, .7); }
.btn-ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px currentColor; background: rgba(255,255,255,.08); }
.btn-wa { --bg: #25d366; --fg: #06351b; box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .7); }
.btn-sm { padding: .6em 1.05em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- כותרת עליונה ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 26, 74, .86); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .04em; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand small { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .14em; color: var(--yellow); }
.partner {
  display: flex; flex-direction: column; justify-content: center; line-height: 1.1;
  padding-inline-start: 12px; border-inline-start: 1px solid rgba(255,255,255,.25);
  font-weight: 800; font-size: .86rem; color: #fff; white-space: nowrap;
}
.partner small { font-size: .66rem; font-weight: 500; color: var(--yellow); letter-spacing: .04em; }
@media (max-width: 380px) { .brand small { display: none; } .partner { font-size: .76rem; padding-inline-start: 8px; } }
.nav { display: none; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; padding: .5em .8em; border-radius: 999px; font-weight: 600; font-size: .95rem; color: #dfe5ff; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.header-actions { display: flex; gap: 8px; margin-inline-start: auto; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff; text-decoration: none; border: 0; cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,.18); }
.icon-btn.wa { background: #25d366; color: #06351b; }
.header-cta { display: none; }

/* ---------- סרגל תחתון (מובייל) ---------- */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -10px 30px -18px rgba(11,26,74,.35);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 9px;
  text-decoration: none; font-size: .72rem; font-weight: 600; color: var(--muted);
}
.tabbar a .icon { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--royal); }
.tabbar a.tab-cta { color: var(--navy); }
.tabbar a.tab-cta span.bubble {
  width: 46px; height: 46px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); box-shadow: 0 8px 18px -6px rgba(255,212,0,.9); border: 4px solid #fff;
}
body { --tab-h: 64px; }

@media (min-width: 900px) {
  body { --tab-h: 0px; }
  .tabbar { display: none; }
  .nav { display: flex; }
  .header-actions { margin-inline-start: 0; }
  .header-cta { display: inline-flex; }
}

/* ---------- סקשנים ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.on-dark { background: var(--navy); color: #fff; }
.watermark {
  position: absolute; pointer-events: none; user-select: none; font-weight: 900; line-height: 1;
  color: currentColor; opacity: .05; font-size: clamp(9rem, 26vw, 22rem); inset-inline-start: -2%; top: 4%;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
}
.stripes {
  position: absolute; pointer-events: none; width: 220px; height: 22px;
  background: repeating-linear-gradient(-55deg, var(--yellow) 0 10px, transparent 10px 22px);
  opacity: .9;
}

/* ---------- HERO קולאז׳ ---------- */
.hero {
  background: radial-gradient(1200px 600px at 85% -10%, #1d3aa8 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 110%, #17327f 0%, transparent 55%), var(--navy);
  color: #fff; padding: 28px 0 70px; overflow: hidden;
}
.hero-grid { display: grid; gap: 34px; align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 8.4vw, 5.4rem); font-weight: 900; white-space: pre-line; margin: .25em 0 .3em;
}
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { color: #cdd5f5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; color: #b7c1ec; font-size: .92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--yellow); }

.collage {
  position: relative; display: grid; gap: 10px;
  grid-template-columns: repeat(6, 1fr); grid-auto-rows: 64px;
}
.collage figure {
  margin: 0; border-radius: 16px; overflow: hidden; position: relative; background: var(--navy-2);
  box-shadow: var(--shadow-lg); transform: rotate(var(--r, 0deg));
  animation: pop .8s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: var(--d, 0s);
}
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.collage figure:hover img { transform: scale(1.06); }
.collage figcaption {
  position: absolute; inset-inline-start: 10px; bottom: 10px; background: var(--yellow); color: var(--navy);
  font-weight: 800; font-size: .74rem; padding: .25em .7em; border-radius: 6px; transform: rotate(-3deg);
}
.c1 { grid-column: 1 / 5; grid-row: 1 / 5; --r: -1.2deg; }
.c2 { grid-column: 5 / 7; grid-row: 1 / 4; --r: 2deg; --d: .1s; }
.c3 { grid-column: 5 / 7; grid-row: 4 / 8; --r: -2deg; --d: .2s; }
.c4 { grid-column: 1 / 3; grid-row: 5 / 8; --r: 1.5deg; --d: .3s; }
.c5 { grid-column: 3 / 5; grid-row: 5 / 8; --r: -1deg; --d: .4s; }
.collage .badge-round {
  position: absolute; z-index: 3; width: 108px; height: 108px; border-radius: 50%;
  background: var(--yellow); color: var(--navy); display: grid; place-items: center; text-align: center;
  font-weight: 900; line-height: 1.05; font-size: .86rem; box-shadow: var(--shadow-lg);
  inset-inline-end: -6px; top: 47%; transform: rotate(-10deg); animation: spin-in 1s .7s both;
}
.collage .badge-round b { display: block; font-size: 1.9rem; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.94) rotate(var(--r, 0deg)); } }
@keyframes spin-in { from { opacity: 0; transform: rotate(-60deg) scale(.4); } }

@media (min-width: 980px) {
  .hero { padding: 54px 0 100px; }
  .hero-grid { grid-template-columns: 1fr 1.08fr; gap: 56px; }
  .collage { grid-auto-rows: 74px; }
}

/* ---------- מדדים ---------- */
.stats-band { margin-top: -44px; position: relative; z-index: 5; padding: 0; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 22px 10px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat b, .collage .badge-round b { direction: ltr; unicode-bidi: isolate; }
.stat b { display: block; font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 900; color: var(--royal); line-height: 1; }
.stat span { font-size: .86rem; color: var(--muted); font-weight: 600; }

/* ---------- דרך הג׳ודו (אקורדיון תמונות) ---------- */
.way { display: grid; gap: 12px; }
.way-item {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 92px; cursor: pointer;
  background: var(--navy); color: #fff; border: 0; text-align: start; padding: 0;
  transition: min-height .45s cubic-bezier(.3,.8,.3,1), flex .45s;
}
.way-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: .55; transition: opacity .4s, transform .8s; }
.way-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,26,74,.95) 10%, rgba(11,26,74,.15) 75%); }
.way-body { position: relative; z-index: 2; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: inherit; }
.way-num { font-size: .8rem; font-weight: 800; color: var(--yellow); letter-spacing: .1em; }
.way-item h3 { font-size: 1.4rem; margin: 4px 0 0; }
.way-jp { font-size: .85rem; color: #aab6e8; font-weight: 500; }
.way-text { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s, opacity .35s, margin .3s; color: #dbe2ff; margin: 0; }
.way-item[aria-expanded="true"] { min-height: 330px; }
.way-item[aria-expanded="true"] img { opacity: .8; transform: scale(1.04); }
.way-item[aria-expanded="true"] .way-text { max-height: 200px; opacity: 1; margin-top: 10px; }
@media (min-width: 900px) {
  .way { display: flex; height: 460px; }
  .way-item { flex: 1; min-height: 0 !important; }
  .way-item[aria-expanded="true"] { flex: 3.2; }
  .way-item:not([aria-expanded="true"]) h3 { font-size: 1.15rem; }
}

/* ---------- רגעים (גלריה) ---------- */
.moments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; grid-auto-flow: dense; }
.moments figure { margin: 0; border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 1; cursor: zoom-in; background: #dfe4f3; }
.moments figure.tall { grid-row: span 2; aspect-ratio: auto; }
.moments figure.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.moments img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.moments figure:hover img { transform: scale(1.05); }
@media (min-width: 760px) { .moments { grid-template-columns: repeat(4, 1fr); } }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 10, 30, .92); display: none;
  place-items: center; padding: 20px;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; top: 16px; inset-inline-end: 16px; }

/* ---------- מאמן ---------- */
.coach { display: grid; gap: 36px; align-items: center; }
.coach-photo { position: relative; max-width: 280px; margin-inline: auto; }
.coach-photo img { border-radius: 24px; aspect-ratio: 4/5; object-fit: cover; width: 100%; height: auto; box-shadow: var(--shadow-lg); }
.coach-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 24px; border: 3px solid var(--yellow); z-index: -1;
}
.coach-photo .tag {
  position: absolute; bottom: 18px; inset-inline-end: -10px; background: var(--royal); color: #fff; padding: 10px 16px;
  border-radius: 12px; font-weight: 800; box-shadow: var(--shadow);
}
.coach-photo .tag small { display: block; font-weight: 500; font-size: .78rem; color: #c8d3ff; }
blockquote.big {
  margin: 0 0 22px; font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 700; line-height: 1.35; position: relative;
}
blockquote.big { border-inline-start: 5px solid var(--yellow); padding-inline-start: 20px; }
.coach-sign { font-weight: 800; }
.coach-sign small { display: block; color: #aab6e8; font-weight: 500; }
.creds { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.creds li {
  display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 6px 18px -12px rgba(11,26,74,.35); font-weight: 600;
}
.creds .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--navy); color: var(--yellow); }
@media (min-width: 640px) { .creds { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .coach { grid-template-columns: 320px 1fr; gap: 60px; } .coach-photo { max-width: 320px; } }

/* ---------- מערכת שעות ---------- */
.schedule { display: grid; gap: 14px; }
.branch-tabs { justify-content: center; margin-bottom: 18px; }
.branch-tabs .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; padding: .75em 1.3em; background: var(--paper); box-shadow: none; }
.branch-tabs .chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.branch-tabs .chip[aria-pressed="true"] .icon { color: var(--yellow); }
.sched-card {
  background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; border-inline-start: 6px solid var(--royal);
}
.sched-card:nth-child(2) { border-color: var(--yellow); }
.sched-card:nth-child(3) { border-color: var(--navy); }
.sched-age { grid-row: span 2; width: 74px; height: 74px; border-radius: 18px; background: var(--paper); display: grid; place-items: center; text-align: center; font-weight: 900; color: var(--royal); font-size: 1.25rem; line-height: 1; }
.sched-age small { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.sched-card h3 { margin: 0; }
.sched-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .95rem; }
.sched-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sched-meta .icon { color: var(--royal); }
/* בסניף עם פחות משלוש קבוצות הכרטיסים מתמרכזים */
@media (min-width: 900px) {
  .schedule { display: flex; flex-wrap: wrap; justify-content: center; }
  .schedule > .sched-card { flex: 0 1 calc((100% - 28px) / 3); }
}

/* ---------- מסלול חגורות ---------- */
.belts { display: grid; gap: 0; position: relative; }
.belt { display: grid; grid-template-columns: 58px 1fr; gap: 16px; align-items: start; padding: 10px 0; position: relative; }
.belt::before { content: ""; position: absolute; inset-inline-start: 28px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.14); }
.belt:first-child::before { top: 30px; } .belt:last-child::before { bottom: calc(100% - 30px); }
.belt.half h3 { font-size: 1rem; color: #dfe5ff; }
.belt-knot {
  position: relative; z-index: 1; width: 58px; height: 40px; border-radius: 8px;
  background: linear-gradient(180deg, var(--c) 50%, var(--c2, var(--c)) 50%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.12), 0 6px 14px -6px rgba(0,0,0,.6); margin-top: 4px;
}
.belt-knot::after { content: ""; position: absolute; inset: 10px 22px; background: rgba(0,0,0,.18); border-radius: 3px; }
.belt h3 { margin: 6px 0 2px; font-size: 1.1rem; }
.belt p { margin: 0; color: #c5cdf0; font-size: .95rem; }
@media (min-width: 900px) {
  .belts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .belt {
    grid-template-columns: 1fr; text-align: center; padding: 16px 12px; border-radius: 16px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  }
  .belt::before { display: none; }
  .belt-knot { margin: 0 auto; width: 70px; height: 48px; }
  .belt-knot::after { inset: 12px 28px; }
}

/* ---------- הישגים ---------- */
.achievements { display: grid; gap: 18px; }
.ach { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ach img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.ach div { padding: 18px 20px 20px; }
.ach h3 { display: flex; gap: 8px; align-items: center; }
.ach h3 .icon { color: #e0a800; }
.ach p { color: var(--muted); margin: 0; }
@media (min-width: 800px) { .achievements { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }

/* ---------- אינסטגרם ---------- */
.ig { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-radius: var(--radius); overflow: hidden; }
.ig a { position: relative; aspect-ratio: 1; overflow: hidden; display: block; }
.ig img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ig a::after { content: ""; position: absolute; inset: 0; background: rgba(35,71,214,.0); transition: background .3s; }
.ig a:hover::after { background: rgba(35,71,214,.35); }
.ig a:hover img { transform: scale(1.06); }
@media (min-width: 800px) { .ig { grid-template-columns: repeat(6, 1fr); } }
.ig-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }

/* ---------- חוות דעת ---------- */
.testis { display: grid; gap: 16px; }
.testi { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.testi p { font-size: 1.05rem; }
.testi .who { font-weight: 800; color: var(--royal); }
@media (min-width: 800px) { .testis { grid-template-columns: repeat(3, 1fr); } }

/* ---------- שאלות נפוצות ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details { background: #fff; border-radius: var(--radius-sm); box-shadow: 0 4px 16px -10px rgba(11,26,74,.3); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--royal); transition: transform .25s; font-weight: 500; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ---------- טופס ליד ---------- */
.on-dark .card .lead, .on-dark .card { color: var(--ink); }
.cta-section { background: linear-gradient(135deg, var(--royal) 0%, var(--navy) 70%); color: #fff; overflow: hidden; }
.cta-grid { display: grid; gap: 36px; align-items: center; }
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.perks .icon { color: var(--yellow); }
.card {
  background: #fff; color: var(--ink); border-radius: 22px; padding: clamp(20px, 3.5vw, 32px); box-shadow: var(--shadow-lg);
}
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85em 1em; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfcff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(35,71,214,.14); }
.field input[dir="ltr"] { text-align: left; }
.field input[name="nameEn"] { text-transform: uppercase; letter-spacing: .06em; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 0; }
.success {
  text-align: center; padding: 20px 6px;
}
.success .check { width: 72px; height: 72px; border-radius: 50%; background: #e6f8ee; color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.success .check .icon { width: 36px; height: 36px; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr 1fr; gap: 70px; } }

/* ---------- פוטר ---------- */
.footer { background: #070f2e; color: #aeb8e0; padding: 54px 0 30px; }
.footer-grid { display: grid; gap: 28px; }
.footer h4 { color: #fff; font-size: 1rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 34px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- אנימציית כניסה ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   חנות
   ========================================================= */
.store-hero { background: var(--navy); color: #fff; padding: 34px 0 84px; overflow: hidden; }
.store-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 900; margin: .2em 0; }
.secure-badge {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #d6ddff;
}
.secure-badge .icon { color: #5be39a; }
.store-main { margin-top: -50px; padding-top: 0; position: relative; z-index: 2; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: none; }
/* הקטגוריות יושבות כולן בתוך החלק הכחול, הכרטיסים ממשיכים לעלות עליו */
.store-main .filters { margin-top: -68px; padding-bottom: 48px; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 0; background: #fff; padding: .65em 1.15em; border-radius: 999px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px -8px rgba(11,26,74,.35); color: var(--navy);
}
.chip[aria-pressed="true"] { background: var(--yellow); }
.products { display: grid; gap: 18px; }
@media (min-width: 640px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .products { grid-template-columns: repeat(4, 1fr); } }
.product { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-media { position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, #e9eeff, #f7f9ff); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.ach img { object-position: center 30%; }
.product-media img.contain { object-fit: contain; padding: 22px; }
.product-media .price-tag {
  position: absolute; top: 12px; inset-inline-start: 12px; background: var(--yellow); color: var(--navy); font-weight: 900;
  padding: .3em .75em; border-radius: 10px; font-size: 1.05rem; box-shadow: 0 6px 14px -6px rgba(0,0,0,.4);
}
.product-media .cat { position: absolute; top: 12px; inset-inline-end: 12px; background: rgba(11,26,74,.8); color: #fff; font-size: .74rem; padding: .3em .7em; border-radius: 8px; font-weight: 700; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { margin: 0; font-size: 1.12rem; }
.product-body p { color: var(--muted); font-size: .93rem; margin: 0; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .88rem; }
.features li { display: flex; gap: 6px; align-items: center; }
.features .icon { color: var(--ok); width: 1em; height: 1em; }
.product-body .btn { margin-top: auto; }
.delivery-note { display: flex; gap: 8px; align-items: flex-start; background: #eef3ff; color: var(--navy) !important; border-radius: 10px; padding: 8px 10px; font-size: .85rem !important; font-weight: 600; }
.delivery-note .icon { flex: none; color: var(--royal); margin-top: 2px; }
.status-ribbon {
  position: absolute; inset-inline: 0; bottom: 0; background: rgba(11,26,74,.88); color: var(--yellow);
  text-align: center; font-weight: 800; padding: .5em; font-size: .95rem; letter-spacing: .02em;
}
.product.unavailable .product-media img { filter: grayscale(.35) brightness(.92); }
.btn-disabled, .btn-disabled:hover { --bg: #e4e8f3; --fg: var(--muted); box-shadow: none; transform: none; cursor: not-allowed; opacity: 1; }

/* תהליך הזמנה */
.checkout { display: grid; gap: 22px; margin-top: 40px; }
@media (min-width: 960px) { .checkout { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.tabs { display: flex; gap: 6px; background: var(--paper); padding: 5px; border-radius: 14px; overflow-x: auto; }
.tabs button { flex: 1; border: 0; background: transparent; padding: .7em 1em; border-radius: 10px; font-weight: 700; cursor: pointer; white-space: nowrap; color: var(--muted); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 4px 12px -6px rgba(11,26,74,.3); }
.step-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; font-size: 1.05rem; }
.step-title b { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-size: .9rem; }
.color-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt {
  border: 2px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; display: flex; align-items: center; gap: 12px;
  background: #fff; font-weight: 700; text-align: start;
}
.opt[aria-checked="true"] { border-color: var(--royal); box-shadow: 0 0 0 4px rgba(35,71,214,.12); }
.opt .sw { width: 30px; height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.15); flex: none; }
.opt small { display: block; color: var(--muted); font-weight: 500; }

.sizer { background: var(--paper); border-radius: 16px; padding: 18px; }
.sizer-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sizer-height { font-size: 2rem; font-weight: 900; color: var(--navy); }
.sizer-height small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.range { width: 100%; accent-color: var(--royal); height: 30px; margin: 10px 0 6px; }
.sizer-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); direction: ltr; }
.size-rec {
  margin-top: 14px; display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 14px; padding: 14px;
  border: 2px dashed var(--royal);
}
.size-rec .num { font-size: 2.1rem; font-weight: 900; color: var(--royal); line-height: 1; min-width: 74px; text-align: center; }
.size-rec .num small { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
.size-rec p { margin: 0; font-size: .88rem; color: var(--muted); }

.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary h3 { display: flex; align-items: center; gap: 8px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.sum-line span:first-child { color: var(--muted); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; }
.sum-total b { font-size: 2rem; font-weight: 900; color: var(--navy); }
.pay-logos { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: .78rem; flex-wrap: wrap; }
.pay-logos span { border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-weight: 700; }
@media (min-width: 560px) { .form-row.three { grid-template-columns: 1.2fr 1fr 1fr; } }
.form-row.three { display: grid; gap: 14px; }
.empty-comp { grid-column: 1 / -1; text-align: center; padding: 40px 20px; }
.empty-comp .icon { width: 48px; height: 48px; color: #e0a800; margin: 0 auto 10px; display: block; }
.empty-comp p { color: var(--muted); margin: 0; }
.comp-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 700; color: var(--navy) !important; }
.comp-meta .icon { width: 1em; height: 1em; color: var(--royal); margin-inline-end: 4px; vertical-align: -2px; }
.next-belt { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: .5em 1em; border-radius: 12px; background: var(--paper); }
.next-belt .muted { color: var(--muted); font-size: .9rem; }
.belt-chip { width: 44px; height: 22px; border-radius: 5px; flex: none; background: linear-gradient(180deg, var(--c) 50%, var(--c2) 50%); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.18); }
.patch-preview { position: relative; width: min(320px, 100%); margin: 16px auto 6px; container-type: inline-size; filter: drop-shadow(0 12px 20px rgba(11,26,74,.25)); }
.patch-preview img { width: 100%; height: auto; }
.patch-name {
  position: absolute; left: 50%; top: 16.8%; transform: translate(-50%, -50%); transform-origin: center;
  font-family: Impact, "Anton", "Arial Black", sans-serif; font-size: 15cqw; line-height: 1; color: #0c0c0c;
  white-space: nowrap; letter-spacing: .01em; direction: ltr;
}
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--royal); margin-top: 2px; flex: none; }
.note-box { background: #fff8d6; border-radius: 12px; padding: 12px 14px; font-size: .88rem; color: #5c4a00; display: flex; gap: 10px; }
.note-box .icon { flex: none; margin-top: 2px; }
.sent-ok { display: flex; gap: 8px; align-items: center; justify-content: center; background: #e6f8ee; color: #0d6b3c; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: .92rem; }
.sent-ok .icon { flex: none; }
.wa-small { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font-size: .9rem; color: #0d6b3c; font-weight: 600; }
.order-done .order-no { font-size: 1.6rem; font-weight: 900; letter-spacing: .06em; color: var(--royal); direction: ltr; display: inline-block; background: var(--paper); padding: 6px 14px; border-radius: 10px; margin: 6px 0 14px; }

/* =========================================================
   מנהל
   ========================================================= */
.admin-body { background: #eef1f9; }
.admin-shell { padding: 28px 0 80px; }
.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sync { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); background: #fff; padding: 6px 12px; border-radius: 999px; }
.sync i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(23,160,93,.18); animation: pulse 1.8s infinite; }
.sync.demo i { background: #e0a800; box-shadow: 0 0 0 4px rgba(224,168,0,.2); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(23,160,93,0); } }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; }
.admin-tabs button { border: 0; background: #fff; padding: .7em 1.1em; border-radius: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.admin-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.admin-tabs .count { background: var(--yellow); color: var(--navy); border-radius: 999px; font-size: .75rem; padding: 0 .55em; }
.panel { background: #fff; border-radius: var(--radius); padding: clamp(16px, 3vw, 26px); box-shadow: 0 6px 20px -14px rgba(11,26,74,.35); margin-bottom: 18px; }
.panel h2 { font-size: 1.35rem; }
.admin-products { display: grid; gap: 12px; }
.ap { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 12px; }
.ap.inactive { background: #f8f9fc; }
.ap-head { display: flex; align-items: center; gap: 12px; }
.ap-head img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--paper); }
.ap-head h3 { margin: 0; font-size: 1rem; flex: 1; }
.ap-fields { display: grid; gap: 10px; }
@media (min-width: 760px) { .ap-fields { grid-template-columns: 2fr 1fr 3fr; } .ap-fields .full { grid-column: 1 / -1; } }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; margin: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #cfd5e6; border-radius: 999px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(-20px); }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
table.data th, table.data td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.status { border: 0; border-radius: 999px; padding: .3em .8em; font-weight: 700; font-size: .8rem; cursor: pointer; }
.status.new { background: #fff3c2; color: #6b5400; }
.status.paid, .status.contacted { background: #dff6e9; color: #0d6b3c; }
.status.done { background: #e4e9fb; color: var(--royal); }
.order-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.order-tools select, .search-box { min-height: 42px; border: 1.5px solid var(--line, #dde3f2); border-radius: 12px; background: #fff; font: inherit; }
.order-tools select { padding: 0 12px; }
.search-box { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); }
.search-box input { border: 0; outline: 0; flex: 1; min-width: 0; font: inherit; background: transparent; padding: 0; min-height: 40px; }
.search-box:focus-within { border-color: var(--royal); }
.order-count { margin: 0 0 8px; font-weight: 700; color: var(--muted); font-size: .9rem; }
.data .nowrap { white-space: nowrap; }
.auto-paid { color: #0d6b3c; font-size: .72rem; font-weight: 600; }
@media (max-width: 640px) { .order-tools select, .order-tools .btn { flex: 1 1 45%; } }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.list-edit { display: grid; gap: 10px; }
.list-edit .row { display: grid; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; position: relative; }
@media (min-width: 760px) { .list-edit .row.cols-5 { grid-template-columns: 1.2fr .6fr .8fr 1fr 1fr auto; align-items: end; } .list-edit .row.cols-2 { grid-template-columns: 1fr 2fr auto; align-items: end; } }
.del { border: 0; background: #fde8e8; color: var(--danger); border-radius: 10px; padding: .55em .8em; cursor: pointer; font-weight: 700; }
.pay-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: .74rem; font-weight: 700; padding: .15em .6em; border-radius: 999px; }
.pay-badge .icon { width: .95em; height: .95em; }
.pay-badge.ok { background: #dff6e9; color: #0d6b3c; }
.pay-badge.missing { background: #fff3c2; color: #6b5400; }
.add-product { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.add-product select { padding: .55em .8em; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; }
.ap-photo { position: relative; flex: none; cursor: pointer; border-radius: 10px; overflow: hidden; }
.ap-photo img { width: 54px; height: 54px; object-fit: cover; display: block; }
.ap-photo span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,26,74,.55); color: #fff; opacity: 0; transition: opacity .2s; }
.ap-photo:hover span, .ap-photo:focus-within span { opacity: 1; }
.sticky-save { position: sticky; bottom: 16px; margin-top: 16px; z-index: 5; box-shadow: var(--shadow-lg); }
div.sticky-save { box-shadow: none; }
.photo-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.photo-card { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.photo-preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: crosshair; background: var(--paper); }
.photo-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.focus-dot {
  position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 3px solid #fff; background: var(--yellow); box-shadow: 0 0 0 2px rgba(0,0,0,.35); pointer-events: none;
}
.photo-meta { padding: 10px 12px 12px; display: grid; gap: 8px; }
.photo-meta b { font-size: .92rem; }
.photo-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.photo-actions .btn { cursor: pointer; }
.toast { position: fixed; bottom: calc(var(--tab-h) + 20px); left: 50%; transform: translateX(-50%) translateY(30px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 700; opacity: 0; transition: .3s; z-index: 200; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 80% 0%, #1d3aa8, transparent 60%), var(--navy); }
.login .card { width: min(420px, 100%); }
.login .brand-big { text-align: center; margin-bottom: 18px; }
.login .brand-big img { width: 90px; margin: 0 auto 8px; }
.demo-banner { background: #fff3c2; color: #5c4a00; padding: 10px 14px; border-radius: 12px; font-size: .88rem; margin-bottom: 16px; }
