/* =========================================================
   1. ПЕРЕМЕННЫЕ И БАЗА
   ========================================================= */
:root {
  --navy:  #08132c;
  --blue:  #145cff;
  --ink:   #111a32;
  --muted: #63718a;
  --line:  #e1e7f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #f8faff;
}

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

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


/* =========================================================
   2. HEADER / NAV
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #09152e;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -1px;
}

.brand span {
  color: #5790ff;
}

.links {
  display: flex;
  gap: 25px;
  font-size: 14px;
  color: #dce5ff;
}


/* =========================================================
   3. КНОПКИ
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 23px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn.light {
  background: #fff;
  color: var(--navy);
}


/* =========================================================
   4. HERO
   ========================================================= */
.hero {
  overflow: hidden;
  background: radial-gradient(
    circle at 80% 30%,
    #234ba3 0%,
    #101e43 36%,
    #08132c 75%
  );
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  padding-top: 85px;
  padding-bottom: 85px;
}

.eyebrow {
  display: inline-block;
  padding: 9px 13px;
  border: 1px solid #5273b0;
  border-radius: 100px;
  color: #a8c5ff;
  font-size: 13px;
}

.hero h1 {
  margin: 25px 0;
  font-size: clamp(42px, 5.3vw, 70px);
  line-height: 1.07;
  letter-spacing: -2.8px;
}

.hero h1 em {
  font-style: normal;
  color: #8ab2ff;
}

.hero-lead {
  max-width: 580px;
  font-size: 19px;
  line-height: 1.65;
  color: #c8d6f2;
}

/* --- Hero: терминал --- */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 370px;
}

.terminal {
  width: 100%;
  overflow: hidden;
  border: 1px solid #49669c;
  border-radius: 20px;
  background: #0a1021;
  box-shadow: 0 35px 90px #0008;
  transform: rotate(-3deg);
}

.dots {
  padding: 15px;
  background: #182744;
  color: #9bb6e7;
  font-size: 12px;
}

.terminal pre {
  margin: 0;
  padding: 27px;
  overflow: auto;
  font-size: clamp(14px, 1.8vw, 20px);
  line-height: 1.8;
  color: #8ee0e0;
}

/* Подсветка синтаксиса */
.tok-key { color: #a98aff; }
.tok-str { color: #e5bb76; }
.tok-fn  { color: #8ba8ef; }

.floating {
  position: absolute;
  right: -12px;
  bottom: -25px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fff;
  color: #1c3364;
  font-weight: 800;
  box-shadow: 0 15px 50px #0005;
}


/* =========================================================
   5. ОБЩИЕ СЕКЦИИ
   ========================================================= */
.section {
  padding: 80px 0;
}

.section h2 {
  margin: 0 0 15px;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -1.3px;
}

.lead {
  margin: 0 0 35px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.pale {
  background: #eef4ff;
}

.dark {
  background: #0a1631;
  color: #fff;
}

.dark .lead {
  color: #c6d4ee;
}


/* =========================================================
   6. КАРТОЧКИ
   ========================================================= */
.course,
.price,
.feature,
.step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 30px #163b7210;
}

.symbol {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #eaf0ff;
  color: var(--blue);
  font-size: 27px;
  font-weight: 900;
}

.course h3 {
  min-height: 52px;
  font-size: 20px;
}

.course p,
.feature p,
.step p {
  line-height: 1.6;
  color: var(--muted);
}

.course .amount {
  margin: 24px 0;
  font-size: 24px;
  font-weight: 850;
}

.outline {
  display: block;
  padding: 12px;
  border: 1px solid #b7c8e9;
  border-radius: 10px;
  color: #1b4ac1;
  font-weight: 700;
  text-align: center;
}


/* =========================================================
   7. СЕТКИ
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;

  /* сброс стилей <ol> */
  margin: 0;
  padding: 0;
  list-style: none;
}

.step strong {
  font-size: 30px;
  color: var(--blue);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}


/* =========================================================
   8. ТАРИФЫ
   ========================================================= */
.prices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.price {
  color: var(--ink);
}

.price.highlight {
  border: 2px solid var(--blue);
}

.price h3 {
  margin-bottom: 5px;
}

.price b {
  font-size: 28px;
}

.price ul {
  min-height: 170px;
  padding-left: 20px;
  line-height: 2;
  color: #5b6b85;
}


/* =========================================================
   9. FAQ
   ========================================================= */
.faq details {
  margin-bottom: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

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

.faq p {
  line-height: 1.6;
  color: var(--muted);
}


/* =========================================================
   10. CTA
   ========================================================= */
.cta {
  padding: 55px 24px;
  border-radius: 24px;
  background: linear-gradient(110deg, #0b1834, #174fbd);
  color: #fff;
  text-align: center;
}

.cta h2 {
  margin: 0 0 15px;
}


/* =========================================================
   11. FOOTER
   ========================================================= */
.footer {
  padding: 40px 0;
  color: #64718a;
  font-size: 13px;
}


/* =========================================================
   12. УТИЛИТЫ
   ========================================================= */
.note {
  margin-top: 20px;
  font-size: 12px;
  color: #71819b;
}

.note-light {
  color: #adbfde;
}

.note-dark {
  color: #c3cfe6;
}


/* =========================================================
   13. АДАПТИВНОСТЬ
   ========================================================= */
.mobile-toggle {
  display: none;
}

@media (max-width: 850px) {
  .links { display: none; }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 55px;
    padding-bottom: 70px;
  }

  .hero-art { min-height: 270px; }

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

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

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

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

  .nav { min-height: 64px; }
  .nav .btn { padding: 11px; font-size: 12px; }

  .hero h1 { letter-spacing: -1.5px; }
  .hero-art { min-height: 250px; }

  .grid,
  .prices,
  .steps { grid-template-columns: 1fr; }

  .section { padding: 55px 0; }

  .floating { right: 0; }

  .course h3 { min-height: 0; }
}