/* תפריט עליון — עובד יפה עם ה-:root שכבר יש לך */
:root {
    --page-max: 900px;
    /* אם כבר הגדרת — אפשר למחוק את השורה הזו */
    --page-pad: 28px;
    /* אותו padding כמו בעמוד */
}

.site-header {
    position: relative;
    /* אפשר לשנות ל-sticky; top:0 אם תרצה להצמיד לראש */
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}

.site-header__inner {
    margin: 0 auto;
    padding: 12px var(--page-pad);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* ימין | מרכז | שמאל (RTL) */
    align-items: center;
    column-gap: 12px;
}




/* ניווט (אמצע) */
.main-nav {
    justify-self: center;
    display: inline-flex;
    gap: 10px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    border: 1px solid transparent;
    transition: .15s ease;
}

.nav-link:hover {
    color: var(--blue-dark);
}

.nav-link.active {
    color: var(--blue-dark);
    font-size: 17px;
}

/* פעולות (שמאל, אופציונלי) */
.header-actions {
    justify-self: end;
    display: inline-flex;
    gap: 8px;
}











/* כפתור ההמבורגר – בלי מסגרת */
.nav-toggle {
    border: 0;
    background: transparent;
    box-shadow: none;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle:hover {
    transform: translateY(-1px);
}

.nav-toggle:active {
    transform: translateY(0);
}

/* קישורי תפריט – בלי מסגרת */
.nav-link {
    border: 0 !important;
}

/* מצב נעילת גלילה כשהתפריט פתוח */
body.nav-open {
    overflow: hidden;
}

/* שכבת רקע (נוצרת ב-JS) */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 1000;
}

.nav-overlay.is-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}



/* מסתיר טקסט לקוראי מסך בלבד (שימושי ל-<span class="sr-only">תפריט</span>) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 100
}



.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111;
    font-weight: 700
}

.brand__logo {
    width: 28px;
    height: 28px;
    color: var(--brand)
}

.main-nav {
    display: flex;
    gap: 16px
}

.nav-link {
    padding: 8px 10px;
    border-radius: 12px;
    color: #111
}

.nav-link.active,
.nav-link:hover {
    background: var(--chip)
}

.nav-toggle {
    display: none;
    background: none;
    border: 0
}

/* Layout */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px 16px
}

.btn:hover {
    transform: translateY(-1px);
    border-color: #d1d5db;
    box-shadow: 0 14px 26px rgba(0, 0, 0, .08);
}

.btn:hover::before {
    opacity: 1;
}


@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;600;800&display=swap");
/* פונט ייעודי לכפתורי הערים */
@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@500;700&display=swap");

:root {
    --bg: #f7f7fb;
    --card: #ffffff;
    --text: #101828;
    --muted: #667085;
    --muted-2: #4b5563;
    --blue: #1e40af;
    /* כותרות */
    --accent: #2563eb;
    /* הדגשות */
    --accent-dark: #1d4ed8;
    --border: #e5e7eb;
    --chip: #eef2ff;
    --gold: #fbbf24;
    --shadow: 0 14px 32px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Heebo", system-ui, Segoe UI, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: 1120px;
    margin-inline: auto;
    padding: 24px 18px 48px;
}

/* ===== רקע מתמטי עדין ===== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, .018) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .018) 0 1px, transparent 1px 40px);
}

body::after {
    content: "+ × = ÷ √ ∑ π";
    position: fixed;
    inset: auto 4% 8% auto;
    z-index: -1;
    font-weight: 800;
    font-size: 88px;
    letter-spacing: 8px;
    color: rgba(0, 0, 0, .045);
    pointer-events: none;
}

/* ===== HERO ===== */
.hero--stacked {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin: 8px 0 20px;
}

.hero--stacked .hero-media img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 5;

}

.site-title {
    margin: 0;
    color: var(--blue);
    font-size: clamp(34px, 6vw, 54px);
    font-weight: 800;
    letter-spacing: .2px;
}

.site-subtitle {
    margin: 6px 0 16px;
    color: var(--muted-2);
    font-size: clamp(18px, 3.2vw, 24px);
    font-weight: 600;
}

/* ===== כפתורי ערים – RTL, אייקון מימין, Rubik ===== */
.buttons-grid {
    display: grid;
    gap: 12px;
    margin: 8px auto 18px;
    max-width: 740px;
}

@media (min-width:640px) {
    .buttons-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.btn.city {
    position: relative;
    display: flex;
    flex-direction: row;
    /* אייקון מימין לטקסט */
    align-items: center;
    justify-content: flex-start;
    /* יישור תוכן לימין */
    text-align: right;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    cursor: pointer;
    font-family: "Rubik", system-ui, Arial, sans-serif;
    /* פונט שונה לכפתורים */
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .06);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    overflow: hidden;
}

.btn.city .icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: linear-gradient(180deg, #eef2ff, #e9efff);
    color: #1e3a8a;
    flex: 0 0 28px;
}

.btn.city .icon svg {
    width: 18px;
    height: 18px;
}

.btn.city .label {
    white-space: normal;
}

.btn.city::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(37, 99, 235, .15), rgba(29, 78, 216, .08));
    opacity: 0;
    transition: opacity .12s ease;
}

.btn.city:hover {
    transform: translateY(-1px);
    border-color: #d1d5db;
    box-shadow: 0 14px 26px rgba(0, 0, 0, .08);
}

.btn.city:hover::before {
    opacity: 1;
}

/* ===== HOW IT WORKS ===== */
.steps {
    margin: 22px 0 10px;
}

.steps h2 {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 24px;
    text-align: center;
}

.steps-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width:980px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:560px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
    text-align: center;
    transform: translateY(0);
    animation: floatUp .9s ease both;
}

.step-card:nth-child(2) {
    animation-delay: .1s;
}

.step-card:nth-child(3) {
    animation-delay: .2s;
}

.step-card:nth-child(4) {
    animation-delay: .3s;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.s-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #eef2ff, #e9efff);
    color: #1e3a8a;
    animation: bob 3s ease-in-out infinite;
}

.s-icon svg {
    width: 22px;
    height: 22px;
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.step-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--blue);
}

.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* ===== REVIEWS – פרו (3 בעמודה) ===== */
.reviews-pro {
    margin: 30px 0 8px;
    position: relative;
}

.reviews-pro h2 {
    margin: 0 0 16px;
    color: var(--blue);
    font-size: 22px;
    text-align: center;
}

/* הדגשת רקע עדינה לסקשן */
.reviews-pro::before {
    content: "";
    position: absolute;
    inset: -20px 0 auto 0;
    height: 140px;
    background: radial-gradient(900px 140px at 50% 0%, rgba(37, 99, 235, .08), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* === גריד: 3 בעמודה במסכים רחבים === */
.reviews-pro__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    /* 3 בשורה */
    align-items: stretch;
}

@media (max-width: 980px) {
    .reviews-pro__grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 560px) {
    .reviews-pro__grid {
        grid-template-columns: 1fr;
    }
}

.r-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 16px 14px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
    overflow: hidden;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.r-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .35), rgba(29, 78, 216, .15));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.r-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, .08);
    border-color: #d7def0;
}

/* טופ: ציון וכוכבים + מאומת */
.r-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e5e7eb;
}

.r-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.r-score {
    font-weight: 800;
    font-size: 18px;
    background: linear-gradient(90deg, #1e40af, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.r-stars {
    display: flex;
    gap: 4px;
    color: var(--gold);
}

.r-stars svg {
    width: 16px;
    height: 16px;
}

.r-stars .dim {
    opacity: .35;
}

.r-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--chip);
    color: #1e3a8a;
    border: 1px solid #e0e7ff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.r-chip svg {
    width: 14px;
    height: 14px;
}

/* ציטוט */
.r-quote {
    position: relative;
    margin: 12px 0 14px;
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.7;
    font-weight: 500;
}

.r-quote::before {
    content: "“";
    position: absolute;
    inset-inline-start: 0;
    top: -12px;
    font-size: 64px;
    line-height: 1;
    color: rgba(0, 0, 0, .05);
    font-weight: 800;
    transform: translateX(-6px);
}

/* פוטר של הכרטיס */
.r-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.r-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #eef2ff, #e9efff);
    color: #1e3a8a;
    font-weight: 800;
    border: 2px solid #e0e7ff;
    flex: 0 0 34px;
}

.r-person {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.r-person strong {
    color: var(--text);
    font-size: 13.5px;
}

.r-place {
    opacity: .85;
}

.r-time {
    margin-inline-start: auto;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}


body::after {
    display: none;
}


/* ===== FOOTER ===== */
.footer {
    text-align: center;
    color: #98a2b3;
    font-size: 13px;
    margin-top: 16px;
}




















@media (max-width: 860px) {
    .site-header__inner {
        display: grid;
        grid-template-columns: 1fr auto;
        /* ימין | שמאל */
        align-items: center;
    }

    .brand {
        justify-self: end;
    }

    /* לוגו מימין */
    .brand__name {
        display: none;
    }

    /* טקסט של הלוגו מוסתר במובייל */
    .header-actions {
        justify-self: start;
    }

    /* המבורגר משמאל */
    .main-nav {
        display: none !important;
    }

    /* מסתיר את הניווט העליון */
    .nav-toggle {
        display: inline-flex;
    }
}

@media (min-width: 861px) {
    .nav-toggle {
        display: none;
    }

    /* בדסקטופ אין המבורגר */
    .main-nav {
        display: inline-flex;
    }
}




/* ===== Off-canvas Drawer ===== */
/* ===== Off-canvas Drawer (ימין) ===== */
.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    /* מוצמד לימין */
    width: min(82vw, 340px);
    background: #fff;
    border-left: 1px solid var(--border);
    /* קו מפריד משמאל של המגירה */
    box-shadow: -12px 0 28px rgba(0, 0, 0, .08);
    z-index: 1100;
    transform: translateX(100%);
    /* מוסתרת מחוץ למסך (ימינה) */
    transition: transform .2s ease;
    display: grid;
    grid-template-rows: auto 1fr;
}

/* בעת פתיחה */
.nav-drawer.is-open {
    transform: translateX(0);
}

/* האוברליי — ודא שמוסתר כברירת־מחדל */
.nav-overlay[hidden] {
    display: none;
}


.nav-drawer.is-open {
    transform: translateX(0);
}

.nav-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.brand--drawer .brand__logo {
    width: 24px;
    height: 24px;
}

.nav-close {
    background: none;
    border: 0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

/* קישורי המגירה */
.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 10px 8px;
    gap: 6px;
}

.drawer-link {
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
}

.drawer-link:hover,
.drawer-link.active {
    background: var(--chip);
}

/* אוברליי – כבר יש לך מחלקה .nav-overlay; רק נוודא שמוסתר/מוצג נכון */
.nav-overlay[hidden] {
    display: none;
}

/* ===== מצב מובייל: מסתיר תפריט עליון, משאיר לוגו + המבורגר ===== */
@media (max-width: 860px) {

    /* גריד: הלוגו בצד ימין, ההמבורגר בצד שמאל */
    .site-header__inner {
        grid-template-columns: 1fr auto;
        /* ימין | שמאל (RTL: הימני הוא הראשון בזרימה) */
    }

    .brand {
        justify-self: end;
    }

    /* מימין */
    .header-actions {
        justify-self: start;
    }

    /* משמאל */

    .brand__name {
        display: none;
    }

    /* רצית רק לוגו במובייל */

    .main-nav {
        display: none !important;
    }

    /* מסתיר את התפריט העליון במובייל */

    .nav-toggle {
        display: inline-flex;
    }

    /* להבטיח שהוא נראה */
}

/* בדסקטופ: המגירה לא בשימוש, נשאיר את ההמבורגר מוסתר אם תרצה */
@media (min-width: 861px) {
    .nav-toggle {
        display: none;
    }
}

@media (max-width: 860px) {
    .site-header__inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        /* לוגו | רווח | המבורגר */
        align-items: center;
    }

    .brand {
        justify-self: start;
        /* בצד ימין (RTL) */
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .brand__name {
        display: inline;
        /* לשמור את הטקסט “מורה-מורה” */
        font-weight: 700;
        font-size: 16px;
    }

    .main-nav {
        display: none !important;
        /* להסתיר את התפריט העליון */
    }

    .header-actions {
        justify-self: end;
        /* בצד שמאל */
    }

    .nav-toggle {
        display: inline-flex;
        /* כפתור ההמבורגר גלוי */
    }
}

@media (min-width: 861px) {
    .nav-toggle {
        display: none;
    }

    /* בדסקטופ ההמבורגר מוסתר */
    .main-nav {
        display: inline-flex;
    }
}