/* ═══ LOSTKIDSCLUB2000 · THE ARCHIVE SYSTEM ═══ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --void: #0b0b0c;
  --graphite: #161719;
  --steel: #232528;
  --line: #2d2f33;
  --bone: #edeae4;
  --silver: #b9bdc4;
  --ash: #7d8085;
  --paper: #e9e7e2;            /* подложка фотографий-«экспонатов» */
  --err: #b98a7d;
  --serif: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--bone);
  background: var(--void);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--bone); color: var(--void); }

a { color: inherit; text-decoration: none; transition: opacity 0.25s var(--ease), color 0.25s var(--ease); cursor: pointer; }
a:hover { opacity: 0.6; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }

.mono, .k { font-family: var(--mono); }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  background: color-mix(in srgb, var(--void) 88%, transparent);
  backdrop-filter: blur(14px);
  text-transform: uppercase;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header a { display: inline-flex; align-items: center; line-height: 1; padding: 6px 0; }
.nav-center { justify-content: center; }
.nav-right { justify-content: flex-end; gap: 18px; }
.logo {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  justify-self: start;
  white-space: nowrap;
}
.lang-switch { color: var(--ash); font-family: var(--mono); font-size: 10.5px; }
.cart-link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }

main { flex: 1; }

/* ── Hero video ── */
.hero-video { position: relative; height: 86vh; overflow: hidden; background: var(--void); }
.hero-video video { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.hero-video:after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,11,12,0.35) 0%, rgba(11,11,12,0) 30%, rgba(11,11,12,0) 55%, rgba(11,11,12,0.9) 100%);
  pointer-events: none;
}
.hero-caption {
  position: absolute; left: 40px; bottom: 34px; z-index: 2;
  display: flex; flex-direction: column; gap: 10px;
}
.hero-caption .hc-serif { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 48px); line-height: 1; letter-spacing: 0.01em; }
.hero-caption .hc-mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver); }
@media (max-width: 720px) { .hero-video { height: 64vh; } .hero-caption { left: 20px; bottom: 24px; } }

/* ── Catalog head ── */
.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 54px 40px 10px;
}
.catalog-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.entries-count { font-family: var(--mono); font-size: 11px; color: var(--ash); letter-spacing: 0.12em; text-transform: uppercase; }

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px 20px;
  padding: 34px 40px 40px;
}
@media (max-width: 1100px) { .grid { gap: 56px 16px; } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 44px 12px; padding: 24px 16px 32px; } }
@media (max-width: 540px) { .grid { grid-template-columns: 1fr; gap: 52px; padding: 24px 20px 32px; } }

.registry-end {
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  padding: 10px 24px 90px;
}

/* ── Card: Specimen ── */
.card { text-align: left; display: block; }
.card-img {
  position: relative;
  aspect-ratio: 1/1;
  background: #ffffff;
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 7%;
  background: #ffffff;
  transition: transform 0.6s var(--ease), opacity 0.5s var(--ease);
}
.card-img .img-b { position: absolute; inset: 0; opacity: 0; }
.card:hover .img-a { transform: scale(1.045); }
.card:hover .img-b { opacity: 1; }
.card:hover .img-b ~ .img-a { opacity: 0; }
.noimg { width: 100%; height: 100%; background: var(--graphite); }

.card-head { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.card-idx { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ash); text-transform: uppercase; }
.card-title { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.card-price { font-family: var(--mono); font-size: 11.5px; color: var(--silver); letter-spacing: 0.04em; }
.card-price s { margin-right: 8px; color: var(--ash); }
.soldout-text { text-transform: uppercase; letter-spacing: 0.1em; color: var(--ash); }

/* Specimen-бирка у курсора (desktop) */
.spec-tag {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  background: var(--void);
  border: 1px solid var(--line);
  color: var(--silver);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  opacity: 0;
  transform: translate(14px, 14px);
  transition: opacity 0.25s var(--ease);
  white-space: pre;
}
.spec-tag.on { opacity: 1; }
@media (hover: none), (max-width: 760px) { .spec-tag { display: none; } }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Crumbs ── */
.crumbs { padding: 26px 40px 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
.crumbs a { color: var(--ash); }
.crumbs a:hover { color: var(--bone); opacity: 1; }

/* ── Product page ── */
.product {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  max-width: 1280px;
  margin: 26px auto 110px;
  padding: 0 40px;
}
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 30px; padding: 0 16px; } }
.product-gallery { display: grid; gap: 14px; counter-reset: fig; }
.product-gallery figure { position: relative; margin: 0; background: #ffffff; counter-increment: fig; }
.product-gallery img { width: 100%; }
.product-gallery figure:after {
  content: "FIG. " counter(fig);
  position: absolute; left: 12px; bottom: 10px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: #9a9c9e;
}
.noimg.big { aspect-ratio: 3/4; }

.product-info { position: sticky; top: 92px; align-self: start; }
@media (max-width: 860px) { .product-info { position: static; } }
.p-idx { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--ash); text-transform: uppercase; margin-bottom: 14px; }
.product-info h1 {
  font-family: var(--serif);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  text-wrap: balance;
}
.product-price { font-family: var(--mono); font-size: 15px; color: var(--silver); margin-bottom: 30px; }
.product-price s { margin-right: 10px; color: var(--ash); }

.field-label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ash); margin-bottom: 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.size input { position: absolute; opacity: 0; }
.size span {
  display: inline-block;
  min-width: 48px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.size span:hover { border-color: var(--silver); }
.size input:checked + span { background: var(--bone); color: var(--void); border-color: var(--bone); }
.size input:focus-visible + span { outline: 2px solid var(--silver); outline-offset: 2px; }
.size.off span { color: #4a4c50; text-decoration: line-through; cursor: not-allowed; }
.size.off span:hover { border-color: var(--line); }

.btn {
  display: inline-block;
  background: var(--bone);
  color: var(--void);
  border: 1px solid var(--bone);
  padding: 16px 44px;
  font: 600 11.5px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { background: transparent; color: var(--bone); }
.btn:disabled { background: #3a3c40; border-color: #3a3c40; color: #77797d; cursor: not-allowed; }
.btn.wide { display: block; width: 100%; text-align: center; }

/* Паспорт вещи */
.passport { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 8px; }
.pp-row {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.pp-row span:first-child { color: var(--ash); }
.pp-row span:last-child { color: var(--silver); text-align: right; }

.product-desc { margin-top: 28px; line-height: 1.8; font-size: 14px; color: #c9c6c0; max-width: 60ch; }
.product-desc p { margin-bottom: 12px; }

/* ── Holdings (cart) ── */
.page-head { text-align: left; padding: 54px 40px 8px; }
.page-title {
  font-family: var(--serif);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: 0.01em;
  line-height: 1;
}
@media (max-width: 760px) { .page-head { padding: 32px 20px 4px; } }

.cart { max-width: 780px; margin: 0 auto 100px; padding: 20px 24px 0; }
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 620px) { .cart-line { grid-template-columns: 64px 1fr auto; } .cart-line-total { display: none; } }
.cart-img { background: #ffffff; }
.cart-img img { width: 84px; height: 108px; object-fit: contain; }
.cart-img .noimg { width: 84px; height: 108px; }
.cart-line-info { display: flex; flex-direction: column; gap: 5px; text-transform: uppercase; font-size: 12px; letter-spacing: 0.05em; }
.cart-line-info .muted { font-family: var(--mono); font-size: 10.5px; }
.qty {
  width: 56px; padding: 11px 6px;
  border: 1px solid var(--line);
  background: transparent; color: var(--bone);
  font: 400 12px var(--mono); text-align: center;
}
.qty:focus { outline: none; border-color: var(--bone); }
.link-btn { background: none; border: none; font: 400 10.5px var(--mono); letter-spacing: 0.1em; color: var(--ash); text-transform: uppercase; transition: color 0.2s; }
.link-btn:hover { color: var(--bone); }
.cart-line-total { font-family: var(--mono); font-size: 12px; color: var(--silver); }
.cart-footer { display: flex; justify-content: space-between; padding: 26px 0 8px; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12.5px; }
.cart-footer strong { font-family: var(--mono); font-weight: 500; }
.cart .btn.wide { margin-top: 22px; }
.center-text { text-align: center; }

/* ── Checkout ── */
.checkout {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 56px;
  max-width: 1080px;
  margin: 18px auto 110px;
  padding: 0 40px;
}
@media (max-width: 820px) { .checkout { grid-template-columns: 1fr; gap: 40px; padding: 0 16px; } }
.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.checkout-form h2 { text-transform: uppercase; font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: 0.01em; margin: 20px 0 2px; }
.fld { display: flex; flex-direction: column; gap: 7px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ash); }
.fld input, .fld textarea {
  padding: 14px;
  border: 1px solid var(--line);
  background: transparent;
  font: 300 14px var(--sans);
  letter-spacing: 0.01em;
  color: var(--bone);
  transition: border-color 0.25s var(--ease);
  width: 100%;
}
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--bone); }
.fld textarea { min-height: 80px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-form .btn { margin-top: 18px; }
.checkout-summary { border-left: 1px solid var(--line); padding-left: 40px; align-self: start; position: sticky; top: 92px; }
@media (max-width: 820px) { .checkout-summary { border-left: none; padding-left: 0; position: static; order: -1; } }
.sum-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sum-item img { width: 52px; height: 68px; object-fit: contain; background: #ffffff; }
.sum-item .noimg { width: 52px; height: 68px; }
.sum-item-info { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.sum-item > span:last-child { font-family: var(--mono); font-size: 11.5px; color: var(--silver); }
.sum-line { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.sum-line.total { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; border-bottom: none; padding-top: 18px; }

.form-error { color: var(--err); font-size: 12.5px; letter-spacing: 0.03em; }

/* ── Order status ── */
.order-status { max-width: 600px; margin: 0 auto 100px; padding: 0 24px; }
.order-status .page-head { padding: 54px 0 18px; }
.status-ok, .status-wait, .status-bad { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 26px; }
.status-ok { color: #9db8a4; }
.status-wait { color: var(--silver); }
.status-bad { color: var(--err); }
.order-items { margin-top: 40px; }

.empty { text-align: center; padding: 80px 24px; color: var(--ash); letter-spacing: 0.05em; }
.empty a { border-bottom: 1px solid var(--ash); padding-bottom: 2px; }
.center { padding-top: 40px; }
.muted { color: var(--ash); }
.small { font-size: 12px; line-height: 1.7; margin-top: 12px; }

/* ── Legal ── */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 24px 100px; line-height: 1.75; }
.legal h1 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 8px; line-height: 1.25; }
.legal-date { color: var(--ash); font-family: var(--mono); font-size: 11px; margin-bottom: 34px; }
.legal h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 30px 0 12px; color: var(--silver); }
.legal p { margin-bottom: 10px; font-size: 14px; color: #c9c6c0; }
.legal a { text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 24px 40px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--silver); }
.foot-pay { color: var(--ash); }
@media (max-width: 640px) { .site-footer { justify-content: center; text-align: center; } }

/* ── Burger & mobile menu ── */
.burger { display: none; background: none; border: none; padding: 12px 0 12px 12px; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--bone); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 100; background: var(--void);
  display: flex; flex-direction: column; padding: 22px 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mm-close { align-self: flex-end; background: none; border: none; font-size: 22px; padding: 10px; color: var(--bone); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; margin-top: 44px; }
.mobile-menu nav a {
  font-family: var(--serif);
  font-size: 28px; font-weight: 600; letter-spacing: 0.01em;
  padding: 10px 4px;
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .site-header nav.nav-center { display: none; }
  .site-header .lang-switch { display: none; }
  .cart-link { padding: 12px 8px 12px 0; }
  .burger { display: flex; }
  .logo { font-size: 13px; }
  .catalog-head { padding: 28px 16px 4px; flex-direction: column; gap: 8px; }
  .crumbs { padding: 16px 16px 0; }
  .site-footer { padding: 20px 16px; gap: 10px; }
}

/* ── SOON gate ── */
.soon { position: fixed; inset: 0; overflow: hidden; background: var(--void); }
.soon video { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.soon:after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 80% at 50% 50%, rgba(11,11,12,0) 40%, rgba(11,11,12,0.75) 100%); }
.soon-inner {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  text-align: center;
}
.soon-logo { font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.soon-title { font-weight: 700; font-size: clamp(64px, 14vw, 180px); line-height: 1; letter-spacing: 0.06em; }
.soon-mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver); }
