:root {
  color-scheme: light;
  --ink: #12151c;
  --muted: #687083;
  --line: #e3e7ef;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --blue: #255fd2;
  --teal: #0f8b86;
  --gold: #b57d25;
  --red: #b34f56;
  --violet: #7257c8;
  --shadow: 0 24px 70px rgba(18, 21, 28, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(37, 95, 210, 0.08), transparent 36%),
    linear-gradient(300deg, rgba(15, 139, 134, 0.08), transparent 42%),
    var(--paper);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar,
.home,
.page,
.footer {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-weight: 820;
  letter-spacing: 0;
}

.logo,
.hero-logo {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal) 58%, var(--gold));
  font-weight: 900;
  letter-spacing: 0;
}

.logo {
  width: 42px;
  height: 42px;
  box-shadow: 0 14px 32px rgba(37, 95, 210, 0.18);
  font-size: 14px;
}

.hero-logo {
  width: clamp(82px, 13vw, 124px);
  height: clamp(82px, 13vw, 124px);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  font-size: clamp(30px, 5vw, 48px);
  animation: logo-in 760ms ease-out both, logo-breathe 4.8s ease-in-out 900ms infinite;
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logo-breathe {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.nav a {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active {
  color: var(--ink);
  background: #fff;
  outline: 1px solid var(--line);
}

.home {
  min-height: calc(100vh - 154px);
  padding: 64px 0 58px;
}

.hero {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 830;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 10vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 50px;
}

.course-card {
  --accent: var(--blue);
  position: relative;
  min-height: 148px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 38px rgba(18, 21, 28, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.course-card:hover,
.course-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(37, 95, 210, 0.42);
  border-color: color-mix(in srgb, var(--accent), transparent 55%);
  box-shadow: var(--shadow);
  outline: none;
}

.course-card::after {
  content: ">";
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

.course-icon,
.module-label {
  display: inline-grid;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  padding: 4px 8px;
  border-radius: 7px;
  background: #eef3fb;
  background: color-mix(in srgb, var(--accent), white 86%);
  color: var(--accent);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 850;
}

.course-card strong {
  display: block;
  max-width: 190px;
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}

.course-jel,
.page-jel {
  --accent: var(--blue);
}

.course-ztj-c,
.page-ztj-c {
  --accent: var(--teal);
}

.course-ztj-p,
.page-ztj-p {
  --accent: var(--red);
}

.course-sp1ji,
.page-sp1ji {
  --accent: var(--gold);
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  margin-top: 14px;
}

.quiz-link,
.qr-card,
.module,
.download-panel,
.access-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.quiz-link,
.qr-card {
  padding: 20px;
}

.section-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 6px 0 0;
  font-size: 24px;
  letter-spacing: 0;
}

.tiny-quiz-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 18px;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--blue), transparent 64%);
  border-radius: 7px;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue), white 93%);
  font-size: 13px;
  font-weight: 820;
}

.tiny-quiz-link:hover,
.tiny-quiz-link:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  outline: none;
}

.qr-card img {
  display: block;
  width: 168px;
  max-width: 100%;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  gap: 28px;
  align-items: start;
  min-height: calc(100vh - 154px);
  padding: 48px 0 60px;
}

.page-title {
  padding-top: 20px;
}

.page-title h1 {
  max-width: 720px;
  margin-top: 15px;
  font-size: clamp(44px, 8vw, 82px);
}

.modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.module {
  min-height: 110px;
  padding: 18px;
}

.module-link {
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.module-link:hover,
.module-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(37, 95, 210, 0.42);
  box-shadow: var(--shadow);
  outline: none;
}

.module-feature {
  grid-column: 1 / -1;
  min-height: 122px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent), white 88%), #fff),
    #fff;
}

.module strong {
  display: block;
  margin-top: 13px;
  font-size: 20px;
  line-height: 1.15;
}

.side-stack {
  display: grid;
  gap: 14px;
}

.access-panel,
.download-panel {
  padding: 20px;
  box-shadow: 0 12px 38px rgba(18, 21, 28, 0.06);
}

.access-panel h2,
.download-panel h2 {
  margin: 0;
  font-size: 24px;
}

.access-panel p,
.download-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.feature-panel {
  border-color: rgba(37, 95, 210, 0.28);
}

.lock {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  font-size: 20px;
  font-weight: 900;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 16px;
  padding: 9px 13px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  font-weight: 820;
}

.button-link:hover,
.button-link:focus-visible {
  filter: brightness(0.97);
  outline: 3px solid rgba(37, 95, 210, 0.14);
}

.download-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.download-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-weight: 740;
}

.download-list a::after {
  content: "stahnout";
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

@media (max-width: 940px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .course-grid,
  .dashboard,
  .page {
    grid-template-columns: 1fr;
  }

  .side-stack {
    max-width: 560px;
  }
}

@media (max-width: 620px) {
  .topbar,
  .home,
  .page,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .home {
    padding-top: 44px;
  }

  .course-grid,
  .modules {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: 122px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
  }
}
