/* DSTRC CSS: post 17 | generated 2026-02-04 07:20:08 UTC */
/* Секция-герой, изолированная от остальной страницы */
  #matrix-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #050609; /* графитово-чёрный */
    color: #f9fafb;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont,
      "Segoe UI", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
  }

  #matrix-hero *,
  #matrix-hero *::before,
  #matrix-hero *::after {
    box-sizing: border-box;
  }

  /* Канвас матрицы заполняет секцию */
  #matrix-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -2;
  }

  /* Оверлей — лёгкая подсветка центра, без сильного затемнения */
  #matrix-hero .mh-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.08), transparent 55%);
  }

  /* Слой для флеша при клике по пилюле */
  #matrix-hero .mh-flash-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 50% 50%, rgba(248, 250, 252, 0.25), transparent 60%);
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.45s ease-out, transform 0.45s ease-out;
    z-index: 2;
  }

  #matrix-hero .mh-flash-layer.mh-flash-visible {
    opacity: 1;
    transform: scale(1);
  }

  /* Контент по центру */
  #matrix-hero .mh-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    padding: 40px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.45s ease-out;
  }

  #matrix-hero .mh-card {
    margin: 0 auto;
    max-width: 720px;
    text-align: center;
    padding: 32px 24px 28px;
    border-radius: 32px;
    /* фон чуть прозрачный, чтобы цифры были видны под ним */
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.02), transparent 55%),
      rgba(5, 6, 9, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.9),
      0 26px 60px rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(14px);
    transition:
      transform 0.45s ease-out,
      opacity 0.45s ease-out,
      filter 0.45s ease-out;
  }

  /* Эффект “провала” хедера при клике по пилюле */
  #matrix-hero.mh-hero-transition .mh-inner {
    transform: scale(0.98);
  }

  #matrix-hero.mh-hero-transition .mh-card {
    transform: scale(0.96) translateY(8px);
    opacity: 0.4;
    filter: blur(2px);
  }

  /* Логотип "САЙТЭЛИТ" как дорогая надпись */
  #matrix-hero .mh-brand {
    margin: 0 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  #matrix-hero .mh-brand-mark {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background:
      radial-gradient(circle at 30% 30%, #ffffff 0, #60a5fa 45%, #0f172a 100%);
    box-shadow:
      0 0 12px rgba(96, 165, 250, 0.7),
      0 0 0 1px rgba(15, 23, 42, 0.9);
  }

  #matrix-hero .mh-brand-text {
    font-family: "Unbounded", system-ui, sans-serif;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    display: inline-flex;
    gap: 4px;
  }

  #matrix-hero .mh-brand-main {
    color: #e5e7eb;
  }

  #matrix-hero .mh-brand-accent {
    background: linear-gradient(120deg, #60a5fa, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* Базовый класс плавного появления по очереди */
  #matrix-hero .mh-anim {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(10px);
    animation: mh-fade-in 0.85s ease forwards;
  }

  #matrix-hero .mh-delay-0 { animation-delay: 0.3s; }
  #matrix-hero .mh-delay-1 { animation-delay: 0.6s; }
  #matrix-hero .mh-delay-2 { animation-delay: 1.0s; }
  #matrix-hero .mh-delay-3 { animation-delay: 1.4s; }
  #matrix-hero .mh-delay-4 { animation-delay: 1.8s; }
  #matrix-hero .mh-delay-5 { animation-delay: 2.2s; }
  #matrix-hero .mh-delay-7 { animation-delay: 3.0s; }

  @keyframes mh-fade-in {
    0% {
      opacity: 0;
      transform: translateY(18px);
      filter: blur(12px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }

  /* отдельная анимация «подлёта» пилюль издалека */
  #matrix-hero .mh-pill-anim {
    opacity: 0;
    transform: scale(0.4) translateY(16px);
    filter: blur(18px);
    transform-origin: center center;
    animation: mh-pill-in 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  }

  #matrix-hero .mh-pill-left { animation-delay: 2.6s; }  /* сначала красная */
  #matrix-hero .mh-pill-right { animation-delay: 2.9s; } /* затем синяя */

  @keyframes mh-pill-in {
    0% {
      opacity: 0;
      transform: scale(0.4) translateY(16px);
      filter: blur(18px);
    }
    60% {
      opacity: 1;
      transform: scale(1.06) translateY(-2px);
      filter: blur(2px);
    }
    100% {
      opacity: 1;
      transform: scale(1) translateY(0);
      filter: blur(0);
    }
  }

  /* Верхняя подпись */
  #matrix-hero .mh-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
  }

  /* Заголовок */
  #matrix-hero .mh-title {
    margin: 0 0 10px;
    font-family: "Unbounded", system-ui, sans-serif;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: #f9fafb;
  }

  #matrix-hero .mh-title span {
    color: #e5e7eb;
  }

  /* Основной текст */
  #matrix-hero .mh-lead {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.6;
    color: #d1d5db;
  }

  #matrix-hero .mh-lead-secondary {
    margin-top: 2px;
    color: #9ca3af;
  }

  /* Чипсы с фишками */
  #matrix-hero .mh-chips {
    margin: 18px auto 22px;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 640px;
  }

  #matrix-hero .mh-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(10, 10, 12, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.55);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #e5e7eb;
  }

  #matrix-hero .mh-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0, #9ca3af 45%, #111827 100%);
  }

  /* Вопрос над пилюлями */
  #matrix-hero .mh-question {
    margin: 0 0 14px;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9ca3af;
  }

  #matrix-hero .mh-question-strong {
    display: block;
    margin-top: 4px;
    font-family: "Unbounded", system-ui, sans-serif;
    font-size: 15px;
    letter-spacing: 0.08em;
    color: #f9fafb;
  }

  /* Ряд пилюль по центру */
  #matrix-hero .mh-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
  }

  /* Базовый вид пилюли-кнопки */
  #matrix-hero .mh-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 28px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f9fafb;
    cursor: pointer;
    transform: translateZ(0);
    transition:
      transform 0.18s ease-out,
      box-shadow 0.18s ease-out,
      filter 0.18s ease-out,
      background 0.22s ease-out;
    overflow: hidden;
    border: 1px solid transparent;
  }

  /* Общий слой блика */
  #matrix-hero .mh-pill::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.9;
  }

  /* Верхний глянец */
  #matrix-hero .mh-pill::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 0;
    height: 55%;
    border-radius: 999px;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0)
    );
    opacity: 0.7;
  }

  /* Красная пилюля — объёмная капсула */
  #matrix-hero .mh-pill--red {
    border-color: #fecaca;
    background: linear-gradient(180deg, #ff4b68 0%, #e01034 55%, #7f1d1d 100%);
    box-shadow:
      0 10px 0 rgba(0, 0, 0, 0.75),
      0 18px 30px rgba(0, 0, 0, 0.95);
  }

  #matrix-hero .mh-pill--red::before {
    background: radial-gradient(
      circle at 30% 0%,
      rgba(255, 255, 255, 0.35),
      transparent 65%
    );
  }

  /* Синяя пилюля */
  #matrix-hero .mh-pill--blue {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #3b82f6 0%, #2150d9 55%, #1e3a8a 100%);
    box-shadow:
      0 10px 0 rgba(0, 0, 0, 0.75),
      0 18px 30px rgba(0, 0, 0, 0.95);
  }

  #matrix-hero .mh-pill--blue::before {
    background: radial-gradient(
      circle at 30% 0%,
      rgba(255, 255, 255, 0.35),
      transparent 65%
    );
  }

  /* Текст и стрелка — максимально читаемые */
  #matrix-hero .mh-pill-label,
  #matrix-hero .mh-pill-arrow {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  }

  #matrix-hero .mh-pill-arrow {
    font-size: 16px;
    line-height: 1;
  }

  /* Эффект “нажатия” при наведении — пилюля уменьшается и подсвечивается */
  #matrix-hero .mh-pill:hover {
    transform: translateY(3px) scale(0.96);
    box-shadow:
      0 6px 0 rgba(0, 0, 0, 0.9),
      0 12px 20px rgba(0, 0, 0, 0.95),
      0 0 18px rgba(255, 255, 255, 0.22);
    filter: brightness(1.05) saturate(1.05);
  }

  /* Ещё глубже при клике */
  #matrix-hero .mh-pill:active {
    transform: translateY(4px) scale(0.94);
    box-shadow:
      0 3px 0 rgba(0, 0, 0, 0.9),
      0 7px 12px rgba(0, 0, 0, 0.95);
    filter: brightness(0.98);
  }

  /* ПОДСВЕТКА ВЫБРАННОЙ ПИЛЮЛИ В МОМЕНТ ПЕРЕХОДА */
  #matrix-hero .mh-pill--red.mh-pill--chosen {
    box-shadow:
      0 0 18px rgba(248, 113, 113, 0.9),
      0 0 32px rgba(248, 113, 113, 0.6),
      0 12px 26px rgba(0, 0, 0, 0.95);
    filter: brightness(1.08) saturate(1.12);
  }

  #matrix-hero .mh-pill--blue.mh-pill--chosen {
    box-shadow:
      0 0 18px rgba(96, 165, 250, 0.9),
      0 0 32px rgba(96, 165, 250, 0.6),
      0 12px 26px rgba(0, 0, 0, 0.95);
    filter: brightness(1.08) saturate(1.12);
  }

  #matrix-hero .mh-pill:focus-visible {
    outline: 2px solid rgba(249, 250, 251, 0.9);
    outline-offset: 3px;
  }

  /* Подпись под пилюлями */
  #matrix-hero .mh-hint {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
  }

  @media (max-width: 600px) {
    #matrix-hero .mh-card {
      padding: 24px 18px 22px;
      border-radius: 24px;
    }

    #matrix-hero .mh-title {
      font-size: 22px;
    }

    #matrix-hero .mh-pills {
      flex-direction: column;
      align-items: center; /* центрируем пилюли на мобильных */
    }

    #matrix-hero .mh-pill {
      width: 100%;
      max-width: 280px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #matrix-hero .mh-anim,
    #matrix-hero .mh-pill-anim {
      animation: none;
      opacity: 1;
      transform: none;
      filter: none;
    }
  }
