:root {
  --results-page-max: 1480px;
  --results-panel-max: 1380px;
}

.page-shell {
  width: min(var(--results-page-max), calc(100vw - 32px)) !important;
  max-width: var(--results-page-max) !important;
}

.hero-photo-card {
  min-height: clamp(320px, 36vw, 460px) !important;
  border-radius: 28px !important;
}

.hero-photo-card img {
  min-height: clamp(320px, 36vw, 460px) !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.photo-overlay-card {
  max-width: min(82%, 360px) !important;
}

.scale-guide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 12px;
  padding: 12px;
  border: 1px solid #d6e5ef;
  border-radius: 18px;
  background: #f8fbfe;
}

.scale-guide span {
  display: grid;
  gap: 4px;
  min-height: 62px;
  align-content: center;
  justify-items: center;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 1.18;
  padding: 8px 6px;
}

.scale-guide b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #061722;
  color: #fff;
  font-size: 13px;
}

.scale-guide span:first-child b {
  background: #64748b;
}

.scale-guide span:last-child b {
  background: #0b76b5;
}

.app-site-footer .social-links,
.app-site-footer .social-row-icons,
.site-footer-clone .social-links-clone {
  display: none !important;
}

.done-view {
  width: 100% !important;
  max-width: var(--results-panel-max) !important;
  padding-left: clamp(0px, 1vw, 10px) !important;
  padding-right: clamp(0px, 1vw, 10px) !important;
}

.done-view > p {
  max-width: 860px !important;
}

.result-summary,
.commercial-route-card,
.plans-result-panel,
.result-actions-two,
.app-site-footer {
  width: 100% !important;
}

.plans-result-panel {
  max-width: none !important;
  overflow: visible !important;
}

.real-plans-grid {
  grid-template-columns: repeat(4, minmax(238px, 1fr)) !important;
  align-items: stretch !important;
}

.real-plan-card {
  min-width: 0 !important;
}

.real-plan-card h4,
.real-plan-card p,
.real-plan-card li,
.real-plan-card a,
.plan-link-button {
  overflow-wrap: anywhere !important;
}

.plan-link-button {
  width: 100% !important;
}

.app-site-footer {
  max-width: var(--results-panel-max) !important;
}

.app-site-footer .footer-main {
  grid-template-columns:
    minmax(310px, 1.25fr)
    minmax(140px, .7fr)
    minmax(160px, .72fr)
    minmax(150px, .68fr)
    minmax(280px, .9fr) !important;
}

.app-site-footer .footer-contact-column {
  min-width: 0 !important;
  width: 100% !important;
}

.app-site-footer .footer-contact-column > a[href^="mailto:"] {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.25 !important;
}

@media (min-width: 981px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, .76fr) !important;
    align-items: stretch !important;
  }

  .hero-content {
    min-height: clamp(360px, 40vw, 500px) !important;
  }

  .app-card {
    padding-inline: clamp(28px, 3vw, 44px) !important;
  }
}

@media (max-width: 1180px) {
  .real-plans-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  }
}

@media (max-width: 840px) {
  .page-shell {
    width: min(100%, calc(100vw - 24px)) !important;
  }

  .real-plans-grid {
    grid-template-columns: 1fr !important;
  }

  .plans-result-panel {
    overflow: hidden !important;
  }

  .scale-guide {
    grid-template-columns: 1fr;
  }

  .scale-guide span {
    grid-template-columns: 34px 1fr;
    justify-items: start;
    text-align: left;
    min-height: 44px;
  }
}
