:root {
  --ply: #c4a06a;
  --ply-dark: #8a6236;
  --ink: #1a120c;
  --floor: #24201c;
  --tape: #c41e3a;
  --paper: #f4efe4;
  --metal: #9aa0a6;
  --mark: #f4e27a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--floor);
  font-family: Onest, system-ui, sans-serif;
  line-height: 1.5;
}

.skip {
  position: absolute;
  left: 0.8rem;
  top: -4rem;
  z-index: 9;
  padding: 0.4rem 0.7rem;
  background: var(--tape);
  color: #fff;
}
.skip:focus { top: 0.8rem; }

.floor {
  min-height: 100vh;
  padding: 1.2rem 4vw 3rem;
  background:
    radial-gradient(ellipse at 50% 0, rgba(196, 160, 106, 0.12), transparent 50%),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(0, 0, 0, 0.18) 11px 12px),
    var(--floor);
}

.tape {
  margin: 0 auto 1rem;
  max-width: 52rem;
  padding: 0.35rem 0.6rem;
  background: repeating-linear-gradient(
    -18deg,
    var(--tape) 0 12px,
    #9b1730 12px 24px
  );
  color: #fff;
  font-family: "Azeret Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-align: center;
  transform: rotate(-1.2deg);
}

.crate {
  position: relative;
  width: min(100%, 52rem);
  margin: 0 auto;
  background:
    repeating-linear-gradient(90deg, #d4b07a 0 28px, #c4a06a 28px 56px);
  border: 14px solid #6e4a26;
  box-shadow:
    inset 0 0 0 6px #3d2814,
    0 28px 50px rgba(0, 0, 0, 0.45);
}

.corner {
  position: absolute;
  width: 2.2rem;
  height: 2.2rem;
  background: linear-gradient(135deg, #d0d4d8, var(--metal) 45%, #6c7278);
  z-index: 2;
}
.corner.tl { top: -10px; left: -10px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.corner.tr { top: -10px; right: -10px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.corner.bl { bottom: -10px; left: -10px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.corner.br { bottom: -10px; right: -10px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

.lid {
  padding: 1.4rem 1.3rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 30%),
    repeating-linear-gradient(90deg, #b8894e 0 18px, #c9a66c 18px 36px);
  border-bottom: 10px solid #4a3018;
  text-align: center;
}
.stamps {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.stamps button {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 700 0.72rem/1 "Azeret Mono", monospace;
  transform: rotate(-12deg);
  cursor: pointer;
  opacity: 0.55;
}
.stamps button:last-child { transform: rotate(8deg); }
.stamps button.is-on {
  opacity: 1;
  background: var(--tape);
  color: #fff;
  border-color: var(--tape);
}
.up {
  margin: 0;
  font-family: "Azeret Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1 {
  margin: 0.35rem 0 0.2rem;
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(2.6rem, 12vw, 5.4rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  font-weight: 400;
  color: var(--ink);
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.2);
}
.stencil-no {
  margin: 0;
  font-family: "Azeret Mono", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.28em;
}
.phone {
  display: inline-block;
  margin: 0.55rem 0 0.4rem;
  color: var(--ink);
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(1.1rem, 4vw, 1.7rem);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.where, .blurb {
  margin: 0.35rem auto 0;
  max-width: 42ch;
  text-align: left;
}
.blurb { font-size: 0.95rem; }

.hold {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  background: #4a3018;
}
.bin {
  appearance: none;
  border: 0;
  margin: 0;
  background: repeating-linear-gradient(180deg, #e8d3a8 0 6px, #d7bc88 6px 12px);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 5.2rem;
  padding: 0.7rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.15rem 0.5rem;
  box-shadow: inset 0 0 0 2px rgba(26, 18, 12, 0.25);
}
.bin:nth-child(1) { grid-column: 1 / 3; min-height: 6.5rem; }
.bin:nth-child(6) { grid-column: 3 / 5; }
.bin i {
  font-family: "Azeret Mono", monospace;
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.bin > b {
  font-family: "Dela Gothic One", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
}
.bin .more {
  display: none;
  width: 100%;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 2px dashed var(--ink);
}
.bin .more h2 {
  margin: 0 0 0.4rem;
  font-family: Onest, sans-serif;
  font-size: 1.05rem;
  line-height: 1.25;
}
.bin .more p { margin: 0 0 0.45rem; font-size: 0.92rem; }
.bin .more ul { margin: 0; padding: 0 0 0 1.1rem; font-size: 0.9rem; }
.bin.on {
  grid-column: 1 / -1;
  background: var(--paper);
  min-height: 0;
  box-shadow: inset 0 0 0 3px var(--tape);
}
.bin.on .more { display: block; }

.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.9rem 1rem 1.1rem;
  background: #3d2814;
}
.mark {
  margin: 0;
  padding: 0.35rem 0.55rem;
  border: 3px solid var(--mark);
  color: var(--mark);
  font-family: "Azeret Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  max-width: 22rem;
}
.mark:nth-child(even) { transform: rotate(2.4deg); border-color: #f0c4b8; color: #f0c4b8; }

.waybill {
  background: var(--paper);
  padding: 1.1rem 1.15rem 1.3rem;
  border-top: 8px dashed #4a3018;
}
.wb-k {
  margin: 0 0 0.8rem;
  font-family: "Azeret Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tape);
}
.wb-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.wb-meta p {
  display: grid;
  gap: 0.1rem;
  margin: 0 0 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dotted #8a6236;
}
.wb-meta span {
  font-family: "Azeret Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.wb-meta a, .wb-meta b { color: inherit; font-weight: 700; }
.note { font-weight: 400 !important; font-size: 0.9rem; }
.wb-map iframe {
  display: block;
  width: 100%;
  height: 12rem;
  border: 4px solid var(--ink);
  filter: sepia(0.35);
}
.wb-map a {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink);
  font-size: 0.82rem;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.8rem;
  padding-top: 0.6rem;
  border-top: 2px solid var(--ink);
}
.form label { display: grid; gap: 0.2rem; font-size: 0.8rem; }
.form .wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  font: inherit;
  padding: 0.4rem 0;
  color: inherit;
  border-radius: 0;
}
.hint { grid-column: 1 / -1; margin: 0; font-size: 0.82rem; }
.send {
  grid-column: 1 / -1;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Dela Gothic One", sans-serif;
  font-size: 1.05rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
}
.ok { grid-column: 1 / -1; margin: 0; }
.copy { margin: 1rem 0 0; font-size: 0.75rem; opacity: 0.65; }

@media (max-width: 720px) {
  .floor { padding: 0.7rem 3vw 2rem; }
  .crate { border-width: 10px; }
  .hold { grid-template-columns: 1fr 1fr; }
  .bin:nth-child(1), .bin:nth-child(6), .bin.on { grid-column: 1 / -1; }
  .wb-grid, .form { grid-template-columns: 1fr; }
  .stamps { justify-content: center; }
  h1 { font-size: clamp(2.2rem, 16vw, 3.4rem); }
}
