/* ============================= */
/* HTU — Neon cards & typography */
/* ============================= */

/* safety: если неон не задан выше */
:root {
  --neon-1: #00ffd1;
  --neon-2: #00bfff;
  --neon-3: #8a5cff;
  --neon-4: #ff45d4;
  --line: rgba(255,255,255,.12);
  --paper: rgba(255,255,255,.06);
}

/* Секция: фон чуть контрастнее + лучи */
.htu {
  position: relative;
  isolation: isolate;
}
.htu::before {
  content: "";
  position: absolute;
  inset: -10% -5% -15% -5%;
  pointer-events: none;
  background:
    radial-gradient(800px 500px at 10% 0%, rgba(138,92,255,.18), transparent 60%),
    radial-gradient(700px 480px at 90% 20%, rgba(0,240,255,.16), transparent 62%);
  z-index: 0;
}

/* Гифка: ярче рамка и свечение */
.htu .htu_gif {
    position: absolute;
    border-radius: var(--brad);
    overflow: hidden;
    width: 23%;
    height: auto;
    z-index: 5;
    rotate: -12deg;
    top: 128px; /* немного ближе к заголовку */
    left: 36px;
    box-shadow:
      0 0 0 2px rgba(0,240,255,.55),
      0 10px 28px rgba(0,0,0,.45),
      0 0 34px rgba(0,240,255,.35),
      0 0 54px rgba(138,92,255,.28);
}

/* Сетка (оставляем как у тебя) */
.htu > div:last-child {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 22px;
  z-index: 1;
}

/* Карточки: стекло + граница + неоновая кайма при ховере */
.htu > div:last-child > div {
  flex: 1 1 48.5%;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid var(--line);
  border-radius: var(--brad);
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition:
    transform .28s cubic-bezier(.2,.9,.3,1),
    border-color .25s ease,
    box-shadow .28s ease,
    background .25s ease;
}
.htu > div:last-child > div:hover {
  transform: translateY(-4px);
  border-color: rgba(0,240,255,.55);
  box-shadow:
    0 0 18px rgba(0,240,255,.45),
    0 0 36px rgba(138,92,255,.35),
    0 12px 34px rgba(0,0,0,.45);
}

/* Акцент-бейдж в карточке (первый p) — неоновый градиент */
.htu > div:last-child > div > div:first-child p:first-child,
.htu > div:last-child > div > p:first-child {
  background:
    linear-gradient(100deg, var(--neon-1), var(--neon-2) 30%, var(--neon-3) 60%, var(--neon-4) 95%);
  padding: 12px 16px;
  border-radius: 14px;
  width: max-content;
  font-weight: 800 !important;
  color: #071015 !important;
  margin-bottom: 28px;
  letter-spacing: .2px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 0 16px rgba(0,240,255,.35);
}

/* Типографика — крупнее и читабельнее */
.htu > div:last-child p {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 18px;            /* было 16–18, делаем стабильные 18 */
  line-height: 1.7;
  color: var(--textP);
}
.htu .fz24 { font-size: 26px !important; }

/* Крупные заголовки внутри карточек (если используешь <p> как тайтл) */
.htu .card-title,
.htu > div:last-child > div > div:first-child p:nth-child(2) {
  font-size: 24px;
  line-height: 1.35;
  color: var(--textMain);
  font-weight: 700;
  margin-bottom: 14px;
}

/* Вторичные тексты — светлее, но не серые */
.htu > div:last-child > div > div > p:last-child,
.htu > div:last-child > div > p:last-child {
  color: var(--textPLighter) !important;
  max-width: 92%;
  margin-top: 10px;
}

/* Специальная высокая карточка (третья) */
.htu > div:last-child > div:nth-child(3) {
  grid-row: span 2;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)),
    radial-gradient(600px 260px at 85% 85%, rgba(0,240,255,.18), transparent 70%);
  border: 1px solid rgba(0,240,255,.45);
}
.htu > div:last-child > div:nth-child(3) p { color: #0c0e13 !important; } /* для светлого блока */

/* Внутренний медиаблок и фон изображений — оставляем, только усилим контраст */
.htu > div:last-child > div:nth-child(3) > img {
  opacity: .6;
  filter: saturate(1.15) contrast(1.08);
}

/* Мини-бейджи/метки, если есть */
.htu .tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,240,255,.12);
  border: 1px solid rgba(0,240,255,.45);
  color: var(--textMain);
  font-size: 13px;
  letter-spacing: .2px;
}

/* Мобилки: крупнее текст, чуть больше паддинги */
@media (max-width: 974px) {
  .htu > div:last-child { gap: 18px; }
  .htu > div:last-child > div { padding: 28px; }
  .htu > div:last-child p { font-size: 17px; line-height: 1.65; }
}
@media (max-width: 768px) {
  .htu > div:last-child {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .htu > div:last-child > div { width: 100%; }
  .htu > div:last-child > div:nth-child(3) > div:nth-child(2),
  .htu > div:last-child > div:nth-child(3) > img { display: none; }
  .htu > div:last-child > div > div:first-child p:first-child,
  .htu > div:last-child > div > p:first-child { margin-bottom: 18px; }
  .htu .htu_gif { width: 38%; top: 90px; left: 16px; rotate: -10deg; }
  .htu > div:last-child p { font-size: 18px; } /* держим крупно и на мобиле */
}

/* Фокус-контуры для доступности */
.htu > div:last-child > div:focus-within {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(0,240,255,.6), 0 0 24px rgba(138,92,255,.35);
}
