/* Клуб 30lll — «Стена» на главной (js/wall.js). Ячейки стоят абсолютно в .wall__grid,
   место и размер задаёт скрипт; двигаются только transform и opacity.
   Компьютер (от 1100px): слева липкая подпись выбранной записи, справа стена.
   Планшет и телефон: стена во всю ширину, выбранная запись — плашкой снизу. */

.wall { display: grid; gap: 20px; }
.wall__main { min-width: 0; }
.wall__stage { position: relative; }
.wall__grid { position: absolute; inset: 0; }

/* Ячейка */
.wall__c {
  position: absolute; left: 0; top: 0; display: block; overflow: hidden;
  background: var(--light); color: inherit; cursor: pointer;
  transform-origin: 0 0; transition: opacity .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.wall__grid.is-flip .wall__c { transition: transform .62s var(--ease), opacity .4s var(--ease); }
.wall__c.is-out { opacity: 0 !important; pointer-events: none; }
.wall__c img, .wall__c video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.wall__c video { opacity: 0; transition: opacity .6s var(--ease); }
.wall__c video.is-on { opacity: 1; }
@media (hover: hover) {
  .wall__c img { transition: transform 1.1s var(--ease); }
  .wall__c.is-on img { transform: scale(1.035); }
}

/* Подсветка записи: остальные кадры мягко уходят в белый, не в серый */
.wall__grid.has-on .wall__c:not(.is-on) { opacity: .2; }

/* Штамп контактного листа: дата и тип, у вещей — цена */
.wall__s {
  position: absolute; left: 6px; bottom: 6px; z-index: 1; max-width: calc(100% - 12px);
  padding: 3px 5px; background: var(--white); color: var(--ink);
  font: 500 11px/1.2 var(--f-display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* у одиночных кадров штамп короткий: только дата */
.wall__c:not(.is-big):not(.is-wide) .wall__sk { display: none; }

/* Вещь: вырезка на белом, без тени */
.wall__c.is-prod { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.wall__c.is-prod img { object-fit: contain; padding: 8%; object-position: 50% 50%; }
.wall__c.is-prod .wall__s { left: 0; bottom: 0; padding: 5px 7px; }

/* Запись без фото: чёрная типографская ячейка, знак под −17° */
.wall__c.is-type { display: grid; align-content: space-between; padding: 10px; background: var(--ink); color: var(--white); }
.wall__c.is-type .label { position: relative; z-index: 1; color: rgba(255, 255, 255, .62); font-size: 11px; }
.wall__c.is-type b { position: relative; z-index: 1; font: 600 clamp(15px, 1.25vw, 22px)/1.02 var(--f-text); letter-spacing: -.03em; max-width: 14ch; }
.wall__c.is-type .sign { position: absolute; right: -6%; bottom: -10%; width: 58%; opacity: .55; transform: rotate(-17deg); }
.wall__c.is-type.is-wide .sign { width: 34%; right: 4%; bottom: -8%; }

/* Ссылки в конце стены */
.wall__c.is-end, .wall__c.is-tg { display: grid; align-content: space-between; padding: 12px; }
.wall__c.is-end { background: var(--ink); color: var(--white); }
.wall__c.is-tg { background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.wall__c.is-end .label { color: rgba(255, 255, 255, .62); }
.wall__c.is-tg .label { color: var(--muted); }
.wall__c.is-end b, .wall__c.is-tg b { display: flex; align-items: center; gap: 8px; font: 700 13px/1.1 var(--f-display); text-transform: uppercase; }
.wall__c.is-end .label, .wall__c.is-tg .label { font-size: 11px; }
.wall__c.is-end b i, .wall__c.is-tg b i { transition: transform .3s var(--ease); }
.wall__c.is-end:hover b i, .wall__c.is-tg:hover b i { transform: translateX(4px); }

.wall__c:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; z-index: 3; }
.wall__c.is-end:focus-visible { outline-offset: 3px; }

/* Подсказка у курсора */
.wall__cur {
  position: absolute; left: 0; top: 0; z-index: 4; padding: 6px 9px; pointer-events: none;
  background: var(--ink); color: var(--white); white-space: nowrap; font-size: 11px;
  opacity: 0; transition: opacity .2s;
}
.wall.is-cur .wall__cur { opacity: 1; }
.wall.is-cur .wall__c { cursor: none; }

/* Подпись выбранной записи (компьютер) */
.wall__panel { display: none; }
.wall__panel.is-in > * { animation: club-in .45s var(--ease) both; }
.wall__panel.is-in > :nth-child(2) { animation-delay: .03s; }
.wall__panel.is-in > :nth-child(n+3) { animation-delay: .06s; }
.wall__h { font: 600 clamp(24px, 2.1vw, 34px)/1.02 var(--f-text); letter-spacing: -.035em; text-wrap: balance; }
.wall__text { font-size: 14px; line-height: 1.55; color: #2a2a2a; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.wall__panel .club__items ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wall__panel .club__go { margin-top: 2px; }

.wall__more { justify-self: start; margin-top: 18px; padding-block: 15px; margin-bottom: -15px; font-size: 12px; }
.wall__more::after { bottom: 15px; }
.wall__more[hidden] { display: none; }

@media (min-width: 1100px) {
  .wall { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: clamp(28px, 3vw, 48px); align-items: start; }
  .wall__panel { position: sticky; top: calc(var(--hdr) + 24px); display: flex; flex-direction: column; gap: 14px; padding-top: 12px; min-height: 280px; }
}
@media (min-width: 1100px) and (max-width: 1359px) {
  .wall { grid-template-columns: 260px minmax(0, 1fr); }
}

/* Плашка выбранной записи (телефон и планшет) */
.wall__bar {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 15;
  display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 10px;
  padding: 10px 10px 10px 14px; background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--ink);
  transform: translateY(16px); opacity: 0; transition: transform .35s var(--ease), opacity .25s;
}
.wall__bar[hidden] { display: none; }
.wall__bar.is-on { transform: none; opacity: 1; }
.wall__bt { display: grid; gap: 3px; min-width: 0; }
.wall__bt .label { color: var(--muted); font-size: 11px; }
.wall__bt b { font-weight: 600; font-size: 15px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wall__bar .btn { min-height: 44px; padding: 0 16px; }
.wall__bx { width: 44px; height: 44px; display: grid; place-items: center; font-size: 18px; }
@media (min-width: 1100px) { .wall__bar { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .wall__c, .wall__grid.is-flip .wall__c, .wall__c img, .wall__c video, .wall__bar { transition: none; }
  .wall__panel.is-in > * { animation: none; }
  .wall__c.is-on img { transform: none; }
}
