@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;
}




/* ===== FOOTER ===== */
.footer {
    text-align: center;
    color: #98a2b3;
    font-size: 13px;
    margin-top: 16px;
}


/* ===== SUBJECTS HUB ===== */
.subjects {
    margin: 24px 0 10px;
}

.subjects h2 {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 24px;
    text-align: center;
}

.subject-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 60px;
}

@media (max-width: 980px) {
    .subject-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .subject-grid {
        grid-template-columns: 1fr;
    }
}

.subject-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.subject-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, .08);
    border-color: #dfe5f4;
}

.subject-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.subject-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    color: #fff;
}

.subject-titles h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: var(--text)
}

.subject-titles p {
    margin: 0;
    color: var(--muted);
    font-size: 13px
}

/* צבעים למקצועות */
.subject--math .subject-icon {
    background: linear-gradient(135deg, #4338ca, #2563eb)
}

/* סגול-כחול */
.subject--fr .subject-icon {
    background: #b9bdc7;
}

/* אדום-כחול (דגל צרפת) */
.subject--de .subject-icon {
    background: #b9bdc7;
}

/* שחור-צהוב (דגל גרמניה) */

/* ריווח קומפקטי יותר בתוך כרטיסי מקצוע */
.buttons-grid--tight {
    gap: 10px;
    margin: 10px 0 2px;
}

.buttons-grid--tight .btn.city {
    padding: 12px 14px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .05);
}

.buttons-grid--tight .btn.city .icon {
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    color: #1e3a8a;
}







/* ===== Mobile polish (<= 760px) ===== */
@media (max-width: 760px) {
    .container {
        padding: 16px 14px 36px;
    }

    /* Header */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 50;
        background: #fff;
        /* תקין */
        /* אם רצית צהבהב עדין: background:#fffbe6;  או  #fffbcc */
        border-bottom: 1px solid var(--border);
        backdrop-filter: saturate(180%) blur(8px);
    }


    .site-header__inner {
        padding: 10px 14px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
    }

    /* Hero */
    .hero--stacked {
        gap: 14px;
        margin: 6px 0 16px;
    }

    .hero--stacked .hero-media {
        min-height: 180px;
        border-radius: 14px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
        background: center/cover no-repeat url("/Images/MathBoard.webp");
    }

    .site-title {
        font-size: clamp(26px, 7vw, 36px);
    }

    .site-subtitle {
        font-size: clamp(15px, 4.2vw, 18px);
        margin: 4px 0 10px;
    }

    /* “סימני מתמטיקה” ברקע – לא להעמיס במסך קטן */
    body::after {
        display: none;
    }

    /* Subjects hub */
    .subject-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 28px;
    }

    .subject-card {
        padding: 12px;
        border-radius: 14px;
    }

    .subject-head {
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 8px;
    }

    .subject-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 16px;
    }

    .subject-titles h3 {
        font-size: 16px;
        margin: 0 0 2px;
    }

    .subject-titles p {
        font-size: 12px;
    }

    /* כפתורי הערים בתוך כרטיס מקצוע – 2 בעמודה לניצול רוחב */
    .buttons-grid--tight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 8px 0 0;
        max-width: none;
    }

    .btn.city {
        padding: 12px 12px;
        gap: 8px;
        border-radius: 12px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .05);
    }

    .btn.city .icon {
        width: 26px;
        height: 26px;
        border-radius: 9px;
    }

    .btn.city .icon svg {
        width: 16px;
        height: 16px;
    }

    .btn.city .label {
        font-size: 14px;
    }
}

@media (max-width: 380px) {

    /* במסכים צרים מאד – כפתור עיר אחד בשורה */
    .buttons-grid--tight {
        grid-template-columns: 1fr;
    }
}

/* ===== “איך זה עובד” – מובייל ===== */
@media (max-width: 760px) {
    .steps {
        margin: 18px 0 6px;
    }

    .steps h2 {
        font-size: 20px;
        margin: 0 0 10px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .step-card {
        padding: 14px;
        border-radius: 14px;
    }

    .s-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        margin: 0 auto 8px;
    }

    .step-card h3 {
        font-size: 16px;
        margin: 0 0 4px;
    }

    .step-card p {
        font-size: 13px;
    }
}

/* ===== Reviews – מובייל ===== */
@media (max-width: 760px) {
    .reviews-pro {
        margin: 22px 0 6px;
    }

    .reviews-pro h2 {
        font-size: 20px;
        margin: 0 0 12px;
    }

    .reviews-pro__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .r-card {
        padding: 14px;
        border-radius: 14px;
    }

    .r-top {
        padding-bottom: 8px;
    }

    .r-stars svg {
        width: 15px;
        height: 15px;
    }

    .r-quote {
        font-size: 15px;
        margin: 10px 0 12px;
    }

    .r-time {
        font-size: 12px;
    }
}

/* ===== Footer – מובייל ===== */
@media (max-width: 760px) {
    .footer {
        font-size: 12px;
        margin-top: 12px;
    }
}

/* ===== נגישות ותחושה במובייל ===== */
@media (pointer: coarse) {
    .btn.city {
        min-height: 44px;
    }

    /* יעד מגע מומלץ */
}

@media (prefers-reduced-motion: reduce) {

    .step-card,
    .s-icon {
        animation: none !important;
    }
}


/* כפתור "לכל הערים" מתחת לרשימת הערים */
.subject-card .city--all {
    display: flex;
    /* לשמירת האיקון והטקסט מיושרים כמו שאר הכפתורים */
    align-items: center;
    justify-content: center;
    /* מרכז טקסט */
    width: calc(100%);
    /* קצת רווחים מהצדדים */
    margin: 10px 4px 2px;
    /* רווח מהכפתורים שמעל + רווחים צידיים */
    padding: 14px 16px;
    /* מעט יותר גבוה מכפתור עיר רגיל */
    box-shadow: 0 10px 20px rgba(0, 0, 0, .06);
}

/* אופציונלי: הבדל ויזואלי קל מכפתורי הערים הרגילים */
.subject-card .city--all .icon {
    background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
    /* מעט נייטרלי יותר */
    color: #0f172a;
    border: 1px solid #e5e7eb;
}

.subject-card .city--all:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, .08);
}