:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #243048;
  --muted: #5e6a7d;
  --border: #d9e1ec;
  --shadow: 0 10px 30px rgba(36, 48, 72, 0.08);
  --blue: #1b75bb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: var(--text);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.hero {
  text-align: center;
  margin-bottom: 34px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
}

.intro {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted);
}

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

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

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(36, 48, 72, 0.12);
  border-color: #bfd0e4;
  outline: none;
}

.module-number {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.module-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
}

.info-box {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
}

.info-box h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.info-box p {
  margin: 0 0 10px;
  line-height: 1.65;
  color: var(--muted);
}

.info-box p:last-child { margin-bottom: 0; }
.note { font-size: 0.98rem; }

@media (max-width: 900px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page {
    padding: 34px 16px 48px;
  }

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

  .module-card {
    min-height: 126px;
  }

  .module-title {
    font-size: 1.25rem;
  }
}
