.at-heritage {
  margin-top: 40px;
}

.at-heritage__title {
  margin: 0 0 16px;
  font-family: var(--at-serif);
  font-size: 24px;
  font-weight: 600;
}

.at-card--heritage .at-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--at-warm-2);
}

.at-card--heritage .at-card__meta {
  margin: 0;
  color: var(--at-muted);
  font-size: 14px;
}

.at-card--heritage .at-card__cta {
  align-self: flex-start;
  margin-top: auto;
}

.at-card--heritage .at-card__counter {
  align-self: flex-start;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--at-warm-2);
  color: var(--at-primary);
  font-size: 13px;
  font-weight: 600;
}

.at-book.hs-form--counter {
  grid-template-columns: minmax(0, 1fr);
}

.hs-counter-note {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--at-warm);
  color: var(--at-muted);
  font-size: 14px;
}

.at-service.hs-type--reference {
  grid-template-columns: minmax(0, 1fr) auto;
}

.hs-type--reference .at-service__label {
  cursor: default;
}

.hs-place {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hs-place__img {
  flex: 0 0 160px;
  width: 160px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--at-warm-2);
}

.hs-place__body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hs-place__body .at-hint {
  margin: 4px 0 0;
}

.hb-qr-list,
.hb-qr__serials {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hb-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--at-line);
  text-align: center;
}

.hb-qr:last-child {
  border-bottom: 0;
}

.hb-qr__code svg {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
}

.hb-qr__name {
  margin: 0;
  font-weight: 600;
}

.hb-qr__serials {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--at-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.hb-invoices {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--at-line);
}

.hb-invoice-list {
  align-self: stretch;
}

.hb-invoice-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}

.hb-invoice__pdf {
  margin-left: auto;
}

@media (max-width: 640px) {
  .hs-place {
    flex-direction: column;
    align-items: stretch;
  }

  .hs-place__img {
    flex-basis: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hb-invoice__pdf {
    margin-left: 0;
  }
}
