:root {
  --bg: #eff4ff;
  --ink: #091226;
  --muted: #4a5c81;
  --line: #d5dff4;
  --navy: #050f31;
  --cobalt: #123eb7;
  --blue: #1b56e4;
  --neon: #d8ff3d;
  --surface: #fff;
  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow-strong: 0 24px 60px rgba(8, 22, 68, 0.2);
  --shadow-soft: 0 10px 28px rgba(12, 27, 73, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 10%, rgba(27, 86, 228, 0.14), transparent 35%),
    radial-gradient(circle at 8% 0%, rgba(216, 255, 61, 0.18), transparent 20%),
    linear-gradient(180deg, #f7f9ff 0%, #edf2ff 60%, #eef3ff 100%);
}

.container {
  width: min(1160px, calc(100vw - 2rem));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1rem;
  border-radius: 999px;
  font-family: 'Barlow Condensed', 'Noto Sans SC', sans-serif;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.btn-back {
  background: var(--neon);
  color: #051126;
}

.hero {
  margin-top: 1.4rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1) 6%, transparent 34%),
    linear-gradient(120deg, #050f31 0%, #133da8 48%, #1d63f9 100%);
  box-shadow: var(--shadow-strong);
}

.eyebrow {
  margin: 0;
  width: fit-content;
  background: var(--neon);
  color: #06143a;
  border-radius: 999px;
  padding: 0.33rem 0.76rem;
  font-family: 'Barlow Condensed', 'Noto Sans SC', sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
  font-family: 'Barlow Condensed', 'Noto Sans SC', sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0.85rem 0 0.55rem;
  font-size: clamp(2.15rem, 7.4vw, 4rem);
  text-transform: uppercase;
}

.hero p {
  margin: 0;
  max-width: 70ch;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn-light {
  background: var(--neon);
  color: #06143a;
}

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: 2.8rem 0 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.stats article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.stats h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #10369f;
}

.stats p {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.section-head h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  color: #091a4d;
  text-transform: uppercase;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.featured-strip {
  margin-top: 0.9rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 32%);
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
}

.featured-card {
  display: block;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-height: 230px;
}

.featured-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.cert-wall {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.65rem;
  grid-auto-flow: dense;
}

.cert-item {
  grid-column: span 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: var(--surface);
  aspect-ratio: 4 / 3;
}

.cert-item.wide {
  grid-column: span 6;
}

.cert-item.tall {
  aspect-ratio: 3 / 4;
}

.cert-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.cert-item:hover img,
.featured-card:hover img {
  transform: scale(1.03);
}

.training-wall {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.training-column {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.training-item {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: var(--surface);
}

.training-item.landscape {
  aspect-ratio: 16 / 5;
}

.training-item.portrait {
  aspect-ratio: 4 / 5;
}

.training-item.tools-photo {
  aspect-ratio: 4 / 3;
  background: #fff;
}

.training-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.training-item.tools-photo img {
  object-fit: contain;
}

.training-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 960px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .featured-strip {
    grid-auto-columns: minmax(270px, 70%);
  }

  .cert-item,
  .cert-item.wide {
    grid-column: span 6;
  }

  .training-wall {
    grid-template-columns: 1fr;
  }

  .training-item.landscape,
  .training-item.portrait {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1160px, calc(100vw - 1.2rem));
  }

  .btn {
    padding: 0.6rem 0.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .featured-strip {
    grid-auto-columns: minmax(230px, 82%);
  }

  .cert-item,
  .cert-item.wide {
    grid-column: span 12;
  }

  .training-item.landscape,
  .training-item.portrait {
    aspect-ratio: auto;
  }

  .training-item img {
    height: auto;
  }

}
