.format-tiles {
  align-items: stretch;
}

.format-tiles .format-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 34px;
  overflow: hidden;
  background: #f7f5ef;
  border-color: rgba(5, 42, 68, 0.14);
}

.format-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #00a6a6, #dfc168);
}

.format-number {
  margin-bottom: 48px;
  color: #078b91;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.format-tiles .format-card h3 {
  margin: 0;
  color: #062a44;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.format-promise {
  display: block;
  margin-top: 28px;
  color: #0a3855;
  font-size: 1.3rem;
  line-height: 1.2;
}

.format-card p {
  margin: 18px 0 0;
  color: #38556a;
  font-size: 1rem;
  line-height: 1.62;
}

.format-detail {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(5, 42, 68, 0.14);
  color: #067c83;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.format-tiles .budget-tile {
  background: #062a44 !important;
}

.budget-tile .format-number,
.budget-tile h3 {
  color: white !important;
}

.budget-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 38px 0 12px;
  color: #fff;
  font-size: clamp(2.65rem, 5vw, 4.45rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.budget-amount span,
.budget-amount small {
  color: #dfc168;
  font-size: 1rem;
  letter-spacing: 0;
}

.format-tiles .budget-tile p {
  color: #d2dde4;
}

.format-quote {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding: 16px 18px;
  background: #dfc168;
  color: #062a44 !important;
  border: 0;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 900;
}

.format-quote:hover {
  background: #ebd488;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .format-tiles .format-card {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .format-tiles .format-card {
    min-height: 340px;
    padding: 28px 24px;
  }

  .format-number {
    margin-bottom: 34px;
  }
}
