:root {
  --ink: #181615;
  --paper: #f8f5ef;
  --panel: #ffffff;
  --muted: #69635c;
  --line: #ded7cc;
  --blue: #345c72;
  --terracotta: #b85f3f;
  --green: #64785e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
img.image-fallback {
  background:
    linear-gradient(135deg, rgba(52, 92, 114, .88), rgba(184, 95, 63, .82), rgba(100, 120, 94, .8)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .15) 0 12px, transparent 12px 24px);
}
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(248, 245, 239, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { font-size: 1.35rem; font-weight: 950; }
nav { display: flex; gap: 1rem; color: var(--muted); font-weight: 850; }
.product-hero {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(280px, .85fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1rem, 4vw, 4rem);
}
.gallery img {
  height: min(74vh, 720px);
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(24, 22, 21, .15);
}
.buy-panel p:first-child, .configure p, .heading p {
  margin: 0 0 .65rem;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .74rem;
  font-weight: 950;
}
h1, h2, p, blockquote { overflow-wrap: anywhere; }
h1, h2 { margin: 0; line-height: .98; }
h1 { font-size: clamp(3.2rem, 9vw, 8rem); max-width: 8ch; }
.lede { color: var(--muted); line-height: 1.65; max-width: 48ch; }
.price {
  margin: 1rem 0;
  color: var(--blue);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 950;
}
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: .85rem 1.1rem;
  background: var(--ink);
  color: white;
  font-weight: 900;
}
.section { padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem); }
.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.details article, .config-form, blockquote {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(24, 22, 21, .07);
}
.details article { padding: 1.1rem; }
.details span { color: var(--green); font-weight: 950; }
.details h2 { margin-top: .8rem; font-size: 1.25rem; line-height: 1.12; }
.details p, blockquote { color: var(--muted); line-height: 1.6; }
.configure {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(280px, 1.25fr);
  gap: clamp(1rem, 5vw, 5rem);
  background: #e8eeea;
}
.configure h2, .heading h2 { font-size: clamp(2rem, 5vw, 4.8rem); max-width: 9ch; }
.config-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
}
fieldset {
  grid-column: 1 / -1;
  margin: 0;
  border: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
legend, label { color: var(--muted); font-weight: 850; }
label { display: grid; gap: .45rem; }
button, select, output {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .75rem;
  background: white;
  color: var(--ink);
  font: inherit;
}
button { cursor: pointer; font-weight: 900; }
button.active { background: var(--blue); color: white; border-color: var(--blue); }
select, output { width: 100%; }
output { grid-column: 1 / -1; color: var(--blue); font-weight: 950; }
.heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
blockquote { margin: 0; padding: 1.25rem; font-size: 1.1rem; }
footer { padding: 1.5rem; color: var(--muted); text-align: center; }
@media (max-width: 820px) {
  .header { align-items: flex-start; flex-direction: column; }
  nav { flex-wrap: wrap; }
  .product-hero, .details, .configure, .config-form, .review-grid { grid-template-columns: 1fr; }
  .product-hero { min-height: auto; }
  .gallery img { height: auto; aspect-ratio: 4 / 3; }
  .heading { display: block; }
}
