.model-family-page {
  background: #fff;
  color: #1f2937;
}

.model-family {
  padding: 56px 0 88px;
}

.model-family__inner {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 16px;
  width: 100%;
}

.model-family h1 {
  color: #001e50;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 34px;
  text-align: center;
}

.model-family__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.model-family__grid--center {
  justify-content: center;
}

.model-family__grid--center .model-family-card {
  max-width: 380px;
  width: 100%;
}

.model-family-card {
  background: #fff;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.model-family-card:hover {
  border-color: #001e50;
  box-shadow: 0 16px 38px rgba(0, 30, 80, .12);
  transform: translateY(-4px);
}

.model-family-card__image {
  background: #f5f7fb;
  display: block;
  overflow: hidden;
  padding: 18px;
}

.model-family-card__image img {
  aspect-ratio: 16 / 10;
  display: block;
  height: auto;
  object-fit: contain;
  transition: transform .35s ease;
  width: 100%;
}

.model-family-card:hover .model-family-card__image img {
  transform: scale(1.04);
}

.model-family-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 26px;
}

.model-family-card__body h2 {
  color: #001e50;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 14px;
}

.model-family-card__button {
  align-items: center;
  align-self: flex-start;
  background: #001e50;
  border: 1px solid #001e50;
  border-radius: 999px;
  color: #fff !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 9px;
  line-height: 1;
  margin: 0;
  padding: 11px 18px;
  text-decoration: none;
  transition: background .22s ease, gap .22s ease;
}

.model-family-card__button:hover {
  background: #003399;
  gap: 13px;
}

.model-family-page--teramont .model-family {
  border-bottom: 1px solid #d9d9d9;
  padding: 24px 0 46px;
}

.model-family-page--teramont .model-family h1 {
  color: #111;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 34px;
}

.model-family-page--teramont .model-family__grid {
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 648px;
}

.model-family-page--teramont .model-family-card {
  border-color: #d6dbe3;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
  min-height: 278px;
  text-align: center;
}

.model-family-page--teramont .model-family-card__image {
  background: #fff;
  padding: 66px 46px 0;
}

.model-family-page--teramont .model-family-card__image img {
  aspect-ratio: 16 / 5.9;
}

.model-family-page--teramont .model-family-card__body {
  align-items: center;
  padding: 24px 24px 39px;
}

.model-family-page--teramont .model-family-card__body h2 {
  color: #111;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 15px;
  text-align: center;
}

.model-family-page--teramont .model-family-card__button {
  align-self: center;
  background: #001e50;
  border-color: #001e50;
  font-size: 11px;
  gap: 8px;
  padding: 8px 14px;
}

@media (max-width: 960px) {
  .model-family__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .model-family {
    padding: 36px 0 60px;
  }

  .model-family__grid {
    grid-template-columns: 1fr;
  }

  .model-family__grid--center .model-family-card {
    max-width: none;
  }

  .model-family-card__body {
    padding: 20px;
  }

  .model-family-page--teramont .model-family__grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .model-family-page--teramont .model-family-card__image {
    padding: 44px 38px 10px;
  }
}
