/* ============================================================================
   ARTEM BOLSHAKOV PRODUCTION — portfolio.css
   Карточки работ и документов, страница портфолио, окно работы, кейсы,
   просмотрщик. Опирается на токены и компоненты styles.css.
   Сами работы не размываются, не перекрашиваются и не обрезаются по тексту:
   единство создаёт оформление вокруг них.
   ============================================================================ */

/* Появление без размытия — для блоков с работами */
.reveal.reveal--soft { filter: none; }

/* ══════════════════════════════════════════════ КАРТОЧКА РАБОТЫ ═════════ */
.work-card { position: relative; min-width: 0; }

.work-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .042) 0%, rgba(255, 255, 255, .01) 36%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(14, 16, 25, .66) 0%, rgba(6, 7, 12, .84) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .55s var(--ease), border-color .55s var(--ease), box-shadow .55s var(--ease);
}
.work-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(168deg,
    rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .035) 28%,
    rgba(255, 255, 255, .008) 56%, rgba(138, 92, 255, .12) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Сцена под работу: декоративная подложка, сама работа поверх */
.work-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(70% 80% at 50% 110%, rgba(123, 77, 255, .22), transparent 70%),
    radial-gradient(60% 60% at 12% 0%, rgba(78, 107, 255, .12), transparent 70%),
    linear-gradient(180deg, #0D0F18, #07080D);
}
/* По умолчанию — cover: сцены без важного текста у краёв */
.work-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.work-card--cover-top .work-card__img { object-position: 50% 0; }

/* slide — слайд целиком с полями, без растяжения */
.work-card--slide .work-card__img {
  inset: auto;
  left: 50%;
  top: 50%;
  width: 84%;
  height: auto;
  object-fit: fill;
  translate: -50% -50%;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 22px 44px -22px rgba(0, 0, 0, .95);
}

/* wide — широкий кадр с надписями у краёв: целиком по ширине */
.work-card--wide .work-card__img {
  inset: auto;
  left: 0;
  top: 50%;
  width: 100%;
  height: auto;
  object-fit: fill;
  translate: 0 -50%;
}

/* phone / poster — вертикальные работы в рамке по высоте */
.work-card--phone .work-card__img,
.work-card--poster .work-card__img {
  inset: auto;
  left: 50%;
  top: 50%;
  height: 86%;
  width: auto;
  object-fit: fill;
  translate: -50% -50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 48px -20px rgba(0, 0, 0, .95);
}
.work-card--phone .work-card__img { border-radius: 14px; }
.work-card--poster .work-card__img { height: 88%; border-radius: 4px; }

@media (hover: hover) {
  .work-card__link:hover {
    transform: translateY(-4px);
    border-color: var(--line-violet);
    box-shadow: var(--glow-violet);
  }
  .work-card__link:hover .work-card__img { transform: scale(1.025); }
}

/* Карточка с метками: строка меток сверху, работа — в рамке под ними */
.work-card--badged .work-card__media {
  display: flex;
  flex-direction: column;
}
.work-card__badges {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 13px 14px 0;
}
.work-card__frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 11px 9% 15px;
}
.work-card--badged .work-card__frame .work-card__img {
  inset: auto;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: fill;
  translate: -50% -50%;
}

.work-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(163, 140, 255, .55);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(123, 77, 255, .34), rgba(138, 92, 255, .16));
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .005em;
  color: #EFEAFF;
  box-shadow: 0 10px 26px -14px rgba(123, 77, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .1);
}
/* маленькая светящаяся точка — акцент без «баннерности» */
.work-card__badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #B9A6FF;
  box-shadow: 0 0 8px rgba(163, 140, 255, .95);
}

.work-card__play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding-left: 2px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(5, 5, 9, .7);
  color: #fff;
}

.work-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 7px;
  padding: 17px 20px 19px;
}
.work-card__cat {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.work-card__title {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.work-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--violet-text);
}
.work-card__more svg { transition: transform .4s var(--ease); }
.work-card__link:hover .work-card__more svg { transform: translateX(4px); }

/* ══════════════════════════════════════════════ КАРТОЧКА ДОКУМЕНТА ══════ */
.doc-card { min-width: 0; }
.doc-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, rgba(14, 16, 25, .66) 0%, rgba(6, 7, 12, .84) 100%);
  transition: transform .55s var(--ease), border-color .55s var(--ease);
}
@media (hover: hover) {
  .doc-card__link:hover { transform: translateY(-3px); border-color: var(--line-violet); }
  .doc-card__link:hover .doc-card__img { transform: translate(-50%, -50%) scale(1.025); }
}
.doc-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 50% 100%, rgba(123, 77, 255, .16), transparent 70%),
    linear-gradient(180deg, #0D0F18, #07080D);
}
.doc-card__img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 84%;
  width: auto;
  transform: translate(-50%, -50%);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 40px -18px rgba(0, 0, 0, .95);
  transition: transform .7s var(--ease);
}
.doc-card--landscape .doc-card__img { height: auto; width: 76%; }
.doc-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
  padding: 16px 20px 19px;
}
.doc-card__title { font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -0.018em; }
.doc-card__role { font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.doc-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--violet-text);
}
.doc-card__more svg { transition: transform .4s var(--ease); }
.doc-card__link:hover .doc-card__more svg { transform: translateX(4px); }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 20px);
}
.doc-grid--results { max-width: 860px; }

/* ═════════════════════════════════════════ ГЛАВНАЯ: избранные работы ════ */
.portfolio__grid--works {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}
.portfolio__grid--works .work-card.reveal { filter: none; }
.portfolio__foot {
  display: flex;
  justify-content: center;
  margin-top: clamp(30px, 3.4vw, 46px);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 11, 18, .5);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  transition: border-color .4s var(--ease), background-color .4s var(--ease), color .3s var(--ease);
}
.link-arrow svg { transition: transform .4s var(--ease); }
.link-arrow:hover { border-color: var(--line-violet); background: rgba(123, 77, 255, .1); }
.link-arrow:hover svg { transform: translateX(4px); }

/* «Все работы» на главной — CTA второго уровня: крупнее ссылки,
   спокойнее основной кнопки. Размер — чуть компактнее «Связаться с нами»
   под картиной (56 px), без заливки. */
.portfolio__foot .link-arrow {
  gap: 11px;
  min-height: 52px;
  padding: 0 30px;
  border-color: rgba(244, 244, 247, .24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .012) 60%),
    rgba(10, 11, 18, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: border-color .4s var(--ease), background-color .4s var(--ease),
              box-shadow .4s var(--ease), transform .4s var(--ease);
}
.portfolio__foot .link-arrow:hover {
  transform: translateY(-2px);
  border-color: rgba(163, 140, 255, .6);
  background:
    linear-gradient(180deg, rgba(123, 77, 255, .16), rgba(123, 77, 255, .05) 70%),
    rgba(10, 11, 18, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 14px 38px -16px rgba(123, 77, 255, .85);
}
.portfolio__foot .link-arrow:active { transform: translateY(0); }

/* ═══════════════════════════════════════════ СТРАНИЦА ПОРТФОЛИО ═════════ */
.pf-page {
  position: relative;
  z-index: 1;
  min-height: 80vh;
  padding-bottom: clamp(80px, 9vw, 130px);
}
.pf-head {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(36px, 5.5vw, 80px));
  padding-bottom: clamp(24px, 3vw, 38px);
}
.pf-head__home { margin-bottom: clamp(20px, 2.6vw, 32px); }
.pf-head__title {
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.pf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(24px, 3vw, 36px);
}
.pf-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 244, 247, .025);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-muted);
  transition: color .35s var(--ease), border-color .35s var(--ease),
              background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.pf-tab:hover { color: var(--text); border-color: var(--line-strong); }
.pf-tab[aria-current="true"] {
  color: #fff;
  border-color: rgba(138, 92, 255, .55);
  background: linear-gradient(135deg, rgba(123, 77, 255, .38), rgba(138, 92, 255, .2));
  box-shadow: 0 12px 30px -18px rgba(123, 77, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  transition: opacity .17s ease, transform .17s ease;
}
.pf-grid.is-leaving { opacity: 0; transform: translateY(6px); }
.pf-grid--docs { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; }

.pf-enter { animation: pfEnter .62s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes pfEnter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════ ОКНО РАБОТЫ ═════════ */
.overlay--work { z-index: 110; }
.overlay__panel--work { width: min(100%, 1060px); }

.work-view { display: flex; flex-direction: column; }
.work-view__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(22px, 2.6vw, 32px) 70px 0 clamp(20px, 2.8vw, 36px);
}
.work-view__cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--violet-text);
}
.work-view__title {
  font-size: clamp(21px, 2.2vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.16;
  text-wrap: balance;
}
.work-view__media {
  padding: clamp(16px, 2vw, 24px) clamp(16px, 2.4vw, 32px) 0;
}
.work-view__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.8vw, 36px) clamp(26px, 3vw, 38px);
}
.work-view__desc p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 70ch;
}
.work-view__rest { display: flex; flex-direction: column; gap: 30px; margin-top: 6px; }

/* Вертикальная работа — слева, текст — справа */
.work-view--side {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}
.work-view--side .work-view__media {
  position: sticky;
  top: 0;
  padding: clamp(16px, 2vw, 24px);
}
.work-view--side .work-view__head { padding: 0 44px 0 0; }
.work-view--side .work-view__info { padding: clamp(24px, 2.8vw, 34px) clamp(22px, 2.8vw, 36px) clamp(26px, 3vw, 38px) 6px; }
.work-view--side .pf-video--portrait .pf-video__el { height: min(calc(100dvh - 110px), 720px); }
.work-view--side .pf-figure--poster img { height: min(calc(100dvh - 110px), 760px); }

/* ═══════════════════════════════════════════════════ СТРАНИЦА КЕЙСА ═════ */
.case-page {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + clamp(22px, 3.4vw, 48px));
  padding-bottom: clamp(80px, 9vw, 130px);
}
.case__crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(22px, 3vw, 38px); }
.case__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 244, 247, .025);
  font-size: 14px;
  color: var(--text-muted);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.case__back:hover { color: var(--text); border-color: var(--line-strong); }
.case__back--plain { padding: 0 16px; }
.case__back svg { transition: transform .4s var(--ease); }
.case__back:hover svg { transform: translateX(-3px); }

.case__head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.case__title {
  font-size: clamp(30px, 4.3vw, 58px);
  letter-spacing: -0.038em;
  line-height: 1.06;
  max-width: 24ch;
  text-wrap: balance;
}
.case__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(26px, 4.6vw, 72px);
  width: 100%;
  margin-top: clamp(6px, 1.2vw, 16px);
  align-items: start;
}
.case__intro--solo { grid-template-columns: minmax(0, 1fr); }
.case__lead { display: flex; flex-direction: column; gap: 14px; }
.case__lead p {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 64ch;
}

/* Разделители строк чуть контрастнее общих линий (.08): структура таблицы
   читается сразу, но линии остаются второстепенными. */
.case-meta { --meta-line: rgba(244, 244, 247, .13); margin: 0; border-top: 1px solid var(--meta-line); }
.case-meta__row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--meta-line);
}
.case-meta dt {
  padding-top: 3px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.case-meta dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
}
.case-meta__cap { display: inline-block; }
.case-meta__cap::first-letter { text-transform: uppercase; }

/* Ссылка на сайт клиента — спокойная, без акцентной кнопки */
.case-meta__client {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(195, 180, 255, .32);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color .3s var(--ease), text-decoration-color .3s var(--ease);
}
.case-meta__client svg { opacity: .55; transition: opacity .3s var(--ease); }
.case-meta__client:hover { color: var(--violet-text); text-decoration-color: currentColor; }
.case-meta__client:hover svg { opacity: 1; }

.case-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.case-tools li {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 244, 247, .025);
  font-size: 13px;
  color: var(--text-muted);
}

.case__sections {
  display: flex;
  flex-direction: column;
  gap: clamp(52px, 6.4vw, 96px);
  margin-top: clamp(44px, 5.6vw, 80px);
}
.case-block { display: flex; flex-direction: column; min-width: 0; }
.case-block__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: clamp(16px, 1.8vw, 24px);
}
.case__h2 {
  font-size: clamp(21px, 2.1vw, 29px);
  letter-spacing: -0.03em;
  line-height: 1.18;
}
.case__h2--section { margin-bottom: calc(clamp(52px, 6.4vw, 96px) * -0.62); }
.case__caption {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 72ch;
}
.case__note {
  align-self: flex-start;
  max-width: 78ch;
  padding: 14px 18px;
  border-left: 2px solid var(--violet);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(123, 77, 255, .08);
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text);
}
.case__doclink-wrap { margin: 0; }
.case__doclink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 500;
  color: var(--violet-text);
  transition: color .3s var(--ease);
}
.case__doclink:hover { color: var(--text); }
.case__doclink svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.case__doclink:hover svg { transform: translateX(4px); }

.case__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(60px, 7vw, 100px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

/* ─────────────────────────── Изображение ─────────────────────────── */
.pf-figure { margin: 0; }
.pf-figure__btn {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0B0D14;
  cursor: zoom-in;
}
.pf-figure__btn img { width: 100%; height: auto; }
.pf-figure--poster .pf-figure__btn {
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 8px;
}
.pf-figure--poster .pf-figure__btn img { width: auto; max-width: 100%; height: min(82vh, 900px); }

.zoom-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(5, 5, 9, .74);
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.pf-figure__btn:hover .zoom-chip { background: rgba(123, 77, 255, .8); border-color: transparent; }

/* ──────────────────────────────── Видео ──────────────────────────────── */
.pf-video { margin: 0; min-width: 0; }
.pf-video__el {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #000;
}
.pf-video--portrait .pf-video__el {
  width: auto;
  max-width: 100%;
  height: min(80vh, 760px);
  margin-inline: auto;
}
.pf-video--square .pf-video__el { width: min(100%, 720px); margin-inline: auto; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 20px);
}
.pf-video__title {
  margin-top: 11px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}

/* ───────────────────────────── Панорама ───────────────────────────── */
.pano { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pano__scroller {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #0B0D14;
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 92, 255, .42) transparent;
}
.pano__btn { display: block; width: 100%; cursor: zoom-in; }
.pano__btn img { width: 100%; height: auto; }

/* ───────────────────────── Полная презентация ───────────────────────── */
.deck {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(22px, 3.4vw, 50px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 90% at 0% 100%, rgba(123, 77, 255, .14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, rgba(14, 16, 25, .66), rgba(6, 7, 12, .84));
}
.deck__cover {
  position: relative;
  display: block;
  padding: 0 18px 18px 0;
  cursor: zoom-in;
  text-align: left;
}
/* «стопка» листов позади обложки */
.deck__cover::before,
.deck__cover::after {
  content: "";
  position: absolute;
  inset: 0 18px 18px 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: #121420;
  transition: transform .6s var(--ease);
}
.deck__cover::before { transform: translate(18px, 18px); opacity: .55; }
.deck__cover::after  { transform: translate(9px, 9px); opacity: .85; }
.deck__sheet {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -30px rgba(0, 0, 0, .95);
  transition: transform .6s var(--ease);
}
.deck__sheet img { width: 100%; height: auto; }
.deck__cover:hover .deck__sheet { transform: translate(-3px, -3px); }
.deck__cover:hover::after { transform: translate(11px, 11px); }
.deck__head { display: flex; flex-direction: column; gap: 6px; }
.deck__pages { font-size: 14px; color: var(--text-dim); }
.deck__info { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.deck__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
.deck__open { max-width: 100%; }
.deck__downloads { display: flex; flex-wrap: wrap; gap: 10px; }
.deck__size {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dim);
}
.deck__pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color .3s var(--ease);
}
.deck__pdf:hover { color: var(--violet-text); }

/* ────────────────────────────────── Речь ────────────────────────────── */
.speech {
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, rgba(14, 16, 25, .6), rgba(6, 7, 12, .8));
}
.speech .case-block__head { max-width: 70ch; }
.speech__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.speech__toggle svg { transition: transform .4s var(--ease); }
.speech__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.speech__body { margin-top: clamp(20px, 2.4vw, 30px); }
.speech__body.is-in { animation: pfEnter .5s var(--ease) both; }
.speech__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.speech__item {
  display: grid;
  grid-template-columns: minmax(170px, .36fr) minmax(0, 1fr);
  gap: 8px 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.speech__slide {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--violet-text);
}
.speech__item p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 72ch;
}
.speech__item p + p { margin-top: 10px; }
.speech__loading { font-size: 14px; color: var(--text-dim); }

/* ─────────────────────────────── Прототип ───────────────────────────── */
.proto {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(22px, 3.4vw, 50px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(78, 107, 255, .12), transparent 70%),
    linear-gradient(180deg, rgba(14, 16, 25, .62), rgba(6, 7, 12, .82));
}
.proto__window {
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #11131d, #0a0b12);
}
.proto__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.proto__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.proto__bar b { flex: 1; height: 8px; margin-left: 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.proto__page { display: flex; flex-direction: column; gap: 9px; padding: 18px; }
.proto__page i { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.proto__page i:nth-child(1) { width: 58%; height: 14px; background: rgba(138, 92, 255, .32); }
.proto__page i:nth-child(2) { width: 82%; }
.proto__page i:nth-child(3) { width: 70%; }
.proto__page i:nth-child(4) { width: 30%; height: 22px; margin-top: 8px; background: rgba(138, 92, 255, .22); }
.proto__page i:nth-child(5) { width: 90%; margin-top: 10px; }
.proto__info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.proto__badge {
  padding: 5px 12px;
  border: 1px solid rgba(255, 196, 120, .32);
  border-radius: 999px;
  background: rgba(255, 176, 80, .08);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #F2D3A6;
}
.proto__actions { margin-top: 6px; }

/* ─────────────────────────── Отзыв в кейсе ─────────────────────────── */
.case-review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: clamp(20px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, rgba(14, 16, 25, .6), rgba(6, 7, 12, .8));
}
.case-review__label {
  align-self: flex-start;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.case-review__text { margin: 0; font-size: 15.5px; line-height: 1.68; color: var(--text); }
.case-review__quote {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 34px;
  line-height: .6;
  color: rgba(138, 92, 255, .5);
}
.case-review__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.case-review__name { font-size: 14.5px; font-weight: 600; }
.case-review__role { font-size: 12.5px; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════ КАРУСЕЛЬ ════════ */
.car { --gap: 14px; position: relative; min-width: 0; }
.car__track {
  position: relative;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--r-lg);
}
.car__track::-webkit-scrollbar { display: none; }
.car__track:focus-visible { outline-offset: 4px; }

.car__slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
}
.car__open {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ar);
  max-height: 76vh;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #0B0D14;
  cursor: zoom-in;
}
.car__open img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .4s ease;
}
.car__open img:not([src]) { opacity: 0; }
.car__zoom {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(5, 5, 9, .7);
  color: #fff;
  transition: opacity .3s var(--ease), background-color .3s var(--ease);
}
@media (hover: hover) {
  .car__zoom { opacity: 0; }
  .car__open:hover .car__zoom,
  .car__open:focus-visible .car__zoom { opacity: 1; }
}

/* Лента лучших слайдов: видно два слайда */
.car--ribbon .car__slide {
  flex-basis: calc((100% - var(--gap)) / 2);
  scroll-snap-align: start;
}
.car--ribbon .car__open { border-radius: var(--r-md); }

/* Листы A3 на светлом фоне — рамка спокойнее */
.car--sheet .car__open { background: #F4F5F7; }

/* Вертикальные экраны: несколько в ряд, активный — по центру */
.car--portrait { --slide-w: clamp(210px, 23vw, 276px); }
.car--portrait .car__slide { flex-basis: var(--slide-w); }
.car--portrait .car__track::before,
.car--portrait .car__track::after {
  content: "";
  flex: 0 0 calc(50% - var(--slide-w) / 2 - var(--gap));
}
.car--portrait .car__open { max-height: none; border-radius: 18px; }
.car--portrait .car__slide.is-active .car__open { border-color: rgba(138, 92, 255, .5); }

.car__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.car__counter {
  flex-shrink: 0;
  min-width: 46px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}
.car__title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}
.car__title.is-swap { animation: carTitle .45s var(--ease) both; }
@keyframes carTitle {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
.car__arrows { display: flex; gap: 8px; flex-shrink: 0; }
.car__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(10, 11, 18, .5);
  color: var(--text);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), opacity .3s var(--ease);
}
.car__arrow:hover:not(:disabled) { border-color: var(--line-violet); background: rgba(123, 77, 255, .14); }
.car__arrow:disabled { opacity: .32; cursor: default; }

/* ═══════════════════════════════════════════════ ДО / ПОСЛЕ ═════════════ */
.cmp {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #0B0D14;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.cmp__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.cmp__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.cmp__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 0 18px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.cmp__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: rgba(8, 8, 14, .78);
  color: #fff;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.cmp.is-dragging .cmp__knob,
.cmp:hover .cmp__knob { background: rgba(123, 77, 255, .88); }
.cmp:has(.cmp__range:focus-visible) .cmp__knob { outline: 2px solid var(--violet-2); outline-offset: 3px; }
.cmp__label {
  position: absolute;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(5, 5, 9, .76);
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cmp__label--before { left: 12px; top: 12px; }
.cmp__label--after  { right: 12px; bottom: 12px; }
.cmp__range {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

/* ═════════════════════════════════════════════════════ ЛАЙТБОКС ═════════ */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  background: rgba(2, 2, 5, .97);
  color: var(--text);
  opacity: 0;
  transition: opacity .28s ease;
}
.lb.is-open { opacity: 1; }
.lb:fullscreen { background: #020205; }

.lb__bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(12px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
}
.lb__info { display: flex; flex: 1 1 auto; align-items: baseline; gap: 12px; min-width: 0; }
.lb__counter {
  flex-shrink: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}
.lb__counter:empty { display: none; }
.lb__title {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lb__tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lb__actions { display: flex; gap: 6px; }
.lb__actions:empty { display: none; }
.lb__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px 0 12px;
  margin-right: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.lb__action:hover { border-color: var(--line-violet); background: rgba(123, 77, 255, .14); }
.lb__btn,
.lb__nav {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(12, 13, 20, .72);
  color: var(--text-muted);
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), opacity .3s;
}
.lb__btn { width: 40px; height: 40px; }
.lb__btn:hover:not(:disabled),
.lb__nav:hover:not(:disabled) { color: #fff; border-color: var(--line-violet); background: rgba(123, 77, 255, .18); }
.lb__btn:disabled { opacity: .3; cursor: default; }
.lb__btn--close { margin-left: 4px; color: var(--text); }

.lb__stage {
  position: relative;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: zoom-in;
}
.lb.is-zoomed .lb__stage { cursor: grab; }
.lb.is-dragging .lb__stage { cursor: grabbing; }
.lb__img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  transform-origin: 50% 50%;
  -webkit-user-drag: none;
  user-select: none;
}
.lb__img.is-anim { transition: transform .34s var(--ease); }
.lb--doc .lb__img { background: #fff; }

.lb__loader {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, .16);
  border-top-color: var(--violet-2);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.lb__loader.is-on { opacity: 1; animation: lbSpin .8s linear infinite; }
@keyframes lbSpin { to { transform: rotate(360deg); } }

.lb__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  color: var(--text);
}
.lb__nav--prev { left: clamp(10px, 1.6vw, 22px); }
.lb__nav--next { right: clamp(10px, 1.6vw, 22px); }
.lb__nav:disabled { opacity: 0; pointer-events: none; }
.lb--single .lb__nav { display: none; }

.lb__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px clamp(12px, 2vw, 22px) 14px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 92, 255, .42) transparent;
}
.lb__thumb {
  flex: 0 0 auto;
  width: 104px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #0B0D14;
  opacity: .72;
  transition: opacity .3s var(--ease), border-color .3s var(--ease);
}
.lb__thumb img { width: 100%; height: 100%; object-fit: contain; }
.lb__thumb:hover { opacity: 1; }
.lb__thumb.is-active { opacity: 1; border-color: var(--violet-2); box-shadow: 0 0 0 1px var(--violet-2); }

/* ═════════════════════════════════════════════════════ АДАПТИВ ══════════ */
@media (max-width: 1080px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case__intro { grid-template-columns: minmax(0, 1fr); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deck, .proto { grid-template-columns: minmax(0, 1fr); }
  .deck__info { align-items: stretch; }
  .work-view--side { grid-template-columns: minmax(0, 1fr); }
  .work-view--side .work-view__media { position: static; padding-bottom: 0; }
  .work-view--side .work-view__head { padding: 0 44px 0 0; }
  .work-view--side .work-view__info { padding: 22px clamp(20px, 2.8vw, 36px) 32px; }
  .work-view--side .pf-video--portrait .pf-video__el,
  .work-view--side .pf-figure--poster img { height: min(70dvh, 640px); }
}

@media (max-width: 900px) {
  .overlay__panel--work .deck,
  .overlay__panel--work .proto { padding: 18px; }
}

@media (max-width: 720px) {
  .portfolio__grid--works { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .portfolio__foot .link-arrow { min-height: 50px; padding: 0 28px; }

  /* Темы — одной прокручиваемой строкой, без скролла страницы вбок */
  .pf-tabs {
    flex-wrap: nowrap;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 6px;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .pf-tabs::-webkit-scrollbar { display: none; }
  .pf-tab { flex-shrink: 0; min-height: 40px; padding: 0 15px; font-size: 13.5px; }

  .pf-grid,
  .pf-grid--docs,
  .doc-grid { grid-template-columns: minmax(0, 1fr); }

  .work-card__body { padding: 15px 17px 17px; }
  /* метки компактнее, чтобы на телефоне помещались в одну строку;
     если места всё равно мало — переносятся, работа уменьшается под ними */
  .work-card__badges { gap: 5px; padding: 11px 12px 0; }
  .work-card__badge { gap: 6px; padding: 4px 9px 4px 8px; font-size: 11px; }
  .work-card__frame { margin: 10px 7% 12px; }
  .work-card__title { font-size: 16px; }

  .case__title { font-size: clamp(27px, 7.6vw, 36px); }
  .case-meta__row { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  .case__foot { flex-direction: column; align-items: stretch; }
  .case__foot .btn { width: 100%; }
  .case__foot .case__back { align-self: flex-start; }

  .video-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-video--portrait .pf-video__el { height: min(74vh, 640px); }
  .pf-figure--poster .pf-figure__btn img { height: auto; width: 100%; }
  .pf-figure--poster .pf-figure__btn { width: 100%; }

  /* Панорама на телефоне — читаемой высоты, листается вбок */
  .pano__btn { width: max-content; }
  .pano__btn img { width: auto; max-width: none; height: 280px; }
  .pano__open { width: 100%; }

  .deck { padding: 16px; border-radius: var(--r-lg); }
  .deck__cover { padding: 0 12px 12px 0; }
  .deck__cover::before, .deck__cover::after { inset: 0 12px 12px 0; }
  .deck__cover::before { transform: translate(12px, 12px); }
  .deck__cover::after  { transform: translate(6px, 6px); }
  .deck__open { width: 100%; padding: 0 16px; font-size: 15px; white-space: normal; text-align: center; min-height: 52px; }
  .deck__downloads { width: 100%; }
  .deck__downloads .btn { flex: 1 1 auto; }

  .speech { padding: 18px; border-radius: var(--r-lg); }
  .speech__actions .btn { width: 100%; }
  .speech__item { grid-template-columns: minmax(0, 1fr); gap: 6px; }

  .proto { padding: 18px; border-radius: var(--r-lg); }
  .proto__window { display: none; }
  .proto__actions, .proto__actions .btn { width: 100%; }

  .car--ribbon .car__slide { flex-basis: 86%; }
  .car--portrait { --slide-w: 62vw; }
  .car__arrow { width: 40px; height: 40px; }
  .car__title { font-size: 14px; }

  .cmp__label { font-size: 11px; padding: 5px 10px; }
  .cmp__label--before { left: 8px; top: 8px; }
  .cmp__label--after { right: 8px; bottom: 8px; }
  .cmp__knob { width: 40px; height: 40px; }

  /* Окно работы — нижний лист */
  .work-view__head { padding: 22px 64px 0 18px; }
  .work-view__media { padding: 14px 14px 0; }
  .work-view__info { padding: 18px 18px 28px; }
  .work-view--side .work-view__media { padding: 58px 14px 0; }
  .work-view--side .work-view__head { padding: 0; }
  .work-view--side .work-view__info { padding: 18px 18px 28px; }
  .work-view--side .pf-video--portrait .pf-video__el,
  .work-view--side .pf-figure--poster img { height: min(62dvh, 560px); }
  .work-view--side .pf-figure--poster .pf-figure__btn { width: auto; }
  .work-view--side .pf-figure--poster .pf-figure__btn img { width: auto; }

  /* Лайтбокс: жесты вместо кнопок масштаба */
  .lb__bar { padding: 8px 8px 8px 12px; gap: 8px; }
  .lb__info { flex-direction: column; align-items: stretch; gap: 0; }
  .lb__title { font-size: 13.5px; }
  .lb__counter { font-size: 12px; }
  .lb__btn--zoom { display: none; }
  .lb__btn { width: 38px; height: 38px; }
  .lb__action { height: 38px; padding: 0 11px; margin-right: 2px; font-size: 12.5px; }
  .lb__action span { display: none; }
  .lb__action { width: 38px; padding: 0; justify-content: center; }
  .lb__nav { width: 40px; height: 40px; margin-top: -20px; background: rgba(12, 13, 20, .8); }
  .lb__thumb { width: 80px; }
}
