:root { color-scheme: light; --ink: #171717; --muted: #626262; --line: #dedede; --page-width: 1200px; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.wrapper { width: min(var(--page-width), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -100px; background: white; padding: 12px; z-index: 10; }
.skip-link:focus { top: 0; }
.site-header { min-height: 128px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 32px; letter-spacing: -.06em; text-decoration: none; font-weight: 700; }
nav { display: flex; flex-wrap: wrap; gap: 28px; }
nav a { text-decoration: none; }
nav a:hover, .product-card a:hover h2 { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; font-weight: 400; overflow-wrap: anywhere; }
h1 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 24px; }
.catalogue-title { margin-top: 48px; margin-bottom: 36px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.product-card { min-width: 0; }
.product-card a { text-decoration: none; }
.product-card img, .image-placeholder { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f5f5f5; }
.image-placeholder { display: grid; place-items: center; padding: 24px; color: var(--muted); text-align: center; }
.product-card h2 { font-size: 19px; margin: 18px 0 8px; }
.price { margin: 0; }
.status { font-size: 13px; letter-spacing: .04em; margin: 10px 0 20px; }
.back-link { display: inline-block; margin: 32px 0; font-size: 14px; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.gallery { display: grid; gap: 24px; min-width: 0; }
.gallery-image { display: block; }
.gallery img { width: 100%; }
.product-info { min-width: 0; }
.detail-price { font-size: 21px; margin: 0 0 12px; }
.description { margin: 32px 0; overflow-wrap: anywhere; }
.description h2 { font-size: 24px; margin: 32px 0 16px; }
.description h3 { font-size: 20px; }
.description ul, .description ol { padding-left: 24px; }
.button { display: block; border: 1px solid var(--ink); background: var(--ink); color: white; padding: 15px 20px; text-align: center; text-decoration: none; }
.button:hover { background: #333; }
.contact-page { max-width: 680px; padding-top: 48px; min-height: 45vh; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding-block: 32px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .wrapper { width: calc(100% - 48px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { gap: 32px; }
}
@media (max-width: 640px) {
  .wrapper { width: calc(100% - 32px); }
  .site-header { min-height: 92px; gap: 16px; }
  .wordmark { font-size: 28px; }
  nav { gap: 16px; font-size: 14px; }
  .catalogue-title { margin-top: 32px; }
  .product-grid { gap: 32px 16px; }
  .product-card h2 { font-size: 16px; }
  .product-detail { grid-template-columns: minmax(0, 1fr); }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; }
  .gallery-image { flex: 0 0 100%; scroll-snap-align: start; }
  .gallery img { aspect-ratio: 1; object-fit: contain; }
  .site-footer { margin-top: 48px; }
}
@media (prefers-reduced-motion: no-preference) { .gallery { scroll-behavior: smooth; } }
