/* ===========================================================================
   style.css — шаблон intro компонента skyweb24:promo.about (вступление под
   заголовком страницы, Figma 1332:17522). Битрикс подключает его сам.
   =========================================================================== */

@layer blocks {

  /* Подзаголовок — 10px под h1 шапки (у h1 своего нижнего отступа нет) */
  .intro__lead {
    max-width: 781px;
    margin: 10px auto 0;
    text-align: center;
    text-wrap: balance;
  }

  .intro__lead > :first-child { margin-top: 0; }
  .intro__lead > :last-child { margin-bottom: 0; }

  .intro__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 12px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
  }

  .intro__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    background: var(--color-blue-50);
    isolation: isolate;
  }

  /* При наведении — светлый градиент, плавно, как у карточек «Условий»
     (news.list conditions): градиент — слоем с прозрачностью, сам фон-
     градиент браузер плавно не меняет */
  .intro__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--gradient-light);
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }

  .intro__card:hover::before { opacity: 1; }

  .intro__value { color: var(--color-text); }

  .intro__actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
  }

  @media (width >= 1280px) {
    .intro__cards { margin-top: 40px; }
    .intro__card { min-height: 110px; }
    .intro__actions { margin-top: 40px; }
  }
}
