/* נופר גיסינגר - אתר ראשי
   פלטה, גופנים ואפקטים לפי עמוד הקורס NOFAREVIT ו-LESSONS מ-15.11.2026 */

:root {
  --ink: #294D59;
  --ink-deep: #213F49;
  --tone: #608D9A;
  --text: #4C6873;
  --muted: #587985;
  --eyebrow: #7F6C48;
  --cream: #FCFAF5;
  --paper: #FFFDF8;
  --mint: #EDF4F5;
  --aqua: #91BAC4;
  --aqua-soft: #CFE3E8;
  --gold: #BBA16A;
  --lotus: #D9B24A;
  --line: rgba(145, 186, 196, 0.35);

  --surface-shadow: 0 4px 9px -5px #254b5f14, 0 18px 42px -18px #254b5f30;
  --surface-raised: 0 8px 18px -9px #254b5f26, 0 30px 58px -22px #254b5f45;
  --ease: cubic-bezier(.22, .6, .36, 1);

  --font-head: "Heebo", "Assistant", Arial, sans-serif;
  --font-body: "Assistant", "Heebo", Arial, sans-serif;
  --font-latin: "Montserrat", "Heebo", Arial, sans-serif;

  --radius: 22px;
  --max: 1180px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; line-height: 1.3; }
h1 .tone, h2 .tone { display: block; color: var(--tone); }

p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.narrow { max-width: 800px; }
.latin { font-family: var(--font-latin); font-weight: 600; letter-spacing: 0.06em; }
.sep { color: var(--gold); padding-inline: 2px; }

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--eyebrow);
}
.eyebrow .latin { font-size: 0.8rem; }

/* נייר משבצות אדריכלי */
.grid-paper {
  background-color: var(--cream);
  background-image:
    linear-gradient(#335b650b 1px, transparent 1px),
    linear-gradient(90deg, #335b650b 1px, transparent 1px);
  background-size: 44px 44px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
}
.skip-link:focus { top: 12px; }

/* ---------- כפתורים ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 12px 30px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 22px -14px #294b5f90;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { background: var(--ink-deep); border-color: var(--ink-deep); transform: translateY(-2px); box-shadow: 0 16px 28px -16px #294b5fa0; }
.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
.compare-range:focus-visible + .compare-handle { outline: 3px solid var(--lotus); outline-offset: 3px; }

.btn-soft {
  background: var(--aqua-soft);
  border-color: var(--aqua);
  color: var(--ink);
  box-shadow: 0 4px 0 #91bac46b;
}
.btn-soft:hover { background: #DCEBEE; border-color: var(--aqua); color: var(--ink); box-shadow: 0 6px 0 #91bac46b; }

.btn-outline { background: transparent; color: var(--ink); border-color: #91bac4aa; box-shadow: none; }
.btn-outline:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); box-shadow: var(--surface-shadow); }

.btn-small { min-height: 44px; padding: 8px 22px; font-size: 0.96rem; }

.btn-gold { background: var(--lotus); border-color: var(--lotus); color: var(--ink); font-weight: 800; }
.btn-gold:hover { background: #E4C266; border-color: #E4C266; }

.btn-light { background: transparent; border-color: rgba(252, 250, 245, 0.55); color: var(--cream); box-shadow: none; }
.btn-light:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- ראש הדף ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 250, 245, 0.86);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px #254b5f60; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.lotus { width: 36px; height: 36px; color: var(--lotus); flex: none; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.brand-latin { font-family: var(--font-latin); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.22em; direction: ltr; }
.brand-he { font-family: var(--font-head); font-weight: 500; font-size: 0.8rem; color: var(--muted); }

.main-nav { display: none; gap: 34px; }
.main-nav a {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  padding-block: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: var(--lotus);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

@media (min-width: 940px) {
  .main-nav { display: flex; }
}

/* ---------- פתיחה ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 70px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 22% 45%, #d7e7ebcc 0, transparent 58%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 30px; align-items: center; }

.lead { font-size: 1.32rem; line-height: 1.6; color: var(--ink); font-weight: 600; max-width: 26em; }

.teacher {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 30px;
}
.teacher-photo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 16px;
  box-shadow: var(--surface-shadow);
}
.teacher strong { display: block; font-family: var(--font-head); font-weight: 700; color: var(--ink); line-height: 1.3; }
.teacher span { font-size: 0.95rem; color: var(--muted); }

.audience {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  font-size: 0.98rem;
  color: var(--muted);
}
.audience::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--aqua); flex: none; }

.hero-art {
  position: relative;
  width: min(100%, 560px);
  margin-inline: auto;
  perspective: 1100px;
}
.hero-art-tilt {
  position: relative;
  z-index: 1;
  transform:
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    scale(calc(0.97 + var(--hero-progress, 0) * 0.07));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
  will-change: transform;
}
.hero-art img {
  width: 100%;
  filter: drop-shadow(0 34px 38px rgba(37, 75, 95, 0.16));
  animation: architecture-float 7s ease-in-out infinite;
}
.hero-art-shadow {
  position: absolute;
  inset-inline: 14%;
  bottom: 2%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #254b5f2e, transparent);
  filter: blur(6px);
  animation: shadow-breathe 7s ease-in-out infinite;
}

@media (min-width: 940px) {
  .hero { padding: 56px 0 96px; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 44px; }
  .hero-art { width: 100%; max-width: 620px; }
}

@keyframes architecture-float { 0%, 100% { transform: translateY(4px); } 50% { transform: translateY(-8px); } }
@keyframes shadow-breathe { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.9); opacity: .7; } }

/* ---------- מקטעים ---------- */

.section { position: relative; padding: 80px 0; }
.section-mint { background: linear-gradient(135deg, #edf4f5, #f6f8f4); }
.section-head { max-width: 44em; margin-bottom: 40px; }

@media (min-width: 940px) {
  .section { padding: 116px 0; }
}

/* מהשרטוט להדמיה */
.compare-section { background: radial-gradient(ellipse at 85% 10%, #d7e7eb80, transparent 60%), linear-gradient(135deg, #edf4f5, #f7f8f4); }
.compare-grid { display: grid; gap: 40px; align-items: center; }
.compare-text p { font-size: 1.15rem; max-width: 30em; }
.compare-text .hint { font-size: 0.98rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.compare-text .hint::before { content: "↔"; color: var(--gold); font-size: 1.2rem; }

.compare {
  --compare: 50%;
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--surface-raised);
  user-select: none;
  touch-action: pan-y;
  direction: ltr;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.compare-top { clip-path: inset(0 calc(100% - var(--compare)) 0 0); }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 14px #26485860;
  pointer-events: none;
}
.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--surface-raised);
}
.compare-handle span::before,
.compare-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}
.compare-handle span::before { left: 12px; transform: translateY(-50%) rotate(-45deg); }
.compare-handle span::after { right: 12px; transform: translateY(-50%) rotate(135deg); }
.compare-label {
  position: absolute;
  top: 16px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  pointer-events: none;
}
.compare-label-render { left: 16px; }
.compare-label-line { right: 16px; }
.compare { cursor: ew-resize; }
.compare-range {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 940px) {
  .compare-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
}

/* איפה את נמצאת */
.pain-list { display: grid; gap: 12px; margin: 0 0 1.6em; padding: 0; list-style: none; }
.pain-list li {
  padding: 16px 22px;
  border-inline-start: 3px solid var(--lotus);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--surface-shadow);
}
.pull { margin: 1.4em 0 0; font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: var(--tone); }

/* כרטיסים */
.cards-3 { display: grid; gap: 24px; }
.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--surface-shadow);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--surface-raised); }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.card-media:hover img { transform: scale(1.04); }
.card-body { padding: 24px 26px 28px; }
.card-body p { margin: 0; }

@media (min-width: 800px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

/* התכניות */
.programs { display: grid; gap: 24px; }
.program {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--surface-shadow);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.program:hover { transform: translateY(-4px); box-shadow: var(--surface-raised); }
.program-icon { width: 92px; height: 92px; margin: -6px 0 10px -6px; align-self: flex-start; }
.program h3 { font-size: 1.6rem; margin-bottom: 0.5em; }
.program .btn { margin-top: auto; align-self: flex-start; }
.program > p:last-of-type { margin-bottom: 26px; }

.tag {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}
.soon { margin-inline-start: 6px; padding: 1px 10px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 0.8rem; font-weight: 600; }
.pre-title { margin: 0 0 2px; font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--muted); }
.latin-title { font-family: var(--font-latin); font-weight: 600; letter-spacing: 0.12em; direction: ltr; text-align: right; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.facts li { padding: 3px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); font-size: 0.92rem; }
.note { font-weight: 600; color: var(--ink); }

@media (min-width: 840px) {
  .programs { grid-template-columns: repeat(2, 1fr); }
}

/* נעים להכיר */
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-photo { position: relative; width: min(100% - 20px, 420px); margin-inline: auto; }
.about-photo::before {
  content: "";
  position: absolute;
  inset: 18px -16px -18px 16px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
}
.about-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--radius);
  box-shadow: var(--surface-raised);
}
.signature {
  display: inline-block;
  margin: 0.6em 0 0;
  padding-top: 18px;
  border-top: 2px solid var(--lotus);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}

@media (min-width: 940px) {
  .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: 88px; }
}

/* שאלות נפוצות */
.faq { display: grid; gap: 12px; }
.faq details {
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--surface-shadow);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding-bottom: 22px; }

/* יצירת קשר */
.contact {
  background: radial-gradient(ellipse at 50% 0%, #3a6372 0, transparent 70%), var(--ink);
  color: var(--cream);
  text-align: center;
}
.contact h2 { color: var(--cream); }
.contact p { color: #DCE8EB; font-size: 1.2rem; }
.contact .actions { justify-content: center; margin-top: 28px; }
.contact-icon { width: 96px; height: 96px; margin: 0 auto 14px; }
.codeword { font-family: var(--font-latin); font-weight: 600; letter-spacing: 0.08em; color: var(--lotus); }
.handle { font-size: 0.85rem; letter-spacing: 0.02em; direction: ltr; unicode-bidi: isolate; }

/* תחתית */
.site-footer { padding: 26px 0; background: var(--ink-deep); color: #B9CDD2; font-size: 0.92rem; text-align: center; }
.site-footer p { margin: 0; }
.site-footer .latin { font-size: 0.8rem; }

/* ---------- כניסה בגלילה (כמו בעמוד הקורס) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; }
  .js [data-reveal].is-in { animation: depth-enter .85s var(--ease) both; animation-delay: var(--reveal-delay, 0ms); }
  .js .program[data-reveal].is-in .program-icon,
  .js .contact-icon[data-reveal].is-in { animation: icon-arrive .9s var(--ease) both; animation-delay: calc(var(--reveal-delay, 0ms) + 120ms); }
  .js .hero-text > * { animation: depth-enter .9s var(--ease) both; }
  .js .hero-text > :nth-child(2) { animation-delay: 80ms; }
  .js .hero-text > :nth-child(3) { animation-delay: 160ms; }
  .js .hero-text > :nth-child(4) { animation-delay: 240ms; }
  .js .hero-text > :nth-child(5) { animation-delay: 320ms; }
  .js .hero-text > :nth-child(6) { animation-delay: 400ms; }
  .js .hero-art { animation: depth-enter 1.1s .2s var(--ease) both; }
  .js [data-reveal].is-done { opacity: 1; animation: none; }
}

@keyframes depth-enter { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes icon-arrive { from { opacity: 0; transform: translateY(12px) rotate(-5deg) scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- המלצות ---------- */

.reviews-section {
  overflow: hidden;
  background: radial-gradient(ellipse at 15% 0%, #d7e7eb80, transparent 60%), linear-gradient(135deg, #f7f8f4, #edf4f5);
}
.quotes { display: grid; gap: 22px; margin-bottom: 44px; }
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  padding: 40px 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--surface-shadow);
}
.quote-mark {
  position: absolute;
  top: -22px;
  inset-inline-start: 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 7.5rem;
  line-height: 1;
  color: var(--lotus);
  opacity: .32;
  pointer-events: none;
}
.quote blockquote {
  position: relative;
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
}
.quote figcaption {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: .95rem;
  color: var(--eyebrow);
}

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.shot {
  position: relative;
  display: block;
  height: 230px;
  margin: 0;
  overflow: hidden;
  padding: 8px;
  border: 0;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--surface-shadow);
  cursor: zoom-in;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 10px; }
.shot-wide { background: linear-gradient(135deg, #e4eef0, #f3f6f2); }
.shot-wide img { object-fit: contain; object-position: center; }
.shot:not(.shot-wide)::after {
  content: "";
  position: absolute;
  inset: auto 8px 8px;
  height: 70px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}
.shot::before {
  content: "להגדלה";
  position: absolute;
  z-index: 1;
  bottom: 14px;
  left: 14px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  opacity: .9;
}
.shot:hover { transform: perspective(800px) rotateX(3deg) rotateY(-5deg) translateY(-4px); box-shadow: var(--surface-raised); }
.shot:focus-visible { outline: 3px solid var(--lotus); outline-offset: 3px; }
.reviews-hint { margin: 6px 0 0; font-size: .95rem; color: var(--muted); }

.ig-marquee {
  margin-top: 44px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ig-track { display: flex; width: max-content; animation: ig-scroll 80s linear infinite; }
.ig-marquee:hover .ig-track { animation-play-state: paused; }
.ig-set { display: flex; align-items: center; gap: 16px; padding-inline-end: 16px; }
.ig-card { width: 300px; height: auto; border-radius: 14px; background: #fff; box-shadow: var(--surface-shadow); }
@keyframes ig-scroll { from { transform: translateX(0); } to { transform: translateX(50%); } }

.reviews-cta { margin-top: 40px; text-align: center; }

.shot-dialog {
  max-width: min(94vw, 760px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--surface-raised);
  overflow: hidden;
}
.shot-dialog::backdrop { background: #1c3a44b8; backdrop-filter: blur(3px); }
.shot-dialog img { display: block; max-width: 100%; max-height: 90vh; width: auto; height: auto; margin: auto; }
.shot-close {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 860px) {
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .shot { height: 320px; }
}

/* ---------- הטיה תלת ממדית לכרטיסים (כל העמודים) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .tilt-3d {
    transform:
      perspective(900px)
      rotateX(var(--trx, 0deg))
      rotateY(var(--try, 0deg))
      translateY(var(--tlift, 0px));
    transition: transform .5s var(--ease), box-shadow .4s;
  }
  .tilt-3d.is-tilting { transition: transform .12s linear, box-shadow .3s; box-shadow: var(--surface-raised); }
  .tilt-glare {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .5), transparent 55%);
    mix-blend-mode: soft-light;
    opacity: 0;
    transition: opacity .3s;
  }
  .tilt-3d.is-tilting .tilt-glare { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ig-marquee { overflow-x: auto; }
}

/* כניסת ניהול נסתרת בסימן © בתחתית. ההרשאה נבדקת במסד, לא בהסתרה */
.admin-door { color: inherit; text-decoration: none; cursor: text; }
.admin-door:focus-visible { outline: 2px solid #D9B24A; outline-offset: 2px; }
