:root {
    --ink: #16315f;
    --muted: #667894;
    --navy: #1e3f8f;
    --navy-2: #17357a;
    --line: #e6edf6;
    --bg: #eef3f9;
    --card: #ffffff;
    --shadow: 0 12px 36px rgba(30, 63, 143, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.ph-body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Sahel, Tahoma, sans-serif;
    direction: rtl;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.ph-wrap { width: 100%; padding: 0 10%; margin: 0; }

.ph-header { position: sticky; top: 14px; z-index: 40; margin-top: 14px; }

.ph-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 10px 14px;
}

.ph-brand { display: flex; align-items: center; gap: 10px; }
.ph-brand img { width: 52px; height: 42px; object-fit: contain; }
.ph-brand strong { display: block; font-size: 20px; color: #163a86; }
.ph-brand span { display: block; color: var(--muted); font-size: 11px; }

.ph-links { display: flex; align-items: center; gap: 4px; }
.ph-links > a, .ph-menu-btn {
    background: none; border: 0; color: #24385c; font-size: 14px;
    padding: 8px 8px; border-radius: 10px; cursor: pointer;
}
.ph-links > a:hover, .ph-menu-btn:hover { background: #f4f7fc; }
.ph-grow { flex: 1; }

.ph-menu { position: relative; }
.ph-mega {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(820px, 86vw);
    max-height: 68vh;
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(22, 48, 100, 0.16);
    padding: 22px 24px;
    z-index: 50;
}
.ph-menu.is-open .ph-mega { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; }
.ph-mega h3 { margin: 0 0 8px; font-size: 15px; color: #1d3e8c; }
.ph-mega a { display: block; color: #3d5170; font-size: 13px; line-height: 1.95; }
.ph-mega a:hover { color: var(--navy); }

.ph-search {
    display: flex; align-items: center; gap: 6px;
    background: #f6f8fb; border-radius: 999px; padding: 7px 12px; min-width: 210px;
    border: 1px solid transparent;
}
.ph-search:focus-within { background: #fff; border-color: #d5e1f2; }
.ph-search input { border: 0; outline: none; background: transparent; width: 140px; font-size: 13px; }
.ph-search button { border: 0; background: transparent; color: #60718d; cursor: pointer; display: grid; }

.ph-tools { display: flex; align-items: center; gap: 2px; }
.ph-icon-btn {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #23417d;
}
.ph-icon-btn:hover { background: #f3f6fb; }

.ph-login {
    background: var(--navy); color: #fff !important; border-radius: 999px;
    padding: 10px 18px; font-size: 14px; white-space: nowrap;
}

.ph-burger { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #f3f6fb; cursor: pointer; }

.ph-hero-card {
    margin-top: 18px;
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 22px 22px 0;
    overflow: hidden;
}
.ph-hero {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 8px;
    align-items: center;
}
.ph-kicker { color: #1d4e9b; font-size: 28px; font-weight: 700; margin: 0; }
.ph-kicker small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 4px; }
.ph-hero h1 { margin: 12px 0; font-size: 30px; line-height: 1.55; color: #17356f; }
.ph-hero p { margin: 0; color: #5d6e88; line-height: 1.9; font-size: 14px; }
.ph-hero-art img { width: 100%; height: auto; display: block; }

.ph-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: linear-gradient(180deg, #234898, #1a387c);
    color: #fff;
    border-radius: 18px;
    margin: 8px 8px 16px;
}
.ph-stat { text-align: center; padding: 14px 6px 16px; }
.ph-stat b { display: block; font-size: 22px; letter-spacing: 0; }
.ph-stat span { display: block; margin-top: 4px; font-size: 13px; }
.ph-stat em { display: block; font-style: normal; opacity: 0.8; font-size: 11px; margin-top: 2px; }

.ph-block { margin-top: 22px; }
.ph-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.ph-head h2 { margin: 0; font-size: 26px; color: #17356f; }
.ph-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.ph-head a { color: var(--navy); font-size: 13px; }

.ph-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ph-cat {
    border-radius: 22px;
    min-height: 230px;
    padding: 16px 16px 14px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.ph-cat img { width: 108px; height: 96px; object-fit: contain; flex: none; }
.ph-cat h3 { margin: 4px 0 8px; font-size: 16px; line-height: 1.6; }
.ph-cat p { margin: 0; color: #5c6d86; font-size: 12px; line-height: 1.8; }
.ph-cat .more { display: inline-block; margin-top: 12px; color: #2450a8; font-size: 13px; }
.tone-job { background: #fff4df; }
.tone-konkur { background: #f3eefe; }
.tone-course { background: #e7f6f1; }
.tone-school { background: #e5f6ee; }
.tone-job h3 { color: #c8871a; }
.tone-konkur h3 { color: #6d4cc4; }
.tone-course h3 { color: #2f8f9a; }
.tone-school h3 { color: #1f9a62; }

.ph-pop { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ph-lesson {
    background: #fff; border-radius: 22px; padding: 12px 10px 14px; text-align: center; box-shadow: var(--shadow);
}
.ph-lesson img { width: 100%; height: 104px; object-fit: contain; }
.ph-lesson strong { display: block; margin-top: 6px; font-size: 14px; }
.ph-lesson em { display: block; margin-top: 4px; font-style: normal; color: var(--muted); font-size: 12px; }

.ph-why {
    display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 16px; align-items: center;
    background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 18px;
}
.ph-why-art { background: linear-gradient(180deg, #f7fbff, #eef5ff); border-radius: 24px; overflow: hidden; }
.ph-why-art img { width: 100%; display: block; }
.ph-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ph-feature { background: #f7f9fc; border-radius: 16px; padding: 14px; }
.ph-feature h3 { margin: 8px 0 6px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.ph-feature p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.ph-feature svg { flex: none; }

.ph-steps { position: relative; }
.ph-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ph-step { background: #e7f0fb; border-radius: 18px; padding: 16px; min-height: 148px; }
.ph-step b {
    width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--navy);
    display: inline-grid; place-items: center; margin-bottom: 8px;
}
.ph-step h3 { margin: 0 0 6px; font-size: 16px; }
.ph-step p { margin: 0; color: #526480; font-size: 13px; line-height: 1.8; }

.ph-suggest {
    display: grid; grid-template-columns: 1fr 270px; gap: 16px;
    background: #f7f9fc; border-radius: 28px; padding: 8px;
}
.ph-finder { background: transparent; padding: 16px 8px; }
.ph-finder h2 { margin: 0 0 8px; font-size: 18px; }
.ph-finder p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.ph-finder input[type="search"] {
    width: 100%; border: 0; background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 8px;
    box-shadow: var(--shadow);
}
.ph-finder button, .ph-soft {
    width: 100%; border: 0; background: #d9e7f8; color: #1d3f8c; border-radius: 12px;
    padding: 11px; cursor: pointer; margin-top: 8px; display: block; text-align: center;
}
.ph-exam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ph-exam {
    background: #fff; border-radius: 22px; padding: 16px; min-height: 210px;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.ph-exam .tag { align-self: flex-start; border-radius: 999px; padding: 3px 8px; font-size: 12px; background: #efe7ff; color: #6941c6; }
.ph-exam h3 { margin: 10px 0 8px; font-size: 16px; line-height: 1.6; }
.ph-exam .meta { color: var(--muted); font-size: 13px; line-height: 1.9; flex: 1; }
.ph-empty { background: #fff; border-radius: 16px; padding: 18px; color: var(--muted); grid-column: 1 / -1; }

.ph-cta {
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 12px; align-items: center;
    background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 12px 22px; overflow: hidden;
}
.ph-cta img { width: 100%; display: block; }
.ph-cta h2 { margin: 0 0 8px; font-size: 28px; }
.ph-cta p { margin: 0 0 14px; color: #526480; line-height: 1.9; }
.ph-btn-solid {
    display: inline-block; background: #dbe8f8; color: #1d3f8c !important; border-radius: 999px; padding: 10px 18px;
}

.ph-footer {
    display: grid; grid-template-columns: 1.15fr 0.8fr 0.9fr 1.3fr; gap: 18px;
    background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 26px; margin: 22px 0 28px;
}
.ph-footer h3 { margin: 0 0 8px; font-size: 15px; }
.ph-footer a, .ph-footer p { display: block; margin: 0; color: #526480; font-size: 13px; line-height: 2; }
.ph-footer .ph-login { display: inline-block; margin-top: 10px; }

.ph-note { margin-top: 14px; background: #fff; border-radius: 14px; padding: 10px 14px; color: #526480; font-size: 13px; }

@media (max-width: 980px) {
    .ph-burger { display: grid; place-items: center; }
    .ph-links, .ph-search, .ph-tools, .ph-grow { display: none; }
    .ph-nav.is-open { flex-wrap: wrap; }
    .ph-nav.is-open .ph-links, .ph-nav.is-open .ph-search, .ph-nav.is-open .ph-tools { display: flex; width: 100%; }
    .ph-nav.is-open .ph-links { flex-direction: column; align-items: stretch; }
    .ph-menu.is-open .ph-mega { position: static; width: auto; grid-template-columns: 1fr; }
    .ph-hero, .ph-why, .ph-suggest, .ph-cta, .ph-footer { grid-template-columns: 1fr; }
    .ph-stats { grid-template-columns: repeat(3, 1fr); }
    .ph-cats, .ph-flow { grid-template-columns: 1fr 1fr; }
    .ph-pop, .ph-exam-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .ph-cats, .ph-pop, .ph-flow, .ph-exam-grid, .ph-features, .ph-stats { grid-template-columns: 1fr; }
}
