/* ВЕЩДОК · главная v2 (тёмный hero с лампой). Цвета и ритм — из дизайна «Вещдок главная v2». */
:root { --paper: #f2efe9; --paper-2: #e8e3da; --ink: #141414; --kraft: #c8b08a; --stamp: #b02a17; --muted: #5e5850; --ink-soft: #b8b2a8; }
* { box-sizing: border-box; }
html { background: #0e0e0e; overscroll-behavior-y: none; }
body { margin: 0; background: #0e0e0e; color: var(--ink); font-family: 'IBM Plex Sans', system-ui, sans-serif; overflow-x: hidden; }
main { background: var(--paper); }
a { color: inherit; }
a:hover { color: var(--stamp); }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--kraft); outline-offset: 3px; }
.mono { font-family: 'IBM Plex Mono', monospace; }
.disp { font-family: Oswald, 'Arial Narrow', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- шапка ---------- */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 64px); background: rgba(14, 14, 14, .92); backdrop-filter: blur(10px); color: var(--paper); border-bottom: 1px solid rgba(200, 176, 138, .25); transform: translateY(-110%); opacity: 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s; }
.hdr.is-on { transform: none; opacity: 1; }
.hdr__logo img { width: 104px; height: auto; }
.hdr__nav { display: flex; align-items: center; gap: 24px; font: 13px 'IBM Plex Mono', monospace; }
.hdr__nav a { text-decoration: none; letter-spacing: 2px; }
.hdr__nav a:hover { color: var(--kraft); }
.tag { position: relative; display: inline-flex; align-items: center; background: var(--kraft); color: var(--ink) !important; font-weight: 500; text-decoration: none; letter-spacing: 2px; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); transition: background .2s; }
.tag:hover { background: #e0cba4; }
.tag__dot { position: absolute; left: 14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #0e0e0e; }
.btn-stamp { display: inline-flex; align-items: center; gap: 12px; background: var(--stamp); color: var(--paper) !important; text-decoration: none; font-weight: 500; letter-spacing: 2px; box-shadow: inset 0 0 0 3px var(--stamp), inset 0 0 0 4px rgba(242, 239, 233, .55), 3px 3px 0 #5a140b; transition: transform .12s, box-shadow .12s; }
.btn-stamp:hover { transform: translate(2px, 2px); box-shadow: inset 0 0 0 3px var(--stamp), inset 0 0 0 4px rgba(242, 239, 233, .8), 1px 1px 0 #5a140b; }
.btn-stamp:active { transform: translate(3px, 3px); box-shadow: inset 0 0 0 3px var(--stamp), inset 0 0 0 4px var(--paper), 0 0 0 #5a140b; }
.hdr .btn-stamp { height: 44px; padding: 0 18px; font-size: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; background: #0e0e0e; color: var(--paper); overflow: hidden; display: flex; flex-direction: column; }
.hero__glow { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse 40% 70% at 75% 40%, rgba(255, 222, 160, .2), transparent 70%); pointer-events: none; }
.hero__scan { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(242, 239, 233, .025) 0 1px, transparent 1px 4px); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; gap: 48px; padding: 64px clamp(16px, 4vw, 64px); }
.hero__text { display: flex; flex-direction: column; gap: 40px; max-width: 600px; }
.kicker { display: flex; align-items: center; gap: 12px; font: 12px 'IBM Plex Mono', monospace; letter-spacing: 3px; color: var(--kraft); }
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stamp); box-shadow: 0 0 0 4px rgba(176, 42, 23, .25); }
.hero h1 { margin: 0; font-family: Oswald, 'Arial Narrow', sans-serif; font-weight: 700; font-size: clamp(48px, 6.2vw, 96px); line-height: .92; letter-spacing: -.5px; text-transform: uppercase; text-wrap: balance; position: relative; }
.hero h1 span.acc { color: var(--kraft); }
.stamp { position: absolute; right: 4%; top: -14%; padding: 6px 14px; border: 3px double var(--stamp); color: var(--stamp); font: 500 clamp(12px, 1.1vw, 16px)/1.2 'IBM Plex Mono', monospace; letter-spacing: 3px; transform: rotate(9deg); opacity: .92; mix-blend-mode: screen; }
.hero__lead { margin: 0; max-width: 440px; font-size: 18px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.reveal-word { background: var(--ink-soft); color: transparent; cursor: help; transition: background .3s, color .3s; }
.reveal-word:hover, .reveal-word:focus { background: transparent; color: var(--paper); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-big { position: relative; display: inline-flex; align-items: center; gap: 16px; height: 60px; padding: 0 28px 0 24px; font: 500 14px 'IBM Plex Mono', monospace; letter-spacing: 2px; }
.btn-big.btn-stamp { box-shadow: inset 0 0 0 3px var(--stamp), inset 0 0 0 4px rgba(242, 239, 233, .55), 4px 4px 0 #5a140b; }
.btn-big__num { font-size: 11px; opacity: .75; border-right: 1px solid rgba(242, 239, 233, .5); padding-right: 16px; }
.btn-big.tag { height: 60px; padding: 0 28px 0 44px; font: 500 14px 'IBM Plex Mono', monospace; letter-spacing: 2px; }
.info { display: flex; flex-direction: column; font: 13px 'IBM Plex Mono', monospace; max-width: 440px; }
.info__row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(242, 239, 233, .14); }
.info__row span:first-child { color: #8e877b; }

/* лампа */
.col { position: relative; height: min(680px, 82vh); min-height: 520px; }
.lamp, .cord { position: absolute; left: 50%; top: -62px; width: 0; height: 0; }
.lamp { transform-origin: 0 -200px; isolation: isolate; }
.lamp .rod, .lamp .shade-tip { z-index: 4; }
.lamp .dome-base { z-index: 2; }
.lamp .bulb { z-index: 3; clip-path: inset(-1px -12px -12px); }
.lamp .cone { z-index: 4; }
.lamp .dome { z-index: 1; }
.lamp::after { content: ""; position: absolute; left: -90px; top: 122px; width: 180px; height: 24px; border-radius: 50%; border-bottom: 2px solid #686052; pointer-events: none; z-index: 5; }
.cord { left: calc(50% + 130px); top: -420px; transform-origin: 0 0; }
.rod { position: absolute; left: -1.5px; top: -1200px; width: 3px; height: 1252px; background: linear-gradient(90deg, #2c2a27, #6b655c, #2c2a27); }
.shade-tip { position: absolute; left: -12px; top: 44px; width: 24px; height: 22px; border-radius: 3px; background: linear-gradient(90deg, #5e4f36, #c8b08a 40%, #8e7754 70%, #4a3e2a); }
.cone { position: absolute; left: -340px; top: 132px; width: 680px; height: 560px; opacity: 0; background: linear-gradient(rgba(255, 226, 170, .3), rgba(255, 226, 170, .06) 70%, transparent); clip-path: polygon(47.1% 0, 52.9% 0, 100% 100%, 0 100%); pointer-events: none; }
.dome { position: absolute; left: -90px; top: 62px; width: 180px; height: 72px; border-radius: 50% 50% 7% 7% / 92% 92% 8% 8%; background: radial-gradient(ellipse 70% 100% at 32% 22%, #555147 0%, #343128 35%, #201e19 65%, #12110e 100%); box-shadow: inset 0 1px 1px rgba(219,205,166,.12); }
.dome-base { position: absolute; left: -90px; top: 122px; width: 180px; height: 24px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #383023 0%, #191711 48%, #080807 85%); border: 1px solid #494337; box-shadow: inset 0 4px 6px rgba(0,0,0,.65); }
/* Колба целиком внутри тёмного проёма плафона. */
.bulb { --light: 0; position: absolute; left: -20px; top: 121px; width: 40px; height: 23px; border-radius: 42% 42% 50% 50%; border: 1px solid rgba(236,218,177,.28); background: #605b4e; }
.bulb::before { content: ""; position: absolute; left: 12px; top: -1px; width: 14px; height: 6px; border-radius: 2px 2px 0 0; background: repeating-linear-gradient(0deg, #655d4e 0 2px, #a59a82 2px 3px); }
.bulb::after { content: ""; position: absolute; left: 8px; top: 3px; width: 12px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.6); filter: blur(2px); opacity: calc(.2 + var(--light) * .5); }
.cord__line { position: absolute; left: -.75px; top: 0; width: 1.5px; height: 560px; background: repeating-linear-gradient(#c8bfae 0 2px, #8e8676 2px 4px); }
.bead { position: absolute; left: -22px; top: 556px; width: 44px; height: 52px; padding: 0; border: 0; background: transparent; cursor: grab; touch-action: none; display: flex; justify-content: center; }
.bead__body { display: block; width: 10px; height: 22px; border-radius: 5px 5px 6px 6px; background: linear-gradient(90deg, #4a3e2a, #d6c09a 40%, #8e7754 75%, #4a3e2a); box-shadow: 0 3px 8px rgba(0, 0, 0, .7); }
.hint { position: absolute; left: 32px; top: 566px; display: flex; align-items: center; gap: 8px; white-space: nowrap; font: 12px 'IBM Plex Mono', monospace; letter-spacing: 2px; color: var(--kraft); pointer-events: none; transition: opacity .4s; }
.hero__logo { position: absolute; left: 50%; top: 250px; width: min(520px, 92%); transform: translateX(-50%); pointer-events: none; }
.hero__logo .lg { display: block; width: 100%; height: auto; filter: sepia(.35) brightness(1.05); }
.hero__logo .lg--lit { position: absolute; left: 0; top: 0; }

/* бегущая строка */
.marquee { background: var(--stamp); color: var(--paper); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; font: 700 24px/1.2 Oswald, 'Arial Narrow', sans-serif; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* каталог */
.wrap { max-width: 1440px; margin: 0 auto; padding: 96px clamp(16px, 4vw, 64px); box-sizing: border-box; }
.catalog { background: var(--paper); display: flex; flex-direction: column; gap: 32px; }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.eyebrow { font: 12px 'IBM Plex Mono', monospace; letter-spacing: 2px; color: var(--muted); }
.cat-head h2 { margin: 8px 0 0; font-size: clamp(40px, 6vw, 72px); line-height: 1; }
.count { font: 14px 'IBM Plex Mono', monospace; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: transparent; font: 13px 'IBM Plex Mono', monospace; text-transform: uppercase; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip__n { opacity: .6; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 16px; padding: 16px; background: var(--paper-2); transition: transform .25s ease-out, box-shadow .25s; }
.card:hover { box-shadow: 0 32px 40px -24px rgba(20, 20, 20, .45); }
.card:focus-visible { outline: 2px solid var(--kraft); outline-offset: 3px; }
.card__top { display: flex; justify-content: space-between; font: 12px 'IBM Plex Mono', monospace; }
.card__top span:last-child { color: var(--muted); }
.card__img { position: relative; aspect-ratio: 1; background: var(--paper); display: flex; align-items: center; justify-content: center; perspective: 600px; overflow: hidden; }
.card__img::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(20, 20, 20, .04) 10px 11px); }
.card__box { position: relative; width: 52%; height: 64%; display: flex; align-items: flex-end; padding: 8px; box-sizing: border-box; font: 10px 'IBM Plex Mono', monospace; transform: rotateY(-20deg) rotateX(8deg) translateZ(20px); box-shadow: 18px 22px 0 rgba(20, 20, 20, .12); }
.card__stamp { position: absolute; top: 16px; right: 16px; padding: 4px 8px; border: 1.5px solid currentColor; font: 11px 'IBM Plex Mono', monospace; transform: rotate(-6deg); background: rgba(242, 239, 233, .85); }
.card__brand { font: 12px 'IBM Plex Mono', monospace; color: var(--muted); text-transform: uppercase; }
.card__name { font: 700 20px/1.2 Oswald, 'Arial Narrow', sans-serif; letter-spacing: .5px; text-transform: uppercase; }
.card__meta { display: flex; flex-direction: column; gap: 4px; }
.card__foot { display: flex; justify-content: space-between; font: 14px 'IBM Plex Mono', monospace; border-top: 1px solid var(--ink); padding-top: 12px; }
.card__foot span:last-child { color: var(--muted); }
.empty { font: 14px 'IBM Plex Mono', monospace; color: var(--muted); }

/* показания */
.witness { background: var(--kraft); }
.witness__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px; }
.witness h2 { margin: 0; font-size: 48px; line-height: 1; }
.witness blockquote { margin: 0; display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.5; }
.witness cite { font: 12px 'IBM Plex Mono', monospace; font-style: normal; }

/* контакты */
.dark { background: var(--ink); color: var(--paper); }
.dark__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; font-size: 16px; line-height: 1.5; }
.dark h2 { margin: 0; font-size: 48px; }
.dark__lbl { font: 12px 'IBM Plex Mono', monospace; color: var(--kraft); }

/* карта */
.map-sec { background: var(--ink); color: var(--paper); border-top: 1px solid rgba(242, 239, 233, .15); }
.map-in { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px) 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: center; }
.map-txt { display: flex; flex-direction: column; gap: 32px; padding-top: 48px; max-width: 560px; }
.map-txt .eyebrow { color: var(--kraft); letter-spacing: 3px; }
.map-txt h2 { margin: 0; font-size: 48px; line-height: 1; }
.map-txt p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.route { display: flex; flex-direction: column; font: 14px 'IBM Plex Mono', monospace; }
.route__row { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(242, 239, 233, .15); }
.route__row:last-child { border-bottom: 1px solid rgba(242, 239, 233, .15); }
.route__pin { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; background: var(--stamp); }
.route__pin--n { border: 1.5px solid var(--kraft); color: var(--kraft); font-size: 12px; background: none; box-sizing: border-box; }
.map-frame { margin-top: 48px; max-width: 720px; width: 100%; justify-self: end; background: var(--paper-2); box-shadow: 12px 12px 0 #0a0a0a; overflow-x: auto; }
.map-canvas { position: relative; min-width: 560px; aspect-ratio: 1040 / 850; background: #e7e1d4 repeating-linear-gradient(45deg, transparent 0 14px, rgba(20, 20, 20, .04) 14px 15px); }
.map-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* соцсети и ссылки на карты: рамка «бирки», штамп при наведении */
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.soc { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border: 1.5px solid var(--kraft); color: var(--paper); text-decoration: none; font: 500 13px 'IBM Plex Mono', monospace; letter-spacing: 1.5px; text-transform: uppercase; transition: background .2s, color .2s, transform .12s; }
.soc:hover { background: var(--stamp); border-color: var(--stamp); color: var(--paper); transform: translate(2px, 2px); }
.soc__ico { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--kraft); color: var(--ink); }
.soc__ico svg { width: 28px; height: 28px; }
.soc:hover .soc__ico { background: var(--paper); color: var(--stamp); }
.map-txt .socials { margin-top: -8px; }
.map-txt .soc { color: var(--paper); }

/* футер */
.foot { background: var(--ink); color: var(--muted-on-ink, #b8b2a8); border-top: 1px solid rgba(242, 239, 233, .12); padding: 32px clamp(16px, 4vw, 64px); font: 12px 'IBM Plex Mono', monospace; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot .ph { color: var(--kraft); }
.foot a { color: var(--kraft); }

/* ---------- 3D-модалка ---------- */
.modal { position: fixed; inset: 0; background: rgba(20, 20, 20, .7); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.modal[hidden] { display: none; }
.modal__box { background: var(--paper); width: min(100%, 920px); max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.stage { position: relative; aspect-ratio: 1; background: var(--paper-2); display: flex; align-items: center; justify-content: center; perspective: 800px; cursor: grab; touch-action: none; }
.cube { position: relative; width: 180px; height: 240px; transform-style: preserve-3d; transform: rotateY(-24deg); }
.face { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 8px; box-sizing: border-box; font: 10px 'IBM Plex Mono', monospace; }
.face--front { transform: translateZ(30px); }
.face--back { transform: rotateY(180deg) translateZ(30px); filter: brightness(.8); }
.face--l { left: 50%; width: 60px; margin-left: -30px; filter: brightness(.65); transform: rotateY(90deg) translateZ(90px); }
.face--r { left: 50%; width: 60px; margin-left: -30px; filter: brightness(.65); transform: rotateY(-90deg) translateZ(90px); }
.stage__hint { position: absolute; bottom: 16px; font: 12px 'IBM Plex Mono', monospace; color: var(--muted); }
.modal__info { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.modal__case { font: 12px 'IBM Plex Mono', monospace; color: var(--muted); }
.modal__brand { font: 14px 'IBM Plex Mono', monospace; text-transform: uppercase; }
.modal__name { font: 700 36px/1.05 Oswald, 'Arial Narrow', sans-serif; letter-spacing: .5px; text-transform: uppercase; }
.modal__price { font: 24px 'IBM Plex Mono', monospace; }
.modal__desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.modal__btns { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.modal__btns > * { flex: 1; height: 48px; display: flex; align-items: center; justify-content: center; font: 14px 'IBM Plex Mono', monospace; text-decoration: none; }
.modal__ok { background: var(--stamp); color: var(--paper); border: 0; }
.modal__close { border: 1px solid var(--ink); background: transparent; cursor: pointer; }

/* ---------- адаптив ---------- */
@media (max-width: 760px) {
  .hdr__nav a:not(.btn-stamp):not(.tag) { display: none; }
  .hdr .btn-stamp { padding: 0 12px; }
  .wrap { padding: 64px 16px; }
  .hero__grid { grid-template-columns: 1fr; align-items: start; gap: 24px; padding: 24px 16px 48px; }
  .col { height: 440px; min-height: 0; }
  .hero__logo { top: 220px; }
  .hero__text { gap: 28px; }
  .hero h1 { font-size: clamp(44px, 12vw, 64px); }
  .stamp { right: 0; top: -22%; }
  .btn-big { height: 56px; }
  .btn-big.tag { height: 56px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
