/* =========================================================
   1. ПЕРЕМЕННЫЕ И БАЗА
   ========================================================= */
:root {
  --ink:   #11182c;
  --blue:  #2164ff;
  --muted: #65718a;
  --line:  #e5eaf3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.55 Inter, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

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

.wrap {
  max-width: 1180px;
  margin: auto;
  padding-left: 24px;
  padding-right: 24px;
}


/* =========================================================
   2. HEADER / NAV
   ========================================================= */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 78px;
}

.logo {
  font-weight: 900;
  letter-spacing: 0.04em;
}

.logo small {
  display: block;
  margin-left: 25px;
  font-size: 10px;
  letter-spacing: 0.3em;
}

.nav nav {
  display: flex;
  gap: 25px;
  font-size: 14px;
  color: #58657c;
}


/* =========================================================
   3. КНОПКИ
   ========================================================= */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 11px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 20px #2164ff25;
}

.btn.small {
  padding: 11px 17px;
  font-size: 13px;
}

.btn.ghost {
  border: 1px solid #8698b5;
  background: transparent;
  color: #fff;
  box-shadow: none;
}


/* =========================================================
   4. HERO
   ========================================================= */
.hero {
  padding: 76px 0 80px;
  background:
    radial-gradient(circle at 80% 20%, #263f76 0, transparent 40%),
    linear-gradient(125deg, #0b1120, #142644);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 55px;
}

.eyebrow {
  padding: 9px 13px;
  border: 1px solid #455a82;
  border-radius: 50px;
  color: #c7d9ff;
  font-size: 12px;
}

.hero h1 {
  margin: 30px 0 20px;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: #67a5ff;
  font-style: normal;
}

.hero p {
  max-width: 600px;
  font-size: 19px;
  color: #c6d1e3;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 38px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: #d5e0f5;
}

/* --- Hero: визуальная часть --- */
.visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 450px;
}

.orb {
  position: absolute;
  font-size: 270px;
  color: #2b69e4;
  opacity: 0.28;
  filter: blur(3px);
}

.window {
  z-index: 1;
  min-width: 300px;
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  color: #19233c;
  box-shadow: 0 35px 100px #0008;
  transform: rotate(-3deg);
}

.dots {
  color: #9db0ce;
  font-size: 12px;
}

.window h3 {
  font-size: 20px;
}

.node {
  padding: 14px;
  border: 1px solid #dce8ff;
  border-radius: 10px;
  background: #eef4ff;
  font-weight: 700;
  text-align: center;
}

.arrow {
  color: #2463f6;
  text-align: center;
}

.float {
  position: absolute;
  z-index: 2;
  padding: 13px 18px;
  border-radius: 12px;
  background: #fff;
  color: #1c3970;
  font-weight: 700;
  box-shadow: 0 10px 30px #0003;
}

.f1 { top: 35px; right: 0; }
.f2 { bottom: 30px; left: 0; }


/* =========================================================
   5. ОБЩИЕ СЕКЦИИ
   ========================================================= */
.section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section.light {
  background: #f6f8fc;
}

.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--blue);
}

h2 {
  margin: 14px 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 700px;
  margin-bottom: 34px;
  font-size: 18px;
  color: var(--muted);
}


/* =========================================================
   6. КАРТОЧКИ
   ========================================================= */
.cards {
  display: grid;
  gap: 18px;
}

.four  { grid-template-columns: repeat(4, 1fr); }
.three { grid-template-columns: repeat(3, 1fr); }

.cards article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 35px #172b4d08;
}

.cards h3 {
  margin: 12px 0;
  font-size: 20px;
}

.cards p {
  font-size: 15px;
  color: var(--muted);
}

.emoji {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 28px;
}


/* =========================================================
   7. КУРСЫ
   ========================================================= */
.course {
  display: flex;
  flex-direction: column;
}

.course .btn {
  margin-top: auto;
}

.course.featured {
  border-color: #97b8ff;
  box-shadow: 0 18px 45px #2164ff15;
}

.pill {
  align-self: start;
  padding: 7px 12px;
  border-radius: 20px;
  background: #edf3ff;
  color: #2960d0;
  font-size: 12px;
  font-weight: 700;
}

.course-art {
  margin: 20px 0 10px;
  padding: 20px;
  border-radius: 15px;
  background: linear-gradient(135deg, #e6efff, #f3eaff);
  font-size: 65px;
  text-align: center;
}

.course ul {
  padding-left: 20px;
  line-height: 2;
  color: #4e5d79;
}

.note {
  margin-top: 20px;
  font-size: 13px;
  color: #71809b;
}


/* =========================================================
   8. ШАГИ
   ========================================================= */
.steps strong {
  font-size: 32px;
  color: #3978ff;
}


/* =========================================================
   9. FAQ
   ========================================================= */
.narrow {
  max-width: 850px;
}

details {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  font-weight: 700;
  cursor: pointer;
}

details p {
  color: var(--muted);
}


/* =========================================================
   10. CTA
   ========================================================= */
.cta {
  margin-top: 80px;
  margin-bottom: 80px;
  padding-top: 60px;
  padding-bottom: 60px;
  border-radius: 24px;
  background: #101c36;
  color: #fff;
  text-align: center;
}

.cta p {
  color: #b9c7e0;
}


/* =========================================================
   11. FOOTER
   ========================================================= */
.footer {
  padding-top: 30px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #73819a;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer b {
  color: #17213b;
}


/* =========================================================
   12. АДАПТИВНОСТЬ
   ========================================================= */
@media (max-width: 850px) {
  .nav nav { display: none; }

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

  .visual { min-height: 360px; }

  .four,
  .three { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero {
    padding: 50px 0;
  }

  .four,
  .three { grid-template-columns: 1fr; }

  .visual { min-height: 340px; }

  .window { min-width: 260px; }

  .float { font-size: 12px; }

  .section {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .footer .wrap { flex-direction: column; }

  .btn { width: 100%; }

  .actions { flex-direction: column; }
}