/* ============================================================
   bormantov.ru — страницы V2: «Проекты» (Product Showcase C)
   и «Для агентств» (Kinetic Typography B).
   Подключается после styles.css, v2.css и hero-v2.css
   (шрифт Inter и текстовые классы .hv2__* — из hero-v2.css).
   Принцип тот же, что у утверждённой главной: графика — фон
   всего hero, текст и CTA лежат поверх неё.
   ============================================================ */

/* ------------------------------------------------------------
   Общий hero страниц
   ------------------------------------------------------------ */
.pv2-hero {
  --hv2-signal: #2dd4bf;
  --hv2-ink: #f8fafc;
  --hv2-muted: #aab8c8;
  position: relative;
  isolation: isolate;
  z-index: 1;
  min-height: min(900px, calc(100svh - var(--header-height)));
  display: flex;
  align-items: center;
  padding: 64px 0 80px;
  overflow: hidden;
}

.pv2-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.pv2-hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.pv2-hero .hv2__content {
  max-width: 640px;
}

/* Текст поверх графики: мягкая тень от фона, без подложек */
.pv2-hero .hv2__title,
.pv2-hero .hv2__lead,
.pv2-hero .hv2__eyebrow {
  text-shadow: 0 0 18px rgba(5, 8, 22, 0.85), 0 0 4px rgba(5, 8, 22, 0.7);
}

.pv2-sub {
  display: block;
  margin-top: 18px;
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: #94a3b8;
}

.pv2-hero .v2-motion-toggle {
  top: 22px;
  bottom: auto;
  right: max(20px, calc((100vw - var(--container-max)) / 2 + 20px));
}

/* ------------------------------------------------------------
   PRODUCT SHOWCASE C — колода карточек проектов
   Четыре реальных проекта по кругу: передняя карточка уходит
   вперёд-вправо, следующая пружинно выходит на её место.
   Внутри — только факты (название, класс, статус, стек) и
   фактура-заглушка вместо скриншота. Интерфейсов не рисуем.
   ------------------------------------------------------------ */
.deck {
  position: absolute;
  top: 50%;
  right: 3%;
  width: min(50vw, 720px);
  aspect-ratio: 5 / 4;
  translate: 0 -46%;
  perspective: 1800px;
}

.deck-card {
  --x: 0%;
  --y: 0%;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 22px 24px 24px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.94) 0%, rgba(3, 7, 18, 0.96) 100%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform-origin: 50% 50%;
  animation: deck-cycle 16s infinite;
  animation-delay: calc(var(--i) * 4s - 16s);
  will-change: transform, opacity;
}

.deck-card__screen b {
  animation: deck-screen 16s infinite;
  animation-delay: calc(var(--i) * 4s - 16s);
}

/* Крупная типографика экрана видна только у передней карточки, чтобы не спорить с H1 */
@keyframes deck-screen {
  0%, 19%   { opacity: 1; }
  23%, 96%  { opacity: 0; }
  100%      { opacity: 1; }
}

.deck-card > :not(.deck-card__screen) {
  animation: deck-content 16s infinite;
  animation-delay: calc(var(--i) * 4s - 16s);
}

/* Тексты карточки читаются только у передней и следующей: задние — силуэт и фактура */
@keyframes deck-content {
  0%, 19%   { opacity: 1; }
  25%       { opacity: 0; }
  25.1%, 69% { opacity: 0; }
  75%, 94%  { opacity: .45; }
  100%      { opacity: 1; }
}

.deck-card__bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.deck-card__bar > span:not(.v2-status) {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}

.deck-card__bar .v2-status {
  margin-left: auto;
}

.deck-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.deck-card__mono {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #e2e8f0;
  border: 1px solid rgba(45, 212, 191, 0.4);
  background: rgba(45, 212, 191, 0.08);
}

.deck-card__name {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.deck-card__kind {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: #94a3b8;
}

/* Экран-заглушка: фактура монолита B вместо скриншота */
.deck-card__screen {
  position: relative;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  overflow: hidden;
  background-color: rgba(2, 6, 23, 0.55);
}

.deck-card__screen::before {
  content: '';
  position: absolute;
  inset: -40px;
  opacity: 0.7;
  background-image: var(--tex);
  animation: deck-tex 16s linear infinite;
  animation-delay: calc(var(--i) * 4s - 16s);
}

.deck-card__screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 22px;
}

/* Типографическая композиция вместо скриншота: ключевые этапы продукта */
.deck-card__screen b {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #e2e8f0;
}

.deck-card__screen b:nth-child(2) { color: #5eead4; padding-left: 0.9em; }
.deck-card__screen b:nth-child(3) { color: #94a3b8; padding-left: 1.8em; }

.deck-card__screen b::before {
  content: "";
  width: 0.4em;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.deck-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deck-card__stack li {
  font-size: 12px;
  font-weight: 600;
  color: #bae6fd;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.26);
  border-radius: 8px;
  padding: 3px 9px;
}

.tex-hatch { --tex: repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.28) 0 1px, transparent 1px 11px); }
.tex-dots  { --tex: radial-gradient(rgba(148, 163, 184, 0.5) 1px, transparent 1.3px) 0 0 / 11px 11px; }
.tex-dash  { --tex: repeating-linear-gradient(0deg, transparent 0 10px, rgba(45, 212, 191, 0.35) 10px 11px); }
.tex-vert  { --tex: repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.3) 0 1px, transparent 1px 11px); }

/* Цикл одной карточки (16 с, 4 позиции по 25%).
   Задержка calc(var(--i) * 4s - 16s): на старте 01 спереди, следующей выходит 02,
   затем 03, 04 и снова 01 (с задержкой -i*4s порядок был обратным: 01→04→03→02).
   Позиции: S0 — передняя, S1…S3 — дальше вверх-влево, за текстом. */
@keyframes deck-cycle {
  0%    { transform: translate3d(0, 0, 0) rotateY(-9deg) scale(1);      opacity: 1;    z-index: 4; filter: none; animation-timing-function: cubic-bezier(.55, 0, .7, .4); }
  19%   { transform: translate3d(0, 0, 0) rotateY(-9deg) scale(1);      opacity: 1;    z-index: 4; animation-timing-function: cubic-bezier(.55, 0, .7, .4); }
  25%   { transform: translate3d(22%, 8%, 0) rotateY(-20deg) scale(1.04); opacity: 0;  z-index: 4; }
  25.1% { transform: translate3d(-48%, -27%, 0) rotateY(-9deg) scale(.7); opacity: 0;  z-index: 1; animation-timing-function: cubic-bezier(.2, .75, .2, 1); }
  31%   { transform: translate3d(-48%, -27%, 0) rotateY(-9deg) scale(.7); opacity: .22; z-index: 1; }
  44%   { transform: translate3d(-48%, -27%, 0) rotateY(-9deg) scale(.7); opacity: .22; z-index: 1; animation-timing-function: cubic-bezier(.3, 1.25, .5, 1); }
  50%   { transform: translate3d(-32%, -18%, 0) rotateY(-9deg) scale(.8); opacity: .38; z-index: 2; }
  69%   { transform: translate3d(-32%, -18%, 0) rotateY(-9deg) scale(.8); opacity: .38; z-index: 2; animation-timing-function: cubic-bezier(.3, 1.25, .5, 1); }
  75%   { transform: translate3d(-16%, -9%, 0) rotateY(-9deg) scale(.9);  opacity: .62; z-index: 3; }
  94%   { transform: translate3d(-16%, -9%, 0) rotateY(-9deg) scale(.9);  opacity: .62; z-index: 3; animation-timing-function: cubic-bezier(.3, 1.25, .5, 1); }
  100%  { transform: translate3d(0, 0, 0) rotateY(-9deg) scale(1);      opacity: 1;    z-index: 4; }
}

@keyframes deck-tex {
  to { transform: translate(22px, 22px); }
}

/* Подпись текущего проекта под колодой: синхронна с циклом */
.deck-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -46px;
  height: 18px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}

.deck-ticker span {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: deck-tick 16s infinite;
  animation-delay: calc(var(--i) * 4s - 16s);
}

.deck-ticker b {
  color: #2dd4bf;
  font-weight: 700;
}

@keyframes deck-tick {
  0%, 19%  { opacity: 1; transform: none; }
  23%      { opacity: 0; transform: translateY(-10px); }
  24%, 96% { opacity: 0; transform: translateY(10px); }
  100%     { opacity: 1; transform: none; }
}

/* Поле-основа за колодой (та же сетка, что у главной, статично) */
.pv2-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: radial-gradient(ellipse 75% 70% at 62% 50%, #000 30%, transparent 85%);
}

/* ------------------------------------------------------------
   KINETIC TYPOGRAPHY B — «Для агентств»
   Гигантское слово-компетенция за заголовком: буквы входят снизу
   и уходят вверх по отдельности, с разным таймингом входа и
   выхода. Заголовок H1 статичен и всегда читаем.
   ------------------------------------------------------------ */
.kt-giant {
  position: absolute;
  right: -1vw;
  top: 50%;
  translate: 0 -72%;
  height: 1.05em;
  font-size: clamp(120px, 15.5vw, 250px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.kt-giant__word {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
}

.kt-giant__word span {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(148, 163, 184, 0.42);
  opacity: 0;
  animation: kt-letter 12s infinite;
  animation-delay: calc(var(--w) * 2s + var(--l) * 0.035s - 0.4s);
}

.kt-giant__word span.is-accent {
  -webkit-text-stroke-color: rgba(45, 212, 191, 0.75);
}

/* Слово видно ~1,9 с из 12: вход 0–5%, удержание, выход 13–17% */
@keyframes kt-letter {
  0%   { opacity: 0; transform: translateY(0.42em) rotate(4deg); animation-timing-function: cubic-bezier(.2, .9, .25, 1.15); }
  5%   { opacity: 1; transform: none; }
  13%  { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  17%  { opacity: 0; transform: translateY(-0.36em) rotate(-3deg); }
  100% { opacity: 0; transform: translateY(-0.36em); }
}

/* Счётчик «01 / 06 — FRONTEND», синхронный с гигантским словом */
.kt-count {
  position: absolute;
  right: max(20px, calc((100vw - var(--container-max)) / 2 + 20px));
  top: 34px;
  height: 18px;
  width: 260px;
  overflow: hidden;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}

.kt-count span {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: kt-count 12s infinite;
  animation-delay: calc(var(--w) * 2s - 0.4s);
}

.pv2-hero--kt .kt-count {
  top: 72px;
}

.kt-count b {
  color: #2dd4bf;
}

@keyframes kt-count {
  0%   { opacity: 0; transform: translateY(12px); }
  4%   { opacity: 1; transform: none; }
  15%  { opacity: 1; transform: none; }
  17%, 100% { opacity: 0; transform: translateY(-12px); }
}

/* Линия-развёртка: растёт под словом за время его показа */
.kt-sweep {
  position: absolute;
  right: max(20px, calc((100vw - var(--container-max)) / 2 + 20px));
  bottom: 64px;
  width: min(44vw, 620px);
  height: 2px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.kt-sweep::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #2563eb, #2dd4bf);
  transform-origin: left center;
  animation: kt-sweep 2s linear infinite;
  animation-delay: -0.4s;
}

@keyframes kt-sweep {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ------------------------------------------------------------
   Разделы страниц: единый уровень с главной
   ------------------------------------------------------------ */
.pv2-page .section-header__title {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.pv2-page h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pv2-page .v2-project h3 {
  font-size: 28px;
}

/* Фактура монолита в контейнерах будущих скриншотов */
.pv2-page .v2-shot {
  background:
    repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.09) 0 1px, transparent 1px 12px),
    rgba(2, 6, 23, 0.55);
}

.pv2-page .v2-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(45, 212, 191, 0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.9s cubic-bezier(.2, .75, .2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .pv2-page .v2-project:hover .v2-shot::after {
    transform: translateX(100%);
  }
}

/* ------------------------------------------------------------
   Адаптивность
   ------------------------------------------------------------ */
@media (max-width: 1199px) and (min-width: 900px) {
  .deck { width: 46vw; right: 3%; }
  .pv2-hero .hv2__content { max-width: 56vw; }
}

@media (max-width: 899px) {
  .pv2-hero {
    min-height: calc(100svh - var(--header-height));
    align-items: flex-start;
    padding: 96px 0 64px;
  }

  .deck {
    top: 24px;
    right: -6%;
    width: min(70vw, 560px);
    translate: 0 0;
  }

  .deck-ticker { display: none; }

  .kt-giant {
    top: 70px;
    translate: 0 0;
    font-size: clamp(110px, 19vw, 170px);
  }

  .kt-sweep { display: none; }
}

@media (max-width: 699px) {
  .pv2-hero {
    padding: 40px 0 40px;
  }

  /* Телефон: колода крупнее и уходит за правый край, H1 ложится на неё.
     Тексты карточек скрыты — за заголовком только силуэты, статус и фактура */
  .deck {
    top: 96px;
    right: -34%;
    width: 118vw;
  }

  .deck-card__head,
  .deck-card__stack,
  .deck-card__screen b {
    display: none;
  }

  .deck-card {
    grid-template-rows: auto 1fr;
  }

  .deck-card {
    padding: 16px 18px 18px;
    gap: 10px;
  }

  .deck-card__mono { width: 46px; height: 46px; font-size: 16px; }
  .deck-card__name { font-size: 21px; }

  .kt-giant {
    top: 92px;
    right: -4vw;
    font-size: 34vw;
  }

  .pv2-hero--kt .kt-count {
    top: auto;
    bottom: 28px;
    left: 16px;
    right: auto;
    width: 240px;
    text-align: left;
  }

  .pv2-hero .v2-motion-toggle {
    top: 12px;
    bottom: auto;
    right: 12px;
  }

  .pv2-page .v2-project h3 {
    font-size: 24px;
  }
}

/* ------------------------------------------------------------
   prefers-reduced-motion: статичные композиции
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .deck-card,
  .deck-card > :not(.deck-card__screen),
  .deck-card__screen b,
  .deck-card__screen::before,
  .deck-ticker span,
  .kt-giant__word span,
  .kt-count span,
  .kt-sweep::after {
    animation: none !important;
  }

  .deck-card { opacity: var(--rm-o, 1); transform: var(--rm-t); z-index: var(--rm-z); }
  .deck-card[style*="--i:0"] { --rm-t: translate3d(0, 0, 0) rotateY(-9deg); --rm-o: 1; --rm-z: 4; }
  .deck-card[style*="--i:1"] { --rm-t: translate3d(-16%, -9%, 0) rotateY(-9deg) scale(.9); --rm-o: .62; --rm-z: 3; }
  .deck-card[style*="--i:2"] { --rm-t: translate3d(-32%, -18%, 0) rotateY(-9deg) scale(.8); --rm-o: .38; --rm-z: 2; }
  .deck-card[style*="--i:3"] { --rm-t: translate3d(-48%, -27%, 0) rotateY(-9deg) scale(.7); --rm-o: .22; --rm-z: 1; }

  .deck-card:not([style*="--i:0"]) > :not(.deck-card__screen),
  .deck-card:not([style*="--i:0"]) .deck-card__screen b { opacity: 0; }

  .deck-ticker span:first-child,
  .kt-count span:first-child,
  .kt-giant__word:first-child span {
    opacity: 1;
  }

  .kt-sweep::after { transform: scaleX(1); }

  .pv2-page .v2-shot::after { transition: none; }
}

/* ============================================================
   Разделы ниже hero (финализация P0): строгая сетка, тонкие линии,
   без повторяющихся карточек и свечений
   ============================================================ */

.pv2-section {
  position: relative;
  z-index: 1;
  padding: 104px 0;
}

.pv2-section--alt {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0));
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.pv2-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.pv2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}

.pv2-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: #2dd4bf;
}

.pv2-intro {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.65;
  color: #aab8c8;
}

.pv2-fine {
  margin-top: 24px;
  max-width: 760px;
  font-size: 14px;
  color: #94a3b8;
}

.pv2-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.pv2-split .pv2-head { margin-bottom: 0; position: sticky; top: calc(var(--header-height) + 32px); }
.pv2-split .v2-textlink { display: inline-block; margin-top: 22px; }

/* --- каталог проектов: редакционные строки --- */
.prows { border-top: 1px solid rgba(148, 163, 184, 0.18); }

.prow {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 4fr) minmax(0, 4fr);
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  transition: background 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .prow:hover { background: linear-gradient(90deg, rgba(45, 212, 191, 0.04), transparent 70%); }
  .prow:hover .prow__num { color: #2dd4bf; -webkit-text-stroke-color: #2dd4bf; }
}

.prow__num {
  display: block;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.45);
  transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease;
}

.prow__name {
  margin-top: 18px;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.prow__kind {
  margin: 6px 0 14px;
  font-size: 14px;
  color: #94a3b8;
}

.prow__facts { display: grid; gap: 18px; align-content: start; }

.prow__facts dt,
.pmatrix thead th,
.aformats thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.prow__facts dd {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.6;
  color: #cbd5e1;
}

.prow__tech { display: grid; gap: 16px; align-content: start; }

.pflow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
}

.pflow i { font-style: normal; color: #2dd4bf; }

.prow__stack { display: flex; flex-wrap: wrap; gap: 6px; }

.prow__stack li {
  font-size: 12px;
  font-weight: 600;
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 6px;
  padding: 3px 9px;
}

.prow__note { font-size: 14px; line-height: 1.55; color: #94a3b8; }

/* --- матрица компетенций и таблица форматов --- */
.pmatrix-wrap,
.aformats-wrap { overflow-x: auto; }

.pmatrix,
.aformats {
  width: 100%;
  border-collapse: collapse;
}

.pmatrix th,
.pmatrix td,
.aformats th,
.aformats td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  text-align: left;
  vertical-align: top;
}

.pmatrix tbody th,
.aformats tbody th {
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
}

.pmatrix td { text-align: center; }
.pmatrix thead th:not(:first-child) { text-align: center; }
.pm-yes { color: #2dd4bf; font-size: 14px; }
.pm-no { color: #475569; }

/* --- финальный CTA --- */
.pv2-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding-top: 48px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.pv2-cta__title {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.pv2-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.pv2-cta__actions .btn {
  height: 54px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 650;
  gap: 12px;
}

/* --- агентства: ситуации --- */
.aline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.aline__item {
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.aline__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2dd4bf;
}

.aline__item h3 { margin: 14px 0 10px; font-size: 22px; }
.aline__item p { font-size: 16px; line-height: 1.6; color: #aab8c8; }

/* --- агентства: что беру на себя --- */
.ascope { border-top: 1px solid rgba(148, 163, 184, 0.18); }

.ascope__row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.ascope__row dt {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
}

.ascope__tag {
  flex-shrink: 0;
  width: 44px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #2dd4bf;
}

.ascope__row dd { font-size: 16px; line-height: 1.6; color: #aab8c8; }

/* --- агентства: форматы --- */
.aformats thead th { padding-top: 0; }
.aformats thead th:not(:first-child) { font-size: 17px; letter-spacing: -0.01em; text-transform: none; color: #f8fafc; }
.aformats td { font-size: 15px; line-height: 1.55; color: #cbd5e1; }
.aformats tbody th { width: 18%; color: #94a3b8; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; }

/* --- агентства: процесс --- */
.asteps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.asteps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  height: 1px;
  background: linear-gradient(90deg, #2563eb, #2dd4bf 60%, rgba(45, 212, 191, 0));
}

.asteps__num {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #2dd4bf;
  background: #050816;
  font-size: 13px;
  font-weight: 700;
  color: #5eead4;
}

.asteps__item h3 { margin: 18px 0 8px; font-size: 20px; }
.asteps__item p { font-size: 16px; line-height: 1.6; color: #aab8c8; }

.aproof {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.aproof ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.aproof a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  transition: border-color 0.25s ease, transform 0.35s cubic-bezier(.2, .75, .2, 1);
}

.aproof a span { font-size: 18px; font-weight: 700; color: #f8fafc; }
.aproof a small { font-size: 13px; color: #94a3b8; }
.aproof a:hover { border-color: rgba(45, 212, 191, 0.55); transform: translateY(-2px); }
.aproof a:focus-visible { outline: 2px solid rgba(56, 189, 248, 0.65); outline-offset: 3px; }

/* --- адаптивность разделов --- */
@media (max-width: 1080px) {
  .prow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .prow__tech { grid-column: 2; }
}

@media (max-width: 899px) {
  .pv2-section { padding: 80px 0; }
  .pv2-split { grid-template-columns: 1fr; gap: 32px; }
  .pv2-split .pv2-head { position: static; }
  .pv2-cta { grid-template-columns: 1fr; align-items: start; }
  .aline, .asteps { grid-template-columns: 1fr; gap: 28px; }
  .asteps::before { left: 20px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, #2563eb, #2dd4bf 60%, rgba(45, 212, 191, 0)); }
  .asteps__item { display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; }
  .asteps__item h3 { margin: 8px 0 6px; }
  .asteps__item p { grid-column: 2; }
  .aproof ul { grid-template-columns: 1fr; }
}

@media (max-width: 699px) {
  .pv2-section { padding: 64px 0; }
  .pv2-head { margin-bottom: 32px; }
  .prow { grid-template-columns: 1fr; gap: 18px; padding: 32px 0; }
  .prow__tech { grid-column: auto; }
  .prow__num { font-size: 36px; }
  .ascope__row { grid-template-columns: 1fr; gap: 8px; }
  .pv2-cta__actions { flex-direction: column; }
  .pv2-cta__actions .btn { width: 100%; justify-content: space-between; }

  /* Таблицы на телефоне — блоками, без горизонтального скролла */
  .pmatrix thead { display: none; }
  .pmatrix, .pmatrix tbody { display: block; }
  .pmatrix tr { display: grid; grid-template-columns: repeat(4, 1fr); padding: 14px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.16); }
  .pmatrix tbody th { grid-column: 1 / -1; padding: 0 0 8px; border: 0; }
  .pmatrix td { padding: 0; border: 0; font-size: 12px; text-align: left; color: #94a3b8; }
  .pmatrix td::before { display: block; content: attr(data-col); font-size: 11px; color: #64748b; margin-bottom: 2px; }

  .aformats thead { display: none; }
  .aformats, .aformats tbody, .aformats tr, .aformats th, .aformats td { display: block; }
  .aformats tr { padding: 16px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.16); }
  .aformats th, .aformats td { padding: 4px 0; border: 0; }
  .aformats tbody th { width: auto; margin-bottom: 6px; }
  .aformats td::before { display: block; content: attr(data-col); font-size: 12px; font-weight: 700; color: #f8fafc; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .prow, .prow__num, .aproof a { transition: none; }
}

/* ============================================================
   Финальная интеграция: реальные кадры в слотах колоды /projects/,
   ссылки на страницы кейсов и демо, матрица на пять проектов
   ============================================================ */
.deck-card__screen--shot {
  display: block;
  padding: 0;
  border-style: solid;
  border-color: rgba(148, 163, 184, 0.22);
  background: #050816;
}

.deck-card__screen--shot::before { display: none; }

.deck-card__screen--shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

@media (max-width: 899px) {
  .deck-card__screen--shot img { filter: brightness(0.4) saturate(0.7); }
}

/* Светлые экраны задних карточек не должны просвечивать за H1 — то же затемнение сцены, что на страницах кейсов */
.pv2-hero--shots .pv2-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

@media (min-width: 900px) {
  .pv2-hero--shots .pv2-stage::after {
    background: linear-gradient(90deg, #050816 0%, rgba(5, 8, 22, 0.96) 40%, rgba(5, 8, 22, 0.82) 48%, rgba(5, 8, 22, 0.3) 56%, rgba(5, 8, 22, 0) 64%);
  }
}

/* 900–1199: лид не заходит на рамку передней карточки (колода 46vw, right 3%) */
@media (max-width: 1199px) and (min-width: 900px) {
  .pv2-hero--shots .hv2__lead,
  .cv2-hero .hv2__lead { max-width: 46vw; }
}

@media (max-width: 899px) {
  .pv2-hero--shots .pv2-stage::after {
    background: linear-gradient(180deg, rgba(5, 8, 22, 0.2) 0%, rgba(5, 8, 22, 0.86) 46%, #050816 78%);
  }
}

.prow__name a { color: inherit; text-decoration: none; }
.prow__name a:hover { color: #5eead4; }

.prow__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.prow__demo-note { margin-top: -8px; font-size: 13px; line-height: 1.5; color: #94a3b8; }

