:root {
  --blue-950: #0a1c3b;
  --blue-900: #0f2c5f;
  --blue-800: #153a7a;
  --blue-700: #1b5fd7;
  --blue-600: #2e7ff5;
  --blue-500: #5f9dff;
  --yellow-500: #f5c739;
  --yellow-400: #ffd24c;
  --white: #ffffff;
  --light: #f4f7ff;
  --shadow: 0 16px 40px rgba(12, 33, 74, 0.12);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Rubik", "Segoe UI", sans-serif;
  background: var(--light);
  color: #1a2b4c;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

section {
  scroll-margin-top: 96px;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 28, 59, 0.92);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
}

.logo-mark {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.main-nav a {
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--yellow-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 18px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 42, 93, 0.2);
}

.btn-primary {
  background: var(--yellow-400);
  color: #1b2a46;
}

.btn-secondary {
  background: #1b4aa5;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  --hero-bottom-gap: 110px;
  padding: 23px 0 var(--hero-bottom-gap);
  background: radial-gradient(circle at 12% 20%, #2f6fe0 0%, #13408b 40%, #0a1f49 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.18;
  z-index: 0;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
  z-index: 1;
}

.hero-tag {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-description {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
  max-width: 480px;
}

.accent {
  color: var(--yellow-400);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-pickaxe {
  position: absolute;
  right: 4%;
  bottom: 24px;
  width: min(170px, 24vw);
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.hero-photo {
  width: min(640px, 55vw);
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: none;
  transform: translateY(var(--hero-bottom-gap)) scale(1.12);
  transform-origin: bottom right;
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 36px rgba(6, 18, 45, 0.35));
}


.section {
  padding: 80px 0;
}

.section.alt {
  background: #eef3ff;
}

.showcase {
  position: relative;
  background: linear-gradient(180deg, #e9eef9 0%, #f3f6fd 100%);
}

.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27, 95, 215, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.2;
  pointer-events: none;
}

.showcase .container {
  position: relative;
  z-index: 1;
}

.showcase-header {
  margin-bottom: 26px;
}

.showcase-header h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  color: #20345a;
}

.showcase-header h2 span {
  color: #1b5fd7;
  font-weight: 800;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.showcase-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 16px 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-card h3 {
  font-size: 1.05rem;
}

.showcase-card p {
  color: #4b5d78;
  font-size: 0.95rem;
}

.showcase-photo {
  height: 140px;
  border-radius: 16px 16px 0px 0px;
  margin: -16px -16px 12px -16px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.showcase-photo--offline {
  background-image: url("images/offline.png");
}

.showcase-photo--printers {
  background-image: url("images/printers.png");
}

.showcase-photo--materials {
  background-image: url("images/filament.png");
}

.showcase-photo--certificate {
  background-image: url("images/cert.png");
}

.showcase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pill {
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
}

.pill-yellow {
  background: var(--yellow-400);
  color: #1b2a46;
}

.pill-blue {
  background: #1b4aa5;
  color: var(--white);
}

.pill-light {
  background: #eef2fb;
  color: #3d4f6c;
  border: 1px solid rgba(27, 95, 215, 0.15);
}

.showcase-checklist {
  list-style: none;
  display: grid;
  gap: 10px;
  color: #263a5c;
  font-weight: 600;
}

.showcase-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.showcase-checklist li::before {
  content: "✓";
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--yellow-400);
  box-shadow: 0 0 0 4px rgba(245, 199, 57, 0.18);
  margin-top: 2px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #1b2a46;
}

.course-showcase {
  position: relative;
  background: linear-gradient(180deg, #eef2fb 0%, #f5f7fd 100%);
}

.course-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27, 95, 215, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.16;
  pointer-events: none;
}

.course-showcase .container {
  position: relative;
  z-index: 1;
}

.course-title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: #20345a;
  margin-bottom: 24px;
}

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

.course-tile {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
}

.course-media {
  height: 220px;
}

.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-banner {
  background: linear-gradient(180deg, #1b4aa5 0%, #153b88 100%);
  color: var(--white);
  padding: 16px 18px;
}

.course-banner h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.course-banner p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.course-banner--accent h3 {
  color: var(--yellow-400);
}

.course-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 18px;
  background: #f1f4fb;
}

.course-bottom strong {
  font-size: 1.2rem;
  color: #20345a;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-title p {
  max-width: 420px;
  color: #5a6b86;
  font-weight: 500;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.mini-card,
.course-card,
.result-card,
.teacher-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 12px;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: #42536d;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f6c738, #f9e07a);
  color: #1a2b4c;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.1rem;
}

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

.skill-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 18px 18px 52px;
  position: relative;
  font-weight: 600;
  color: #2c3f5f;
  box-shadow: var(--shadow);
}

.skill-item::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--yellow-400);
  color: #1a2b4c;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.steps li {
  counter-increment: step;
  background: var(--white);
  padding: 16px 16px 16px 60px;
  border-radius: var(--radius-sm);
  position: relative;
  box-shadow: var(--shadow);
  font-weight: 600;
  color: #2b3d5a;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--blue-700);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.format {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.format span {
  background: rgba(27, 95, 215, 0.1);
  color: #1b4aa5;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.courses {
  background: linear-gradient(180deg, rgba(27, 95, 215, 0.1), rgba(27, 95, 215, 0));
}

.course-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-photo {
  height: 200px;
  background:
    linear-gradient(120deg, rgba(15, 42, 93, 0.75), rgba(46, 127, 245, 0.6)),
    radial-gradient(circle at top right, rgba(255, 210, 76, 0.7), transparent 60%);
  position: relative;
}

.course-photo::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.course-photo--secondary {
  background:
    linear-gradient(120deg, rgba(17, 53, 124, 0.75), rgba(111, 169, 255, 0.6)),
    radial-gradient(circle at bottom left, rgba(255, 210, 76, 0.65), transparent 60%);
}

.course-body {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.course-info {
  font-weight: 600;
  color: #4c5d78;
}

.course-body ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: #3a4c68;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}

.course-footer strong {
  font-size: 1.2rem;
  color: #1b2a46;
}

.mini-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-left: 52px;
  position: relative;
  font-weight: 600;
  color: #2b3d5a;
}

.mini-card::before {
  content: "✓";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--yellow-400);
  box-shadow: 0 0 0 4px rgba(245, 199, 57, 0.2);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1b2a46;
}

.result-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.result-photo {
  height: 160px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(27, 95, 215, 0.7), rgba(15, 42, 93, 0.9)),
    radial-gradient(circle at 20% 20%, rgba(255, 210, 76, 0.7), transparent 60%);
}

.result-photo--alt {
  background:
    linear-gradient(145deg, rgba(38, 118, 219, 0.6), rgba(14, 33, 73, 0.9)),
    radial-gradient(circle at 80% 30%, rgba(255, 210, 76, 0.6), transparent 60%);
}

.result-photo--warm {
  background:
    linear-gradient(145deg, rgba(255, 210, 76, 0.7), rgba(27, 95, 215, 0.8)),
    radial-gradient(circle at 20% 70%, rgba(255, 255, 255, 0.6), transparent 60%);
}

.result-card figcaption {
  font-weight: 600;
  color: #2b3d5a;
}

.teacher-card {
  display: grid;
  gap: 14px;
}

#results,
#teachers,
#parents {
  display: none;
}

.teacher-photo {
  height: 180px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(27, 95, 215, 0.7), rgba(15, 42, 93, 0.9)),
    radial-gradient(circle at 70% 30%, rgba(255, 210, 76, 0.6), transparent 60%);
}

.teacher-photo--alt {
  background:
    linear-gradient(135deg, rgba(74, 130, 216, 0.6), rgba(18, 45, 94, 0.9)),
    radial-gradient(circle at 30% 30%, rgba(255, 210, 76, 0.6), transparent 60%);
}

.teacher-photo--warm {
  background:
    linear-gradient(135deg, rgba(255, 210, 76, 0.65), rgba(27, 95, 215, 0.8)),
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.6), transparent 60%);
}

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: center;
}

.trust p {
  color: #4c5d78;
  margin: 12px 0 20px;
}

.trust-list {
  display: grid;
  gap: 10px;
  font-weight: 600;
}

.trust-list div::before {
  content: "✓";
  color: #1b5fd7;
  margin-right: 8px;
}

.trust-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.trust-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.trust-card ul li::before {
  content: "•";
  color: var(--yellow-400);
  margin-right: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27, 95, 215, 0.12);
  color: #1b4aa5;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.cta {
  background: linear-gradient(135deg, #0f2c5f, #1b5fd7);
  color: var(--white);
}

.cta-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.cta-form {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  gap: 14px;
}

.cta-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.cta-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 1rem;
}

.cta-form input:focus {
  outline: none;
  border-color: var(--yellow-400);
  box-shadow: 0 0 0 3px rgba(255, 210, 76, 0.35);
}

.form-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}

.form-status.is-success {
  color: #f5f7ff;
}

.form-status.is-error {
  color: #ffd9d9;
}

.site-footer {
  background: #0b1e3e;
  color: rgba(255, 255, 255, 0.8);
  padding: 32px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--white);
}

.footer-brand span {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contacts,
.footer-links {
  display: grid;
  gap: 6px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 24px;
    justify-content: center;
  }

  .hero-photo {
    width: min(520px, 86vw);
  }
}

@media (max-width: 640px) {
  .main-nav {
    gap: 12px;
  }

  .hero {
    --hero-bottom-gap: 80px;
    padding: 70px 0 var(--hero-bottom-gap);
  }

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

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-form {
    padding: 20px;
  }

  .course-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-pickaxe {
    width: min(200px, 46vw);
    bottom: 8px;
    z-index: 10;
  }

  .hero-photo {
    width: min(420px, 90vw);
  }
}
