/* ==========================================================================
   Секция «Кейсы» — светлая, 3 карточки с картинкой (по макету)
   ========================================================================== */

.itb-section--cases {
  background: #fff;
  color: #16181f;
}
[data-theme="light"] .itb-section--cases { background: #fff; }

/* Топбар: заголовок слева, ссылка справа */
.itb-section--cases .itb-section__topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.itb-section--cases .itb-section__topbar .itb-section__header { margin-bottom: 0; }
.itb-section--cases .itb-section__title { color: #16181f; }
.itb-section__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: #152040;
  white-space: nowrap;
}
.itb-section__link:hover { text-decoration: underline; }

/* Сетка карточек */
.itb-cards--cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.itb-card--case {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.itb-card--case:hover {
  border-color: #c9d0e6;
  box-shadow: 0 20px 44px -30px rgba(21, 32, 64, 0.4);
}

.itb-card--case .itb-card__media {
  display: block;
  aspect-ratio: 411 / 172;
  overflow: hidden;
}
.itb-card--case .itb-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.itb-card--case .itb-tag {
  margin: 22px 24px 0;
  align-self: flex-start;
  color: #2233d6;
  background: #eef0fc;
  border: 1px solid #dfe3f8;
}
.itb-card--case .itb-card__title {
  margin: 14px 24px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: #16181f;
}
.itb-card--case .itb-card__title a { color: inherit; }
.itb-card--case .itb-card__title a:hover { color: #2233d6; }
.itb-card--case .itb-card__desc {
  margin: 10px 24px 26px;
  font-size: 14px;
  line-height: 1.5;
  color: #565c6a;
}

@media (max-width: 900px) {
  .itb-cards--cases { grid-template-columns: 1fr; max-width: 460px; }
}
