/* =====================================================================
   ХРАНИЛИЩЕ — запечатанные артефакты. Викторианская эпоха:
   каменный подвал, газовые рожки, латунь, эмалированные сейфы
   с золотой росписью, сургучные печати, книга учёта и опись.
   ===================================================================== */
.pv {
  position: relative; min-height: calc(100vh - var(--hdr)); padding-bottom: 80px; isolation: isolate;
  color: #e9dcc0;
  --pn-bg: rgba(22,18,14,.94); --pn-line: rgba(201,163,94,.3); --pn-ink: #e9dcc0; --pn-muted: #a8977a;
  --pn-accent: #f0d9a4; --pn-on: rgba(201,163,94,.1); --pn-font: var(--f-shop); --pn-r: 4px;
  --f-old: 'Old Standard TT', 'EB Garamond', serif;
  --parch1: #f3e8cc; --parch2: #ddc9a0; --inkc: #2a1c10;
}
.pv > :not(.pv-bg):not(.pnav) { position: relative; z-index: 1; }
.pv .pnav-back, .pv .pnav-sw a, .pv .pnav-here { font-size: 14px; letter-spacing: .08em; }

/* ---------- каменный подвал ---------- */
.pv-bg, .iv-vault::before, .in-vault {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80'%3E%3Crect width='160' height='80' fill='%23110f0d'/%3E%3Crect x='1' y='1' width='78' height='38' rx='2' fill='%23262220'/%3E%3Crect x='81' y='1' width='78' height='38' rx='2' fill='%23211e1b'/%3E%3Crect x='-39' y='41' width='78' height='38' rx='2' fill='%231f1c19'/%3E%3Crect x='41' y='41' width='78' height='38' rx='2' fill='%23282421'/%3E%3Crect x='121' y='41' width='78' height='38' rx='2' fill='%231f1c19'/%3E%3C/svg%3E"),
    #151210;
}
.pv-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pv-arches {
  position: absolute; left: 0; right: 0; top: 0; height: 170px;
  background: radial-gradient(ellipse 170px 150px at 50% 100%, transparent 97%, rgba(8,6,5,.85) 100%) 0 0 / 340px 160px repeat-x;
  filter: blur(1px);
}
.pv-gas { position: absolute; top: 26%; width: 34px; height: 70px; }
.pv-gas.l { left: 3.5%; } .pv-gas.r { right: 3.5%; }
.pv-gas::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,205,120,.28), rgba(255,170,80,.08) 40%, transparent 68%);
  animation: fsFlicker 3.4s ease-in-out infinite;
}
.pv-gas::after {
  content: ""; position: absolute; left: 7px; top: 0; width: 20px; height: 34px;
  background: radial-gradient(ellipse at 50% 70%, #fff6d8, #ffcf7a 45%, #c9772c 80%);
  clip-path: polygon(15% 0, 85% 0, 100% 30%, 80% 100%, 20% 100%, 0 30%);
  animation: fsFlicker 2.6s ease-in-out infinite;
}
.pv-vign { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 50% 42%, transparent 45%, rgba(0,0,0,.78)); }
.pv-haze { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,190,110,.05), transparent 40%, rgba(0,0,0,.45)); }

/* ---------- шапка: латунная табличка и книга учёта ---------- */
.pv-head { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px; align-items: center; padding-top: 48px; padding-bottom: 28px; }
.pv-plaque {
  position: relative; padding: 30px 40px 26px; text-align: center; border-radius: 8px; container-type: inline-size;
  background:
    repeating-linear-gradient(92deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #f0d898 0%, #c9a35e 38%, #8f6c36 72%, #c09a56 100%);
  box-shadow: inset 0 2px 0 rgba(255,245,210,.7), inset 0 -3px 0 rgba(60,40,15,.5), inset 0 0 0 6px rgba(90,62,25,.25), inset 0 0 0 7px rgba(255,236,190,.35), 0 24px 46px rgba(0,0,0,.65);
  color: #2a1c0c;
}
.pv-screw { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1c8, #9a7838 60%, #5e4626); box-shadow: 0 1px 1px rgba(0,0,0,.5); }
.pv-screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 6px; height: 2px; background: #4a3416; transform: rotate(35deg); }
.pv-screw.tl { left: 12px; top: 12px; } .pv-screw.tr { right: 12px; top: 12px; } .pv-screw.bl { left: 12px; bottom: 12px; } .pv-screw.br { right: 12px; bottom: 12px; }
.pv-kicker { margin: 0; font: italic 17px var(--f-old); letter-spacing: .06em; text-shadow: 0 1px 0 rgba(255,240,200,.6); }
.pv-title { margin: 4px 0 2px; font: 700 clamp(30px, 14.5cqi, 84px)/1.05 'Old Standard TT', 'EB Garamond', serif; letter-spacing: .03em; white-space: nowrap; color: #2a1c0c; text-shadow: 0 1px 0 rgba(255,238,195,.75), 0 -1px 0 rgba(0,0,0,.3); }
.pv-rule { display: block; width: 240px; height: 16px; margin: 6px auto 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16'%3E%3Cg fill='none' stroke='%232a1c0c' stroke-width='1.3'%3E%3Cpath d='M2 8h86M152 8h86'/%3E%3Cpath d='M88 8c8-8 18-8 22 0c4 8 16 8 20 0c4-8 14-8 22 0'/%3E%3C/g%3E%3Ccircle cx='120' cy='8' r='3' fill='%232a1c0c'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .8; }
.pv-title span { display: block; margin-top: 2px; font-size: .5em; letter-spacing: .14em; }
.pv-sub { margin: 0; font: 600 13px var(--f-old); letter-spacing: .22em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255,240,200,.6); }
.pv-book {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 12px;
  background: linear-gradient(160deg, #4a2a18, #2a160b); border-radius: 10px;
  box-shadow: inset 0 0 0 2px #1a0d06, inset 0 0 0 5px rgba(214,178,98,.35), 0 26px 50px rgba(0,0,0,.65);
  transform: perspective(1200px) rotateX(6deg);
}
.pv-page {
  position: relative; min-height: 210px; padding: 20px 22px 18px; color: var(--inkc);
  background:
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(80,90,140,.14) 25px 26px),
    radial-gradient(ellipse at 40% 30%, var(--parch1), var(--parch2) 85%);
}
.pv-page.l { border-radius: 4px 0 0 4px; box-shadow: inset -26px 0 30px -18px rgba(70,40,10,.5); }
.pv-page.r { border-radius: 0 4px 4px 0; box-shadow: inset 26px 0 30px -18px rgba(70,40,10,.5); }
.pv-book-h { margin: 0 0 8px; font: 26px/1 var(--f-hand); color: #6a2a14; }
.pv-log p { margin: 0; font: 19px/26px var(--f-hand); color: #2a1c10; -webkit-mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 240% 100% no-repeat; mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 240% 100% no-repeat; animation: pvInk 1.3s ease-out forwards; animation-delay: calc(var(--k) * 1.05s + .3s); }
@keyframes pvInk { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.pv-ask { display: block; position: relative; }
.pv-ask input {
  width: 100%; height: 40px; padding: 4px 4px 0; border: 0; border-bottom: 2px solid rgba(42,28,16,.5); outline: none;
  background: transparent; color: var(--inkc); font: 23px var(--f-hand); caret-color: #6a2a14;
}
.pv-ask input::placeholder { color: rgba(42,28,16,.42); }
.pv-ask input:focus { border-bottom-color: #8a1c14; }
.pv-book-note { margin: 14px 64px 0 0; font: italic 14.5px/1.5 var(--f-old); color: #5a4a30; }
.pv-inkwell { position: absolute; right: 22px; bottom: 16px; width: 34px; height: 30px; border-radius: 6px 6px 10px 10px; background: radial-gradient(ellipse at 35% 30%, #4a5a70, #0e1218 70%); box-shadow: 0 4px 8px rgba(0,0,0,.4); }
.pv-inkwell::before { content: ""; position: absolute; left: 9px; top: -7px; width: 16px; height: 8px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #f0d898, #8f6c36); }
.pv-quill { position: absolute; right: 30px; bottom: 34px; width: 34px; height: 92px; transform: rotate(24deg); transform-origin: 50% 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 92'%3E%3Cpath d='M17 92L18 70C30 52 33 26 24 2C14 18 6 40 9 62L16 70Z' fill='%23f3ead6' stroke='%235a4630' stroke-width='1'/%3E%3Cpath d='M17 90L23 6' stroke='%235a4630' stroke-width='1'/%3E%3Cpath d='M18 60l8-10M19 48l8-12M20 36l6-12M16 56l-6-8M16 44l-5-9' stroke='%23b8a88a' stroke-width='.8'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: pvQuill 5s ease-in-out infinite; }
@keyframes pvQuill { 0%, 100% { transform: rotate(24deg); } 50% { transform: rotate(18deg); } }

/* ---------- пульт: циферблат ярусов ---------- */
.pv-console { display: grid; grid-template-columns: 230px minmax(0, 1fr) auto; gap: 26px; align-items: center; }
.pv-dial { width: 230px; filter: drop-shadow(0 18px 26px rgba(0,0,0,.6)); }
.pv-dial-svg { display: block; width: 100%; height: auto; overflow: visible; }
.pv-dial-n { cursor: pointer; }
.pv-dial-n text { font: 700 21px 'Cinzel', serif; fill: #2a1c10; transition: fill .3s ease; }
.pv-dial-n:hover text, .pv-dial-n.on text { fill: #8a1c14; }
.pv-dial-cap { font: 700 11px 'Cinzel', serif; letter-spacing: 3px; fill: #5a4426; }
.pv-dial-cap2 { font: italic 9px 'Old Standard TT', serif; fill: #7a6440; }
.pv-dial-needle { transform-box: view-box; transform-origin: 0 0; transition: transform 1.2s cubic-bezier(.3,1.5,.45,1); filter: drop-shadow(1px 2px 1px rgba(0,0,0,.45)); }
.pv-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.pv-tier {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px; border-radius: 6px; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, rgba(40,30,22,.92), rgba(24,18,13,.92)); border: 1px solid rgba(201,163,94,.28); color: #e9dcc0;
  box-shadow: 0 6px 14px rgba(0,0,0,.4); transition: border-color .25s ease, background .25s ease, transform .2s ease;
}
.pv-tier:hover { border-color: rgba(240,217,164,.6); transform: translateY(-1px); }
.wax-dot, .pv-tier .wax {
  display: grid; place-items: center; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 38% 34%, color-mix(in srgb, var(--wax) 70%, #fff), var(--wax) 50%, color-mix(in srgb, var(--wax) 60%, #000));
  color: rgba(255,240,220,.92); font-family: 'Cinzel', serif; font-weight: 700; text-shadow: 0 -1px 0 rgba(0,0,0,.4);
  box-shadow: 0 3px 5px rgba(0,0,0,.5), inset 0 0 0 4px rgba(0,0,0,.12);
}
.pv-tier .wax { width: 36px; height: 36px; font-size: 15px; }
.pv-tier b { font: 700 15px var(--f-shop); letter-spacing: .06em; line-height: 1.15; }
.pv-tier em { font: italic 14px var(--f-old); color: #a8977a; }
.pv-tier.on { background: linear-gradient(180deg, var(--parch1), var(--parch2)); color: var(--inkc); border-color: #f0d9a4; box-shadow: 0 0 22px rgba(240,200,120,.25), 0 6px 14px rgba(0,0,0,.4); }
.pv-tier.on em { color: #6a5434; }
.pv-switches { display: flex; flex-direction: column; align-items: stretch; gap: 9px; min-width: 200px; }
.pv-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px; cursor: pointer; background: rgba(24,18,13,.85); border: 1px solid rgba(201,163,94,.28); color: #e9dcc0; font: 600 15px var(--f-shop); letter-spacing: .04em; }
.pv-toggle i { position: relative; width: 18px; height: 18px; border: 1.5px solid #c9a35e; border-radius: 2px; background: rgba(243,232,204,.1); }
.pv-toggle.on i::after { content: "✓"; position: absolute; left: 1px; top: -9px; font: 26px var(--f-hand); color: #f0d9a4; }
.pv-sel { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: italic 14px var(--f-old); color: #a8977a; }
.pv-sel select { height: 36px; padding: 0 28px 0 10px; border-radius: 6px; border: 1px solid #7a5a2c; background: linear-gradient(180deg, #f0d898, #b8924e); color: #2a1c0c; font: 600 14px var(--f-shop); cursor: pointer; }
.pv-sel select option { background: #f3e8cc; color: #2a1c0c; }
.pv-view { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 6px; background: rgba(24,18,13,.85); border: 1px solid rgba(201,163,94,.28); }
.pv-view button { padding: 7px 10px; border: 0; border-radius: 4px; background: none; color: #a8977a; font: 600 14px var(--f-shop); letter-spacing: .06em; cursor: pointer; }
.pv-view button.on { background: linear-gradient(180deg, #f0d898, #b8924e); color: #2a1c0c; }
.pv-add { padding: 10px 14px; border-radius: 6px; cursor: pointer; border: 1px solid #e0453a; background: radial-gradient(circle at 40% 30%, #c0302a, #6a0e0a); color: #f6e7c8; font: 700 14px var(--f-shop); letter-spacing: .06em; box-shadow: 0 6px 14px rgba(0,0,0,.45); }
.pv-add[hidden] { display: none; }

/* ---------- полоса яруса ---------- */
.pv-floor { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 28px; padding-top: 12px; padding-bottom: 12px; }
.pv-floor-n { width: 44px; height: 44px; font-size: 19px; }
.pv-floor-t { font: 700 20px var(--f-shop); letter-spacing: .08em; color: #f0d9a4; }
.pv-floor-c { margin-left: auto; font: italic 16px var(--f-old); color: #a8977a; }
.pv-floor-d { flex-basis: 100%; font: italic 16px var(--font-body); color: #b8a888; }
.pv-floor.moving .pv-floor-n { animation: pvSeal .6s ease; }
@keyframes pvSeal { 0% { transform: scale(1); } 40% { transform: scale(1.25) rotate(-8deg); } 100% { transform: scale(1); } }
.pv-body.lift-out { transform: translateY(26px); opacity: 0; filter: blur(2px) sepia(.6); transition: transform .38s ease-in, opacity .38s ease-in, filter .38s; }
.pv-body.lift-in { animation: pvDown .75s cubic-bezier(.2,.8,.3,1) both; }
@keyframes pvDown { from { transform: translateY(-36px); opacity: 0; filter: blur(2px) sepia(.6); } to { transform: none; opacity: 1; filter: none; } }

/* ---------- заголовки ярусов ---------- */
.pv-sector {
  position: relative; display: flex; align-items: center; gap: 14px;
  margin: 38px 0 20px; padding: 10px 20px 10px 12px; border-radius: 4px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cg fill='none' stroke='%23d6b262' stroke-opacity='.16' stroke-width='1.2'%3E%3Cpath d='M0 12c6-10 18-10 24 0s18 10 24 0'/%3E%3Ccircle cx='24' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E") right center / 48px 24px repeat-x,
    linear-gradient(180deg, #24201b, #15120f);
  border-top: 1px solid rgba(214,178,98,.5); border-bottom: 1px solid rgba(214,178,98,.5);
  box-shadow: 0 10px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,230,180,.08);
}
.pv-sector-n { flex: 0 0 auto; width: 40px; height: 40px; font-size: 17px; }
.pv-sector b { font: 700 18px var(--f-shop); letter-spacing: .1em; color: #f0d9a4; }
.pv-sector em { margin-left: auto; font: italic 15px var(--f-old); color: #a8977a; background: #18140f; padding: 0 8px; }
.pv-sector:first-child { margin-top: 8px; }

/* ---------- сейфы ---------- */
.pv-lockers { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 24px 18px; }
.lk { position: relative; cursor: pointer; outline: none; animation: lkIn .6s var(--ease) both; animation-delay: calc(var(--i) * 22ms); }
@keyframes lkIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lk.t0 { --en: #1e1517; } .lk.t1 { --en: #36161b; } .lk.t2 { --en: #17291f; } .lk.t3 { --en: #172334; } .lk.tx { --en: #28241e; }
.lk-cell {
  position: relative; aspect-ratio: 3 / 4.15; padding: 8px; border-radius: 4px;
  background: linear-gradient(180deg, #0e0c0a, #1b1814);
  box-shadow: inset 0 0 0 1px #000, inset 0 4px 12px rgba(0,0,0,.95), 0 1px 0 rgba(255,230,180,.06), 0 14px 26px rgba(0,0,0,.5);
  perspective: 900px;
}
.lk-in {
  position: absolute; inset: 8px; border-radius: 3px; overflow: hidden;
  background: radial-gradient(ellipse 60% 55% at 72% 55%, rgba(255,190,110,.42), #0b0907 78%);
  display: flex; align-items: center; justify-content: flex-end;
}
.lk-in span { margin-right: 8px; writing-mode: vertical-rl; font: italic 13px var(--f-old); letter-spacing: .12em; color: #ffdca0; text-shadow: 0 0 8px rgba(255,180,90,.8); }
.lk-door {
  position: absolute; inset: 8px; border-radius: 3px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 16px 12px;
  transform-origin: 0 50%; transition: transform .6s var(--ease), box-shadow .6s ease, filter .3s ease;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23d6b262' stroke-width='1.1'%3E%3Cpath d='M1 21V7Q1 1 7 1H21'/%3E%3Cpath d='M5 17c0-6 2-10 7-11'/%3E%3Ccircle cx='12' cy='6' r='1.6' fill='%23d6b262' stroke='none'/%3E%3C/svg%3E") 11px 11px / 20px 20px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23d6b262' stroke-width='1.1'%3E%3Cpath d='M21 21V7Q21 1 15 1H1'/%3E%3Cpath d='M17 17c0-6-2-10-7-11'/%3E%3Ccircle cx='10' cy='6' r='1.6' fill='%23d6b262' stroke='none'/%3E%3C/svg%3E") calc(100% - 11px) 11px / 20px 20px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23d6b262' stroke-width='1.1'%3E%3Cpath d='M1 1V15Q1 21 7 21H21'/%3E%3Cpath d='M5 5c0 6 2 10 7 11'/%3E%3Ccircle cx='12' cy='16' r='1.6' fill='%23d6b262' stroke='none'/%3E%3C/svg%3E") 11px calc(100% - 11px) / 20px 20px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23d6b262' stroke-width='1.1'%3E%3Cpath d='M21 1V15Q21 21 15 21H1'/%3E%3Cpath d='M17 5c0 6-2 10-7 11'/%3E%3Ccircle cx='10' cy='16' r='1.6' fill='%23d6b262' stroke='none'/%3E%3C/svg%3E") calc(100% - 11px) calc(100% - 11px) / 20px 20px no-repeat,
    linear-gradient(100deg, rgba(255,255,255,.07), transparent 22%, transparent 78%, rgba(0,0,0,.3)),
    var(--en);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), inset 0 0 0 6px rgba(0,0,0,.2), inset 0 0 0 7px rgba(214,178,98,.7), inset 0 0 0 9px var(--en), inset 0 0 0 10px rgba(214,178,98,.35);
}
.lk:hover .lk-door, .lk:focus-visible .lk-door { transform: rotateY(-34deg); box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), inset 0 0 0 6px rgba(0,0,0,.2), inset 0 0 0 7px rgba(214,178,98,.7), inset 0 0 0 9px var(--en), inset 0 0 0 10px rgba(214,178,98,.35), 22px 0 34px rgba(0,0,0,.65); }
.lk:focus-visible .lk-cell { outline: 2px solid #f0d9a4; outline-offset: 3px; }
.lk-no { position: relative; padding: 2px 12px; border-radius: 2px; background: linear-gradient(180deg, #f0d898, #b8924e 60%, #8f6c36); color: #2a1c0c; font: 700 14px 'Cinzel', serif; letter-spacing: .06em; box-shadow: inset 0 1px 0 rgba(255,245,210,.7), 0 2px 3px rgba(0,0,0,.5); text-shadow: 0 1px 0 rgba(255,238,195,.6); white-space: nowrap; }
.lk-photo { position: relative; width: 46%; aspect-ratio: 3 / 3.8; flex: 0 0 auto; margin: auto 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #b8924e, 0 0 0 4px #5e4626, 0 4px 10px rgba(0,0,0,.6); }
.lk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(.35) contrast(1.05); }
.lk-key { position: relative; flex: 0 0 auto; width: 30px; height: 44px; margin: auto 0; background: linear-gradient(160deg, #f0d898, #b8924e 50%, #6b4f26); clip-path: polygon(50% 0, 78% 10%, 100% 34%, 88% 62%, 100% 88%, 50% 100%, 0 88%, 12% 62%, 0 34%, 22% 10%); }
.lk-key::after { content: ""; position: absolute; left: 50%; top: 13px; width: 9px; height: 20px; margin-left: -4.5px; background: radial-gradient(circle at 50% 4.5px, #0a0806 0 4.5px, transparent 5px), linear-gradient(#0a0806, #0a0806) 50% 7px / 4px 12px no-repeat; }
.lk-card {
  position: relative; max-width: 100%; padding: 5px 10px 4px; text-align: center;
  background: linear-gradient(180deg, var(--parch1), var(--parch2)); color: var(--inkc);
  box-shadow: 0 0 0 2px #b8924e, 0 0 0 3px #5e4626, 0 3px 6px rgba(0,0,0,.5);
  font: 15px/1.2 var(--f-hand);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lk-meta { font: italic 12px var(--f-old); color: #c9b58a; text-align: center; }
.lk-secret { font: 16px var(--f-hand); color: #e06a5a; transform: rotate(-4deg); }
.lk-handle { position: absolute; right: 10px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 3px solid #c9a35e; box-shadow: 0 2px 3px rgba(0,0,0,.6); }
.lk-handle::before { content: ""; position: absolute; left: 50%; top: -9px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #c9a35e; }
.lk-hinge { position: absolute; left: 0; width: 6px; height: 20px; border-radius: 0 2px 2px 0; background: linear-gradient(#f0d898, #8f6c36); }
.lk-hinge.t { top: 15%; } .lk-hinge.b { bottom: 15%; }
.lk-x { position: absolute; left: 50%; top: 46%; z-index: 2; transform: translate(-50%, -50%) rotate(-16deg); padding: 2px 10px; border: 2px solid rgba(190,40,30,.9); border-radius: 3px; background: rgba(243,232,204,.82); color: #9a1c14; font: 700 13px var(--f-old); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.lk.gone .lk-door { filter: grayscale(.4) brightness(.75); }
.lk-seal { position: absolute; right: -8px; top: 30%; z-index: 4; width: 34px; height: 34px; font-size: 14px; pointer-events: none; }
.lk-seal::before { content: ""; position: absolute; left: 50%; top: 80%; width: 4px; height: 22px; margin-left: -6px; background: var(--wax); transform: rotate(12deg); z-index: -1; border-radius: 1px; filter: brightness(.8); }
.lk-seal::after { content: ""; position: absolute; left: 50%; top: 80%; width: 4px; height: 20px; margin-left: 2px; background: var(--wax); transform: rotate(-14deg); z-index: -1; border-radius: 1px; filter: brightness(.7); }
.lk-chain {
  position: absolute; left: -4%; right: -4%; top: 63%; height: 9px; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse 6px 3.6px at 7px 4.5px, transparent 52%, #8d8a84 58%, #5a5752 74%, transparent 80%) 0 0 / 12px 9px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.8)); transition: transform .3s ease;
}
.lk-chain.a { transform: rotate(24deg); } .lk-chain.b { transform: rotate(-24deg); }
.lk.t0 .lk-key { visibility: hidden; }
.lk-lock { position: absolute; left: 50%; top: 63%; z-index: 4; width: 24px; height: 22px; margin: -6px 0 0 -12px; border-radius: 4px 4px 7px 7px; background: linear-gradient(160deg, #f0d898, #b8924e 50%, #6b4f26); box-shadow: 0 3px 6px rgba(0,0,0,.7); pointer-events: none; }
.lk-lock::before { content: ""; position: absolute; left: 4px; top: -11px; width: 10px; height: 12px; border: 3px solid #8d8a84; border-bottom: 0; border-radius: 8px 8px 0 0; }
.lk-lock::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #1a120a; }
.lk.t0:hover .lk-door, .lk.t0:focus-visible .lk-door { transform: rotateY(-7deg); animation: lkRattle .45s ease; }
.lk.t0:hover .lk-chain.a { transform: rotate(24deg) translateY(-2px); } .lk.t0:hover .lk-chain.b { transform: rotate(-24deg) translateY(-2px); }
@keyframes lkRattle { 0%, 100% { transform: rotateY(-7deg); } 20% { transform: rotateY(-2deg) translateX(1px); } 40% { transform: rotateY(-9deg) translateX(-1px); } 60% { transform: rotateY(-4deg); } 80% { transform: rotateY(-8deg); } }
.lk-tag {
  position: absolute; right: 8px; bottom: -12px; z-index: 5; max-width: 78%;
  padding: 3px 8px 3px 16px; transform: rotate(-3deg); transform-origin: 100% 0;
  background: #e2d6b6; color: #3a2e1c; clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%);
  font: 13px/1.25 var(--f-hand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 2px 4px rgba(0,0,0,.5); transition: transform .4s var(--ease);
}
.lk-tag i { position: absolute; left: 6px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #2a2a2a; }
.lk-tag.bad { color: #8a1c14; }
.lk:hover .lk-tag { transform: rotate(-7deg); }

/* ---------- опись (кожаная книга) ---------- */
.pv-reg {
  position: relative; margin: 26px 18px 40px; padding: 22px 30px 26px;
  background: repeating-linear-gradient(180deg, transparent 0 29px, rgba(80,90,140,.16) 29px 30px), radial-gradient(ellipse at 40% 20%, var(--parch1), var(--parch2) 85%);
  color: var(--inkc); border-radius: 4px;
  box-shadow: 0 0 0 12px #3a2010, 0 0 0 14px rgba(214,178,98,.5), 0 0 0 18px #2a160b, 0 30px 60px rgba(0,0,0,.65);
  animation: lkIn .6s var(--ease) both;
}
.pv-reg-head, .pv-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 60px 64px minmax(0, .9fr); gap: 14px; align-items: center; }
.pv-reg-head { min-height: 30px; padding-bottom: 4px; font: 700 12px var(--f-old); letter-spacing: .16em; text-transform: uppercase; color: #6a2a14; border-bottom: 2px double rgba(106,42,20,.6); }
.pv-row { width: 100%; min-height: 30px; padding: 3px 0; border: 0; background: none; text-align: left; color: var(--inkc); cursor: pointer; font: 15px/1.3 var(--font-body); }
.pv-row:hover, .pv-row:focus-visible { background: rgba(140,90,40,.12); outline: none; }
.pv-row .c { font: 700 14px var(--f-old); }
.pv-row .n { font-style: italic; }
.pv-row .n small { display: block; font: 12px var(--f-old); font-style: normal; color: #7a6a4c; }
.pv-row .g { width: 24px; height: 24px; font-size: 12px; }
.pv-row .f { font: 14px var(--f-old); }
.pv-row .s { font: 17px var(--f-hand); color: #5a3a1c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-empty { margin: 50px auto; max-width: 560px; padding: 18px 22px; text-align: center; background: linear-gradient(180deg, var(--parch1), var(--parch2)); color: var(--inkc); font: 22px/1.35 var(--f-hand); transform: rotate(-1deg); box-shadow: 0 14px 24px rgba(0,0,0,.45); }

/* ---------- заставка: ключ, засовы, дверь ---------- */
.in-vault { position: absolute; inset: 0; --f-old: 'Old Standard TT', 'EB Garamond', serif; animation: inVaultOut .45s 1.85s ease forwards; }
.in-vault::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 50%, transparent 30%, rgba(0,0,0,.8)); pointer-events: none; }
@keyframes inVaultOut { to { opacity: 0; } }
.vd-door { position: absolute; left: 50%; top: 50%; z-index: 1; width: min(52vh, 72vw); height: min(76vh, 100vw); transform: translate(-50%, -50%); perspective: 1500px; }
.vd-frame { position: absolute; inset: -20px; border-radius: 6px; background: linear-gradient(160deg, #2c2c2e, #121214); box-shadow: inset 0 0 0 3px #0a0a0b, 0 30px 60px rgba(0,0,0,.8); }
.vd-frame::before { content: ""; position: absolute; inset: 6px; border-radius: 4px; background: radial-gradient(circle at 10px 10px, #6a6a6e 0 3px, transparent 3.6px) 0 0 / 40px 40px; opacity: .8; }
.vd-light { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, #ffe6b0, #e8a050 40%, #5a2a0c 85%); }
.vd-leaf {
  position: absolute; inset: 0; transform-origin: 0 50%; border-radius: 3px;
  background: linear-gradient(100deg, rgba(255,255,255,.06), transparent 30%, rgba(0,0,0,.3)), #1b2a22;
  box-shadow: inset 0 0 0 2px #0a0a0b, inset 0 0 0 10px rgba(0,0,0,.25), inset 0 0 0 11px rgba(214,178,98,.75), 0 0 40px rgba(0,0,0,.6);
  animation: vdOpen 1.05s 1s cubic-bezier(.6,0,.3,1) forwards;
}
@keyframes vdOpen { to { transform: rotateY(-108deg); } }
.vd-panel { position: absolute; left: 12%; right: 12%; border: 1.5px solid rgba(214,178,98,.6); border-radius: 3px; box-shadow: inset 0 0 0 4px rgba(0,0,0,.25), inset 0 0 0 5px rgba(214,178,98,.3); }
.vd-panel.p1 { top: 7%; height: 36%; } .vd-panel.p2 { bottom: 7%; height: 36%; }
.vd-plate { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); padding: 8px 20px; border-radius: 3px; background: linear-gradient(160deg, #f0d898, #b8924e 50%, #8f6c36); color: #2a1c0c; font: 700 clamp(12px, 1.9vh, 18px) 'Cinzel', serif; letter-spacing: .14em; text-align: center; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,245,210,.7), 0 4px 8px rgba(0,0,0,.5); }
.vd-plate small { display: block; font: italic 11px var(--f-old); letter-spacing: .04em; }
.vd-wheel { position: absolute; left: 50%; top: 49%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); animation: vdWheel .6s .5s cubic-bezier(.5,0,.3,1) forwards; filter: drop-shadow(0 6px 8px rgba(0,0,0,.6)); }
.vd-wheel svg { width: 100%; height: 100%; }
@keyframes vdWheel { to { transform: translate(-50%, -50%) rotate(-150deg); } }
.vd-keyhole { position: absolute; left: 50%; top: 72%; width: 44px; height: 64px; margin-left: -22px; background: linear-gradient(160deg, #f0d898, #b8924e 50%, #6b4f26); clip-path: polygon(50% 0, 78% 10%, 100% 34%, 88% 62%, 100% 88%, 50% 100%, 0 88%, 12% 62%, 0 34%, 22% 10%); }
.vd-key { position: absolute; left: 50%; top: calc(72% + 24px); width: 0; height: 0; z-index: 2; animation: vdKey .5s .1s ease forwards; }
.vd-key::before { content: ""; position: absolute; left: -5px; top: -2px; width: 10px; height: 40px; border-radius: 3px; background: linear-gradient(90deg, #8f6c36, #f0d898, #8f6c36); }
.vd-key::after { content: ""; position: absolute; left: -16px; top: 34px; width: 32px; height: 26px; border-radius: 50%; border: 6px solid #d9b45a; box-sizing: border-box; }
@keyframes vdKey { to { transform: rotate(90deg); } }
.vd-bolts { position: absolute; right: -30px; top: 18%; bottom: 18%; width: 52px; background: linear-gradient(90deg, #8f6c36, #f0d898 40%, #8f6c36) 0 0 / 100% 16px no-repeat, linear-gradient(90deg, #8f6c36, #f0d898 40%, #8f6c36) 0 50% / 100% 16px no-repeat, linear-gradient(90deg, #8f6c36, #f0d898 40%, #8f6c36) 0 100% / 100% 16px no-repeat; animation: vdBolts .4s .45s ease-in forwards; }
@keyframes vdBolts { to { transform: translateX(-40px); } }
.vd-txt { position: absolute; left: 0; right: 0; bottom: 5vh; z-index: 2; margin: 0; text-align: center; font: 34px var(--f-hand); color: #f0d9a4; text-shadow: 0 0 14px rgba(255,190,100,.6); opacity: 0; animation: inShopTxt 1.4s .05s ease forwards; }

/* =====================================================================
   ОПИСЬ ЕДИНИЦЫ ХРАНЕНИЯ (просмотр предмета)
   ===================================================================== */
.iv-vault { color: #e9dcc0; background: #151210; --f-old: 'Old Standard TT', 'EB Garamond', serif; --parch1: #f3e8cc; --parch2: #ddc9a0; --inkc: #2a1c10; }
.iv-vault::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.iv-vault::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 40% 50% at 28% 30%, rgba(255,190,110,.16), transparent 70%), radial-gradient(ellipse 80% 75% at 50% 45%, transparent 40%, rgba(0,0,0,.78)); }
.iv-vault.iv-enter .iv-stage { animation: vvEnter .8s var(--ease) both; }
.iv-vault.iv-enter { animation: vFade .3s ease both; }
.iv-vault.iv-leave { animation: vFade .3s ease reverse both; }
@keyframes vvEnter { from { opacity: 0; transform: translateY(16px); filter: sepia(.8) blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.iv-vault .iv-bar { background: linear-gradient(180deg, #2a221a, #17120d); border-bottom: 1px solid rgba(214,178,98,.4); font: 600 16px var(--f-shop); letter-spacing: .08em; color: #c9b58a; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.iv-vault .iv-crumb b { color: #f0d9a4; }
.vb-led { display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 47% 53% 50% 50%; background: radial-gradient(circle at 38% 34%, #e06a5a, #8a1c14 60%, #4a0a08); vertical-align: -1px; }
.iv-vault .iv-ib { border-radius: 50%; border: 1px solid #f0d898; color: #2a1c0c; background: radial-gradient(circle at 38% 32%, #fff1c2, #d9b45a 45%, #8a6424); box-shadow: 0 4px 10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.6); }
.iv-vault .iv-ib.close { background: radial-gradient(circle at 38% 32%, #e06a5a, #8a1c14 55%, #4a0a08); color: #fff; border-color: #e06a5a; }
.vv-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 42px; align-items: start; padding-top: 22px; }
.vv-col { position: sticky; top: 80px; }
/* витрина */
.vv-cabinet { position: relative; width: min(100%, 400px); margin: 0 auto; padding-top: 70px; }
.vv-lamp { position: absolute; left: 50%; top: 0; width: 0; height: 70px; z-index: 3; transform-origin: 0 0; animation: vvLamp 6s ease-in-out infinite; }
@keyframes vvLamp { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.vv-lamp i { position: absolute; }
.vv-lamp-chain { left: -1px; top: 0; width: 2px; height: 40px; background: repeating-linear-gradient(180deg, #8f6c36 0 4px, transparent 4px 6px); }
.vv-lamp-shade { left: -34px; top: 38px; width: 68px; height: 24px; border-radius: 34px 34px 6px 6px; background: linear-gradient(180deg, #2c4a3a, #18281f); box-shadow: inset 0 -3px 0 #d6b262; }
.vv-lamp-flame { left: -8px; top: 58px; width: 16px; height: 12px; border-radius: 50%; background: radial-gradient(#fff6d8, #ffc46a 60%, transparent 70%); box-shadow: 0 0 30px 10px rgba(255,190,100,.5); animation: fsFlicker 2.4s ease-in-out infinite; }
.vv-case { position: relative; }
.vv-glass {
  position: relative; height: clamp(300px, 50vh, 470px); overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, color-mix(in srgb, var(--wax) 22%, #2a1a14), #0f0a08 80%);
  border: 14px solid #4a2a16;
  border-image: linear-gradient(160deg, #6a3e20, #3a1f0e 50%, #5a321a) 1;
  box-shadow: inset 0 0 0 2px #d6b262, inset 0 0 40px rgba(0,0,0,.8), 0 26px 50px rgba(0,0,0,.6);
}
.vv-cone { position: absolute; left: 50%; top: -20px; width: 110%; height: 110%; margin-left: -55%; background: linear-gradient(180deg, rgba(255,215,150,.28), rgba(255,190,110,.06) 70%, transparent); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); filter: blur(8px); animation: fsFlicker 3.6s ease-in-out infinite; pointer-events: none; }
.vv-obj { position: absolute; inset: 10% 10% 12%; z-index: 1; display: grid; place-items: center; animation: vvFloat 6s ease-in-out infinite; }
@keyframes vvFloat { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(5px); } }
.vv-obj img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 0 0 3px #b8924e, 0 0 0 5px #3a2010, 0 20px 36px rgba(0,0,0,.7); }
.vv-holo { display: grid; justify-items: center; gap: 14px; text-align: center; }
.vv-holo b { width: 130px; height: 130px; font-size: 58px; box-shadow: 0 14px 26px rgba(0,0,0,.7), inset 0 0 0 10px rgba(0,0,0,.12), inset 0 0 0 14px rgba(255,220,180,.12); }
.vv-holo span { font: italic 15px var(--f-old); color: #c9b58a; }
.vv-motes i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,220,160,.7); animation: vvMote 9s linear infinite; z-index: 2; }
.vv-motes i:nth-child(1) { left: 30%; animation-delay: -2s; } .vv-motes i:nth-child(2) { left: 46%; animation-delay: -5s; } .vv-motes i:nth-child(3) { left: 58%; animation-delay: -7.5s; }
.vv-motes i:nth-child(4) { left: 40%; animation-delay: -.5s; } .vv-motes i:nth-child(5) { left: 64%; animation-delay: -3.8s; } .vv-motes i:nth-child(6) { left: 52%; animation-delay: -6.2s; }
@keyframes vvMote { from { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } to { transform: translate(24px, -480px); opacity: 0; } }
.vv-reflect { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,.1) 22%, transparent 30%, transparent 62%, rgba(255,255,255,.06) 66%, transparent 72%); }
.vv-glass .lk-chain { left: -6%; right: -6%; top: 48%; height: 12px; background: radial-gradient(ellipse 8px 4.8px at 9px 6px, transparent 52%, #8d8a84 58%, #5a5752 74%, transparent 80%) 0 0 / 16px 12px; z-index: 4; }
.vv-glass .lk-chain.a { transform: rotate(32deg); } .vv-glass .lk-chain.b { transform: rotate(-32deg); }
.vv-glass .lk-lock { top: 48%; width: 40px; height: 36px; margin: -10px 0 0 -20px; z-index: 5; }
.vv-glass .lk-lock::before { left: 7px; top: -18px; width: 16px; height: 20px; border-width: 4px; }
.vv-void { position: absolute; left: 50%; top: 50%; z-index: 6; transform: translate(-50%, -50%) rotate(-12deg); padding: 6px 16px; border: 3px solid rgba(190,40,30,.9); border-radius: 4px; background: rgba(243,232,204,.85); color: #9a1c14; font: 700 18px var(--f-old); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.vv-plinth { position: relative; margin: 0 -18px; padding: 12px 16px 14px; text-align: center; background: linear-gradient(180deg, #5a321a, #2e180b); border-radius: 0 0 8px 8px; box-shadow: 0 20px 30px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,220,170,.2); }
.vv-label { display: inline-block; max-width: 100%; padding: 4px 16px; border-radius: 2px; background: linear-gradient(180deg, #f0d898, #b8924e 60%, #8f6c36); color: #2a1c0c; font: 700 14px 'Cinzel', serif; letter-spacing: .06em; box-shadow: inset 0 1px 0 rgba(255,245,210,.7), 0 2px 4px rgba(0,0,0,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vv-read { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 420px); margin: 18px auto 0; }
.vv-read div { padding: 7px 8px 8px; border-radius: 4px; text-align: center; background: linear-gradient(160deg, #f0d898, #c9a35e 45%, #8f6c36); color: #2a1c0c; box-shadow: inset 0 1px 0 rgba(255,245,210,.7), 0 6px 12px rgba(0,0,0,.45); }
.vv-read small { display: block; font: italic 12px var(--f-old); }
.vv-read b { display: block; margin-top: 1px; font: 700 15px 'Cinzel', serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(255,238,195,.6); }
.vv-col .iv-admin { justify-content: center; }
/* опись */
.vv-file { min-width: 0; }
.vv-folder { position: relative; padding: 18px 26px 0 0; }
.vv-folder::before { content: ""; position: absolute; left: 10px; right: 8px; top: 18px; bottom: -12px; border-radius: 8px; background: linear-gradient(160deg, #4a2a18, #2a160b); box-shadow: inset 0 0 0 2px rgba(214,178,98,.35), 0 30px 60px rgba(0,0,0,.6); transform: rotate(1.2deg); }
.vv-tabs { position: absolute; right: 0; top: 70px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.vv-tabs button {
  writing-mode: vertical-rl; padding: 16px 8px; border: 0; border-radius: 0 8px 8px 0; cursor: pointer;
  background: linear-gradient(90deg, #4a2a18, #6a3e22); color: #f0d9a4;
  font: 600 14px var(--f-shop); letter-spacing: .08em;
  box-shadow: 3px 3px 8px rgba(0,0,0,.45), inset 0 0 0 1px rgba(214,178,98,.35); transition: transform .25s var(--ease), background .25s;
}
.vv-tabs button i { font-style: normal; font: 12px var(--f-old); opacity: .8; }
.vv-tabs button:hover { transform: translateX(3px); }
.vv-tabs button.on { background: linear-gradient(90deg, #8a1c14, #b0302a); color: #fff2dc; transform: translateX(6px); }
.vv-paper {
  position: relative; z-index: 2; min-height: 560px; padding: 54px 56px 40px 52px;
  background:
    radial-gradient(circle at 86% 82%, rgba(140,90,40,.18), transparent 14%),
    radial-gradient(circle at 14% 64%, rgba(140,90,40,.12), transparent 10%),
    radial-gradient(circle at 70% 18%, rgba(140,90,40,.1), transparent 8%),
    repeating-linear-gradient(180deg, transparent 0 29px, rgba(80,90,140,.12) 29px 30px),
    radial-gradient(ellipse at 35% 22%, #f6ecd2, #e2cfa4 75%, #d2bb8c);
  color: var(--inkc); font: 16.5px/30px var(--font-body);
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 0 80px rgba(120,80,30,.3);
}
.vv-cords { position: absolute; left: -6px; top: 26px; width: 130px; height: 7px; background: linear-gradient(180deg, #c0302a, #7a120e); transform: rotate(-38deg); transform-origin: 0 0; border-radius: 3px; box-shadow: 0 2px 3px rgba(0,0,0,.35); }
.vv-cords::after { content: ""; position: absolute; left: 30px; top: 12px; width: 110px; height: 6px; background: linear-gradient(180deg, #c0302a, #7a120e); transform: rotate(12deg); border-radius: 3px; }
.vv-seal { position: absolute; right: 34px; top: 22px; z-index: 2; width: 78px; height: 78px; font-size: 32px; box-shadow: 0 8px 14px rgba(0,0,0,.45), inset 0 0 0 7px rgba(0,0,0,.12), inset 0 0 0 10px rgba(255,220,180,.14); animation: vvSeal .6s .35s cubic-bezier(.3,1.7,.5,1) both; }
@keyframes vvSeal { from { transform: scale(1.8) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
.vv-secret { position: absolute; right: 18px; top: 104px; z-index: 2; max-width: 150px; text-align: center; font: 19px/1.1 var(--f-hand); color: #a8201a; transform: rotate(-6deg); }
.vv-form { margin: 0 170px 0 0; font: 700 11.5px var(--f-old); letter-spacing: .2em; text-transform: uppercase; color: #6a5434; }
.vv-name { margin: 6px 160px 0 0; font: 40px/1.12 var(--f-hand); font-weight: 400; color: #1d140a; }
.vv-en { margin: 2px 0 12px; font: italic 17px var(--f-old); color: #6b5d43; }
.vv-dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 14px; margin: 0 0 8px; }
.vv-dl dt { font: 700 11px/30px var(--f-old); letter-spacing: .16em; text-transform: uppercase; color: #7a6a4c; }
.vv-dl dd { margin: 0; font: 21px/30px var(--f-hand); color: #1d140a; }
.vv-page h4 { margin: 18px 0 6px; padding-bottom: 2px; border-bottom: 1px solid rgba(122,30,22,.35); font: 700 15px/1.6 var(--f-shop); letter-spacing: .14em; text-transform: uppercase; color: #7a1e16; }
.vv-type { margin: 0; }
.vv-note { margin-top: 18px; padding: 10px 14px; border-left: 3px solid #7a1e16; background: rgba(122,30,22,.07); font: italic 15.5px/1.65 var(--font-body); }
.vv-mark { margin: 14px 0 0; font: italic 13px var(--f-old); color: #8a7a5a; }
.vv-list { margin: 0; padding: 0; list-style: none; }
.vv-list li { position: relative; padding: 4px 0 10px 64px; line-height: 1.65; border-bottom: 1px dotted rgba(42,36,24,.25); }
.vv-list li::before { content: attr(data-n); position: absolute; left: 0; top: 7px; min-width: 48px; padding: 0 6px; border: 1px solid rgba(122,30,22,.55); border-radius: 10px; text-align: center; font: 700 11px/20px var(--f-old); letter-spacing: .06em; color: #7a1e16; }
.vv-list.dn li::before { color: #8a4a0a; border-color: rgba(138,74,10,.55); }
.ink { -webkit-mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 240% 100% no-repeat; mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 240% 100% no-repeat; animation: pvInk 1s ease-out forwards; }
.vv-red i { display: block; height: 16px; margin: 12px 0; background: #241608; border-radius: 3px 8px 4px 9px; opacity: .92; filter: url(#ip-rough); }
.vv-red i:nth-child(2n) { border-radius: 8px 3px 9px 4px; }
.vv-red p { margin: 14px 0 0; font: italic 14px var(--f-old); color: #7a6a4c; }
.vv-page.in { animation: vvPage .45s var(--ease) both; }
@keyframes vvPage { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.vv-file .iv-admin { padding-left: 4px; margin-top: 30px; }
/* журнал */
.vv-cm { position: relative; border-radius: 10px; background: linear-gradient(180deg, #3a2214, #22130a); border: 2px solid #5a3a1c; box-shadow: inset 0 0 0 4px #22130a, inset 0 0 0 5px rgba(214,178,98,.3), 0 24px 44px rgba(0,0,0,.55); }
.vv-cm .iv-cm-h { margin: 20px 0 0; font: 30px var(--f-hand); font-weight: 400; color: #f0d9a4; }
.vv-cm .cm { --cm-gold: #f0d9a4; --cm-gold-dim: #7a5520; --cm-line: rgba(214,178,98,.22); --cm-input: #1a0e07; --cm-ink: #e9dcc0; --cm-muted: #c9b58a; --cm-faint: #a8977a; margin-top: 12px; }

@media (max-width: 1100px) {
  .pv-console { grid-template-columns: 200px minmax(0, 1fr); }
  .pv-dial { width: 200px; }
  .pv-switches { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 1020px) {
  .pv-head { grid-template-columns: 1fr; gap: 26px; padding-top: 32px; }
  .vv-grid { grid-template-columns: 1fr; gap: 26px; }
  .vv-col { position: relative; top: auto; }
  .vv-glass { height: 300px; }
}
@media (max-width: 760px) {
  .pv-plaque { padding: 24px 18px 20px; }
  .pv-title { font-size: clamp(28px, 14.5cqi, 60px); }
  .pv-book { grid-template-columns: 1fr; transform: none; }
  .pv-page.l { display: none; }
  .pv-page.r { border-radius: 4px; box-shadow: none; }
  .pv-console { grid-template-columns: 1fr; justify-items: center; }
  .pv-dial { width: 190px; }
  .pv-tiers { width: 100%; grid-template-columns: 1fr 1fr; }
  .pv-tier { padding: 6px 8px 6px 6px; gap: 8px; }
  .pv-tier .wax { width: 30px; height: 30px; font-size: 13px; }
  .pv-tier b { font-size: 13px; }
  .pv-switches { width: 100%; }
  .pv-lockers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .lk-door { padding: 15px 11px 10px; gap: 6px; }
  .lk-no { font-size: 12px; padding: 2px 8px; }
  .lk-card { font-size: 13.5px; }
  .lk-key { width: 24px; height: 34px; }
  .pv-reg { margin: 22px 14px 30px; padding: 16px 12px 18px; }
  .pv-reg-head, .pv-row { grid-template-columns: 64px minmax(0, 1fr) 32px; gap: 8px; }
  .pv-reg .f, .pv-reg .s { display: none; }
  .vv-folder { padding-right: 0; }
  .vv-tabs { position: relative; right: auto; top: auto; flex-direction: row; flex-wrap: wrap; margin: 0 0 -4px 10px; }
  .vv-tabs button { writing-mode: horizontal-tb; padding: 9px 12px 12px; border-radius: 8px 8px 0 0; }
  .vv-tabs button.on { transform: translateY(-3px); }
  .vv-tabs button:hover { transform: none; }
  .vv-folder::before { top: 36px; }
  .vv-paper { padding: 112px 18px 26px 22px; min-height: 0; }
  .vv-seal { width: 62px; height: 62px; font-size: 26px; right: 16px; top: 18px; }
  .vv-secret { right: 86px; top: 34px; }
  .vv-form, .vv-name { margin-right: 0; }
  .vv-dl { grid-template-columns: 1fr; }
  .vv-dl dt { line-height: 20px; margin-top: 4px; }
  .vv-list li { padding-left: 0; padding-top: 30px; }
  .vv-list li::before { top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv *, .pv *::before, .pv *::after, .iv-vault *, .iv-vault *::before, .in-vault * { animation: none !important; transition: none !important; }
  .pv-log p, .ink { -webkit-mask: none; mask: none; }
}
