/* IGO SERVICE — исправление карточек на планшетах */
@media (min-width: 651px) and (max-width: 1199px) {

  #cards .card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  #cards .card > .visual {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    height: clamp(215px, 30vw, 300px);
    min-height: 0;
    max-height: 300px;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 20px;
    overflow: hidden;
  }

  #cards .card > .visual img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    object-fit: contain;
  }

  #cards .card > .body {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding: 18px 18px 22px;
    overflow-wrap: anywhere;
  }

  #cards .card > .body h2 {
    position: static;
    height: auto;
    max-height: none;
    margin: 0 0 10px;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.3;
  }
}
