[hidden] { display: none !important; }
* { box-sizing: border-box; }

body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

header { padding-block-start: 16px; }
header p { margin: 0 0 8px; font-size: .875rem; }
section { padding-block: 24px; }
section + section { border-block-start: 1px solid; }
article { margin-block: 20px; }
p { margin: 0 0 12px; }
h1, h2, h3 { margin: 0 0 12px; }
h1 { font-size: 2rem; line-height: 1.1875; }
h2 { font-size: 1.5rem; line-height: 1.25; }
h3, .number, .total { font-size: 1.25rem; line-height: 1.3; }
.lead { font-size: 1.0625rem; line-height: 1.47; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px; }
.actions > span { display: block; min-width: 0; }

button, input, textarea { font: inherit; }
button, .action, summary { cursor: pointer; }

button, .action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  max-width: 100%;
  padding: 8px 12px;
  text-align: center;
  line-height: 1.25;
}

a.action { border: 1px solid; }
.price-list { max-width: 42rem; }
.price-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; margin-block: 8px; }
dt { font-weight: bold; }
dd { margin: 0; }
details { margin-block: 8px; }
summary { padding-block: 12px; }
details p { margin-block: 4px 12px; }

form label, .media-fields label { display: block; max-width: 36rem; margin-block-end: 12px; }
input, textarea { display: block; width: 100%; min-width: 0; max-width: 100%; padding: 6px; }
textarea { resize: vertical; }
#form-status { margin-block-start: 8px; }

figure { margin: 16px 0; max-width: 100%; }
.media-heading, figcaption, .media-fields { font-size: .875rem; line-height: 1.43; }
.media-frame { width: 100%; aspect-ratio: var(--media-ratio); }
.media-frame:empty { border: 1px dashed; }
.media-frame img, .media-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.portrait { width: min(100%, 270px); }
figcaption { margin-top: 6px; }

.mobile-dock { display: none; }
dialog { max-width: min(30rem, calc(100% - 32px)); }

@media (max-width: 767px) {
  .actions > span { width: 100%; }
  .action { width: 100%; }
  .price-list > div { display: block; }
}

@media (min-width: 768px) {
  .container { width: min(100% - 48px, 1200px); }
  section { padding-block: 32px; }
  h1 { font-size: 2.5rem; line-height: 1.2; }
  h2 { font-size: 1.75rem; line-height: 1.286; }
  h3, .number, .total { font-size: 1.375rem; line-height: 1.273; }
  .lead { font-size: 1.125rem; line-height: 1.445; }
}

@media (min-width: 1024px) {
  body { font-size: 1.125rem; line-height: 1.445; }
  .container { width: min(100% - 96px, 1200px); }
  .hero:has(> figure:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 32px; }
  h1 { font-size: 3.25rem; line-height: 1.154; }
  h2 { font-size: 2.25rem; line-height: 1.222; }
  h3, .number, .total { font-size: 1.5rem; line-height: 1.333; }
  .lead { font-size: 1.25rem; line-height: 1.4; }
  button, .action { font-size: 1.0625rem; line-height: 1.294; }
  .portrait { width: min(100%, 288px); }
}
