/* Block: cards. Markup: templates/modular/cards.html.twig
   V6: .simple-card (simple), .mechanism-steps (steps), .pt-card (feature); .two/.three/.four-col */
.cards {
  & .cards__grid {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  & .cards__grid--2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  & .cards__grid--3 { grid-template-columns: repeat(3, 1fr); }
  & .cards__grid--4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }

  & .cards__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    color: inherit;
    text-decoration: none;
  }

  & .cards__title { margin: 0; letter-spacing: -.04em; }
  & .cards__text { margin: 0; color: var(--muted); }
  & .cards__bullets { margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
  & .cards__more { margin-top: auto; padding-top: 18px; font-size: 12px; font-weight: 800; color: var(--teal); }

  /* --- simple (V6 .simple-card) --- */
  & .cards__grid--simple .cards__item {
    min-height: 210px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    transition: transform .2s, border-color .2s;
  }

  & .cards__grid--simple a.cards__item:hover { transform: translateY(-3px); border-color: #9dccd5; }
  & .cards__grid--simple .cards__symbol { min-height: 36px; font-size: 24px; font-weight: 900; color: var(--teal); }
  & .cards__grid--simple .cards__title { margin: 20px 0 10px; font-size: 19px; }
  & .cards__grid--simple .cards__text { font-size: 13px; line-height: 1.75; }

  /* --- steps (V6 .mechanism-steps) --- */
  & .cards__grid--steps .cards__item {
    min-height: 230px;
    padding: 30px 28px;
    border-top: 3px solid #1388a0;
    background: #f4f9fa;
  }

  & .cards__grid--steps .cards__symbol { font-size: 13px; font-weight: 900; letter-spacing: .12em; color: var(--teal); }
  & .cards__grid--steps .cards__title { margin: 28px 0 16px; font-size: 21px; }
  & .cards__grid--steps .cards__text { font-size: 14px; line-height: 1.7; }

  /* steps on a grey section: keep the cards visible */
  &.section--soft .cards__grid--steps .cards__item { background: var(--white); }

  /* --- feature (V6 .pt-card) --- */
  & .cards__grid--feature .cards__item {
    padding: 35px;
    border: 1px solid #d7e8ec;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 10px 30px #0f3c4c09;
  }

  & .cards__grid--feature .cards__symbol { font-size: 46px; font-weight: 850; letter-spacing: -.07em; line-height: 1.1; color: var(--teal); }
  & .cards__grid--feature .cards__title { margin: 15px 0; font-size: 26px; }
  & .cards__grid--feature :is(.cards__text, .cards__bullets) { font-size: 14px; line-height: 1.8; }

  @media (max-width: 800px) {
    & :is(.cards__grid--3, .cards__grid--4) { grid-template-columns: repeat(2, 1fr); }
    & .cards__grid--2 { grid-template-columns: 1fr; }
    & .cards__grid--steps { grid-template-columns: 1fr; }
  }

  @media (max-width: 520px) {
    & :is(.cards__grid--3, .cards__grid--4) { grid-template-columns: 1fr; }
    & .cards__grid--simple .cards__item { min-height: 0; }
    & .cards__grid--feature .cards__item { padding: 26px 22px; }
  }
}
