/*
 * Hero based on Figma frame "Root" (1:5) — 1280x640.
 * Hebrew renders right-to-left from <html dir="rtl">.
 *
 * Type: Rubik (matches the reference letterforms very closely),
 * Heebo as fallback for system rendering.
 */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000a18;
  color: #fff;
  min-height: 100%;
  font-family: 'Rubik', 'Heebo', 'Arial Hebrew', 'Segoe UI', Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  --green: #6fb43a;          /* heading green from reference */
  --green-bright: #7ec242;   /* accents (47%) slightly brighter */
  --rule-color: #6fb43a;
  --text-soft: #d2d5d9;
  --text-muted: #b8bbc0;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 80px) clamp(20px, 6vw, 96px);
  background: #000a18;
}

.hero__inner {
  display: flex;
  flex-direction: row-reverse;     /* RTL: лого слева, текст справа */
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 60px);
  width: 100%;
  max-width: 1180px;
}

.hero__logo {
  flex: 0 0 auto;
  width: clamp(160px, 22vw, 257px);
  aspect-ratio: 1 / 1;
}
.hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(14px, 1.6vw, 22px);
  flex: 0 1 auto;
  min-width: 0;
}

/* ---------- Title (משיכת קרן השתלמות) ---------- */

.hero__title {
  margin: 0;
  display: flex;
  flex-direction: row;             /* RTL: первое слово справа */
  align-items: baseline;
  justify-content: flex-start;     /* в RTL = к правому краю */
  gap: clamp(10px, 1.4vw, 22px);
  line-height: 1;
  white-space: nowrap;
  font-family: 'Rubik', 'Heebo', sans-serif;
}

.hero__title-white {
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(38px, 6.4vw, 78px);
  letter-spacing: -1.5px;
}

.hero__title-green {
  color: var(--green);
  font-weight: 900;
  font-size: clamp(44px, 7.4vw, 92px);
  letter-spacing: -2px;
}

/* ---------- Subtitle: rule | בלי להפסיד 47% מס | rule ---------- */

.hero__subtitle {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  width: 100%;
}

.rule {
  flex: 1 1 0;
  min-width: 40px;
  height: 3px;
  background: var(--rule-color);
  border-radius: 2px;
}

.hero__sub-text {
  color: var(--text-soft);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.hero__sub-percent {
  color: var(--green-bright);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

/* ---------- Features ---------- */

.hero__features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 32px);
  width: 100%;
}

.feature {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
}

.feature__icon { flex: 0 0 auto; object-fit: contain; }
.feature__icon--target { width: clamp(34px, 4.4vw, 56px); height: clamp(34px, 4.4vw, 56px); }
.feature__icon--bolt   { width: clamp(18px, 2.3vw, 29px); height: clamp(28px, 3.7vw, 47px); }

.feature__text {
  color: var(--text-muted);
  font-weight: 500;
  font-size: clamp(16px, 2vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.feature__divider {
  width: 2px;
  height: clamp(24px, 3.4vw, 43px);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 1px;
  flex: 0 0 auto;
}

/* ---------- WhatsApp CTA (inline, under features) ---------- */

.cta-wa {
  align-self: center;
  margin-top: clamp(12px, 2vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: clamp(12px, 1.4vw, 16px) clamp(20px, 2.4vw, 32px);
  border-radius: 999px;

  background: #25d366;
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1;
  letter-spacing: -0.3px;
  white-space: nowrap;

  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.3),
              0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.cta-wa:hover,
.cta-wa:focus-visible {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.42),
              0 2px 8px rgba(0, 0, 0, 0.4);
  outline: none;
}
.cta-wa:active { transform: translateY(0); }

.cta-wa__icon {
  width: clamp(20px, 2vw, 26px);
  height: clamp(20px, 2vw, 26px);
  flex: 0 0 auto;
}

/* ============================================================
   Responsive breakpoints
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .hero {
    padding: clamp(28px, 7vw, 48px) clamp(16px, 5vw, 32px);
    min-height: auto;
  }
  .hero__inner {
    flex-direction: column;
    gap: clamp(14px, 3vw, 24px);
    align-items: center;
  }
  .hero__logo { width: clamp(140px, 28vw, 200px); }
  .hero__content { align-items: center; width: 100%; max-width: 640px; }
  .hero__title { justify-content: center; }
  .hero__subtitle { justify-content: center; }
}

/* Phone */
@media (max-width: 600px) {
  .hero { padding: 28px 18px 40px; align-items: flex-start; }
  .hero__inner { gap: 18px; }
  .hero__logo { width: 150px; }
  .hero__content { gap: 14px; }

  /* Заголовок остаётся в одну строку, как в референсе */
  .hero__title { white-space: nowrap; gap: 8px; justify-content: center; }
  .hero__title-white { font-size: clamp(22px, 7vw, 32px); letter-spacing: -0.6px; }
  .hero__title-green { font-size: clamp(26px, 8.4vw, 38px); letter-spacing: -1px; }

  .hero__subtitle { gap: 8px; }
  .rule { height: 2px; min-width: 24px; }
  .hero__sub-text { font-size: clamp(13px, 4vw, 18px); }
  .hero__sub-percent { font-size: clamp(14px, 4.4vw, 20px); }

  .hero__features { gap: 12px; flex-wrap: nowrap; }
  .feature { gap: 6px; }
  .feature__text { font-size: clamp(11px, 3.4vw, 14px); }
  .feature__icon--target { width: 22px; height: 22px; }
  .feature__icon--bolt   { width: 12px; height: 18px; }
  .feature__divider { height: 18px; }

  .cta-wa {
    margin-top: 18px;
    padding: 12px 22px;
    font-size: 15px;
  }
  .cta-wa__icon { width: 20px; height: 20px; }
}

@media (max-width: 360px) {
  .hero { padding: 24px 12px 32px; }
  .hero__features { flex-wrap: wrap; row-gap: 10px; }
}
