/* 04 — открытая доска: заголовок, рисунок грецкого ореха и четыре масла.
   Существующие PNG и живая бутылка стоят в одном масштабе. */
.shelf-board{
  --board-ink:var(--oil-ink,#806647);
  --board-accent:var(--oil-accent,#9a7742);
  --bottle-x:83%;
  --bottle-y:53%;
  --bottle-h:min(46svh,430px);
  min-height:820px;
}
.shelf-board .story-heading{left:5%;top:54px;max-width:46%}
.shelf-board .story-heading h2{font-size:clamp(36px,3.4vw,52px)}
.shelf-copy{position:absolute;right:5%;top:62px;width:28%;max-width:365px;opacity:calc(.35 + var(--arrival)*.65)}
.shelf-copy .story-lead{font-size:22px;margin-bottom:14px}
.shelf-copy>p:not(.story-lead){margin:0;font-size:14px;line-height:1.7}
.shelf-link{display:inline-flex;align-items:center;gap:22px;margin-top:22px;padding:0 0 9px;border-bottom:1px solid var(--board-ink);color:var(--board-title);font-size:14px;font-weight:500;text-decoration:none;transition:color .2s ease}
.shelf-link span{font-size:18px}
.shelf-link:hover{color:var(--board-accent)}

/* Обёртка без собственной поверхности: фон и чернила общие со всей доской. */
.shelf-showcase{position:absolute;inset:0;pointer-events:none}
.shelf-row{position:absolute;inset:0}
.shelf-slot{position:absolute;left:var(--slot-x);top:var(--bottle-y);transform:translate(-50%,-50%);width:calc(var(--bottle-h)*.44);height:var(--bottle-h);opacity:calc(.2 + var(--arrival)*.8)}
.shelf-slot img{display:block;width:100%;height:100%;object-fit:contain;transform:translateY(calc(var(--shelf-lift,0px) * -1))}
.shelf-slot:not(.shelf-slot-empty)::after{content:"";position:absolute;left:50%;bottom:calc(var(--bottle-h)*.05);transform:translateX(-50%);width:52%;height:11px;border-radius:50%;background:var(--board-ink);filter:blur(9px);opacity:.16}
.shelf-label{position:absolute;left:50%;top:calc(100% + 12px);transform:translateX(-50%);margin:0;padding-top:13px;min-width:148px;border-top:1px solid var(--board-line);display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;white-space:nowrap}
.shelf-label strong{font-size:15px;font-weight:500;color:var(--board-lead)}
.shelf-label span{font-size:12px;color:var(--board-quiet)}
.shelf-slot-empty .shelf-label{opacity:calc(.6 + var(--arrival)*.4)}
.shelf-slot-1{--slot-x:17%}
.shelf-slot-2{--slot-x:39%;--shelf-lift:6px}
.shelf-slot-3{--slot-x:61%}
.shelf-slot-4{--slot-x:83%}
.shelf-board .story-ground{top:calc(var(--bottle-y) + var(--bottle-h)*.437 - 9px);width:120px}
.shelf-board .story-bottle-caption{display:none}
/* Тот же рисунок ореха снова самостоятельный акцент рядом с заголовком. */
.shelf-seeds{left:46%;right:auto;top:4%;bottom:auto;width:18%;max-width:220px;opacity:.48;transform:rotate(-12deg)}
.shelf-board .story-signature{bottom:22px}

@media(min-width:851px) and (max-width:1100px){
  .shelf-board .story-heading{left:2%;max-width:48%}
  .shelf-copy{right:2%;width:30%}
  .shelf-copy .story-lead{font-size:20px}
  .shelf-copy>p:not(.story-lead){font-size:13px}
  .shelf-seeds{left:47%;width:19%;top:6%}
}
@media(max-width:850px){
  /* Полосу под ссылкой и подписью доска держит такую же, как соседние. */
  .shelf-board{min-height:0;--bottle-h:330px;padding-bottom:112px;gap:26px 20px}
  .shelf-board .story-heading{position:static;max-width:none}
  .shelf-board .story-heading h2{font-size:clamp(32px,6vw,43px)}
  .shelf-copy{position:static;grid-column:1/-1;grid-row:2;width:auto;max-width:480px}
  .shelf-copy .story-lead{font-size:20px}
  .shelf-copy>p:not(.story-lead){font-size:13px}
  .shelf-link{margin-top:18px}
  .shelf-showcase{position:relative;inset:auto;grid-column:1/-1;grid-row:3;height:670px}
  .shelf-board .story-bottle-anchor{position:absolute;left:66%;top:180px;transform:translate(-50%,-50%);width:64%;height:var(--bottle-h)}
  .shelf-board .story-ground{display:none}
  .shelf-board .story-bottle-caption{position:absolute;left:66%;top:365px;transform:translateX(-50%);display:flex}
  .shelf-board .story-bottle-caption[hidden]{display:none}
  .shelf-board .story-bottle-caption strong{font-size:12px}
  .shelf-row{top:auto;bottom:0;height:245px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .shelf-slot{position:relative;top:auto;left:auto;transform:none;width:100%;height:245px}
  .shelf-slot img{height:190px}
  .shelf-slot-empty{display:none}
  .shelf-slot:not(.shelf-slot-empty)::after{bottom:66px}
  .shelf-label{top:195px;bottom:auto;width:100%;min-width:0;padding-top:10px;gap:6px;white-space:normal}
  .shelf-label strong{font-size:11px}
  .shelf-label span{font-size:10px}
  .shelf-seeds{left:0;top:65px;width:40%;max-width:185px;opacity:.5}
  .shelf-board .story-signature{bottom:14px;font-size:9px}
}
@media(prefers-reduced-motion:reduce){
  .shelf-copy,.shelf-slot{opacity:1}
}
