:root {
  --ink: #111111;
  --paper: #f7f5ef;
  --white: #ffffff;
  --blue: #1f6fff;
  --cyan: #10bde8;
  --yellow: #ffc400;
  --pink: #ff5c8a;
  --purple: #7b5cff;
  --green: #31c76a;
  --muted: #5e6470;
  --line: #d8d3c8;
  --shadow: 8px 8px 0 #111111;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(31,111,255,.10) 0 150px, transparent 151px),
    radial-gradient(circle at 94% 26%, rgba(255,196,0,.10) 0 180px, transparent 181px),
    var(--paper);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid var(--ink);
  background: rgba(247,245,239,.96);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(calc(100% - 32px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  text-decoration: none;
  font-weight: 1000;
  letter-spacing: -.02em;
  font-size: 20px;
}
.brand span { color: var(--blue); }

.site-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none;
  font-weight: 900;
  padding: 9px 12px;
  border: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--ink);
  background: var(--white);
  outline: none;
}
.site-nav .youtube {
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}

.page-shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }

.hero {
  min-height: 610px;
  padding: 70px 0 56px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 42px;
  align-items: center;
  border-bottom: 3px solid var(--ink);
}

.eyebrow {
  display: inline-block;
  padding: 8px 13px;
  margin-bottom: 20px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-1.5deg);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(50px, 8vw, 90px);
  line-height: .94;
  letter-spacing: -.06em;
  text-transform: uppercase;
  font-weight: 1000;
}
.hero h1 em { color: var(--blue); font-style: italic; }
.hero .lead { margin: 26px 0 0; max-width: 760px; font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; }

.hero-card {
  padding: 28px;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(1.3deg);
}
.hero-card .label {
  color: var(--blue);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero-card strong { display: block; margin: 10px 0 18px; font-size: 31px; line-height: 1.06; }
.hero-card ul { margin: 0; padding-left: 20px; font-weight: 800; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 3px solid var(--ink);
  text-decoration: none;
  font-weight: 1000;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}
.btn.primary { background: var(--yellow); }
.btn:hover { transform: translate(-1px,-1px); box-shadow: 7px 7px 0 var(--ink); }

section { padding: 64px 0 10px; }
.section-head { display: flex; align-items: end; gap: 16px; margin-bottom: 28px; }
.section-head .num { color: var(--blue); font-size: 68px; line-height: .8; font-weight: 1000; }
.section-head h2 { margin: 0; font-size: clamp(32px, 5vw, 44px); line-height: 1; letter-spacing: -.04em; text-transform: uppercase; }
.section-lead { max-width: 850px; margin: -10px 0 28px; font-size: 18px; font-weight: 750; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card, .course-card, .module-card {
  position: relative;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: 7px 7px 0 var(--ink);
}
.info-card { min-height: 180px; padding: 22px; }
.info-card:nth-child(1) { border-top: 12px solid var(--blue); transform: rotate(-.5deg); }
.info-card:nth-child(2) { border-top: 12px solid var(--cyan); transform: rotate(.5deg); }
.info-card:nth-child(3) { border-top: 12px solid var(--yellow); transform: rotate(-.2deg); }
.info-card h3 { margin-top: 0; font-size: 24px; }
.info-card p { font-weight: 700; }

.course-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-top: 12px solid var(--blue);
}
.course-card h3 { margin: 0 0 8px; font-size: 31px; }
.course-card p { margin: 0; max-width: 760px; font-weight: 700; color: #2d3139; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { display: inline-block; border: 2px solid var(--ink); padding: 5px 9px; background: #eef5ff; font-size: 12px; font-weight: 1000; text-transform: uppercase; }

.module-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.module-card { padding: 24px; min-height: 235px; display: flex; flex-direction: column; }
.module-card:nth-child(4n+1) { border-top: 11px solid var(--blue); }
.module-card:nth-child(4n+2) { border-top: 11px solid var(--pink); }
.module-card:nth-child(4n+3) { border-top: 11px solid var(--purple); }
.module-card:nth-child(4n+4) { border-top: 11px solid var(--yellow); }
.module-card .module-id { font: 900 12px/1 Consolas, monospace; letter-spacing: .07em; color: var(--muted); }
.module-card h3 { margin: 9px 0 8px; font-size: 28px; line-height: 1.05; }
.module-card p { margin: 0 0 18px; font-weight: 700; color: #353a43; }
.module-card .btn { margin-top: auto; align-self: flex-start; min-height: 42px; padding: 8px 13px; box-shadow: 4px 4px 0 var(--ink); }

.note {
  margin-top: 32px;
  padding: 18px 20px;
  border: 2px dashed var(--blue);
  background: #eef5ff;
  font-weight: 750;
}

.site-footer {
  margin-top: 80px;
  border-top: 3px solid var(--ink);
  background: #111;
  color: #fff;
}
.footer-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 28px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-inner strong { font-size: 18px; }
.footer-inner p { margin: 6px 0 0; color: #d8dde7; }
.footer-inner a { color: #fff; font-weight: 900; }

.error-page { min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 48px 0; }
.error-card { max-width: 720px; border: 3px solid var(--ink); background: var(--white); padding: 32px; box-shadow: var(--shadow); }
.error-card h1 { margin: 0 0 12px; font-size: clamp(52px, 9vw, 100px); line-height: .9; }
.error-card p { font-size: 19px; font-weight: 750; }

@media (max-width: 850px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 50px; }
  .grid, .module-list { grid-template-columns: 1fr; }
  .course-card { grid-template-columns: 1fr; }
  .course-card .btn { justify-self: start; }
  .header-inner { min-height: 64px; }
  .brand { font-size: 17px; }
  .site-nav a:not(.youtube) { display: none; }
}

@media (max-width: 480px) {
  .page-shell, .header-inner, .footer-inner { width: min(calc(100% - 24px), var(--max)); }
  .hero h1 { font-size: 48px; }
  .hero-card { padding: 22px; }
  .hero-card strong { font-size: 27px; }
  .section-head .num { font-size: 54px; }
  .module-card { min-height: 0; }
}

@media print {
  .site-header, .actions, .site-footer { display: none !important; }
  body { background: #fff !important; }
  .page-shell { width: auto; }
  .hero { min-height: auto; padding: 0 0 15mm; }
  .hero-card, .info-card, .course-card, .module-card { box-shadow: none !important; break-inside: avoid; }
}
