/* Первый экран главной — hero из Макета 3 (дизайн UDEA), пересаженный в
   шаблон WIUT. Все правила ограничены .hero, чтобы не задевать Bootstrap и
   Helix; переменные тоже объявлены на .hero, а не на :root. */

.hero {
  --font-sans: Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* шрифт Макета 2 */
  --accent: #2563eb;
  --accent-700: #1d4ed8;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --red: #BE1A1A;
  --red-h: #d42020;
  --yellow: #f7b500;
  --r-2xl: 16px;

  position: relative;
  width: 100%;
  /* Шапка фиксированная и прозрачная, hero занимает весь экран, как в Макете 3. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0b1a2b;
  font-family: var(--font-sans);
  color: #fff;
}
.hero h1, .hero p { margin: 0; }
/* Шаблон WIUT навешивает свой шрифт через !important, перебиваем тем же. */
#hero, #hero * { font-family: var(--font-sans) !important; }
.hero a { color: inherit; text-decoration: none; }
.hero img, .hero svg, .hero video { display: block; max-width: 100%; }
/* Шаблон WIUT уменьшает span внутри заголовков — наследуем размер от h1. */
#hero .hero__title span { font: inherit !important; }
.hero .ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute;
  inset: 0;
  /* Темнее слева, где заголовок; правее фото остаётся видимым. */
  background:
    linear-gradient(100deg, rgba(2, 16, 33, .88) 0%, rgba(2, 16, 33, .66) 42%, rgba(2, 16, 33, .40) 100%),
    linear-gradient(to top, rgba(2, 16, 33, .55) 0%, rgba(2, 16, 33, 0) 30%);
}
.hero__inner {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero__content { padding: 12px; width: 100%; }
/* На телефоне шапка фиксированная (≈80px), а полоса уровней внизу высокая:
   даём контенту запас сверху, иначе чип и заголовок уходят под меню. */
@media (max-width: 767px) {
  .hero__inner { padding-top: 104px; padding-bottom: 12px; }
  .hero__content { padding: 12px 4px; }
  .hero__eyebrow { margin-bottom: 18px; }
  #hero .hero__title { margin-bottom: 16px; }
  .hero .hero__text { margin-bottom: 28px; }
  .hero__actions { flex-direction: column; gap: 10px; }
  .hero-btn { width: 100%; min-height: 54px; }
}

/* Стеклянный чип: живая точка + статус + год. */
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 8px 15px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff; font-size: 13px; line-height: 1; font-weight: 600; letter-spacing: .01em;
}
.hero__eyebrow em {
  display: inline-flex; align-items: center; gap: 10px;
  font-style: normal; font-weight: 500; color: rgba(255, 255, 255, .62);
}
.hero__eyebrow em::before { content: ""; width: 1px; height: 12px; background: rgba(255, 255, 255, .28); }
.hero__live {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
  animation: hero-live 2.2s ease-out infinite;
}
@keyframes hero-live {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Заголовок, текст и кнопки — как в hero Макета 2 (Geist 600, плотный трекинг,
   синяя кнопка со стрелкой + «призрак»). #hero нужен для специфичности:
   шаблон WIUT задаёт h1 свой шрифт через id-селектор. */
#hero .hero__title, #hero .hero__title span {
  font-family: var(--font-sans) !important;
  font-size: 36px;
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -.035em;
  max-width: 840px;
  margin-bottom: 22px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .3);
}
/* .hero .hero__text — иначе margin перебивает сброс «.hero p { margin: 0 }» выше. */
.hero .hero__text { color: rgba(255, 255, 255, .85); font-size: 17px; line-height: 1.6; font-weight: 400; max-width: 600px; margin: 0 0 30px; }

/* .btn / .btn--ghost Макета 2; класс переименован, чтобы не пересекаться
   с .btn Bootstrap из шаблона WIUT. */
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 10px;
  font-size: 15.5px; font-weight: 500; line-height: 1; letter-spacing: -.01em;
  color: #fff; background: var(--accent); border: 0;
  white-space: nowrap;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.hero-btn:hover { background: var(--accent-700); color: #fff; box-shadow: 0 10px 24px rgba(37, 99, 235, .28); transform: translateY(-1px); }
.hero-btn:active { transform: none; box-shadow: none; }
.hero-btn:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }
.hero-btn .ico { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.hero-btn:hover .ico { transform: translateX(3px); }
.hero-btn--ghost { background: transparent; box-shadow: none; border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.hero-btn--ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .55); color: #fff; box-shadow: none; }

.hero__links { display: none; flex-direction: column; gap: 12px; width: 340px; margin-right: 12px; }
.hero-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
  transition: background-color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.hero-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(247, 181, 0, .55);
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .3);
}
.hero-link:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.hero-link__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(247, 181, 0, .16);
  color: var(--yellow);
  transition: background-color .25s;
}
.hero-link__icon .ico { width: 19px; height: 19px; }
.hero-link:hover .hero-link__icon { background: rgba(247, 181, 0, .28); }
.hero-link__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hero-link__title { font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.hero-link__note { font-size: 12.5px; font-weight: 500; line-height: 1.3; color: rgba(255, 255, 255, .68); }
.hero-link__go {
  flex: none;
  margin-left: auto;
  width: 16px; height: 16px;
  opacity: .5;
  transition: transform .25s, opacity .25s;
}
.hero-link:hover .hero-link__go { opacity: 1; transform: translateX(3px); }

/* Соцсети внизу — только на мобильных, на десктопе они в верхней полосе. */
.hero__social {
  position: relative;
  z-index: 30;
  padding: 0 0 18px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.hero__social .social-row { display: flex; gap: 10px; pointer-events: auto; }
.hero__social .social-row__item {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
}
.hero__social .social-row__item img { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) { .hero__live { animation: none; } }
@media (min-width: 640px) {
  .hero__social { display: none; }
}
@media (min-width: 768px) {
  .hero__inner { flex-direction: row; justify-content: space-between; }
  .hero__content { width: auto; }
  #hero .hero__title { font-size: 46px; }
  .hero__links { display: flex; }
}
@media (min-width: 1024px) { #hero .hero__title { font-size: 64px; } }

/* ============================================================
   Нижняя полоса-указатель уровней обучения (из Макета 2)
   ============================================================ */
.hero__index {
  --hi-accent: #2563eb;
  --hi-accent-soft: #60a5fa;
  --hi-ease: cubic-bezier(.2, .7, .2, 1);
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, .13);
  background: linear-gradient(180deg, rgba(5, 8, 15, .34), rgba(5, 8, 15, .72));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* В Макете 2 полоса набрана Geist; #hero * выше принудительно ставит Montserrat. */
#hero .hero__index, #hero .hero__index * { font-family: Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; }
.hero__index-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.hindex {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 7px;
  padding: 22px 26px 24px;
  color: #fff;
  transition: background .25s var(--hi-ease);
}
.hindex + .hindex { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .14); }
.hindex::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--hi-accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--hi-ease);
}
.hindex:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.hindex:hover::before, .hindex:focus-visible::before { transform: none; }
.hindex__title { font-size: 21px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.hindex__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: rgba(255, 255, 255, .58); }
.hindex__meta .ico { width: 18px; height: 18px; color: var(--hi-accent-soft); opacity: .9; transition: transform .25s var(--hi-ease), opacity .25s; }
.hindex:hover .hindex__meta .ico, .hindex:focus-visible .hindex__meta .ico { opacity: 1; transform: translateX(4px); }
.hindex:focus-visible { outline: 2px solid var(--hi-accent-soft); outline-offset: -3px; }
@media (max-width: 991px) {
  .hero__index-inner { grid-template-columns: 1fr 1fr; }
  .hindex { padding: 18px 20px 20px; }
  .hindex:nth-child(n+3) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
  .hindex:nth-child(4) { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .14); }
}
@media (max-width: 640px) {
  .hero__index-inner { grid-template-columns: 1fr; }
  .hindex { padding: 14px 0 15px; }
  .hindex + .hindex { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
  .hindex:nth-child(4) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
  .hindex__title { font-size: 20px; }
}
