@font-face {
  font-family: 'Alexandria';
  src: url('./assets/fonts/Alexandria-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  font-family: 'Alexandria', sans-serif;
}

body {
  font-family: 'Alexandria', sans-serif;
}

body {
  font-family: 'Alexandria', sans-serif;
}

:root {
  --primary: #4849F3;
  --primary-dark: #4849F3;
  --deep: #2c1a42;
  --bg1: #F8F4FC;
  --bg2: #E7DDF4;
  --card: rgba(255, 255, 255, .48);
  --line: rgba(154, 126, 204, .45);
  --green: #27ae60;
  --red: #e65353;
  --shadow: 0 16px 35px rgba(82, 48, 130, .18);
}


* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: "Alexandria";
  background: linear-gradient(135deg, #F7F4FA 0%, #EFE8F7 46%, #E4D9F4 75%, #F3EDF9 100%);
  min-height: 100vh;
  color: var(--deep);
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 78% 28%, rgba(154, 126, 204, .22), transparent 36%), radial-gradient(circle at 16% 74%, rgba(255, 255, 255, .55), transparent 36%);
  pointer-events: none;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  margin: 0 auto;
  overflow: visible
}

.site-header {
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 68px 0;
  gap: 24px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--primary-dark);
  text-align: right
}

.brand img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 20px;
  mix-blend-mode: multiply
}

.brand strong {
  display: block;
  font-size: 20px;
  font-weight: 800
}

.brand small {
  display: block;
  font-size: 13px;
  color: var(--primary-dark);
  font-weight: 700;
  direction: ltr
}

.pill-nav {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: min(780px, 66vw);
  height: 72px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 18px;
  background: rgba(255, 255, 255, .34);
  box-shadow: 0 8px 16px rgba(35, 20, 55, .14), inset 0 1px 0 #4849F3(255, 255, 255, .75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  backdrop-filter: blur(10px)
}

.nav-btn {
  border: 0;
  background: var(--primary);
  color: white;
  border-radius: 24px;
  min-width: 118px;
  padding: 9px 18px;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(130, 88, 190, .24);
  cursor: pointer;
  opacity: .88
}

.nav-btn.active {
  background: var(--primary-dark);
  opacity: 1
}

.nav-btn span {
  margin-right: 6px
}

main {
  flex: 1;
  padding: 10px 80px 90px
}

.page {
  animation: none;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 42px;
  min-height: 560px
}

.hero-copy {
  padding-inline-start: 34px
}

.eyebrow {
  display: inline-block;
  background: rgba(154, 126, 204, .16);
  border: 1px solid rgba(154, 126, 204, .22);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  margin-bottom: 24px
}

.hero h1 {
  font-size: 76px;
  line-height: 1;
  margin: 0 0 22px;
  font-weight: 800;
  color: var(--deep)
}

.hero h2 {
  font-size: 30px;
  color: var(--primary-dark);
  margin: 0 0 18px;
  direction: ltr;
  text-align: right
}

.hero p {
  font-size: 20px;
  line-height: 1.8;
  color: #5b4c6e;
  max-width: 610px
}

.hero-actions,
.actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 34px
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 34px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: .18s;
  box-shadow: 0 8px 16px rgba(90, 56, 140, .18)
}

.btn-primary {
  background: var(--primary);
  color: #fff
}

.btn-primary:hover {
  background: var(--primary-dark)
}

.btn-secondary {
  background: rgba(255, 255, 255, .55);
  color: var(--deep);
  border: 2px solid var(--line)
}

.btn:disabled {
  background: #d1d1d1;
  box-shadow: none;
  color: white;
  cursor: not-allowed
}

.hero-art {
  display: flex;
  justify-content: center
}

.hero-art img {
  width: min(620px, 100%);
  border-radius: 30px;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 20px 26px rgba(96, 60, 140, .2))
}

.panel-title {
  text-align: center;
  margin: 22px 0 28px;
  font-size: 32px
}

.glass-panel {
  width: min(930px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .6);
  padding: 42px;
  backdrop-filter: blur(8px)
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  direction: rtl
}

.chapter-card {
  border: 2px solid var(--primary);
  border-radius: 12px;
  background: rgba(255, 255, 255, .28);
  min-height: 54px;
  padding: 12px 16px;
  font-weight: 800;
  color: var(--deep);
  font-size: 18px;
  cursor: pointer;
  transition: .18s
}

.chapter-card:hover,
.chapter-card.selected {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 16px rgba(154, 126, 204, .28)
}

.course-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px
}

.quiz-card {
  max-width: 820px
}

.quiz-head {
  text-align: center;
  margin-bottom: 26px
}

.quiz-head h2 {
  font-size: 24px;
  margin: 0 0 8px
}

.progress {
  height: 12px;
  background: rgba(154, 126, 204, .16);
  border-radius: 999px;
  overflow: hidden;
  margin: 18px auto;
  width: min(560px, 90%)
}

.progress span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
  transition: .2s
}

.question-text {
  font-size: 22px;
  direction: ltr;
  text-align: left;
  line-height: 1.5;
  margin-bottom: 24px;
  font-weight: 800;
  color: #16121e
}

.option {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  direction: ltr;
  text-align: left;
  border: 2px solid var(--primary);
  border-radius: 13px;
  background: rgba(255, 255, 255, .32);
  padding: 12px 16px;
  margin: 14px 0;
  font-weight: 700;
  color: #21162e;
  cursor: pointer
}

.option .key {
  font-weight: 900;
  color: var(--primary-dark)
}

.option.selected {
  background: var(--primary);
  color: white
}

.option.selected .key {
  color: white
}

.nav-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 28px
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px
}

.metric {
  background: rgba(255, 255, 255, .46);
  border: 1px solid rgba(154, 126, 204, .3);
  border-radius: 18px;
  padding: 18px;
  text-align: center
}

.metric b {
  display: block;
  font-size: 32px;
  color: var(--primary-dark)
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 18px
}

.review-item {
  background: rgba(255, 255, 255, .52);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .75);
  padding: 22px
}

.review-q {
  direction: ltr;
  text-align: left;
  font-weight: 800;
  margin: 0 0 14px
}

.review-option {
  direction: ltr;
  text-align: left;
  border: 2px solid rgba(154, 126, 204, .3);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 8px 0;
  background: rgba(255, 255, 255, .4)
}

.review-option.correct {
  border-color: var(--green);
  background: rgba(39, 174, 96, .12)
}

.review-option.wrong {
  border-color: var(--red);
  background: rgba(230, 83, 83, .12)
}

.explain {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(154, 126, 204, .1);
  line-height: 1.7;
  color: #49375e
}

.ref {
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
  color: var(--primary-dark)
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px
}

.chart-box {
  background: rgba(255, 255, 255, .48);
  border: 1px solid rgba(154, 126, 204, .25);
  border-radius: 18px;
  padding: 22px;
  min-height: 300px
}

.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0
}

.bar label {
  width: 90px
}

.bar-track {
  flex: 1;
  height: 18px;
  border-radius: 999px;
  background: rgba(154, 126, 204, .18);
  overflow: hidden
}

.bar-track span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit
}

.empty {
  text-align: center;
  color: #62516f;
  padding: 40px
}

.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: #4849F3;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 68px;
  font-weight: 700
}

.socials {
  display: flex;
  gap: 16px
}

.socials a {
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 6px;
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900
}

@media(max-width:900px) {
  .site-header {
    padding: 20px 22px 0;
    height: auto;
    flex-direction: column
  }

  .pill-nav {
    position: static;
    transform: none;
    width: 100%;
    gap: 10px;
    order: 2
  }

  .nav-btn {
    min-width: auto;
    font-size: 14px
  }

  .brand img {
    width: 60px;
    height: 60px
  }

  main {
    padding: 20px 18px 100px
  }

  .hero {
    grid-template-columns: 1fr
  }

  .hero h1 {
    font-size: 46px
  }

  .hero h2 {
    text-align: right
  }

  .chapters-grid,
  .result-summary,
  .stats-grid,
  .chart-row {
    grid-template-columns: 1fr
  }

.footer {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);

  height: 64px;
  background: #4849F3;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 68px;
  font-weight: 700;
}

  .question-text {
    font-size: 18px
  }

  .glass-panel {
    padding: 22px
  }
}