/* Shared catalog rhythm for server product cards on every product page. */
.catalog-page .model-grid,
.ded-card-grid,
.gpu-card-grid { grid-auto-flow: row; align-items: stretch; gap: 18px; }
.catalog-page .model-grid,
.ded-card-grid,
.gpu-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gpu-product-groups { grid-template-columns: minmax(0, 1fr); gap: 42px; }
.gpu-product-groups.is-single { grid-template-columns: minmax(0, 1fr); }

.catalog-page .model-card,
.ded-card,
.gpu-card { min-width: 0; height: 100%; border: 1px solid #dce8f3; border-radius: 12px; box-shadow: 0 9px 26px #123e620d; }
.catalog-page .model-image,
.ded-card-visual,
.gpu-card-visual { height: 190px; min-height: 190px; background: #fff; }
.catalog-page .model-image img,
.ded-card-visual img,
.gpu-card-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.catalog-page .model-card-body,
.ded-card-body,
.gpu-card-body { min-width: 0; padding: 18px 20px 20px; }
.catalog-page .model-card h3,
.ded-card h3,
.gpu-card h3 { min-height: 2.45em; margin: 0 0 7px; font-size: 19px; line-height: 1.22; letter-spacing: -.035em; overflow-wrap: anywhere; }
.catalog-page .model-blurb,
.ded-card-body > p,
.gpu-card-body > p:not(.gpu-match-reason) { min-height: 2.8em; margin: 0 0 12px; color: #607b94; font-size: 12px; line-height: 1.4; }
.catalog-page .model-card dl,
.ded-card dl,
.gpu-card dl { margin: 0 0 16px; border: 0; }
.catalog-page .model-card dl > div,
.ded-card dl > div,
.gpu-card dl > div { display: flex; align-items: start; justify-content: space-between; gap: 12px; min-height: 35px; padding: 7px 0; border: 0; border-bottom: 1px solid #e8eff6; font-size: 12px; line-height: 1.35; }
.catalog-page .model-card dt,
.ded-card dt,
.gpu-card dt { flex: 0 0 auto; color: #718aa2; font-weight: 500; }
.catalog-page .model-card dd,
.ded-card dd,
.gpu-card dd { min-width: 0; max-width: 72%; margin: 0; color: #23466b; font-weight: 750; text-align: right; white-space: normal; overflow-wrap: anywhere; }
.catalog-page .model-card-footer,
.ded-card-bottom,
.gpu-card-bottom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; margin-top: auto; padding-top: 16px; border-top: 1px solid #e8eff6; }
.catalog-page .model-card-footer > div,
.ded-card-bottom > div,
.gpu-card-bottom > div { min-width: 0; white-space: normal; }
.catalog-page .model-card-footer strong,
.ded-card-bottom strong,
.ded-card-bottom strong:has(.currency-amount),
.gpu-card-bottom strong { display: block; margin: 0; color: #087fe5; font-size: 27px; line-height: 1.1; letter-spacing: -.045em; white-space: normal; }
.catalog-page .model-card-footer strong .currency-amount,
.ded-card-bottom strong .currency-amount,
.gpu-card-bottom strong .currency-amount { color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.catalog-page .model-card-footer strong > span:not(.currency-amount),
.ded-card-bottom > div > span,
.gpu-card-bottom strong > span:not(.currency-amount) { color: #70869c; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.ded-card-bottom .currency-amount::after { content: none; }
.ded-card-bottom > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 7px; row-gap: 3px; }
.ded-card-bottom strong { display: inline; }
.ded-card-bottom small { flex-basis: 100%; }
.catalog-page .model-card-footer small,
.ded-card-bottom small,
.gpu-card-bottom small { display: block; color: #7b90a5; font-size: 11px; line-height: 1.4; white-space: normal; }
.catalog-page .model-card-footer .button,
.ded-card-bottom .button,
.gpu-card-bottom .button { display: flex; width: 100%; min-height: 44px; margin: 0; padding: 10px 14px; border: 1px solid #087fe5; border-radius: 7px; background: #087fe5; box-shadow: none; color: #fff; font-size: 13px; line-height: 1.25; text-align: center; white-space: normal; }
.catalog-page .model-card-footer .button:hover { background: #006ed0; color: #fff; }
.catalog-page .model-quote-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 7px; font-size: 12px; }
.catalog-page .model-save { display: grid; place-items: center; width: 44px; height: 44px; }
.catalog-page .catalog-tabs button { min-height: 44px; }
.catalog-page .catalog-guides .text-link { display: inline-flex; align-items: center; min-height: 44px; }

/* Keep the two sellable VPS plans together; supporting cards form a second row. */
.vps-plan-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.vps-plan-grid > .vps-plan { grid-column: span 3; }
.vps-plan-grid > .vps-plan-guide { grid-column: span 2; }
.vps-plan { display: flex; flex-direction: column; min-width: 0; padding: 28px; }
.vps-plan .vps-specs { margin-top: 18px; }
.vps-plan .vps-price { margin-top: auto; padding-top: 20px; }
.vps-price strong .currency-amount { color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.vps-price > span { color: #70869c; font-size: 13px; }
.vps-plan-button { min-height: 44px; margin-top: 16px; }

/* Homepage cards retain their compact layout while prices stay readable. */
.home-model-grid .model-card-footer strong .currency-amount { color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.home-model-grid .model-card-footer strong > span:not(.currency-amount) { color: #70869c; font-size: 10px; letter-spacing: 0; }
.home-model-grid .model-card-top { justify-content: space-between; }

@media (max-width: 1100px) {
  .catalog-page .model-grid,
  .ded-card-grid,
  .gpu-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .home-model-grid .model-image { height: 160px; }
  .home-model-grid .model-card-body { padding: 16px; }
  .home-model-grid .model-save { width: 44px; height: 44px; }
  .home-model-grid .model-card h3 { font-size: 18px; }
  .home-model-grid .model-card-footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .home-model-grid .model-card-footer strong { font-size: 26px; }
  .home-model-grid .model-card-footer .button { width: 100%; min-height: 44px; font-size: 12px; }
  .catalog-page .model-grid,
  .ded-card-grid,
  .gpu-card-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gpu-product-groups { gap: 32px; }
  .catalog-page .model-image,
  .ded-card-visual,
  .gpu-card-visual { height: 160px; min-height: 160px; }
  .catalog-page .model-card-body,
  .ded-card-body,
  .gpu-card-body { padding: 16px; }
  .catalog-page .model-card h3,
  .ded-card h3,
  .gpu-card h3 { min-height: 0; font-size: 18px; }
  .catalog-page .model-blurb,
  .ded-card-body > p,
  .gpu-card-body > p:not(.gpu-match-reason) { min-height: 0; font-size: 12px; }
  .catalog-page .model-card dl > div,
  .ded-card dl > div,
  .gpu-card dl > div { min-height: 38px; font-size: 12px; }
  .catalog-page .model-card-footer,
  .ded-card-bottom,
  .gpu-card-bottom { gap: 10px; padding-top: 14px; }
  .catalog-page .model-card-footer strong,
  .ded-card-bottom strong,
  .ded-card-bottom strong:has(.currency-amount),
  .gpu-card-bottom strong { font-size: 26px; }
  .vps-plan-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .vps-plan-grid > .vps-plan,
  .vps-plan-grid > .vps-plan-guide { grid-column: auto; }
  .vps-plan { padding: 20px; }
  .vps-plan .vps-price { margin-top: 20px; padding-top: 0; }
  .vps-price strong { font-size: 36px; }
  .vps-plan-guide { padding: 18px; }
  .vps-plan-guide .vps-plan-art { width: 64px; height: 64px; }
}
@media (max-width: 380px) {
  .catalog-page .model-card-body,
  .ded-card-body,
  .gpu-card-body { padding: 14px; }
  .catalog-page .model-card-footer strong,
  .ded-card-bottom strong,
  .ded-card-bottom strong:has(.currency-amount),
  .gpu-card-bottom strong { font-size: 23px; }
}
