:root {
  --bg: #171310;
  --bg-alt: #1f1a15;
  --text: #f2ede6;
  --text-dim: #b8ada0;
  --line: #332c24;
  --coyote: #b98b5e;
  --coyote-dark: #171310;
  --max: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: none;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-align: center;
}

.eyebrow {
  text-align: center;
}

h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.2;
}

h2 {
  font-size: clamp(20px, 2.6vw, 26px);
}

p {
  margin: 0 0 16px;
  color: var(--text-dim);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--coyote);
  margin-bottom: 14px;
}

/* Header */
.top {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top .price-tag {
  font-size: 14px;
  color: var(--coyote);
  font-weight: 600;
}

/* Hero */
.hero {
  padding-top: 56px;
}

.hero-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 36px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--coyote);
  color: #171310;
  padding: 14px 28px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  opacity: 0.88;
}

.btn-note {
  font-size: 13px;
  color: var(--text-dim);
}

/* Lists */
ul.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.plain li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
}

ul.plain li:first-child {
  border-top: none;
}

ul.plain li strong {
  color: var(--text);
  font-weight: 600;
}

/* Model picker */
.models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.model-card {
  position: relative;
}

.model-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.model-card label {
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.model-card .media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  cursor: pointer;
}

.model-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.model-card .media:hover .media-hint {
  opacity: 1;
}

.model-card .name {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.model-card .check {
  width: 16px;
  height: 16px;
  border: 1px solid var(--text-dim);
  border-radius: 50%;
  flex-shrink: 0;
}

.model-card input:checked + label {
  border-color: var(--coyote);
}

.model-card input:checked + label .check {
  border-color: var(--coyote);
  background: var(--coyote);
}

.model-card input:focus-visible + label {
  outline: 2px solid var(--coyote);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .models {
    grid-template-columns: 1fr;
  }
}

/* Order form */
.order-box {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  background: var(--bg-alt);
  margin-top: 32px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 2px;
  font-size: 15px;
  font-family: inherit;
}

.field input:focus,
.field select:focus {
  outline: 1px solid var(--coyote);
  border-color: var(--coyote);
}

.qty-control {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  width: fit-content;
}

.qty-control button {
  background: var(--bg);
  color: var(--text);
  border: none;
  width: 44px;
  font-size: 18px;
  cursor: pointer;
  font-family: inherit;
}

.qty-control button:hover {
  background: var(--line);
}

.qty-control input {
  width: 56px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}

.order-summary {
  font-size: 13px;
  color: var(--text-dim);
  margin: -4px 0 20px;
}

.order-summary strong {
  color: var(--text);
}

.field-error {
  font-size: 13px;
  color: #e2a37a;
  margin: -10px 0 18px;
  display: none;
}

.field-error.show {
  display: block;
}

/* Gallery modal */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal-inner {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

.gallery-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg);
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer */
.footer {
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
