.detail-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.detail-page .detail {
  flex: 1;
  min-height: auto;
  padding-block: clamp(48px, 8vw, 104px);
}

.detail .detail-lead {
  max-width: 55ch;
  font-size: clamp(1.125rem, 2vw, 1.35rem);
}

.product-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
  margin-block: 32px 8px;
}

.product-details section {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid #87ACA5;
  border-radius: 18px;
}

.product-details h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}

.product-details section p {
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: inherit;
  text-underline-offset: 3px;
}

#enquiry {
  max-width: 36rem;
  margin-top: 32px;
}

#enquiry label {
  display: inline-block;
  width: 100%;
  margin-bottom: 12px;
}

#enquiry input, #enquiry select, #enquiry textarea {
  width: 100%;
  padding: 10px;
  font: inherit;
  color: var(--deep);
  background: #fff;
  border: 1px solid #176B70;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .product-details {
    grid-template-columns: 1fr;
  }
}

.detail-page h1 {
  overflow-wrap: anywhere;
}

@media (max-width: 400px) {
  .detail-page .detail h1 {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
  }
}
