/* landing-hero.css — первый экран лендинга.

   Блок всегда тёмный, независимо от темы сайта: так задуман референс —
   светящийся синий фон и ноутбук с реальным интерфейсом курса. Ниже по
   странице тема снова работает как обычно. */

.heroX {
  --hx-r: 4px;                          /* радиус чипов и кнопок первого экрана */
  position: relative;
  overflow: hidden;
  padding: 28px 0 0;
  background:
    radial-gradient(115% 80% at 6% 2%, rgba(41, 121, 214, .34), transparent 56%),
    radial-gradient(90% 70% at 82% 18%, rgba(35, 177, 131, .16), transparent 62%),
    radial-gradient(70% 60% at 50% 100%, rgba(30, 90, 170, .22), transparent 70%),
    /* полупрозрачный, чтобы сквозь первый экран просвечивала фотография неба */
    linear-gradient(180deg, rgba(6, 10, 18, .62) 0%, rgba(7, 12, 22, .7) 55%, rgba(7, 11, 19, .82) 100%);
  color: #eef2f8;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
/* математические символы на фоне — заметнее, чем на светлой теме,
   иначе на почти чёрном фоне они пропадают совсем */
/* фотография ночных гор поверх градиента первого экрана: еле заметная,
   с прозрачным центром — текст и ноутбук остаются контрастными */
.heroX::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../img/hero/sky.webp") center top / cover no-repeat;
  opacity: .62; filter: blur(1.5px);
  -webkit-mask-image: radial-gradient(96% 80% at 50% 34%, transparent 4%, rgba(0, 0, 0, .45) 44%, #000 76%, rgba(0, 0, 0, .3) 92%, transparent 100%);
  mask-image: radial-gradient(96% 80% at 50% 34%, transparent 4%, rgba(0, 0, 0, .45) 44%, #000 76%, rgba(0, 0, 0, .3) 92%, transparent 100%);
}
.heroX > * { position: relative; z-index: 1; }

.heroX .hero-math { inset: 0 0 auto 0; height: 72%; }   /* только верхняя часть: в полосу с отзывами символы не лезут */
.heroX .hero-math span { opacity: .14; }
.heroX .hero-math span.v2 { opacity: .13; }
.heroX .hero-math span.v3 { opacity: .12; }

.hx-wrap {
  width: 100%; max-width: 1640px; margin: 0 auto;
  padding: 0 clamp(20px, 4.2vw, 76px);
}

.hx-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center; gap: 10px;
}

/* ---------- левая колонка ---------- */
.hx-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; white-space: nowrap;
  font: 700 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: #8fa3bd;
}
.hx-eyebrow i { width: 1px; height: 12px; border-radius: 0; background: rgba(255, 255, 255, .32); font-style: normal; }

.heroX h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.15vw, 48px); font-weight: 800; line-height: 1.08;
  letter-spacing: -.035em; color: #fff;
}
.heroX h1 .hx-accent {
  background: linear-gradient(96deg, #2ec5a4 0%, #4a94ec 62%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hx-sub {
  margin: 0 0 24px; max-width: 660px;
  font-size: clamp(15px, 1.1vw, 17px); line-height: 1.62; color: #a9b8cc;
}

/* ---------- чипы-возможности ---------- */
.hx-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 24px; max-width: 720px; }
.hx-feat {
  display: flex; align-items: center; gap: 9px; padding: 10px 11px; min-width: 0;
  border-radius: var(--hx-r); background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
}
.hx-feat i {                            /* сплошная синяя плашка с белым знаком */
  flex: none; width: 28px; height: 28px; border-radius: 8px; font-style: normal;
  display: grid; place-items: center; color: #fff;
  background: #2f7fe0;
}
.hx-feat i svg { width: 15px; height: 15px; display: block; }
.hx-feat > span { min-width: 0; }
.hx-feat b { display: block; font: 700 12.5px/1.25 var(--sans); color: #eef2f8; white-space: nowrap; }
.hx-feat span span { display: block; margin-top: 1px; font-size: 10.5px; line-height: 1.3; color: #8496ad; }
@media (max-width: 1300px) { .hx-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-feat b { white-space: normal; } }

/* ---------- кнопки ---------- */
.hx-cta { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 15px; }
.hx-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px;
  border-radius: var(--hx-r); font: 700 15.5px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .13s ease, filter .15s ease, border-color .15s ease, background .15s ease;
}
.hx-btn.primary {
  color: #04121a; background: linear-gradient(96deg, #2ec5a4, #4a94ec);
  box-shadow: 0 16px 36px -16px rgba(46, 197, 164, .85);
}
.hx-btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.hx-btn.ghost { color: #dfe7f2; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16); }
.hx-btn.ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.hx-btn .arw { font-size: 17px; line-height: 1; }

.hx-micro { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #7e90a8; }
.hx-micro span { display: inline-flex; align-items: center; gap: 7px; }
.hx-micro span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #3c5a80; }

/* ---------- правая колонка: ноутбук ---------- */
/* композиция из трёх слоёв: свечение — ноутбук — рукописная подпись */
.hx-shot {
  position: relative; margin-right: 26px;
  transform: translate(3.5%, 3%) scale(1.09); transform-origin: 50% 50%;
}
.hx-shot img.hx-laptop {
  position: relative; z-index: 1;
  display: block; width: 108%; max-width: none; height: auto; margin-left: -4%;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, .5));
}
.hx-shot img.hx-glow {
  position: absolute; z-index: 0; left: 8%; top: 26%; width: 92%; height: auto;
  opacity: .7; pointer-events: none;
}
.hx-shot img.hx-note {
  position: absolute; z-index: 2; left: -7%; top: 5%; width: 40%; height: auto;
  pointer-events: none;
}
@media (max-width: 1240px) { .hx-shot img.hx-note { display: none; } }
.hx-side {
  position: absolute; right: clamp(6px, .8vw, 16px); top: 46%; z-index: 2; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  pointer-events: none;
}
.hx-side span {
  writing-mode: vertical-rl; text-orientation: mixed;
  font: 700 10px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: #4a6684;
}
@media (max-width: 1240px) { .hx-side { display: none; } }

/* ---------- полоса цифр ---------- */
.hx-stats {
  position: relative; z-index: 1; margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .022);
}
.hx-stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 18px 0 20px; }
.hx-stat { text-align: center; }
.hx-stat b { display: block; font: 800 clamp(24px, 2.6vw, 34px)/1 var(--sans); letter-spacing: -.03em; color: #fff; }
.hx-stat b em { font-style: normal; color: #2ec5a4; }
.hx-stat span { display: block; margin-top: 7px; font-size: 12.5px; line-height: 1.4; color: #8496ad; }
.hx-stat .pre { display: block; margin-bottom: 4px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #5f7690; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .hx-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hx-shot { order: 2; margin: 0; transform: none; }
  .hx-shot img.hx-laptop { width: 100%; margin-left: 0; }
  .heroX { padding-top: 34px; }
}
@media (max-width: 620px) {
  /* подпись над заголовком — в две строки: в одну она шире экрана
     и растягивала всю колонку, из-за чего блок уезжал за край */
  .hx-eyebrow { white-space: normal; letter-spacing: .1em; line-height: 1.5; font-size: 10.5px; }
  .hx-eyebrow i { display: none; }
  .heroX h1 { font-size: clamp(26px, 7.4vw, 34px); }
  .hx-sub { font-size: 14.5px; }
  .hx-feats { grid-template-columns: 1fr; }
  .hx-btn { width: 100%; justify-content: center; }
  .hx-stats-in { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px 0 20px; }
}

/* ---------- широкая плашка-призыв в середине страницы ---------- */
.cta-band {
  position: relative; overflow: hidden;
  margin: 0; padding: 0;
  background: #0a1220 url("../img/hero/band-forest.webp") center/cover no-repeat;
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #eef2f8;
}
.cta-band::before {                     /* затемнение, чтобы текст читался поверх леса */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 10, 18, .88) 0%, rgba(6, 10, 18, .68) 42%, rgba(6, 10, 18, .42) 74%, rgba(6, 10, 18, .52) 100%);
}
.cb-in {
  position: relative; z-index: 1;
  width: 100%; max-width: 1640px; margin: 0 auto;
  padding: 44px clamp(20px, 4.2vw, 76px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 260px);
  align-items: center; gap: clamp(18px, 2.6vw, 46px);
}
.cb-title {
  margin: 0; padding: 0;                /* без маркера-полоски, в отличие от заголовков секций */
  font-size: clamp(22px, 2.1vw, 30px); font-weight: 800; line-height: 1.18;
  letter-spacing: -.03em; color: #fff; white-space: nowrap;
}
.cb-title::before { content: none; }
.cb-sub { margin: 0; font-size: clamp(13.5px, .95vw, 15px); line-height: 1.55; color: #a9b8cc; }
.cb-act { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.cb-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px;
  border-radius: 12px; font: 700 15.5px/1 var(--sans); text-decoration: none; white-space: nowrap;
  color: #fff; background: #2f7fe0;
  box-shadow: 0 14px 30px -14px rgba(47, 127, 224, .9);
  transition: transform .13s ease, filter .15s ease, background .15s ease;
}
.cb-btn:hover { background: #3b8cee; transform: translateY(-1px); }
.cb-note { font-size: 12.5px; color: #8496ad; }
.cb-hand { display: block; width: 100%; height: auto; opacity: .92; }

@media (max-width: 1360px) { .cb-hand { display: none; } .cb-in { grid-template-columns: auto minmax(0, 1fr) auto; } }
@media (max-width: 1100px) {
  .cb-in { grid-template-columns: minmax(0, 1fr) auto; }
  .cb-title { white-space: normal; }
}
@media (max-width: 720px) {
  .cb-in { grid-template-columns: 1fr; padding: 26px 18px 28px; gap: 18px; }
  .cb-act { align-items: stretch; }
  .cb-btn { justify-content: center; }
}

/* ---------- полоса под первым экраном: отзывы + цифры ---------- */
.hx-band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: clamp(20px, 3vw, 56px);
  padding-top: 20px; padding-bottom: 22px;
}
.hb-rev { position: relative; min-width: 0; }
.hb-stage { position: relative; min-height: 108px; }
.hb-card {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
}
.hb-card.on { opacity: 1; visibility: visible; transform: none; position: relative; }
.hb-head { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.hb-ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.hb-ava-txt {
  display: grid; place-items: center; font: 800 16px/1 var(--sans); color: #0a1420;
  background: linear-gradient(135deg, #2ec5a4, #4a94ec);
}
.hb-who b { display: block; font: 700 14px/1.2 var(--sans); color: #eef2f8; }
.hb-stars { display: inline-flex; gap: 2px; margin-top: 3px; font-size: 12.5px; color: #3b4d66; }
.hb-stars i { font-style: normal; }
.hb-stars i.on { color: #ffc555; }
.hb-text {
  margin: 0; font-size: 14px; line-height: 1.55; color: #a9b8cc;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hb-nav { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.hb-dots { display: flex; gap: 6px; }
.hb-arrows { display: flex; gap: 6px; margin-left: auto; }
.hb-arw {
  position: relative; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; color: #9fb2c9; overflow: hidden;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .14);
  transition: color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.hb-arw::before {                       /* заливка проявляется при наведении */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, #2ec5a4, #4a94ec);
  opacity: 0; transition: opacity .18s ease;
}
.hb-arw svg { position: relative; width: 15px; height: 15px; }
.hb-arw:hover {
  color: #04121a; border-color: transparent; transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(46, 197, 164, .9);
}
.hb-arw:hover::before { opacity: 1; }
.hb-arw:active { transform: translateY(0) scale(.94); }
.hb-arw:focus-visible { outline: 2px solid #4a94ec; outline-offset: 3px; }
.hb-stage { touch-action: pan-y; cursor: grab; }
.hb-stage.drag { cursor: grabbing; }
.hb-dots button {
  width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .22); transition: background .15s ease, width .15s ease;
}
.hb-dots button.on { width: 18px; border-radius: 4px; background: #2ec5a4; }

.hb-facts { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.hb-fact { text-align: left; }
.hb-fact b { display: block; font: 800 clamp(26px, 2.5vw, 34px)/1 var(--sans); letter-spacing: -.03em; color: #fff; }
.hb-fact span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: #8496ad; }

@media (max-width: 1000px) {
  .hx-band { grid-template-columns: 1fr; gap: 22px; }
  .hb-facts { flex-wrap: wrap; gap: 18px 26px; }
}
@media (max-width: 560px) {
  .hb-stage { min-height: 132px; }
  .hb-fact b { font-size: 24px; }
}

/* ---------- боковая навигация по разделам ---------- */
.snav {
  position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; align-items: stretch; gap: 10px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.snav.on { opacity: 1; visibility: visible; }
.snav-rail {                              /* полоса прогресса прокрутки */
  position: relative; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12);
}
.snav-rail i {
  position: absolute; left: 0; top: 0; width: 100%; height: 0;
  border-radius: 2px; background: linear-gradient(180deg, #2ec5a4, #4a94ec);
}
.snav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.snav-list a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px;
  text-decoration: none; color: #5f7690; transition: color .16s ease;
}
.snav-txt {
  max-width: 116px; text-align: right;
  font: 700 10.5px/1.25 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .85);
}
.snav-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .28); transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.snav-list a:hover { color: #a9b8cc; }
.snav-list a:hover .snav-dot { background: #7fb2ff; }
.snav-list a.on { color: #eaf2ff; }
.snav-list a.on .snav-dot {
  background: #2aa8f0; transform: scale(1.35);
  box-shadow: 0 0 12px rgba(42, 168, 240, .9);
}
.snav-list a:focus-visible { outline: 2px solid #4a94ec; outline-offset: 4px; border-radius: 4px; }

@media (max-width: 1360px) { .snav { display: none; } }
@media (prefers-reduced-motion: reduce) { .snav, .snav-dot, .snav-rail i { transition: none; } }
