:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #68615c;
  --paper: #f7f2eb;
  --panel: #fffaf3;
  --line: #ded4c8;
  --red: #c7382f;
  --red-dark: #9f2822;
  --teal: #236b65;
  --blue: #3467c9;
  --yellow: #d7a943;
  --shadow: 0 18px 54px rgba(36, 28, 20, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 16px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(247, 242, 235, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-weight: 720;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--red);
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.72);
}

.language-toggle button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.language-toggle button.is-active {
  background: var(--ink);
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(28px, 6vw, 82px);
  align-items: end;
  min-height: calc(78svh - 70px);
  padding: clamp(44px, 8vw, 108px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(135deg, rgba(35, 107, 101, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(215, 169, 67, 0.2), transparent 50%);
}

.hero-copy {
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
}

.hero p,
.section-heading + p,
.contact-copy p,
.product-lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero p {
  max-width: 680px;
  margin: 24px 0 0;
}

.hero-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 820;
  text-decoration: none;
}

.button.primary {
  background: var(--red);
  color: white;
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 250, 243, 0.7);
}

.button.secondary:hover {
  background: var(--panel);
}

.button.dark {
  border-color: rgba(255, 250, 243, 0.28);
  background: transparent;
  color: white;
}

.pickup-panel {
  display: grid;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.pickup-panel span,
.product-meta dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pickup-panel strong {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.section {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 76px);
}

.section-heading {
  display: grid;
  gap: 4px;
  max-width: 820px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.lots-section {
  background: #fffaf3;
}

.lot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lot-card,
.lot-empty,
.rule-list article,
.qr-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 44px rgba(36, 28, 20, 0.08);
}

.lot-card {
  overflow: hidden;
  text-decoration: none;
}

.lot-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lot-card .lot-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.lot-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.lot-status {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.lot-price {
  color: var(--red);
  font-size: 1.35rem;
  font-weight: 880;
}

.lot-empty {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
}

.lot-empty p,
.rule-list p,
.contact-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.empty-visual,
.placeholder-photo {
  min-height: 150px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(199, 56, 47, 0.18), transparent 42%),
    linear-gradient(315deg, rgba(52, 103, 201, 0.22), transparent 52%),
    #f0e6da;
}

.rules-section {
  background: var(--paper);
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rule-list article {
  padding: 24px;
}

.rule-list span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--teal);
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  background: var(--ink);
  color: white;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.qr-card {
  margin: 0;
  overflow: hidden;
  background: white;
}

.qr-card img {
  width: 100%;
}

.qr-card figcaption {
  padding: 14px 18px 18px;
  color: var(--blue);
  font-weight: 850;
  text-align: center;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(34px, 6vw, 76px);
}

.product-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-height: 0;
  color: var(--muted);
  font-weight: 820;
  overflow: hidden;
  border-radius: 8px;
  background: #efe4d9;
  text-decoration: none;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-photo.portrait-photo {
  aspect-ratio: 3 / 4;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.thumb {
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #efe4d9;
}

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

.product-info {
  position: sticky;
  top: 94px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.product-info h1 {
  font-size: clamp(2.7rem, 5.4vw, 5.2rem);
}

.back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 780;
  text-decoration: none;
}

.product-info .product-lead {
  color: rgba(255, 255, 255, 0.72);
}

.product-bullets {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
  list-style: none;
}

.product-bullets li {
  position: relative;
  padding-left: 22px;
}

.product-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.14);
}

.product-meta div {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--ink);
}

.product-meta dt {
  color: rgba(255, 255, 255, 0.58);
}

.product-meta dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 780;
}

.product-note {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(215, 169, 67, 0.42);
  border-radius: 8px;
  background: rgba(215, 169, 67, 0.1);
}

.product-note strong {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 76px);
  color: var(--muted);
}

@media (max-width: 940px) {
  .hero,
  .contact-section,
  .product-layout {
    grid-template-columns: 1fr;
  }

  .lot-grid,
  .rule-list {
    grid-template-columns: 1fr;
  }

  .product-info {
    position: static;
  }
}

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

  .header-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .language-toggle {
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.8rem);
  }

  .hero-actions,
  .product-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .lot-empty {
    grid-template-columns: 1fr;
  }

  .product-meta {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}
