/* ---------- Base ---------- */
:root{
  /* Light theme */
  --bg: #f6f8fc;
  --panel: rgba(17,24,39,0.04);
  --panel-2: rgba(17,24,39,0.06);
  --text: rgba(17,24,39,0.92);
  --muted: rgba(17,24,39,0.70);
  --faint: rgba(17,24,39,0.55);
  --border: rgba(17,24,39,0.10);
  --shadow: 0 10px 30px rgba(17,24,39,0.10);
  --radius: 18px;
  --radius-sm: 12px;

  --primary: #111827;
  --primaryText: #ffffff;
  --secondary: rgba(17,24,39,0.06);

  --max: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(900px 500px at 15% 10%, rgba(37,99,235,0.10), transparent 55%),
              radial-gradient(900px 500px at 85% 20%, rgba(16,185,129,0.10), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a{ color: inherit; text-decoration: none; }
.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus{
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  z-index: 9999;
}

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(191, 219, 254, 0.9); /* светло-синий */
  border-bottom: 1px solid rgba(30, 64, 175, 0.18);
}
.brand-sub{ color: rgba(17,24,39,0.60); }
.nav-link{ color: rgba(17,24,39,0.70); }
.nav-link:hover{ background: rgba(37,99,235,0.10); color: rgba(17,24,39,0.92); }

.btn-ghost{
  border-color: rgba(30,64,175,0.22);
}
.btn-ghost:hover{
  background: rgba(37,99,235,0.10);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}
.brand{ display: flex; align-items: center; gap: 10px; }
.logo{
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--border);
  font-weight: 800;
  letter-spacing: .5px;
}
.brand-text{ display: grid; gap: 2px; }
.brand-name{ font-weight: 700; }
.brand-sub{ font-size: 12px; color: var(--faint); }

.nav{ display: flex; gap: 14px; align-items: center; }
.nav-link{
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-link:hover{ background: rgba(255,255,255,0.06); color: var(--text); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  user-select: none;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: #0056D2;
  color: #ffffff;
  border-color: rgba(255,255,255,0.15);
}
.btn-primary:hover{ 
  background: #0846c6;
  color: #ffffff;
}

.btn-secondary{
  background: rgba(255,255,255,0.10);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover{ background: rgba(255,255,255,0.14); }

.btn-ghost{
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover{ background: rgba(255,255,255,0.07); }

.btn-full{ width: 100%; }

/* ---------- Hero ---------- */
.hero{
  padding: 56px 0 22px;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 26px;
  align-items: stretch; /* ВАЖНО: чтобы колонки были одной высоты */
}
.hero-copy{
  max-width: 640px; /* чтобы текст не расползался */
}
/* Растягиваем правую колонку на высоту левой */
.hero-card{
  height: 100%;
}

.hero-card .card{
  height: 100%;
  display: flex;
  flex-direction: column; /* чтобы содержимое шло сверху вниз */
}

/* Картинка внутри правой карточки — пусть занимает место, а кнопка уходит вниз */
.hero-card .mini-illustration{
  flex: 1;            /* занимает всё свободное место */
  display: flex;
}

.hero-card .card-actions{
  margin-top: auto; /* ключ: прижимаем CTA вниз, растягивая карточку */
  display: grid;
  gap: 10px;
}

.eyebrow{
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  margin: 0 0 12px;
}
h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
}
.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 14px;
}

.trust-row{
  list-style: none;
  padding: 0;
  margin: 10px 0 12px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.dot{
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  margin-right: 8px;
  transform: translateY(1px);
}

/* Hero card */
.hero-card .card{
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.pill{
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
}
.badge{
  font-size: 12px;
  color: var(--text);
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
}
.stat-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.stat{
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}
.stat-k{
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 4px;
}
.stat-v{
  font-weight: 800;
  font-size: 14px;
}
.mini-illustration{
  color: rgba(255,255,255,0.75);
  margin: 10px 0 14px;
}
.mini-illustration svg{ width: 100%; height: auto; display: block; border-radius: 16px; }

.card-actions{ display: grid; gap: 10px; }
.hint{
  font-size: 12px;
  color: var(--faint);
  margin: 0;
}

/* --- Images (BBB) --- */
.hero-media{
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.03);
}

.hero-img{
  width: 100%;
  height: 340px;        /* ключевая строка: подгони высоту */
  object-fit: cover;    /* обрезает красиво, без деформации */
  display: block;
}

.card-hero-img{
  width: 100%;
  height: 100%;       /* теперь высота берётся от flex-блока */
  object-fit: cover;
  border-radius: 16px;
}

/* ---------- Sections ---------- */
.section{
  padding: 34px 0;   /* было 56 */
}
.section.alt{
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.section-head{
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.section-compact .section-head{
  margin-bottom: 5px;  /* было 22px */
}

h2{
  margin: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.01em;
}
.sub{
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
}
/* Course overview: make it wider */
.sub-wide{
  max-width: 100%;
}
/* Reduce vertical spacing for compact sections */
.section-compact{
  padding: 18px 0;  /* было ~34-56 */
}

/* Grids */
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
}
.feature h3{
  margin: 0 0 8px;
  font-size: 16px;
}
.feature p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.panel{
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
}
.panel h3{
  margin: 0 0 12px;
  font-size: 16px;
}
.checklist{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.checklist li{
  padding-left: 26px;
  position: relative;
  font-size: 14px;
}
.checklist li:before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
}

.panel-cta{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.meta{
  color: var(--faint);
  font-size: 12px;
}

.audience{ display: grid; gap: 10px; }
.aud{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.aud-title{ font-weight: 800; margin-bottom: 4px; }
.aud-text{ color: var(--muted); font-size: 14px; }

.note{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 13px;
}

/* Steps */
.steps{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.steps li{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
}
.step-num{
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
}
.step-title{ font-weight: 900; margin-bottom: 2px; }
.step-text{ color: var(--muted); font-size: 14px; }

.center-cta{
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* FAQ */
.faq{
  display: grid;
  gap: 10px;
}
details{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  padding: 12px 14px;
}
summary{
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}
summary::-webkit-details-marker{ display:none; }
details p{
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 14px;
}

.fineprint{
  margin-top: 12px;
  color: var(--faint);
  font-size: 12px;
}

/* Final CTA */
.final{
  padding: 54px 0 64px;
}
.final-inner{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  padding: 22px;
  box-shadow: var(--shadow);
  text-align: center;
}
.final-inner p{
  color: var(--muted);
  margin: 8px auto 0;
  max-width: 70ch;
}
/* --- Center CTA in final section (CCC) --- */
.final .cta-row{
  justify-content: center;
}
/* ---- FINAL CTA disclosure / privacy text (force small like note/tip) ---- */
.final .disclosure{
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #6b7280 !important;
  font-weight: 400 !important;
  text-align: left !important;
  width: 100% !important;
  max-width: none !important;
  margin: 12px 0 0 !important;
}

.final .disclosure strong{
  font-weight: 600 !important;
}

/* Footer */
.site-footer{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  color: var(--faint);
}
.footer-inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.footer-title{ font-weight: 900; color: rgba(255,255,255,0.85); margin-bottom: 6px; }
.footer-text{ font-size: 13px; }
.footer-right{ display: flex; gap: 12px; flex-wrap: wrap; }
.footer-link{
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.80);
}
.footer-link:hover{ background: rgba(255,255,255,0.06); }

/* ---------- Responsive ---------- */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .nav{ display: none; } /* keep it simple on mobile */
}
@media (max-width: 820px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction: column; }
}
.final{
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.site-footer{
  margin-top: 0 !important;
}

/* --- CTA row: buttons + privacy full width under them --- */
.final .cta-row{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;            /* ключевое */
}

.final .cta-row .privacy-note{
  flex: 0 0 100%;             /* на всю ширину строки */
  max-width: 100%;
  margin: 10px 0 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
  font-weight: 400;
}

.final .cta-row .privacy-note strong{
  font-weight: 600;
}

/* --- Убираем огромные отступы сверху/снизу у финального блока --- */
.final{
  padding-top: 24px !important;
  padding-bottom: 10px !important;
  margin: 0 !important;
}

/* --- Футер: без лишнего воздуха --- */
.site-footer{
  margin-top: 0 !important;
  padding-top: 12px !important;
  padding-bottom: 0px !important;
}
/* ===== FINAL CTA FIX (place at the VERY END of styles.css) ===== */

/* меньше воздуха вокруг всего финального блока */
.final{
  padding: 24px 0 12px !important;
  margin: 0 !important;
}

/* внутри карточки — оставляем центр для заголовка/кнопок */
.final-inner{
  text-align: center;
}

/* кнопки по центру */
.final-inner .cta-row{
  justify-content: center;
  margin-bottom: 8px;
}

/* privacy — мелкий, на всю ширину, НЕ в колонку */
.final-inner .privacy-note{
  width: 100%;
  max-width: none;
  margin: 10px 0 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
  color: var(--faint);
  font-weight: 400;
}

.final-inner .privacy-note strong{
  font-weight: 600;
}

/* футер без лишнего воздуха */
.site-footer{
  margin-top: 0 !important;
  padding: 12px 0 !important;
}