.stamp-hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.stamp-hero-grid,
.stamp-order-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(1.75rem, 5vw, 5rem);
}

.stamp-back {
  display: inline-block;
  margin-bottom: 1.35rem;
  color: var(--acc-deep);
  font-weight: 600;
}

.stamp-hero h1 {
  margin-bottom: .5rem;
}

.stamp-model {
  color: var(--acc-deep);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.stamp-hero .lead {
  margin-bottom: 1.5rem;
}

.stamp-visual {
  position: relative;
  min-width: 0;
}

.stamp-product-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
  border: 1px solid #e1ddf3;
  border-radius: 18px;
  background: white;
}

.stamp-impression {
  position: absolute;
  right: .85rem;
  bottom: .85rem;
  display: flex;
  width: 30%;
  min-width: 6.6rem;
  max-width: 9rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin: 0;
  padding: .9rem .5rem .65rem;
  border: 1px solid #dedbf7;
  border-radius: 12px;
  background: radial-gradient(ellipse at 40% 28%, #f8f6ff, #e8e5fb 80%);
  box-shadow: 0 6px 20px rgba(36, 25, 73, .12);
}

.stamp-paper {
  display: grid;
  place-items: center;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid #e4e0e9;
  border-radius: 4px;
  background: #fffefa;
  box-shadow: 0 3px 9px rgba(36, 25, 73, .17);
  transform: rotate(-7deg);
}

.stamp-paper img {
  width: 65%;
  height: auto;
  image-rendering: pixelated;
}

.stamp-impression figcaption {
  color: #494465;
  font-size: .72rem;
  line-height: 1.4;
  text-align: center;
}

.stamp-order-grid {
  align-items: start;
}

.stamp-details p {
  max-width: 45ch;
}

.stamp-pad-product {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fa;
}

.stamp-pad-product img {
  width: 100px;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
}

.stamp-pad-product figcaption {
  font-weight: 600;
}

.stamp-details .stamp-support {
  padding: .85rem 1rem;
  border-left: 3px solid var(--acc);
  background: var(--bg-alt);
}

.stamp-order-card {
  min-width: 0;
}

.stamp-prices {
  margin: .75rem 0 .5rem;
}

.stamp-prices > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}

.stamp-prices dd {
  margin: 0;
  text-align: right;
}

.stamp-prices dd strong {
  white-space: nowrap;
}

.stamp-prices dd span {
  display: block;
  font-size: .83rem;
}

.stamp-order-card .stamp-vat {
  margin-bottom: 1.25rem;
  font-size: .85rem;
}

.stamp-quantity-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5rem;
  align-items: center;
  gap: .65rem 1rem;
}

.stamp-quantity input {
  width: 100%;
  padding: .55rem;
  border: 1px solid #b9b3d0;
  border-radius: 6px;
  color: inherit;
  background: white;
  font: inherit;
}

.stamp-order-card .stamp-total {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .9rem;
  padding-block: .7rem;
  border-block: 1px solid var(--line);
  font-weight: 600;
}

.scanner-stamp-page .btn {
  white-space: normal;
  text-align: center;
}

.stamp-checkout-container {
  margin-top: 2rem;
  min-width: 0;
}

.stamp-checkout-frame {
  display: block;
  width: 100%;
  min-height: 1150px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.stamp-order-form {
  max-width: 850px;
  margin-inline: auto;
}

.stamp-order-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1.5rem;
}

.stamp-order-fields label {
  display: grid;
  gap: .4rem;
}

.stamp-order-fields input,
.stamp-order-fields select {
  width: 100%;
  min-width: 0;
  padding: .65rem;
  border: 1px solid #b9b3d0;
  border-radius: 6px;
  background: white;
  font: inherit;
}

@media (max-width: 740px) {
  .stamp-hero-grid,
  .stamp-order-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stamp-order-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .stamp-product-photo {
    max-height: 360px;
  }
}
