:root {
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
  color: #273541;
  background: #fff;
  font-synthesis: none;
  --green: #58cc02;
  --green-dark: #46a302;
  --green-soft: #e9fbdc;
  --muted: #687987;
  --line: #e5e9ec;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
a { color: inherit; text-decoration: none; }
.page { width: min(100% - 32px, 760px); margin: auto; padding: 24px 0 40px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 42px; }
.brand { color: var(--green-dark); font-size: 17px; font-weight: 900; }
.grade { color: var(--muted); font-size: 13px; }
.intro { max-width: 620px; margin-bottom: 30px; animation: rise-in 240ms var(--ease-out) both; }
h1 { font-size: clamp(36px, 7vw, 52px); line-height: 1.13; letter-spacing: -.035em; margin: 0 0 14px; font-weight: 900; }
.intro p { color: var(--muted); font-size: 18px; line-height: 1.65; margin: 0; }
.exam-list { display: grid; gap: 14px; }
.exam-card { display: flex; align-items: center; gap: 16px; min-height: 94px; padding: 16px 20px; border: 2px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 4px 0 #d9dfe3; transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), border-color 140ms ease; animation: rise-in 240ms var(--ease-out) backwards; }
.exam-card:nth-child(2) { animation-delay: 60ms; }
.exam-card:first-child { background: var(--green-soft); border-color: #bbed9a; box-shadow: 0 4px 0 #a5db86; }
.exam-card:active { transform: translateY(3px); box-shadow: 0 1px 0 #d9dfe3; }
.exam-card:first-child:active { box-shadow: 0 1px 0 #a5db86; }
.exam-copy { flex: 1; min-width: 0; }
.exam-copy strong { display: block; font-size: 20px; margin-bottom: 5px; font-weight: 900; }
.exam-copy small { display: block; color: #576775; font-size: 14px; line-height: 1.4; }
.exam-arrow { color: var(--green-dark); font-size: 24px; font-weight: 800; }
.home-page .site-header { justify-content: center; padding: 28px 0 56px; }
.home-page .grade { display: none; }
.home-page .brand { position: relative; color: #172838; font-size: 20px; }
.home-page .brand::before, .home-page .brand::after { content: ""; position: absolute; width: 12px; height: 5px; border-radius: 6px; background: var(--green); top: 2px; }
.home-page .brand::before { right: -22px; transform: rotate(42deg); }
.home-page .brand::after { left: -22px; transform: rotate(-42deg); }
.home-page .intro { max-width: 660px; margin: 0 auto 38px; text-align: center; }
.home-page h1 { color: #0d2132; font-size: clamp(38px, 7vw, 58px); letter-spacing: -.045em; }
.home-page .intro p { color: #718193; }
.home-page .exam-list { gap: 26px; }
.home-page .exam-card { flex-direction: row-reverse; min-height: 198px; gap: 14px; padding: 22px 28px; border-radius: 25px; border-color: #edf0f2; background: #f7f9fa; box-shadow: 0 7px 0 #dce2e6, 0 12px 24px rgba(20, 38, 50, .06); }
.home-page .exam-card:first-child { border-color: #a5ec27; background: linear-gradient(145deg, #adf235, #69d708 72%); box-shadow: 0 7px 0 #3ea600, 0 12px 24px rgba(65, 155, 5, .15); }
.home-page .exam-card:active { transform: translateY(5px); box-shadow: 0 2px 0 #dce2e6; }
.home-page .exam-card:first-child:active { box-shadow: 0 2px 0 #3ea600; }
.home-page .subject-art { display: block; flex: 0 0 clamp(104px, 25vw, 145px); width: clamp(104px, 25vw, 145px); height: clamp(104px, 25vw, 145px); object-fit: contain; transition: transform 180ms var(--ease-out); }
.home-page .exam-copy strong { color: #102434; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin-bottom: 14px; }
.home-page .exam-copy small { color: #253e3b; font-size: 17px; font-weight: 700; line-height: 1.45; }
.home-page .exam-copy small + small { margin-top: 5px; }
.home-page .exam-card:nth-child(2) .exam-copy small { color: #566a77; }
.home-page .exam-arrow { color: #1b3440; font-size: 27px; }
.back-link { display: inline-block; color: #1587c2; font-weight: 800; margin-bottom: 24px; }
.subject-intro { margin-bottom: 32px; }
.subject-section { margin-top: 30px; }
.subject-section h2 { font-size: 25px; margin: 0 0 14px; font-weight: 900; }
.empty-state { border: 2px dashed #d9e2e8; border-radius: 19px; padding: 23px; color: var(--muted); background: #fbfcfd; line-height: 1.6; }
.section-heading { margin-bottom: 15px; }
.section-heading h2 { margin-bottom: 5px; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.55; }
.quiz-list { overflow: hidden; background: white; border: 2px solid var(--line); border-radius: 19px; box-shadow: 0 4px 0 #d9dfe3; }
.quiz-row { display: flex; align-items: center; gap: 16px; min-height: 89px; padding: 17px 20px; transition: background-color 140ms ease, transform 140ms var(--ease-out); }
.quiz-row + .quiz-row { border-top: 2px solid var(--line); }
.quiz-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; background: #e3f5ff; color: #1495d3; font-size: 22px; font-weight: 900; }
.quiz-row:nth-child(2) .quiz-icon { background: #f1e5ff; color: #a15adf; }
.quiz-row:nth-child(3) .quiz-icon { background: var(--green-soft); color: var(--green-dark); }
.quiz-copy { display: block; flex: 1; min-width: 0; }
.quiz-copy strong { display: block; font-size: 18px; margin-bottom: 5px; }
.quiz-copy small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.arrow { color: #7a8a95; font-size: 24px; font-weight: 700; }
footer { text-align: center; margin-top: 44px; color: #8c99a3; font-size: 13px; }
a:focus-visible { outline: 3px solid #1495d3; outline-offset: 4px; }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) and (pointer: fine) {
  .exam-card:hover { transform: translateY(-2px); border-color: #8bdc54; }
  .home-page .exam-card:hover .subject-art { transform: translateY(-4px) rotate(-3deg); }
  .quiz-row:hover { background: #f6fbf2; }
}
@media (max-width: 650px) {
  .page { width: min(100% - 28px, 760px); padding-top: 17px; }
  .site-header { padding-bottom: 38px; }
  .intro { margin-bottom: 26px; }
  .intro p { font-size: 16px; }
  .exam-card { min-height: 82px; padding: 13px 15px; gap: 12px; }
  .exam-copy strong { font-size: 18px; }
  .exam-copy small { font-size: 13px; }
  .quiz-row { min-height: 88px; padding: 15px; gap: 12px; }
  .quiz-copy strong { font-size: 17px; }
  .quiz-copy small { font-size: 13px; }
  .home-page .site-header { padding: 28px 0 50px; }
  .home-page .intro { margin-bottom: 32px; }
  .home-page h1 { font-size: clamp(38px, 10.5vw, 46px); max-width: 350px; margin: 0 auto 16px; }
  .home-page .intro p { font-size: 16px; }
  .home-page .exam-list { gap: 22px; }
  .home-page .exam-card { min-height: 168px; gap: 9px; padding: 14px; border-radius: 22px; }
  .home-page .subject-art { flex-basis: clamp(88px, 29vw, 116px); width: clamp(88px, 29vw, 116px); height: clamp(88px, 29vw, 116px); }
  .home-page .exam-copy strong { font-size: clamp(26px, 8vw, 34px); margin-bottom: 10px; }
  .home-page .exam-copy small { font-size: 14px; }
  .home-page .exam-arrow { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { animation: fade-in 200ms ease both; }
  .exam-card { animation: fade-in 200ms ease backwards; }
  .exam-card, .quiz-row { transition: background-color 140ms ease, border-color 140ms ease; }
  .exam-card:active { transform: none; }
  .home-page .subject-art { transition: none; }
  .home-page .exam-card:active { transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Home exam schedule uses the existing card palette and depth. */
.home-page .site-header { position: relative; }
.calendar-link { position: absolute; inset-inline-end: 0; display: grid; place-items: center; width: 48px; height: 48px; color: var(--green-dark); background: var(--green-soft); border: 2px solid #bbed9a; border-radius: 15px; box-shadow: 0 3px 0 #a5db86; }
.calendar-link:active { transform: translateY(2px); box-shadow: 0 1px 0 #a5db86; }
.exam-calendar { margin-top: 48px; scroll-margin-top: 24px; }
.exam-calendar:focus-visible { outline: 3px solid #1495d3; outline-offset: 6px; border-radius: 22px; }
.exam-calendar h2 { margin: 0 0 7px; font-size: 28px; color: #0d2132; }
.calendar-table-wrap { overflow: hidden; border: 2px solid var(--line); border-radius: 22px; box-shadow: 0 4px 0 #d9dfe3; }
.calendar-table { width: 100%; border-collapse: collapse; text-align: start; font-size: 16px; }
.calendar-table th, .calendar-table td { padding: 17px 20px; }
.calendar-table thead { color: #253e3b; background: var(--green-soft); }
.calendar-table tbody tr + tr { border-top: 1px solid var(--line); }
.calendar-table tbody th { font-weight: 700; }
.calendar-table td { color: #576775; }
.calendar-table time { display: inline-block; font-variant-numeric: tabular-nums; white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 650px) {
  .home-page .site-header .prepx-brand { width: min(240px, calc(100% - 112px)); }
  .exam-calendar { margin-top: 40px; }
  .calendar-table { font-size: 14px; }
  .calendar-table th, .calendar-table td { padding: 15px 10px; }
}

.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calendar-home { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: #f7f9fa; color: #1587c2; font-size: 14px; font-weight: 800; box-shadow: 0 3px 0 #d9dfe3; }
.calendar-home:active { transform: translateY(2px); box-shadow: 0 1px 0 #d9dfe3; }
