:root {
  --bg: #f3efe7;
  --paper: rgba(255, 255, 255, .92);
  --paper-soft: #fbfaf7;
  --ink: #121212;
  --muted: #625c53;
  --accent: #9b4a2d;
  --line: #ded6ca;
  --shadow: 0 18px 48px rgba(35, 31, 28, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 22px 52px;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 34px;
  padding: 0 13px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.back::before {
  content: '<';
  margin-right: 8px;
  color: var(--accent);
}

header {
  margin-bottom: 26px;
}

h1 {
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.06;
}

h2 {
  margin: 8px 0 10px;
  font-size: 25px;
  line-height: 1.14;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.tile {
  display: block;
  min-height: 210px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: #c7b9a7;
  box-shadow: 0 24px 64px rgba(35, 31, 28, .14);
}

.tile span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.item {
  display: block;
  padding: 16px;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid #ebe4da;
  border-radius: 16px;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}

a.item:hover {
  transform: translateY(-2px);
  border-color: #c7b9a7;
}

.item strong {
  display: block;
  margin-bottom: 5px;
}

.muted {
  color: #706a62;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.training-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.training-summary {
  padding: 24px;
  color: #fff;
  background: #121212;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.training-summary span {
  display: block;
  margin-bottom: 10px;
  color: #d7c9b4;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.training-summary strong {
  display: block;
  font-size: 22px;
  line-height: 1.18;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 24px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: #c7b9a7;
  box-shadow: 0 24px 64px rgba(35, 31, 28, .14);
}

.module-card-wide {
  grid-column: span 2;
  color: #fff;
  background: #121212;
  border-color: #121212;
}

.module-number {
  width: fit-content;
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: auto;
  padding: 0 12px;
  color: var(--accent);
  background: #f1e8dc;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.module-card-wide .module-number {
  color: #121212;
  background: #d7c9b4;
}

.module-card h2 {
  margin-top: 30px;
}

.module-card p {
  font-size: 16px;
}

.module-card-wide p {
  color: #d7c9b4;
}

.module-action {
  margin-top: 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.module-card-wide .module-action {
  color: #fff;
}

@media(max-width: 760px) {
  main {
    padding: 24px 16px 42px;
  }

  h1 {
    font-size: 34px;
  }

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

  .tile {
    min-height: auto;
  }

  .training-hero,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-card,
  .module-card-wide {
    grid-column: auto;
    min-height: auto;
  }
}
