/*
  רכיבי "רישוי עסקים AI" לאתרי רשויות מקומיות

  כל רכיב מתחיל באלמנט עם המחלקה rk, וכל המחלקות בקובץ מתחילות ב-rk-
  כדי למנוע התנגשות עם העיצוב של האתר.
  הרכיבים מתאימים את עצמם לרוחב המקום שבו הם מוצבים (container queries),
  ולכן אפשר להציב אותם באזור תוכן רחב, בעמודה צרה או בעמודה צדדית.
  הגופן נלקח מהאתר. את הצבעים אפשר לשנות במשתנים --rk-*.
*/

.rk {
  --rk-primary: #0c59b4;
  --rk-primary-dark: #0a3f80;
  --rk-deep: #021b38;
  --rk-deep-2: #062b57;
  --rk-accent: #ff9a1f;
  --rk-accent-dark: #e07f00;
  --rk-accent-ink: #2a1600;
  --rk-soft: #eaf2fc;
  --rk-ink: #1b2430;
  --rk-ink-2: #4a5565;
  --rk-line: #dfe4ea;
  --rk-radius: 14px;

  container-type: inline-size;
  box-sizing: border-box;
  direction: rtl;
  text-align: right;
  color: var(--rk-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}
.rk *, .rk *::before, .rk *::after { box-sizing: border-box; }
.rk h2, .rk h3, .rk p, .rk ul, .rk ol, .rk dl, .rk dd { margin: 0; padding: 0; }
.rk ul, .rk ol { list-style: none; }
.rk h2 { font-size: 26px; font-weight: 800; line-height: 1.25; color: inherit; }
.rk h3 { font-size: 18px; font-weight: 700; line-height: 1.3; color: inherit; }
.rk p { font-size: 16px; }
.rk img { max-width: 100%; height: auto; border: 0; }
.rk svg { display: block; flex: none; }
.rk :focus-visible { outline: 3px solid var(--rk-accent); outline-offset: 2px; border-radius: 4px; }

/* ===== כפתורים ===== */
.rk-btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; margin: 0; padding: 10px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.rk-btn svg { width: 20px; height: 20px; }
.rk-btn--accent { background: var(--rk-accent); color: var(--rk-accent-ink); box-shadow: 0 6px 18px rgba(255, 154, 31, .32); }
.rk-btn--accent:hover { background: var(--rk-accent-dark); color: #1a0d00; transform: translateY(-1px); }
.rk-btn--primary { background: var(--rk-primary); color: #fff; }
.rk-btn--primary:hover { background: var(--rk-primary-dark); color: #fff; }
.rk-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.rk-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.rk-btn--block { width: 100%; }

.rk-card {
  background: #fff; border: 1px solid var(--rk-line); border-radius: var(--rk-radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
}
.rk-kicker { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--rk-primary); }
.rk-check {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--rk-primary); color: #fff;
}
.rk-check svg { width: 13px; height: 13px; }

/* האייקון, כפי שהוא מופיע באתר */
.rk-robot { position: relative; width: 64px; flex: none; }
.rk-robot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .18)); }

/* ===== 1. באנר ראשי ===== */
.rk-hero {
  position: relative; overflow: hidden; border-radius: 20px; color: #fff;
  background:
    radial-gradient(110% 120% at 90% -10%, rgba(14, 116, 196, .55), transparent 55%),
    radial-gradient(90% 90% at 0% 110%, rgba(255, 154, 31, .18), transparent 60%),
    linear-gradient(160deg, var(--rk-deep) 0%, var(--rk-deep-2) 55%, #03214a 100%);
}
.rk-hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(170, 220, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 220, 255, .08) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 100% at 75% 20%, #000, transparent 80%);
          mask-image: radial-gradient(120% 100% at 75% 20%, #000, transparent 80%);
}
.rk-hero__inner { position: relative; display: grid; gap: 32px; padding: 28px 20px 36px; }
.rk-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
}
.rk-eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rk-accent);
  box-shadow: 0 0 0 4px rgba(255, 154, 31, .25);
}
.rk-hero h2 { font-size: 28px; margin-bottom: 14px; color: #fff; }
.rk-hero h2 em { font-style: normal; color: var(--rk-accent); }
.rk-hero__lead { font-size: 17px; color: rgba(255, 255, 255, .86); }
.rk-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 24px; }
.rk-hero__actions .rk-btn { flex: 1 1 100%; }
.rk-chips { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.rk-chips li { display: inline-flex; align-items: center; gap: 8px; }
.rk-chips svg { width: 18px; height: 18px; color: var(--rk-accent); }

.rk-report {
  position: relative; display: none; background: #fff; color: var(--rk-ink);
  border-radius: 16px; padding: 20px 20px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  transform: rotate(-1.5deg); max-width: 420px; width: 100%; margin-inline: auto;
}
.rk-report__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.rk-report__kicker { font-size: 12px; font-weight: 700; color: var(--rk-primary); }
.rk-report__title { margin-top: 2px !important; font-size: 17px !important; font-weight: 800; }
.rk-report__meta { font-size: 13px; color: #6b7585; white-space: nowrap; }
.rk-report ul { display: grid; gap: 8px; }
.rk-report li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 10px; background: var(--rk-soft); font-size: 15px; font-weight: 500;
}
.rk-report li b { margin-inline-start: auto; font-size: 13px; color: var(--rk-primary-dark); font-weight: 700; white-space: nowrap; }
.rk-report__bar { height: 8px; border-radius: 4px; background: #e8edf3; margin-top: 14px; }
.rk-report__bar + .rk-report__bar { width: 70%; margin-top: 8px; }
.rk-stamp {
  position: absolute; bottom: -16px; inset-inline-start: -8px;
  width: 82px; height: 82px; border-radius: 50%;
  border: 3px solid var(--rk-accent); background: #fff8ee; color: var(--rk-accent-dark);
  display: grid; place-items: center; text-align: center;
  font-size: 12px; font-weight: 800; line-height: 1.2; transform: rotate(-12deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

@container (min-width: 480px) {
  .rk-report { display: block; }
  .rk-hero__actions .rk-btn { flex: 0 0 auto; }
}
@container (min-width: 600px) {
  .rk-hero__inner { padding: 40px 36px 44px; }
  .rk-hero h2 { font-size: 34px; }
}
@container (min-width: 780px) {
  .rk-hero__inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px; padding: 44px 36px; }
  .rk-stamp { width: 96px; height: 96px; font-size: 13px; inset-inline-start: -18px; bottom: -18px; }
}
@container (min-width: 960px) {
  .rk-hero__inner { gap: 40px; padding: 48px 44px; }
  .rk-hero h2 { font-size: 40px; }
}

/* ===== 2. רצועת הפניה ===== */
.rk-strip {
  display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center;
  padding: 18px 20px; border-radius: var(--rk-radius);
  background: linear-gradient(90deg, var(--rk-soft), #fff 75%); border: 1px solid #cfe0f5;
}
.rk-strip .rk-robot { width: 52px; }
.rk-strip h3 { font-size: 18px; margin-bottom: 2px; }
.rk-strip p { color: var(--rk-ink-2); font-size: 15px; }
.rk-strip .rk-btn { grid-column: 1 / -1; }
@container (min-width: 620px) {
  .rk-strip { grid-template-columns: auto 1fr auto; padding: 18px 24px; }
  .rk-strip .rk-btn { grid-column: auto; }
}

/* ===== 3. איך זה עובד ===== */
.rk-section-head { margin-bottom: 18px; max-width: 720px; }
.rk-section-head p { color: var(--rk-ink-2); margin-top: 6px; }
.rk-steps__list { display: grid; gap: 14px; }
.rk-step { padding: 22px 20px; }
.rk-step__num {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 12px;
  display: grid; place-items: center; font-size: 19px; font-weight: 800;
  background: var(--rk-soft); color: var(--rk-primary);
}
.rk-step h3 { margin-bottom: 6px; }
.rk-step p { color: var(--rk-ink-2); }
@container (min-width: 700px) {
  .rk-steps__list { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* ===== 4. למי מתאים ומה כולל הדוח ===== */
.rk-audience { display: grid; gap: 16px; }
.rk-panel { padding: 24px 22px; }
.rk-panel h3 { font-size: 21px; margin-bottom: 14px; }
.rk-stages { display: grid; gap: 14px; }
.rk-stages li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.rk-stage-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--rk-soft); color: var(--rk-primary); }
.rk-stage-icon svg { width: 22px; height: 22px; }
.rk-stages strong { display: block; font-size: 17px; }
.rk-stages span { color: var(--rk-ink-2); font-size: 15px; }
.rk-features { display: grid; gap: 10px; margin-bottom: 20px !important; }
.rk-features li { display: flex; gap: 10px; align-items: flex-start; }
.rk-features .rk-check { margin-top: 3px; }
@container (min-width: 700px) {
  .rk-audience { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ===== 5. שאלות נפוצות ===== */
.rk-faq { padding: 22px; }
.rk-faq h2 { font-size: 23px; margin-bottom: 8px; }
.rk-faq__list { border-top: 1px solid var(--rk-line); }
.rk-faq details { border-bottom: 1px solid var(--rk-line); }
.rk-faq summary {
  list-style: none; cursor: pointer; padding: 15px 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 16.5px; font-weight: 700; color: var(--rk-primary-dark);
}
.rk-faq summary::-webkit-details-marker { display: none; }
.rk-faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none; margin-inline-end: 4px;
  border-inline-start: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .2s;
}
.rk-faq details[open] summary::after { transform: rotate(135deg); }
.rk-faq details p { padding: 0 4px 15px; color: var(--rk-ink-2); }
@container (min-width: 600px) { .rk-faq { padding: 26px 28px; } }

/* ===== 6. כרטיס לעמודה צדדית ===== */
.rk-side {
  padding: 22px 20px; border-radius: var(--rk-radius); color: #fff;
  background: linear-gradient(160deg, var(--rk-deep), var(--rk-deep-2));
}
.rk-side__head { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.rk-side .rk-robot { width: 52px; }
.rk-side h3 { font-size: 19px; color: #fff; }
.rk-side p { color: rgba(255, 255, 255, .84); font-size: 15px; margin-bottom: 16px; }

/* ===== 7. אריח לרשת שירותים מקוונים ===== */
.rk-tile {
  -webkit-appearance: none; appearance: none;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  width: 100%; height: 100%; margin: 0; padding: 16px;
  border: 1px solid var(--rk-deep-2); border-radius: 12px;
  background: var(--rk-deep-2); color: #fff;
  font: inherit; text-align: right; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.rk-tile:hover { border-color: var(--rk-accent); box-shadow: 0 6px 18px rgba(2, 27, 56, .25); }
.rk-tile svg { width: 26px; height: 26px; color: var(--rk-accent); margin-bottom: 6px; }
.rk-tile strong { font-size: 16px; }
.rk-tile span { font-size: 14px; color: rgba(255, 255, 255, .78); }
.rk-tile .rk-tag { margin-top: 6px; }
.rk-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--rk-accent); color: var(--rk-accent-ink) !important;
  font-size: 12px !important; font-weight: 700; line-height: 1.6;
}

/* ===== 8. פריט בתפריט המדור ===== */
.rk-menu-item {
  -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; margin: 0; padding: 10px 12px; border: 0; border-radius: 8px;
  background: var(--rk-deep-2); color: #fff;
  font: inherit; font-size: 15.5px; font-weight: 700; line-height: 1.3; text-align: right; cursor: pointer;
}
.rk-menu-item:hover { background: var(--rk-primary-dark); }

@media (prefers-reduced-motion: reduce) {
  .rk *, .rk *::before, .rk *::after { transition: none !important; animation: none !important; }
}