:root {
  color-scheme: light;
  --ink: #1c1b18;
  --muted: #5f625d;
  --line: #dad7cd;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --accent: #18624a;
  --accent-strong: #0f4536;
  --warning: #a65518;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 120px;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 15px;
}

nav a,
.site-footer a {
  text-decoration: none;
}

nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(22px, 5vw, 58px) clamp(18px, 5vw, 64px) clamp(34px, 6vw, 72px);
}

.gallery {
  min-width: 0;
}

.main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #ece8dc;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(52px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.thumb.active {
  border-color: var(--accent);
}

.purchase {
  position: sticky;
  top: 96px;
  padding: clamp(20px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lede {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}

.price {
  font-size: 30px;
  font-weight: 800;
}

.stock {
  padding: 6px 10px;
  color: var(--accent-strong);
  background: #e3f0e3;
  border: 1px solid #b7d2bf;
  font-size: 13px;
  font-weight: 800;
}

.key-points {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.buy-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
}

input[type="number"] {
  width: 100%;
  min-height: 52px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfaf6;
  border: 1px solid var(--line);
  font: inherit;
  font-weight: 700;
}

.buy-button {
  min-height: 52px;
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.buy-button:hover {
  background: var(--accent-strong);
}

.buy-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status,
.payment-note {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.band {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 7vw, 84px) clamp(18px, 5vw, 64px);
  background: #e9e6da;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band p,
.compatibility p,
.features p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.band img,
.compatibility img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.features article {
  min-height: 260px;
  padding: clamp(22px, 4vw, 42px);
  background: var(--surface);
}

.features h2 {
  font-size: clamp(22px, 2.4vw, 31px);
}

.compatibility {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.65fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 7vw, 84px) clamp(18px, 5vw, 64px);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span {
  color: var(--ink);
  font-weight: 800;
}

.simple-page {
  min-height: calc(100vh - 145px);
  padding: clamp(42px, 8vw, 92px) clamp(18px, 5vw, 64px);
}

.simple-page article {
  max-width: 780px;
}

.simple-page p,
.simple-page li {
  color: var(--muted);
  line-height: 1.65;
}

.policy-page article {
  max-width: 920px;
}

.policy-page h1 {
  margin-bottom: 24px;
}

.policy-page h2,
.policy-page h3 {
  margin-top: 32px;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.18;
}

.policy-page ul,
.policy-page ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.policy-page a {
  color: var(--accent-strong);
}

@media (max-width: 900px) {
  .product-hero,
  .band,
  .compatibility,
  .features {
    grid-template-columns: 1fr;
  }

  .purchase {
    position: static;
  }

  .features article {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .thumbs {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    gap: 6px;
  }

  .buy-row {
    grid-template-columns: 76px 1fr;
  }
}
