/* Вариант главной 6 (/home-v6/, pp.home_v6): вариант 5 + персонажи-еноты.
   Грузится поверх pp-home-v5.css. Картинки: assets/raccoons/ (вырезаны по контуру, WebP с альфой). */

/* --- герой: главный енот вместо фигуры человека ------------------ */
/* Свечение фона опускается при прокрутке: --p6-glow-y задаёт pp-home-v6.js (параллакс). */
.p6-page .p5-hero {
  overflow: clip;                                   /* при параллаксе енот опускается: нижний срез картинки не должен вылезать на следующий блок */
  background:
    radial-gradient(60% 50% at 78% calc(70% + var(--p6-glow-y, 0px)), rgba(124, 116, 255, 0.22), transparent 70%),
    var(--p5-bg);
}
/* Низ героя плавно уходит в цвет страницы: опущенное параллаксом свечение не даёт шва на границе блока. */
.p6-page .p5-hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: 0; right: 0; bottom: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--p5-bg));
  pointer-events: none;
}
.p6-page .p5-hero .p5-kicker,
.p6-page .p5-hero .p5-h1-a,
.p6-page .p5-hero .p5-h1-b,
.p6-hero-boss,
.p6-page .p5-rot,
.p6-page .p5-hero-foot { will-change: translate; }
.p6-page .p5-h1-box { position: static; }          /* енот и слово позиционируются от всего героя */
.p6-page .p5-h1 { position: relative; z-index: 1; }
.p6-hero-boss {
  position: absolute;
  z-index: 2;                                       /* уши заходят поверх нижнего края первой строки */
  right: 4%;
  bottom: -48px;                                    /* стоит на нижней кромке героя, тело уходит за край */
  height: min(80%, 860px);
  width: auto;
  /* без drop-shadow: маска ниже режет всё по прямоугольнику картинки, и тень давала тёмный
     прямоугольник «фона» за енотом */
  /* низ картинки (обрез по пояс) растворяется к нижней границе героя, а не режется прямой линией.
     --p6-cut: на сколько px енот ушёл ниже героя (считает pp-home-v6.js), затухание сдвигается вместе с ним */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--p6-cut, 0px) - 140px), transparent calc(100% - var(--p6-cut, 0px)));
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--p6-cut, 0px) - 140px), transparent calc(100% - var(--p6-cut, 0px)));
  pointer-events: none;
}
.p6-page .p5-rot { z-index: 3; left: auto; right: 31%; bottom: 30%; }
.p6-page .p5-hero-foot { position: relative; z-index: 3; grid-template-columns: minmax(0, 620px); }

/* --- знакомьтесь: главный енот за столом ------------------------- */
.p6-meet { padding: 0 0 130px; text-align: center; }
.p6-meet-note {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 22px;
  font-size: clamp(24px, 2.4vw, 36px);
  color: var(--p5-ink-2);
}
.p6-meet-note svg { width: 60px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(20deg); }
.p6-meet-fig {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--p5-rule);
  text-align: left;
}
.p6-meet-fig img, .p6-meet-video { display: block; width: 100%; height: auto; }
.p6-meet-video { aspect-ratio: 16 / 9; object-fit: cover; background: var(--p5-bg-2); }
.p6-meet-cta { margin-top: 18px; }
.p6-meet-fig::after {
  content: '';
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.85));
  pointer-events: none;
}
.p6-meet-fig figcaption { position: absolute; z-index: 1; left: 32px; bottom: 28px; right: 32px; }
.p6-meet-fig figcaption b {
  display: block;
  font-family: var(--p5-display);
  font-weight: 900;
  font-size: clamp(36px, 4.2vw, 68px);
  line-height: .9;
  text-transform: uppercase;
}
.p6-meet-fig figcaption span { display: block; margin-top: 8px; font-size: 16px; color: #c9cad2; max-width: 52ch; }

/* --- команда енотов ---------------------------------------------- */
.p6-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.p6-team li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 470px;
  padding: 18px 26px 26px;
  box-sizing: border-box;
  border-radius: 22px;
  overflow: hidden;
  color: #0a0a0a;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.p6-team li:nth-child(odd):hover { transform: translateY(-8px) rotate(-1.2deg); }
.p6-team li:nth-child(even):hover { transform: translateY(-8px) rotate(1.2deg); }
.p6-team img {
  display: block;
  align-self: center;
  height: 300px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.22));
}
.p6-team b {
  margin-top: auto;
  font-family: var(--p5-display);
  font-weight: 900;
  font-size: clamp(34px, 3vw, 48px);
  line-height: .9;
  text-transform: uppercase;
}
.p6-team span { margin-top: 8px; font-size: 15px; line-height: 1.45; }
.p6-boss-card { background: linear-gradient(135deg, #8a89ff, #3f7bff); }
.p6-boss-card span { color: #11122a; }
.p6-c-sand { background: #efe6d2; }
.p6-c-mint { background: #dff3c8; }
.p6-c-lilac { background: #dcdcff; }
.p6-c-yellow { background: #e8c547; }
.p6-c-sky { background: #cfe8ff; }
.p6-team-note { margin-top: 36px; text-align: center; font-size: clamp(20px, 2vw, 28px); color: var(--p5-ink-2); }

/* --- финал: главный енот вместо знака ---------------------------- */
.p6-page .p5-cta { padding-bottom: 0; }
.p6-page .p5-cta-grid { align-items: end; }
.p6-page .p5-cta-grid > div:first-child { padding-bottom: 120px; }
.p6-cta-boss { display: block; justify-self: center; width: clamp(240px, 27vw, 430px); height: auto; }

@media (max-width: 1100px) {
  .p6-team { grid-template-columns: repeat(2, 1fr); }
  .p6-hero-boss { height: min(62%, 640px); }
}
@media (max-width: 760px) {
  .p6-hero-boss { position: relative; right: auto; bottom: auto; display: block; width: 74%; height: auto; margin: 44px 0 -40px auto; }
  .p6-page .p5-rot { right: auto; bottom: auto; margin-top: -120px; }
  .p6-page .p5-hero-foot { grid-template-columns: 1fr; padding-top: 48px; }
  .p6-meet { padding-bottom: 90px; }
  .p6-meet-fig figcaption { position: static; padding: 18px 20px 22px; background: var(--p5-bg-2); }
  .p6-meet-cta { width: 100%; justify-content: center; box-sizing: border-box; }
  .p6-meet-fig::after { display: none; }
  .p6-team { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .p6-team li { min-height: 0; padding: 12px 14px 18px; border-radius: 16px; }
  .p6-team img { height: 150px; margin-bottom: 10px; }
  .p6-team b { font-size: 24px; }
  .p6-team span { font-size: 13px; }
  .p6-page .p5-cta-grid > div:first-child { padding-bottom: 20px; }
  .p6-cta-boss { justify-self: end; width: 62%; }
}

/* --- один подрядчик вместо шести: «как обычно» против «как у нас» -- */
.p6-vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.p6-vs-t {
  font-family: var(--p5-display);
  font-weight: 900;
  font-size: clamp(30px, 2.8vw, 46px);
  line-height: 1;
  text-transform: uppercase;
}
.p6-vs-before {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 26px;
  border: 1px dashed var(--p5-rule);
  border-radius: 22px;
}
.p6-vs-before .p6-vs-t { color: var(--p5-ink-2); }
.p6-scatter { position: relative; flex: 1; min-height: 340px; margin-top: 18px; }
.p6-scatter li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 12px 18px;
  border: 1px dashed rgba(236, 237, 241, 0.32);
  border-radius: 12px;
  transform: rotate(var(--r));
  font-family: var(--p5-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--p5-ink-2);
  white-space: nowrap;
}
.p6-scatter li i {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-family: var(--p5-text);
  font-weight: 500;
  font-size: 13px;
  text-transform: none;
  color: var(--p5-ink-2);
  opacity: .75;
}
.p6-vs-note { margin-top: 12px; font-size: clamp(20px, 1.8vw, 26px); color: #ff8a7a; transform: rotate(-2deg); }

.p6-vs-after {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(170px, 30%, 260px);
  grid-template-areas: "t boss" "list boss" "foot boss";
  column-gap: 20px;
  align-content: start;
  padding: 30px 30px 28px;
  border-radius: 22px;
  background: radial-gradient(120% 90% at 100% 100%, #4f7dff 0%, rgba(79, 125, 255, 0) 60%), linear-gradient(145deg, #6a62f5, #3d4fe0);
  color: #fff;
}
.p6-vs-after .p6-vs-t { grid-area: t; }
.p6-vs-boss-wrap {
  grid-area: boss;
  position: relative;
  align-self: end;
  margin: 0 -30px -28px 0;       /* енот стоит на нижней кромке карточки, без растушёвки */
}
.p6-vs-boss { display: block; width: 100%; height: auto; pointer-events: none; }
.p6-vs-say {
  position: absolute;
  left: -18px;
  top: 58%;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  color: #1c1d4a;
  font-size: 16px;
  line-height: 1.15;
  transform: rotate(-4deg);
}
.p6-chain-list {
  grid-area: list;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.p6-chain-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-areas: "n t" "d d";
  align-items: center;
  gap: 6px 10px;
  padding: 14px 14px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}
.p6-chain-list b {
  grid-area: n;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: #3a3fd0;
  font-family: var(--p5-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
}
.p6-chain-list span { grid-area: t; font-family: var(--p5-display); font-weight: 900; font-size: 28px; line-height: .95; text-transform: uppercase; }
.p6-chain-list em { grid-area: d; font-style: normal; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, 0.88); }
.p6-vs-foot { grid-area: foot; margin-top: 18px; font-family: var(--p5-display); font-weight: 800; font-size: 24px; line-height: 1.05; text-transform: uppercase; }

/* --- история: гигантские годы на линии времени ---------------------- */
.p6-time {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0 18px;
  border-top: 1px solid var(--p5-rule);
  padding-top: 30px;
  position: relative;
}
.p6-time li { position: relative; }
.p6-time li::before {
  content: '';
  position: absolute;
  top: -36px;
  left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--p5-ink-2);
}
.p6-time b {
  display: block;
  font-family: var(--p5-display);
  font-weight: 900;
  font-size: clamp(48px, 5.2vw, 92px);
  line-height: .85;
}
.p6-time span { display: block; margin-top: 12px; font-size: 14.5px; line-height: 1.45; color: var(--p5-ink-2); }
.p6-time-now b { color: var(--p5-acc); }
.p6-time li.p6-time-now::before { background: var(--p5-acc); box-shadow: 0 0 0 6px rgba(124, 116, 255, 0.25); }
.p6-ind { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 72px; }
.p6-ind-t { display: inline-flex; align-items: flex-end; gap: 8px; font-size: clamp(22px, 2vw, 30px); color: var(--p5-acc); }
.p6-ind-t svg { width: 50px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.p6-ind ul { display: flex; flex-wrap: wrap; gap: 10px; }
.p6-ind a {
  display: inline-block;
  padding: 12px 20px 10px;
  border: 1px solid var(--p5-rule);
  border-radius: 999px;
  font-family: var(--p5-display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.p6-ind a:hover { background: var(--p5-ink); color: var(--p5-bg); border-color: var(--p5-ink); }

/* --- консультация: циферблат на 25 минут ---------------------------- */
.p6-consult-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px 120px;
  align-items: center;
}
.p6-dial { position: relative; width: min(100% - 300px, 420px); margin: 70px auto; }   /* по бокам место под подписи вех */
.p6-dial-face { position: relative; aspect-ratio: 1; }
.p6-dial-face svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.p6-dial-ticks line { stroke: var(--p5-ink-2); stroke-width: 1.4; stroke-linecap: round; opacity: .55; }
.p6-dial-ticks line.p6-dial-major { stroke: var(--p5-ink); stroke-width: 3; opacity: .9; }
.p6-dial-track { fill: none; stroke: rgba(236, 237, 241, 0.07); stroke-width: 15; }
.p6-dial-ring {
  fill: none;
  stroke: var(--p5-acc);
  stroke-width: 15;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: 150px 150px;
}
.p6-dial-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--p5-display);
  text-transform: uppercase;
}
.p6-dial-num b { font-weight: 900; font-size: clamp(90px, 9vw, 168px); line-height: .85; }
.p6-dial-num span { font-weight: 800; font-size: clamp(20px, 1.8vw, 30px); letter-spacing: .04em; color: var(--p5-ink-2); }
.p6-dial-ms { position: absolute; inset: 0; }
.p6-dial-ms li {
  position: absolute;
  width: 150px;
  transform: translate(var(--ax), var(--ay));
  font-size: 14px;
  line-height: 1.35;
  color: var(--p5-ink);
}
.p6-dial-ms b { display: block; font-family: var(--p5-display); font-weight: 900; font-size: 26px; line-height: 1; color: var(--p5-acc); }
.p6-dial-ms li[style*="--ax:-100%"] { text-align: right; }
.p6-dial-ms li[style*="--ax:-50%"] { text-align: center; }

.p6-consult-hand { font-size: clamp(30px, 3vw, 48px); line-height: 1; color: var(--p5-acc); }
.p6-consult-h {
  margin-top: 8px;
  font-family: var(--p5-display);
  font-weight: 900;
  font-size: clamp(64px, 7.6vw, 150px);
  line-height: .82;
  text-transform: uppercase;
}
.p6-consult-p { margin: 26px 0 30px; max-width: 46ch; font-size: 17.5px; color: var(--p5-ink-2); }

/* кольцо прорисовывается и вехи появляются, когда блок выходит на экран */
@media (prefers-reduced-motion: no-preference) {
  .p5-js .p6-dial .p6-dial-ring { stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s cubic-bezier(.3, .7, .2, 1) .2s; }
  .p5-js .p6-dial.is-in .p6-dial-ring { stroke-dashoffset: 0; }
  .p5-js .p6-dial .p6-dial-ms li { opacity: 0; transition: opacity .5s ease; transition-delay: calc(var(--i) * 0.4s + .2s); }
  .p5-js .p6-dial.is-in .p6-dial-ms li { opacity: 1; }
}

@media (max-width: 1100px) {
  .p6-vs, .p6-consult-grid { grid-template-columns: 1fr; }
  .p6-time { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 56px; }
  .p6-time li::before { display: none; }
}
@media (max-width: 760px) {
  .p6-scatter { min-height: 300px; }
  .p6-scatter li { font-size: 19px; padding: 10px 14px; }
  .p6-vs-before, .p6-vs-after { padding: 22px 20px; }
  .p6-vs-after { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "list" "foot" "boss"; }
  .p6-chain-list { gap: 8px; }
  .p6-chain-list li { grid-template-columns: minmax(0, 1fr); grid-template-areas: "n" "t" "d"; gap: 8px; padding: 12px; }
  .p6-chain-list em { font-size: 13px; }
  .p6-vs-boss-wrap { width: 62%; margin: 18px -20px -22px auto; }
  .p6-chain-list span { font-size: 23px; }
  .p6-time { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p6-ind a { font-size: 18px; padding: 10px 16px 8px; }
  .p6-dial { margin: 10px auto 0; width: min(100%, 340px); }
  .p6-dial-ms { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 26px; }
  .p6-dial-ms li { position: static; width: auto; transform: none; text-align: left !important; }
  .p5 h2.p6-consult-h { font-size: 15.5vw !important; line-height: .82 !important; }   /* перебить h2 из pp-grid-fix.css */
}

/* --- цифры по центру ------------------------------------------------ */
.p6-page .p5-stats-grid { text-align: center; }
.p6-page .p5-stats-grid > div { align-items: center; }

/* --- лид-магнит: .pp-wrap92 без нижнего отступа прилипал к светлому CTA ---- */
.p6-page .pp-wrap92 { padding-bottom: 110px; }
@media (max-width: 760px) { .p6-page .pp-wrap92 { padding-bottom: 72px; } }

/* --- цепочка «Сайт → … → AI» в две строки по три звена ---------------- */
.p6-page .p5-chain.p6-chain-2 { margin-top: .12em; }
.p6-page .p6-chain-2 li:first-child::before { content: none; }
@media (max-width: 760px) { .p6-page .p5-chain { font-size: 7.4vw; } }

/* === анимации по мотивам референса (включаются классом p6-anim из pp-home-v6.js) ============ */
@media (prefers-reduced-motion: no-preference) {
  /* заголовки по буквам */
  .p6-anim .p6-w { display: inline-block; white-space: nowrap; }
  .p6-anim .p6-c {
    display: inline-block;
    opacity: 0;
    transform: translateY(.5em) rotate(5deg);
    transition: opacity .5s ease, transform .85s cubic-bezier(.2, .8, .2, 1);
    transition-delay: calc(var(--k) * var(--kd, 26ms));
  }
  .p6-anim .p6-on .p6-c, .p6-anim .p6-on.p6-c { opacity: 1; transform: none; }
  .p6-anim .p5-swash { clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.3, .7, .2, 1) .35s; }
  .p6-anim .p6-on .p5-swash { clip-path: inset(0); }
  .p6-anim .p5-big-head .p5-sub { opacity: 0; translate: 0 24px; transition: opacity .7s ease .5s, translate .8s cubic-bezier(.2, .8, .2, 1) .5s; }
  .p6-anim .p5-big-head.p6-on .p5-sub { opacity: 1; translate: none; }

  /* варианты появления */
  .p6-anim [data-a] { transition: opacity .6s ease, translate .8s cubic-bezier(.2, .8, .2, 1), scale .7s cubic-bezier(.2, 1.4, .3, 1), rotate .7s cubic-bezier(.2, 1.4, .3, 1); transition-delay: calc(var(--d, 0) * 90ms); }
  .p6-anim [data-a="up"] { opacity: 0; translate: 0 36px; }
  .p6-anim [data-a="left"] { opacity: 0; translate: -44px 0; }
  .p6-anim [data-a="pop"] { opacity: 0; scale: .6; rotate: -8deg; }
  .p6-anim [data-a="fly"] { opacity: 0; translate: var(--fx, 0) var(--fy, -60px); scale: .6; }
  .p6-anim [data-a].p6-on { opacity: 1; translate: none; scale: 1; rotate: 0deg; }

  /* задержка у плиток и карточек, которые проявляет pp-home-v5.js */
  .p5-js .p5-rv:not(:hover) { transition-delay: calc(var(--d, 0) * 80ms); }

  /* линия времени: точки выскакивают по очереди */
  .p6-anim .p6-time li::before { scale: 0; transition: scale .5s cubic-bezier(.2, 1.6, .4, 1); transition-delay: calc(var(--d, 0) * 90ms + .25s); }
  .p6-anim .p6-time li.is-in::before { scale: 1; }

  /* циферблат: деления загораются по кругу */
  .p6-anim .p6-dial-ticks line { opacity: 0; transition: opacity .3s ease; transition-delay: calc(var(--t, 0) * 22ms + .15s); }
  .p6-anim .p6-dial.p6-on .p6-dial-ticks line { opacity: .55; }
  .p6-anim .p6-dial.p6-on .p6-dial-ticks line.p6-dial-major { opacity: .9; }

  /* еноты дышат */
  @keyframes p6Breathe { to { rotate: 1.4deg; scale: 1.02; } }
  .p6-team img, .p6-vs-boss { transform-origin: 50% 100%; animation: p6Breathe 4.6s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0) * -1.1s); }
  .p6-vs-say { animation: p6Sway 3.2s ease-in-out infinite alternate; }
  @keyframes p6Sway { to { translate: 0 -5px; } }
}
@media (max-width: 760px) {
  .p6-page .p5-stats-grid { column-gap: 12px; }
  .p6-page .p5-stats-grid dd { font-size: 13.5vw; }   /* «1 500+» в одну колонку из двух, по центру */
}

/* --- открытая форма: телефон, кнопка и согласие (героя и финал) ------ */
.p6-lead { width: 100%; max-width: 580px; }
.p6-lead-row { display: flex; gap: 10px; align-items: stretch; }
.p6-field {
  flex: 1;
  min-width: 0;
  display: flex;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transition: box-shadow .2s ease;
}
.p6-field:focus-within { box-shadow: inset 0 0 0 2px var(--p5-acc); }
.p6-field input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 60px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--p5-ink);
  font: 500 19px/1 var(--p5-text);
  outline: none;
}
.p6-field input::placeholder { color: var(--p5-ink-2); }
.p6-field:has(input[style*="rgb(255, 84, 112)"]) { box-shadow: inset 0 0 0 2px #ff5470; }   /* pp-lead.js красит рамку пустого поля */
.p6-lead .p5-btn { flex-shrink: 0; border: 0; cursor: pointer; padding: 0 26px; }
.p6-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--p5-ink-2); cursor: pointer; }
.p6-consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--p5-acc); cursor: pointer; }
.p6-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.p6-consent a:hover { color: var(--p5-ink); }
.p6-page .p5-hero-foot .p6-lead { margin-top: 30px; }

.p6-lead-light { margin-top: 34px; }
.p6-lead-light .p6-field { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(10, 10, 10, 0.22); }
.p6-lead-light .p6-field:focus-within { box-shadow: inset 0 0 0 2px #0a0a0a; }
.p6-lead-light .p6-field input { color: #0a0a0a; }
.p6-lead-light .p6-field input::placeholder { color: #6b6c75; }
.p6-lead-light .p6-consent { color: #55565e; }
.p6-lead-light .p6-consent a:hover { color: #0a0a0a; }
.p6-lead-light + .p5-actions { margin-top: 20px; }

@media (max-width: 760px) {
  .p6-lead-row { flex-direction: column; }
  .p6-field input { height: 56px; }
  .p6-lead .p5-btn { justify-content: center; height: 56px; }
}
.p6-lead .p5-btn.pp-form-submit { width: auto; flex: 0 0 auto; }   /* общий стиль .pp-form-submit растягивает кнопку на всю строку */
.p6-lead .p5-btn.pp-form-submit { height: 60px; }
.p6-page .p5-hero-foot { padding-top: 28px; }
.p6-page .p5-hero-foot .p5-hero-about { max-width: 64ch; }
.p6-page .p5-hero-foot .p6-lead { margin-top: 20px; margin-bottom: 92px; }   /* согласие выше плавающей кнопки чата в левом нижнем углу */
@media (max-width: 760px) { .p6-page .p5-hero-foot .p6-lead { margin-top: 24px; margin-bottom: 0; } }

/* --- форма: одна высота у поля и кнопки, без чужих отступов ------------ */
.p6-lead { --p6-h: 60px; }
.p6-lead-row { align-items: flex-start; }
.p6-field { height: var(--p6-h); }
.p6-field input { height: 100%; }
.p6-lead .p5-btn.pp-form-submit { height: var(--p6-h); margin: 0; width: auto; flex: 0 0 auto; box-sizing: border-box; }   /* margin-top: 16px приходит из общего стиля кнопок */
.p6-field.is-bad { box-shadow: inset 0 0 0 2px #ff5470; }
@media (max-width: 760px) {
  .p6-lead { --p6-h: 56px; }
  .p6-lead-row { align-items: stretch; }
  .p6-lead .p5-btn.pp-form-submit { width: 100%; }
}

/* --- реплика главного енота: субтитры-диалог и кнопка звука -------------- */
.p6-sub[hidden] { display: none !important; }
.p6-sub {
  position: absolute;
  z-index: 2;
  left: 28px;
  top: 24px;
  max-width: min(62%, 560px);
  margin: 0;
  padding: 12px 20px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px 18px 18px 4px;
  background: rgba(10, 10, 16, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-align: left;
}
.p6-sub b { display: block; margin-bottom: 2px; font-size: 16px; font-weight: 500; color: #a9a4ff; }
.p6-sub-t { display: block; font: 600 clamp(18px, 1.9vw, 26px)/1.25 var(--p5-text); color: #fff; }
.p6-sub.is-on { animation: p6SubIn .35s ease both; }
@keyframes p6SubIn { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 760px) {
  .p6-sub { left: 12px; right: 12px; top: auto; bottom: 12px; max-width: none; padding: 9px 14px 11px; }
  .p6-sub-t { font-size: 16px; }
}

/* --- форма в блоке консультации --------------------------------------- */
.p6-consult-copy .p6-lead { margin-top: 30px; }

/* --- работы: горизонтальная лента кейсов ------------------------------ */
.p6-works { overflow: clip; }
.p6-rail {
  --p6-gut: max(32px, calc((100vw - 1664px) / 2 + 32px));   /* левый край ленты совпадает с сеткой страницы */
  display: flex;
  gap: 22px;
  padding: 0 var(--p6-gut) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--p6-gut);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.p6-rail::-webkit-scrollbar { display: none; }
.p6-rail:focus-visible { outline: 2px solid var(--p5-acc); outline-offset: -2px; }
.p6-rail.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.p6-rail.is-drag a { pointer-events: none; }
.p6-wk { flex: 0 0 clamp(300px, 34vw, 560px); display: flex; flex-direction: column; scroll-snap-align: start; color: var(--p5-ink); -webkit-user-drag: none; }
.p6-wk img { -webkit-user-drag: none; }
.p6-wk-shot { display: block; overflow: hidden; border: 1px solid var(--p5-rule); border-radius: 18px; background: var(--p5-bg-2); transition: border-color .2s ease; }
.p6-wk-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--p5-rule); }
.p6-wk-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--p5-ink-dim); }
.p6-wk-bar em { margin-left: 10px; font-style: normal; font-size: 12px; letter-spacing: .02em; color: var(--p5-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p6-wk-shot img { display: block; width: 100%; height: auto; aspect-ratio: 760 / 450; object-fit: cover; object-position: top; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.p6-wk:hover .p6-wk-shot { border-color: var(--p5-acc); }
.p6-wk:hover .p6-wk-shot img { transform: scale(1.03); }
.p6-wk-type { margin-top: 18px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--p5-acc); }
.p6-wk-name { margin-top: 6px; font-family: var(--p5-display); font-weight: 900; font-size: clamp(30px, 2.6vw, 44px); line-height: .95; text-transform: uppercase; }
.p6-wk-fact { margin-top: 10px; max-width: 46ch; font-size: 15.5px; line-height: 1.45; color: var(--p5-ink-2); }
.p6-wk-fact b { color: var(--p5-ink); font-weight: 700; }
.p6-wk-more { flex-basis: clamp(240px, 22vw, 340px); }
.p6-wk-more-in {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  padding: 28px;
  border-radius: 18px;
  background: var(--p5-acc);
  color: #0a0a0a;
  font-family: var(--p5-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  transition: transform .25s ease;
}
.p6-wk-more-in b { display: block; font-weight: 900; font-size: clamp(72px, 7vw, 120px); line-height: .85; }
.p6-wk-more-in span { margin-top: 16px; font-size: 34px; }
.p6-wk-more:hover .p6-wk-more-in { transform: translateY(-4px); }
.p6-rail-nav { display: flex; align-items: center; gap: 10px; margin-top: 30px; }
.p6-rail-nav .p5-link { margin-left: 18px; }
.p6-rail-btn {
  width: 54px;
  height: 54px;
  border: 1px solid var(--p5-rule);
  border-radius: 50%;
  background: transparent;
  color: var(--p5-ink);
  font-size: 22px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}
.p6-rail-btn:hover { border-color: var(--p5-acc); color: var(--p5-acc); }
.p6-rail-btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 760px) {
  .p6-rail { --p6-gut: 20px; gap: 14px; }
  .p6-wk { flex-basis: 84vw; }
  .p6-wk-name { font-size: 28px; }
  .p6-wk-more { flex-basis: 60vw; }
}

/* --- вкладки направлений над лентой кейсов --------------------------- */
.p6-works .p5-big-head { margin-bottom: 40px; }
.p6-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.p6-tab {
  padding: 13px 24px 11px;
  border: 1px solid var(--p5-rule);
  border-radius: 999px;
  background: transparent;
  color: var(--p5-ink-2);
  font-family: var(--p5-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.p6-tab:hover { color: var(--p5-ink); border-color: var(--p5-ink-2); }
.p6-tab[aria-selected="true"] { background: var(--p5-ink); border-color: var(--p5-ink); color: var(--p5-bg); }
.p6-tab:focus-visible { outline: 2px solid var(--p5-acc); outline-offset: 3px; }
.p6-panel[hidden] { display: none; }
.p6-panel { animation: p6PanelIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes p6PanelIn { from { opacity: 0; transform: translateY(14px); } }
.p6-wk-cover { aspect-ratio: 1000 / 503; }
.p6-wk-cover img { height: 100%; aspect-ratio: auto; object-fit: cover; }
.p6-wk-cv .p6-wk-fact, .p6-wk-cover + .p6-wk-type + .p6-wk-name + .p6-wk-fact { font-size: 17px; }
@media (max-width: 760px) {
  .p6-tabs { gap: 8px; margin-bottom: 30px; }
  .p6-tab { font-size: 19px; padding: 11px 18px 9px; }
}

/* --- страница кейса PPFit (/keysy/platforma-dlya-sportivnykh-klubov-ppfit/) ----------
   Разметка p6-cs-*, на каркасе p5 (обёртка .p5-wrap, кнопки, FAQ) и p6-wk-bar из ленты работ. */
.p6-cs-sec { padding-top: 110px; }
.p6-cs-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 140px 0 60px;
  background: radial-gradient(60% 55% at 80% 20%, rgba(124, 116, 255, 0.2), transparent 70%), var(--p5-bg);
}
.p6-cs-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.p6-cs-hero::after {   /* затемнение: текст читается поверх видео, низ плавно уходит в фон страницы */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 10, 10, .88) 0%, rgba(10, 10, 10, .55) 60%, rgba(10, 10, 10, .35) 100%), linear-gradient(180deg, transparent 60%, var(--p5-bg) 100%);
}
@media (prefers-reduced-motion: reduce) { .p6-cs-bg { display: none; } }
.p6-cs-crumb { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--p5-ink-2); }
.p6-cs-crumb a:hover { color: var(--p5-ink); }
.p6-cs-crumb span:not(.p6-cs-no) { color: var(--p5-ink-dim); }
.p6-cs-crumb span:nth-child(3) { color: var(--p5-ink); }
.p6-cs-no { margin-left: auto; font-size: 12px; letter-spacing: .16em; color: var(--p5-ink-2); }
.p6-cs-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 34px; font-size: 14px; color: var(--p5-ink-2); }
.p6-cs-badge { text-transform: uppercase; padding: 7px 16px 6px; border: 1px solid var(--p5-acc); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--p5-ink); background: rgba(124, 116, 255, 0.14); }
.p6-cs-h1 { margin-top: 26px; max-width: 16ch; font-family: var(--p5-display); font-weight: 900; font-size: clamp(54px, 8.6vw, 148px); line-height: .86; text-transform: uppercase; text-wrap: balance; }
.p6-cs-acc { color: var(--p5-acc); }
.p6-cs-hero-p { margin-top: 30px; max-width: 62ch; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; color: var(--p5-ink-2); }
.p6-cs-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--p5-rule); }
.p6-cs-meta dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--p5-ink-2); }
.p6-cs-meta dd { margin: 8px 0 0; font-family: var(--p5-display); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; }
.p6-cs-cover { padding: 50px 0 0; }
.p6-cs-frame { overflow: hidden; border: 1px solid var(--p5-rule); border-radius: 18px; background: var(--p5-bg-2); }
.p6-cs-frame-xl { width: 1300px; max-width: 100%; margin: 0 auto; border-radius: 20px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55); }
.p6-cs-img { display: block; width: 100%; height: auto; }
.p6-cs-eye { font-family: var(--p5-hand); font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; color: var(--p5-acc); }
.p6-cs-h2 { margin-top: 12px; font-family: var(--p5-display); font-weight: 900; font-size: clamp(44px, 5.4vw, 92px); line-height: .88; text-transform: uppercase; text-wrap: balance; }
.p6-cs-head { max-width: 1000px; }
.p6-cs-lead { margin-top: 24px; max-width: 70ch; font-size: 18px; line-height: 1.65; color: var(--p5-ink-2); }
.p6-cs-lead-w { max-width: none; }
.p6-cs-p { font-size: 17.5px; line-height: 1.7; color: var(--p5-ink-2); }
.p6-cs-a { color: var(--p5-ink); border-bottom: 1px solid var(--p5-acc); transition: color .2s ease; }
.p6-cs-a:hover { color: var(--p5-acc); }
.p6-cs-col { display: flex; flex-direction: column; gap: 20px; }
.p6-cs-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.p6-cs-split-c { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
.p6-cs-split-c .p6-cs-lead { margin-top: 24px; }

/* цветные плашки, как у цифр на главной */
.p6-cs-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.p6-cs-grid3-t { margin-top: 18px; }
.p6-cs-card { box-sizing: border-box; padding: 30px 28px 28px; border-radius: 20px; color: #0a0a0a; background: #efe6d2; }
.p6-cs-card:nth-child(4n+2) { background: #dff3c8; }
.p6-cs-card:nth-child(4n+3) { background: #dcdcff; }
.p6-cs-card:nth-child(4n+4) { background: #e8c547; }
.p6-cs-pill { display: block; font-family: var(--p5-display); font-weight: 900; font-size: clamp(32px, 2.8vw, 46px); line-height: .9; text-transform: uppercase; }
.p6-cs-card-p { margin-top: 16px; font-size: 16px; line-height: 1.55; font-weight: 500; color: #25262b; }
.p6-cs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.p6-cs-stat { display: flex; flex-direction: column; }
.p6-cs-num { font-family: var(--p5-display); font-weight: 900; font-size: clamp(72px, 7vw, 124px); line-height: .82; }
.p6-cs-stat-t { margin-top: 14px; font-size: 16px; line-height: 1.45; font-weight: 500; color: #25262b; }

/* ряды телефонов и рамки браузера */
.p6-cs-lane { display: flex; gap: 16px; margin-top: 48px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.p6-cs-lane::-webkit-scrollbar { display: none; }
.p6-cs-phone { flex: 1 0 220px; max-width: 320px; margin: 0; }
.p6-cs-screen { aspect-ratio: 9 / 18.5; padding: 8px; border: 1px solid var(--p5-rule); border-radius: 28px; background: var(--p5-bg-2); }
.p6-cs-ph { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 22px; }
.p6-cs-ph.p6-cs-bottom { object-position: bottom center; }
.p6-cs-cap { margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--p5-ink-2); }
.p6-cs-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; align-items: start; }
.p6-cs-row { margin-top: 16px; }
.p6-cs-row-n { max-width: 980px; margin-left: auto; margin-right: auto; }

/* стек и функционал */
.p6-cs-diagram { margin-top: 48px; padding: 28px; overflow-x: auto; border: 1px solid var(--p5-rule); border-radius: 24px; background: var(--p5-bg-2); }
.p6-cs-svg { display: block; width: 100%; height: auto; min-width: 900px; }
.p6-cs-box { box-sizing: border-box; padding: 28px 26px; border: 1px solid var(--p5-rule); border-radius: 20px; background: var(--p5-bg-2); }
.p6-cs-box-t { font-family: var(--p5-display); font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; }
.p6-cs-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.p6-cs-li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.55; color: var(--p5-ink-2); }
.p6-cs-li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--p5-acc); }

/* цвет и типографика */
.p6-cs-look { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; margin-top: 48px; }
.p6-cs-type { box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 280px; padding: 40px; border: 1px solid var(--p5-rule); border-radius: 24px; background: var(--p5-bg-2); }
.p6-cs-type-k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--p5-ink-2); }
.p6-cs-type-b { font-family: var(--p5-display); font-weight: 900; font-size: clamp(40px, 4.6vw, 72px); line-height: .9; text-transform: uppercase; }
.p6-cs-type-s { margin-top: 14px; font-size: 16px; color: var(--p5-ink); }
.p6-cs-type-p { margin-top: 12px; max-width: 42ch; font-size: 14.5px; line-height: 1.6; color: var(--p5-ink-2); }
.p6-cs-sw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p6-cs-sw { overflow: hidden; border: 1px solid var(--p5-rule); border-radius: 18px; }
.p6-cs-sw-c { height: 88px; }
.p6-cs-c-bg { background: #0b0c0a; }
.p6-cs-c-act { background: #c8f03c; }
.p6-cs-c-card { background: #15171a; }
.p6-cs-c-late { background: #f06a4c; }
.p6-cs-sw-b { padding: 14px 16px; background: var(--p5-bg-2); }
.p6-cs-sw-hex { font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.p6-cs-sw-n { margin-top: 3px; font-size: 13px; color: var(--p5-ink-2); }
.p6-cs-cta { justify-content: center; gap: 18px 32px; }
.p6-cs .p5-faq-grid .p6-cs-eye { margin-bottom: 14px; }

@media (max-width: 1100px) {
  .p6-cs-grid3, .p6-cs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p6-cs-split, .p6-cs-split-c, .p6-cs-look { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .p6-cs-sec { padding-top: 84px; }
  .p6-cs-hero { padding: 104px 0 40px; }
  .p6-cs-h1 { font-size: 17vw; }
  .p6-cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p6-cs-cover { padding-top: 36px; }
  .p6-cs-grid3, .p6-cs-stats, .p6-cs-pair { grid-template-columns: 1fr; }
  .p6-cs-type { padding: 28px 24px; }
  .p6-cs-sw-grid { gap: 10px; }
  .p6-cs-diagram { padding: 18px; }
  /* pp-grid-fix.css на телефоне задаёт размер h2 через !important */
  .p5 h2.p6-cs-h2 { font-size: 13vw !important; line-height: .9 !important; }
}

/* --- мегаменю «Направления» в стиле p5/p6 ----------------------------------------------
   Разметка в partials/header.html.twig общая для всех страниц и держит цвета инлайном,
   поэтому здесь !important и селектор от .p5-page: старые страницы остаются как были. */
.p5-page .pp-drop-panel {
  box-sizing: border-box;
  width: min(1180px, calc(100vw - 48px)) !important;
  padding: 26px 28px 22px !important;
  gap: 8px 26px !important;
  border: 1px solid var(--p5-rule) !important;
  border-radius: 20px !important;
  background: rgba(14, 14, 14, 0.98) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6) !important;
}
.p5-page .pp-drop-panel > div:not([style*="grid-column"]) { padding: 6px 0 10px; border-top: 1px solid var(--p5-rule); }
.p5-page .pp-drop-link { transition: color .2s ease, background-color .2s ease, padding .2s ease; }
.p5-page .pp-drop-panel > div > a.pp-drop-link:first-child {
  padding: 12px 0 8px !important;
  font-family: var(--p5-display) !important;
  font-weight: 900 !important;
  font-size: 26px !important;
  line-height: 1 !important;
  text-transform: uppercase;
  color: var(--p5-ink) !important;
}
.p5-page .pp-drop-panel > div > a.pp-drop-link:first-child span { font-family: var(--p5-text) !important; font-size: 12px !important; font-weight: 600; letter-spacing: .08em; color: var(--p5-acc) !important; }
.p5-page .pp-drop-panel > div > a.pp-drop-link:not(:first-child) {
  padding: 5px 0 5px 28px !important;
  border-radius: 0 !important;
  font-family: var(--p5-text) !important;
  font-size: 14px !important;
  color: var(--p5-ink-2) !important;
}
.p5-page .pp-drop-panel .pp-drop-link:hover { background: transparent !important; color: var(--p5-acc) !important; }
.p5-page .pp-drop-panel > div > a.pp-drop-link:first-child:hover { color: var(--p5-acc) !important; }
.p5-page .pp-drop-panel > div > a.pp-drop-link:not(:first-child):hover { padding-left: 34px !important; color: var(--p5-ink) !important; }
.p5-page .pp-drop-panel > div[style*="grid-column"] { margin-top: 6px !important; padding: 16px 0 0 !important; border-top: 1px solid var(--p5-rule) !important; }
.p5-page .pp-drop-panel > div[style*="grid-column"] a.pp-drop-link {
  display: flex !important;
  align-items: baseline !important;
  gap: 14px !important;
  padding: 4px 0 !important;
  font-family: var(--p5-display) !important;
  font-weight: 800 !important;
  font-size: 22px !important;
  text-transform: uppercase;
  color: var(--p5-ink) !important;
}
.p5-page .pp-drop-panel > div[style*="grid-column"] a.pp-drop-link span:first-child { font-family: var(--p5-text) !important; font-size: 18px !important; color: var(--p5-acc) !important; }
.p5-page .pp-drop-panel > div[style*="grid-column"] a.pp-drop-link span:last-child { font-family: var(--p5-text) !important; font-size: 14px !important; font-weight: 400; text-transform: none; color: var(--p5-ink-2) !important; }
/* панель центруется по шапке, а не по ссылке «Направления» (иначе уезжает за левый край) */
.p5-page .pp-drop { position: static; }
.p5-page .pp-drop::after { content: none; }
.p5-page .pp-drop-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 56px; }   /* мост от ссылки до панели: под ссылкой ещё нижняя часть шапки */
.p5-page .pp-drop:not(:hover):not(:focus-within) .pp-drop-panel:not(:hover) { pointer-events: none; }

/* --- страница направления «Разработка» (/razrabotka/), разметка p6-hub-* -------------------
   Каркас, заголовки (p6-cs-h2, p5-giant), каталог p5-dirs, FAQ и финальный блок общие с главной. */
.p6-hub-hero { position: relative; overflow: hidden; padding: 130px 0 0; background: radial-gradient(60% 55% at 78% 30%, rgba(124, 116, 255, 0.22), transparent 70%), var(--p5-bg); }
.p6-hub-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: end; }
.p6-hub-hero-t { padding-bottom: 44px; }
.p6-hub-h1 { margin-top: 26px; max-width: 17ch; font-family: var(--p5-display); font-weight: 900; font-size: clamp(48px, 6.6vw, 118px); line-height: .88; text-transform: uppercase; text-wrap: balance; }
.p6-hub-act { margin-top: 34px; }
.p6-hub-note { margin-top: 22px; font-size: clamp(18px, 1.5vw, 22px); color: var(--p5-acc); }
.p6-hub-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.p6-hub-chips li { padding: 7px 14px 6px; border: 1px solid var(--p5-rule); border-radius: 999px; font-size: 14px; color: var(--p5-ink-2); }
.p6-hub-boss { display: block; justify-self: center; align-self: end; width: clamp(240px, 30vw, 470px); height: auto; margin-bottom: 0; }
.p6-hub-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 34px 0 40px; border-top: 1px solid var(--p5-rule); }
.p6-hub-stats > div { display: flex; flex-direction: column; }
.p6-hub-stats dd { order: -1; margin: 0; font-family: var(--p5-display); font-weight: 900; font-size: clamp(54px, 6vw, 104px); line-height: .85; white-space: nowrap; }
.p6-hub-stats dt { margin-top: 10px; font-size: clamp(16px, 1.4vw, 20px); color: var(--p5-acc); }
.p6-hub-mq { overflow: hidden; border-block: 1px solid var(--p5-rule); background: var(--p5-bg-2); }
.p6-hub-mq-track { display: flex; width: max-content; animation: p6HubMq 38s linear infinite; }
.p6-hub-mq-row { display: flex; align-items: center; flex-shrink: 0; }
.p6-hub-mq-row span { padding: 18px 0; font-family: var(--p5-display); font-weight: 800; font-size: 28px; text-transform: uppercase; color: var(--p5-ink-2); white-space: nowrap; }
.p6-hub-mq-row span::after { content: "/"; margin: 0 28px; color: var(--p5-acc); }
@keyframes p6HubMq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .p6-hub-mq-track { animation: none; } }
.p6-hub-h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.p6-hub-sub { margin: 22px auto 0; text-align: center; }
.p6-hub-pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.p6-hub-pain { padding: 28px 26px 30px; border: 1px solid var(--p5-rule); border-radius: 20px; background: var(--p5-bg-2); }
.p6-hub-x { display: block; font-size: 22px; line-height: 1; color: #ff5470; }
.p6-hub-pain h3 { margin-top: 18px; font-family: var(--p5-display); font-weight: 900; font-size: 32px; line-height: .92; text-transform: uppercase; }
.p6-hub-pain p { margin-top: 12px; font-size: 15.5px; line-height: 1.5; color: var(--p5-ink-2); }
.p6-hub-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 28px; padding: 28px 32px; border-radius: 20px; background: var(--p5-acc); color: #0a0a0a; }
.p6-hub-band p { max-width: 62ch; font-size: 18px; line-height: 1.5; font-weight: 500; }
.p6-hub-band .p5-btn { flex-shrink: 0; background: #0a0a0a; color: var(--p5-ink) !important; }
.p6-hub-uslugi .p5-d-p { font-size: 22px; }
.p6-hub-uslugi .p5-dirs a { grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr) 150px; }
.p6-hub-dark { background: var(--p5-bg-2); }
.p6-hub-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.p6-hub-split-r { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.p6-hub-split .p5-sub { margin-top: 0; font-size: clamp(20px, 1.8vw, 26px); color: var(--p5-acc); }
.p6-hub-split .p6-hub-h2 { margin-left: 0; max-width: 14ch; }
.p6-hub-side { display: block; width: min(100%, 340px); height: auto; margin-top: 36px; }
.p6-hub-ways { display: grid; gap: 18px; }
.p6-hub-way { padding: 26px 28px 28px; border-radius: 20px; color: #0a0a0a; background: #efe6d2; }
.p6-hub-way:nth-child(2) { background: #dff3c8; }
.p6-hub-way:nth-child(3) { background: #dcdcff; }
.p6-hub-way b { display: block; font-family: var(--p5-display); font-weight: 900; font-size: clamp(28px, 2.6vw, 40px); line-height: .95; text-transform: uppercase; }
.p6-hub-way p { margin-top: 12px; font-size: 17px; line-height: 1.5; font-weight: 500; color: #25262b; }
.p6-hub-way em { display: block; margin-top: 16px; font-family: var(--p5-hand); font-style: normal; font-size: 17px; color: #4a47c8; }
.p6-hub-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.p6-hub-res { display: flex; flex-direction: column; padding: 30px 28px 28px; border-radius: 20px; color: #0a0a0a; background: #efe6d2; }
.p6-hub-res:nth-child(2) { background: #dcdcff; }
.p6-hub-res:nth-child(3) { background: #dff3c8; }
.p6-hub-tag { align-self: flex-start; padding: 5px 12px 4px; border-radius: 999px; background: rgba(10, 10, 10, .9); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: #ecedf1; }
.p6-hub-res h3 { margin-top: 20px; font-family: var(--p5-display); font-weight: 900; font-size: clamp(34px, 3vw, 48px); line-height: .92; text-transform: uppercase; }
.p6-hub-res p { margin-top: 12px; font-size: 16px; line-height: 1.5; font-weight: 500; color: #25262b; }
.p6-hub-res dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: auto 0 0; padding-top: 28px; }
.p6-hub-res dd { order: -1; margin: 0; font-family: var(--p5-display); font-weight: 900; font-size: clamp(54px, 5vw, 84px); line-height: .85; white-space: nowrap; }
.p6-hub-res dl > div { display: flex; flex-direction: column; }
.p6-hub-res dt { margin-top: 8px; font-size: 14px; font-weight: 500; color: #25262b; }
.p6-hub-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.p6-hub-steps li { padding-top: 22px; border-top: 2px solid var(--p5-ink); }
.p6-hub-steps li:last-child { border-top-color: var(--p5-acc); }
.p6-hub-steps b { display: block; font-family: var(--p5-display); font-weight: 900; font-size: clamp(64px, 6vw, 104px); line-height: .85; color: var(--p5-acc); }
.p6-hub-steps h3 { margin-top: 18px; font-family: var(--p5-display); font-weight: 900; font-size: 34px; line-height: .95; text-transform: uppercase; }
.p6-hub-steps p { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--p5-ink-2); }
.p6-hub-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.p6-hub-box { padding: 28px 26px 30px; border: 1px solid var(--p5-rule); border-radius: 20px; background: var(--p5-bg); }
.p6-hub-box h3 { font-family: var(--p5-display); font-weight: 900; font-size: 32px; line-height: .95; text-transform: uppercase; }
.p6-hub-box p { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--p5-ink-2); }
.p6-hub-cta-eye { font-size: clamp(22px, 2vw, 30px); color: var(--p5-acc); }
.p6-hub-cta-h { margin-top: 12px; font-size: clamp(48px, 6vw, 104px); line-height: .86; }
.p6-hub-cta-acc { color: var(--p5-acc); }
.p6-hub-feat { display: grid; gap: 8px; margin-top: 26px; font-size: 17px; font-weight: 500; }
.p6-hub-feat li { position: relative; padding-left: 20px; }
.p6-hub-feat li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--p5-acc); }
.p6-hub-form { display: flex; flex-direction: column; gap: 12px; max-width: none; margin-top: 0; padding: 32px 30px; border-radius: 24px; background: #fff; }
.p6-hub-form-t { font-family: var(--p5-display); font-weight: 900; font-size: 36px; line-height: 1; text-transform: uppercase; color: #0a0a0a; }
.p6-hub-form .p6-consent { margin-top: 4px; }
.p6-hub-form .p5-btn.pp-form-submit { width: 100%; justify-content: center; }
.p6-hub-form-n { font-size: 13px; line-height: 1.45; color: #6b6c75; }
.p6-hub-form .p6-field { background: #f2f2f4; }

@media (max-width: 1100px) {
  .p6-hub-hero-in, .p6-hub-split, .p6-hub-split-r { grid-template-columns: 1fr; }
  .p6-hub-boss { width: clamp(220px, 46vw, 360px); }
  .p6-hub-pains, .p6-hub-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p6-hub-results { grid-template-columns: 1fr; }
  .p6-hub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .p6-hub-side { display: none; }
}
@media (max-width: 760px) {
  .p6-hub-hero { padding-top: 100px; }
  .p6-hub-h1 { font-size: 15vw; }
  .p6-hub-pains, .p6-hub-steps, .p6-hub-boxes { grid-template-columns: 1fr; }
  .p6-hub-band { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .p6-hub-split { gap: 36px; }
  .p6-hub-form { padding: 24px 20px; }
  .p6-hub-uslugi .p5-dirs a { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "d" "p"; row-gap: 8px; }
  .p6-hub-uslugi .p5-d-p { text-align: left; font-size: 20px; }
  .p5 h2.p6-hub-cta-h { font-size: 15vw !important; line-height: .86 !important; }
}
.p6-hub-eye { margin-bottom: 14px; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; color: var(--p5-acc); }
.p6-hub-form .p6-field { flex: 0 0 var(--p6-h); }
.p5-cta-grid > * { min-width: 0; }
.p6-hub-form { box-sizing: border-box; width: 100%; }

/* лента кейсов на /razrabotka/: карточки с обложкой (cover.webp, без полоски браузера) подгоняем по высоте
   под карточки со скриншотом (полоска + 760/450); ширину карточки задаёт --wk-w, как у .p6-wk */
.p6-hub-rail { --wk-w: clamp(300px, 34vw, 560px); }
.p6-hub-rail .p6-wk { flex-basis: var(--wk-w); }
.p6-hub-rail .p6-wk-cover { aspect-ratio: auto; height: calc(var(--wk-w) * .5921 + 41px); }
@media (max-width: 760px) { .p6-hub-rail { --wk-w: 84vw; } }

/* «С какой задачей вы к нам» на /razrabotka/: четыре цветные плитки-ссылки */
.p6-hub-tasks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.p6-hub-tasks a { display: flex; flex-direction: column; box-sizing: border-box; height: 100%; min-height: 300px; padding: 28px 26px 24px; border-radius: 20px; color: #0a0a0a; background: #efe6d2; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.p6-hub-tasks li:nth-child(2) a { background: #dff3c8; }
.p6-hub-tasks li:nth-child(3) a { background: #dcdcff; }
.p6-hub-tasks li:nth-child(4) a { background: #e8c547; }
.p6-hub-tasks li:nth-child(odd) a:hover { transform: translateY(-8px) rotate(-1.2deg); }
.p6-hub-tasks li:nth-child(even) a:hover { transform: translateY(-8px) rotate(1.2deg); }
.p6-hub-tasks b { font-family: var(--p5-display); font-weight: 900; font-size: clamp(34px, 3vw, 48px); line-height: .92; text-transform: uppercase; }
.p6-hub-tasks span { margin-top: 14px; font-size: 16px; line-height: 1.5; font-weight: 500; color: #25262b; }
.p6-hub-tasks em { margin-top: auto; padding-top: 24px; font-style: normal; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.p6-hub-tasks i { font-style: normal; }
@media (max-width: 1100px) { .p6-hub-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .p6-hub-tasks { grid-template-columns: 1fr; } .p6-hub-tasks a { min-height: 0; } }
.p6-hub .p5-cta-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
@media (max-width: 1100px) { .p6-hub .p5-cta-grid { grid-template-columns: 1fr; } }
/* список услуг /razrabotka/: при наведении заголовок не переносится (сдвиг через transform, без перерасчёта ширины) */
@media (min-width: 761px) {
  .p6-hub-uslugi .p5-dirs a { grid-template-columns: 56px minmax(0, 1.35fr) minmax(0, .85fr) 150px; }
  .p6-hub-uslugi .p5-d-t { font-size: clamp(32px, 3.5vw, 64px); white-space: nowrap; }
  .p6-hub-uslugi .p5-dirs a:hover { padding-left: 0; transform: translateX(12px); }
}

/* телефон: заголовки тянутся по ширине экрана (vw), без ограничения по ch, чтобы не оставалось пустого поля справа.
   pp-grid-fix.css на телефоне задаёт h1/h2/h3 через !important, поэтому селекторы от .p5 и !important */
@media (max-width: 760px) {
  .p5 h1.p6-hub-h1 { max-width: none; font-size: 12.5vw !important; line-height: .9 !important; }
  .p5 h2.p6-hub-h2, .p5 h2.p6-cs-h2 { max-width: none; font-size: 12.6vw !important; line-height: .92 !important; }
  .p5 h1.p6-cs-h1 { max-width: none; font-size: 15.5vw !important; line-height: .88 !important; }
  .p5 .p6-hub-stats dd { font-size: 17vw; }
  .p5 .p6-hub-tasks b, .p5 .p6-hub-res h3, .p5 .p6-hub-steps h3, .p5 .p6-hub-pain h3 { font-size: 10vw !important; line-height: .95 !important; }
  .p5 .p6-hub-box h3 { font-size: 8.6vw !important; line-height: .95 !important; }
  .p5 .p6-hub-way b { font-size: 8.4vw; }
  .p5 .p6-hub-steps b { font-size: 21vw; }
  .p5 .p6-hub-form-t { font-size: 10vw; }
  .p5 h2.p6-hub-cta-h { font-size: 13.4vw !important; line-height: .86 !important; }
  .p5 .p6-hub-mq-row span { font-size: 7.4vw; }
  .p5 .p6-hub-pain h3 { font-size: 9vw !important; }
}
.p6-hub-hero-t { min-width: 0; }

/* главная на телефоне: длинный заголовок истории не вылезает за экран, мелкие подписи тянутся по ширине */
@media (max-width: 760px) {
  .p5 #istoriya h2.p5-giant { font-size: 12.4vw !important; line-height: .9 !important; }
  .p5 .p5-d-t { font-size: 11vw; }
  .p5 .p6-time b { font-size: 13vw; }
  .p5 .p5-tiles b { font-size: 17vw; }
}

/* --- главная, герой на телефоне -----------------------------------------------------------
   Заголовок слева, енот справа внизу блока (тело уходит в затухание), рукописное слово у его плеча,
   дальше текст и форма сразу под ним, без пустого экрана между ними. */
@media (max-width: 760px) {
  .p6-page .p5-hero { min-height: 0; padding: 92px 0 36px; }
  .p6-page .p5-h1-box { position: relative; padding-bottom: 66vw; }
  .p6-page .p5-h1-a, .p6-page .p5-h1-b { font-size: 19.5vw; }
  .p6-page .p5-h1-a { white-space: normal; max-width: 9ch; }
  .p6-page .p5-kicker { margin-bottom: 18px; font-size: 15px; }
  .p6-page .p6-hero-boss { position: absolute; right: -5vw; bottom: 0; left: auto; width: auto; height: 74vw; margin: 0; }
  .p6-page .p5-rot { position: absolute; left: 0; right: auto; bottom: 22vw; margin: 0; font-size: 15vw; }
  .p6-page .p5-hero-foot { margin-top: 0; padding-top: 6px; }
  .p6-page .p5-hero-about { font-size: 16.5px; line-height: 1.5; }
  .p6-page .p5-hero-foot .p6-lead { margin-top: 22px; }
}
@media (max-width: 760px) {
  .p6-lead-row .p6-field { flex: 0 0 var(--p6-h); }
  .p6-page .p5-h1-box { padding-bottom: 60vw; }
  .p6-page .p5-rot { font-size: 12vw; bottom: 20vw; }
}
/* енот поднят выше и лежит поверх строк заголовка */
@media (max-width: 760px) {
  .p6-page .p5-h1-box { padding-bottom: 44vw; }
  .p6-page .p6-hero-boss { bottom: 8vw; height: 82vw; right: -7vw; z-index: 4; }
  .p6-page .p5-rot { bottom: 12vw; z-index: 5; }
}
@media (max-width: 760px) { .p6-page .p6-hero-boss { right: -17vw; bottom: 6vw; height: 84vw; } }
/* телефон в форме героя: тот же размер шрифта, что у текста «PivotPoint собирает сайт…» */
@media (max-width: 760px) {
  .p6-page .p5-hero-foot .p6-field input { font-size: 16.5px; font-weight: 400; }
}
.p6-page .p5-hero-foot .p6-field input { font-size: 17px; font-weight: 400; }
@media (max-width: 760px) { .p6-page .p5-hero-foot .p6-field input { font-size: 16.5px; } }
/* герой на телефоне: енот не закрывает последнюю букву «СИСТЕМУ» (было видно на 320px) */
@media (max-width: 760px) { .p6-page .p6-hero-boss { right: -23vw; height: 82vw; bottom: 5vw; } }

/* форма «Хотите такой же результат?» в конце кейсов: на телефоне поля были шириной 160px при 320px экрана
   (внутренние отступы карточки 22px + стекла 36px), «Телефон или Telegram» обрезался */
@media (max-width: 760px) {
  .p6-page .pp-cta-card2 { padding: 24px 14px !important; }
  .p6-page .pp-cta-card2 .pp-glass { padding: 20px 14px !important; }
  .p6-page .pp-cta-card2 .pp-input { font-size: 15px; }
}
/* кейс PPFit: на телефоне до загрузки ролика показывается вертикальный постер с pp-fit.ru (poster у video один, для десктопа) */
@media (max-width: 899px) { .p6-cs-hero .p6-cs-bg { background: url('/assets/cases/ppfit/hero-poster-m.webp') center / cover no-repeat; } }

/* заголовок кейса PPFit: ровно три строки на любой ширине («SaaS-платформа / «PPFit» для / спортивных клубов») */
.p5 h1.p6-cs-h1 { max-width: 8.4em; font-size: clamp(44px, 6.4vw, 108px); line-height: .9; text-wrap: balance; }
@media (max-width: 760px) { .p5 h1.p6-cs-h1 { max-width: none; font-size: 11.1vw !important; line-height: .92 !important; } }

/* ПРАВИЛО: оффер в первом экране всегда в три строки. Размер считается от ширины колонки (cqw), а не от экрана:
   самая длинная строка ≈ 10,6em у /razrabotka/ и ≈ 7,6em у кейса PPFit, значит кегль = ширина / это число.
   Одинаково работает на 320 px, на планшете и на широком мониторе (верхний предел задан в px). */
.p6-hub-hero-t, .p6-cs-hero .p5-wrap { container-type: inline-size; }
.p5 h1.p6-hub-h1 { max-width: none; font-size: min(9cqw, 116px) !important; line-height: .92 !important; text-wrap: balance; }
.p5 h1.p6-cs-h1 { max-width: 8.4em; font-size: min(12.2cqw, 108px) !important; line-height: .92 !important; text-wrap: balance; }
@media (max-width: 760px) { .p5 h1.p6-cs-h1 { max-width: none; } }

/* текст под оффером (/razrabotka/ и кейс PPFit) мельче: заголовок главный, абзац вторичный */
.p6-cs-hero-p { font-size: clamp(14.5px, 1.15vw, 18px); line-height: 1.55; max-width: 60ch; }
@media (max-width: 760px) { .p6-cs-hero-p { font-size: 15px; margin-top: 18px; } }

/* --- кейс PPFit, расширенная версия: тренер-енот, состав работ, спортсмены, сайты клубов, ИИ, логотип --- */
.p6-cs-meet { padding: 110px 0 0; }
.p6-cs-scope { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 48px; counter-reset: none; }
.p6-cs-scope-i { display: flex; flex-direction: column; padding: 26px 24px 28px; border: 1px solid var(--p5-rule); border-radius: 20px; background: var(--p5-bg-2); transition: border-color .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.p6-cs-scope-i:hover { border-color: var(--p5-acc); transform: translateY(-4px); }
.p6-cs-scope-n { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--p5-acc); }
.p6-cs-scope-i b { margin-top: 14px; font-family: var(--p5-display); font-weight: 900; font-size: clamp(28px, 2.4vw, 38px); line-height: .92; text-transform: uppercase; }
.p6-cs-scope-i p { margin-top: 12px; font-size: 15.5px; line-height: 1.5; color: var(--p5-ink-2); }
.p6-cs-scope-i:nth-child(7) b::after { margin-left: 0; margin-top: 10px; }
.p6-cs-scope-i:nth-child(7) b::after { content: "офлайн-режим в работе"; display: inline-block; vertical-align: middle; margin-left: 12px; padding: 4px 10px 3px; border-radius: 999px; background: rgba(124, 116, 255, .16); font-family: var(--p5-text); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--p5-ink); }
.p6-cs-sports { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.p6-cs-sport { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0 24px 26px; border-radius: 22px; color: #0a0a0a; background: #c8f03c; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.p6-cs-sport:nth-child(odd):hover { transform: translateY(-8px) rotate(-1.2deg); }
.p6-cs-sport:nth-child(even):hover { transform: translateY(-8px) rotate(1.2deg); }
.p6-cs-sport-swim { background: #4fd1f5; }
.p6-cs-sport-dance { background: #ff6fb0; }
.p6-cs-sport-football { background: #ff9447; }
.p6-cs-sport img { display: block; width: auto; height: 260px; margin: 16px auto 4px; object-fit: contain; }
.p6-cs-sport b { font-family: var(--p5-display); font-weight: 900; font-size: clamp(30px, 2.6vw, 42px); line-height: .92; text-transform: uppercase; }
.p6-cs-sport span { margin-top: 8px; font-size: 15.5px; line-height: 1.45; font-weight: 500; }
.p6-cs-sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; margin-top: 48px; }
.p6-cs-site { margin: 0; }
.p6-cs-site figcaption { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.p6-cs-site figcaption b { font-family: var(--p5-display); font-weight: 900; font-size: 28px; line-height: 1; text-transform: uppercase; }
.p6-cs-site figcaption span { font-size: 14.5px; color: var(--p5-ink-2); }
.p6-cs-pilot { display: inline-block; margin-left: 8px; padding: 4px 10px 3px; border-radius: 999px; background: var(--p5-acc); font-family: var(--p5-text); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #0a0a0a; vertical-align: middle; }
.p6-cs-chat { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--p5-rule); border-radius: 26px; background: #0e100d; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.p6-cs-chat-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--p5-rule); }
.p6-cs-chat-top i { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #c8f03c, #8fbf1f); }
.p6-cs-chat-top b { font-weight: 600; font-size: 15px; }
.p6-cs-chat-top span { margin-left: auto; font-size: 12px; color: var(--p5-ink-2); }
.p6-cs-msg { max-width: 86%; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: #1b1e19; font-size: 15px; line-height: 1.5; }
.p6-cs-msg-me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: #c8f03c; color: #0b0c0a; font-weight: 500; }
.p6-cs-chat-btns { display: flex; gap: 8px; }
.p6-cs-chat-btns span { padding: 9px 14px; border: 1px solid rgba(200, 240, 60, .5); border-radius: 12px; font-size: 14px; font-weight: 600; color: #c8f03c; }
.p6-cs-logos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; margin-top: 48px; }
.p6-cs-logo { display: flex; align-items: center; justify-content: center; min-height: 180px; padding: 30px; border-radius: 22px; border: 1px solid var(--p5-rule); }
.p6-cs-logo-dark { background: #0b0c0a; }
.p6-cs-logo-lime { background: #c8f03c; }
.p6-cs-logo img { display: block; width: min(100%, 300px); height: auto; }
.p6-cs-logo-t { align-self: center; font-size: 16px; line-height: 1.55; color: var(--p5-ink-2); }
.p6-cs-logo-t b { display: block; margin-bottom: 8px; font-family: var(--p5-display); font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; color: var(--p5-ink); }
.p6-cs-logos + .p6-cs-look { margin-top: 18px; }
.p6-cs-cta-boss { display: block; width: clamp(180px, 18vw, 260px); height: auto; margin: 0 auto 24px; }

@media (max-width: 1100px) {
  .p6-cs-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p6-cs-sports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p6-cs-logos { grid-template-columns: 1fr 1fr; }
  .p6-cs-logo-t { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .p6-cs-meet { padding-top: 84px; }
  .p6-cs-scope, .p6-cs-sites, .p6-cs-logos { grid-template-columns: 1fr; }
  .p6-cs-scope-i:nth-child(7) { grid-column: auto; }
  .p6-cs-scope-i:nth-child(7) b::after { display: block; width: max-content; margin: 10px 0 0; }
  .p6-cs-sports { gap: 12px; }
  .p6-cs-sport { padding: 0 14px 18px; border-radius: 18px; }
  .p6-cs-sport img { height: 150px; }
  .p5 .p6-cs-sport b { font-size: 6.6vw; }
  .p6-cs-sport span { font-size: 13px; }
  .p6-cs-chat { padding: 16px; }
  .p6-cs-msg { font-size: 14px; }
  .p6-cs-logo { min-height: 120px; padding: 22px; }
}

/* --- /razrabotka-v2/: эмоциональный вариант «Разработки» (видео-фон, видеоблок запуска, еноты на плитках) --- */
.p6-hub-hero-v { isolation: isolate; min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; }
.p6-hub-hero-v .p6-cs-bg { z-index: -2; }
.p6-hub-hero-v::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .6) 45%, rgba(10, 10, 10, .1) 100%), linear-gradient(180deg, transparent 55%, var(--p5-bg) 100%); pointer-events: none; }
.p6-hub-hero-v .p6-hub-hero-in { grid-template-columns: minmax(0, .62fr) minmax(0, .38fr); }
.p6-hub-meet { padding: 110px 0 0; }
.p6-hub-tasks a { position: relative; overflow: hidden; }
.p6-hub-task-img { display: block; width: auto; height: 190px; margin: -6px auto 6px; object-fit: contain; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.p6-hub-tasks a:hover .p6-hub-task-img { transform: translateY(-6px) scale(1.04); }
@media (max-width: 1100px) { .p6-hub-hero-v .p6-hub-hero-in { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .p6-hub-hero-v { min-height: 0; }
  .p6-hub-hero-v::after { background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .82) 55%, var(--p5-bg) 100%); }
  .p6-hub-meet { padding-top: 84px; }
  .p6-hub-task-img { height: 150px; }
}

/* «Наш подход» и «Гарантии» на /razrabotka/: енот больше не висит под заголовком.
   Сетка: надзаголовок и заголовок слева, енот справа «выглядывает» над карточками, карточки на всю ширину ниже. */
.p6-hub-split, .p6-hub-split-r { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "eye img" "h2 img" "list list"; column-gap: 32px; row-gap: 0; align-items: end; }
.p6-hub-split > div:first-child { display: contents; }
.p6-hub-split .p6-hub-eye, .p6-hub-split .p5-sub { grid-area: eye; align-self: end; }
.p6-hub-split .p6-hub-h2 { grid-area: h2; align-self: end; max-width: 18ch; margin-bottom: 0; }
.p6-hub-split .p6-hub-side { grid-area: img; display: block; width: auto; height: clamp(200px, 22vw, 320px); margin: 0 12px -2px 0; align-self: end; }
.p6-hub-split > ol, .p6-hub-split > ul { grid-area: list; margin-top: 0; position: relative; z-index: 1; }
.p6-hub-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p6-hub-boxes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .p6-hub-split .p6-hub-side { display: block; height: clamp(160px, 26vw, 240px); }
  .p6-hub-ways { grid-template-columns: 1fr; }
  .p6-hub-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .p6-hub-split, .p6-hub-split-r { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
  .p6-hub-split .p6-hub-side { height: 34vw; margin-right: -8px; }
  .p6-hub-boxes { grid-template-columns: 1fr; }
}
.p6-hub-split > ol, .p6-hub-split > ul { margin-top: 40px; }
.p6-hub-split .p6-hub-side { margin-bottom: -46px; }   /* енот заходит за верх карточек: «выглядывает» из-за них */
@media (max-width: 760px) { .p6-hub-split > ol, .p6-hub-split > ul { margin-top: 28px; } .p6-hub-split .p6-hub-side { margin-bottom: -32px; } }
.p6-hub-split, .p6-hub-split-r { grid-template-rows: 1fr auto auto; }   /* надзаголовок прижат к заголовку, а не к верху енота */

/* --- страницы услуг в новом дизайне (.p6-svc): разметку генерирует конвертер, классы p6-svc-* --- */
.p6-svc-head { max-width: 1000px; margin-bottom: 44px; }
.p6-svc-head-c { margin-left: auto; margin-right: auto; text-align: center; }
.p6-svc-head-c .p6-svc-h2 { margin-left: auto; margin-right: auto; }
.p6-svc-head-c .p6-svc-sub { margin-left: auto; margin-right: auto; }
.p6-svc-h2 { max-width: 22ch; }
.p6-svc-sub { margin-top: 20px; }
.p6-svc-note { margin-top: 26px; font-family: var(--p5-hand); font-size: clamp(17px, 1.4vw, 21px); color: var(--p5-acc); }
.p6-svc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.p6-svc-cards li { display: flex; flex-direction: column; padding: 26px 24px 28px; border-radius: 20px; color: #0a0a0a; background: #efe6d2; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.p6-svc-cards li:nth-child(4n+2) { background: #dff3c8; }
.p6-svc-cards li:nth-child(4n+3) { background: #dcdcff; }
.p6-svc-cards li:nth-child(4n+4) { background: #e8c547; }
.p6-svc-cards li:nth-child(odd):hover { transform: translateY(-6px) rotate(-1deg); }
.p6-svc-cards li:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.p6-svc-n { font-family: var(--p5-display); font-weight: 900; font-size: 44px; line-height: .85; opacity: .35; }
.p6-svc-cards h3 { margin-top: 16px; font-family: var(--p5-display); font-weight: 900; font-size: clamp(28px, 2.4vw, 38px); line-height: .92; text-transform: uppercase; }
.p6-svc-cards p { margin-top: 10px; font-size: 15.5px; line-height: 1.5; font-weight: 500; color: #25262b; }
.p6-svc-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p6-svc-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p6-svc-boxes:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p6-svc-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: rgba(124, 116, 255, .16); color: var(--p5-acc); }
.p6-svc-ico svg { width: 22px; height: 22px; }
.p6-svc-tag { display: inline-block; margin-bottom: 12px; padding: 5px 12px 4px; border-radius: 999px; background: rgba(124, 116, 255, .16); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--p5-ink); }
.p6-svc-link a { display: block; position: relative; height: 100%; color: inherit; }
.p6-svc-link i { position: absolute; top: 0; right: 0; font-style: normal; font-size: 22px; color: var(--p5-acc); transition: transform .2s ease; }
.p6-svc-link:hover { border-color: var(--p5-acc); }
.p6-svc-link:hover i { transform: translate(3px, -3px); }
.p6-svc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.p6-svc-chips span { padding: 6px 12px 5px; border: 1px solid var(--p5-rule); border-radius: 999px; font-size: 14px; color: var(--p5-ink); }
.p6-svc-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.p6-svc-checks { display: grid; gap: 10px; margin-top: 18px; }
.p6-svc-checks li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.45; color: var(--p5-ink-2); }
.p6-svc-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--p5-acc); }
.p6-svc-rows { border-top: 1px solid var(--p5-rule); }
.p6-svc-rows li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--p5-rule); }
.p6-svc-rows .p6-svc-n { font-size: 56px; color: var(--p5-acc); opacity: 1; }
.p6-svc-rows h3 { font-family: var(--p5-display); font-weight: 900; font-size: clamp(30px, 3vw, 46px); line-height: .92; text-transform: uppercase; }
.p6-svc-rows p { margin-top: 8px; max-width: 70ch; font-size: 16px; line-height: 1.55; color: var(--p5-ink-2); }
.p6-svc-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.p6-svc-price { display: flex; flex-direction: column; padding: 30px 28px; border: 1px solid var(--p5-rule); border-radius: 22px; background: var(--p5-bg); }
.p6-svc-price.is-pop { border: 0; background: var(--p5-acc); color: #0a0a0a; transform: translateY(-8px); box-shadow: 0 30px 70px rgba(124, 116, 255, .3); }
.p6-svc-price-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p6-svc-price-top b { font-family: var(--p5-display); font-weight: 900; font-size: 34px; line-height: 1; text-transform: uppercase; }
.p6-svc-price .p6-svc-tag { margin: 0; }
.p6-svc-price.is-pop .p6-svc-tag { background: #0a0a0a; color: #fff; }
.p6-svc-price > p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--p5-ink-2); }
.p6-svc-price.is-pop > p, .p6-svc-price.is-pop .p6-svc-checks li { color: #1d1e22; }
.p6-svc-price.is-pop .p6-svc-checks li::before { color: #0a0a0a; }
.p6-svc-price strong { display: block; margin-top: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--p5-rule); font-family: var(--p5-display); font-weight: 900; font-size: clamp(36px, 3.2vw, 52px); line-height: .9; }
.p6-svc-price.is-pop strong { border-color: rgba(10, 10, 10, .2); }
.p6-svc-price .p6-svc-checks { margin-bottom: 26px; }
.p6-svc-price .p5-btn { margin-top: auto; justify-content: center; }
.p6-svc-price.is-pop .p5-btn { background: #0a0a0a; color: var(--p5-ink) !important; }
.p6-svc-ghost { background: transparent; color: var(--p5-ink) !important; box-shadow: inset 0 0 0 1.5px var(--p5-rule); }
.p6-svc-ghost:hover { background: rgba(255, 255, 255, .06); }
.p6-svc-table { overflow-x: auto; border: 1px solid var(--p5-rule); border-radius: 20px; background: var(--p5-bg-2); }
.p6-svc-table table { width: 100%; min-width: 560px; border-collapse: collapse; }
.p6-svc-table th, .p6-svc-table td { padding: 16px 22px; border-bottom: 1px solid var(--p5-rule); text-align: left; font-size: 15.5px; color: var(--p5-ink-2); }
.p6-svc-table thead th { font-family: var(--p5-display); font-weight: 900; font-size: 22px; text-transform: uppercase; color: var(--p5-ink); }
.p6-svc-table tbody th { font-weight: 600; color: var(--p5-ink); }
.p6-svc-table td:last-child, .p6-svc-table th:last-child { color: var(--p5-acc); font-weight: 600; }
.p6-svc-table tr:last-child > * { border-bottom: 0; }
.p6-svc-rel-sec { padding-top: 40px; }
.p6-svc-rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.p6-svc-rel a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k i" "t i"; gap: 6px 12px; align-items: center; height: 100%; box-sizing: border-box; padding: 18px 20px; border: 1px solid var(--p5-rule); border-radius: 16px; transition: border-color .2s ease, background-color .2s ease; }
.p6-svc-rel a:hover { border-color: var(--p5-acc); background: rgba(124, 116, 255, .08); }
.p6-svc-rel span { grid-area: k; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--p5-ink-2); }
.p6-svc-rel b { grid-area: t; font-family: var(--p5-display); font-weight: 800; font-size: 22px; line-height: 1; text-transform: uppercase; }
.p6-svc-rel i { grid-area: i; font-style: normal; color: var(--p5-acc); }
@media (max-width: 1100px) {
  .p6-svc-cards, .p6-svc-boxes, .p6-svc-boxes:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p6-svc-ways { grid-template-columns: 1fr; }
  .p6-svc-prices { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .p6-svc-price.is-pop { transform: none; }
}
@media (max-width: 760px) {
  .p6-svc-head { margin-bottom: 30px; }
  .p6-svc-cards, .p6-svc-boxes, .p6-svc-boxes:has(> li:nth-child(4):last-child) { grid-template-columns: 1fr; }
  .p5 .p6-svc-cards h3 { font-size: 9vw !important; line-height: .95 !important; }
  .p6-svc-rows li { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .p6-svc-rows .p6-svc-n { font-size: 40px; }
  .p5 .p6-svc-rows h3 { font-size: 8.4vw !important; line-height: .95 !important; }
  .p6-svc-price { padding: 24px 20px; }
  .p6-svc-table th, .p6-svc-table td { padding: 12px 14px; font-size: 14px; }
}
.p6-svc-proof { padding: 30px 0; border-block: 1px solid var(--p5-rule); background: var(--p5-bg-2); }
.p6-svc-proof-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.p6-svc-proof-n { display: flex; align-items: center; gap: 16px; max-width: 520px; }
.p6-svc-proof-n b { font-family: var(--p5-display); font-weight: 900; font-size: clamp(56px, 5vw, 84px); line-height: .85; color: var(--p5-acc); }
.p6-svc-proof-n span { font-size: 16px; line-height: 1.4; color: var(--p5-ink-2); }
.p6-svc-proof .p6-svc-chips { margin: 0; }

/* оффер услуги в три строки при любой длине: класс p6-h1-len-N ставит конвертер по числу символов */
.p5 h1.p6-hub-h1.p6-h1-len-40 { font-size: min(14.75cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-45 { font-size: min(13.11cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-50 { font-size: min(11.8cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-55 { font-size: min(10.73cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-60 { font-size: min(9.83cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-65 { font-size: min(9.08cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-70 { font-size: min(8.43cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-75 { font-size: min(7.87cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-80 { font-size: min(7.38cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-85 { font-size: min(6.94cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-90 { font-size: min(6.56cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-95 { font-size: min(6.21cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-100 { font-size: min(5.9cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-105 { font-size: min(5.62cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-110 { font-size: min(5.36cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-115 { font-size: min(5.13cqw, 116px) !important; }
.p5 h1.p6-hub-h1.p6-h1-len-120 { font-size: min(4.92cqw, 116px) !important; }
@media (max-width: 760px) { .p5 h2.p6-hub-cta-h { font-size: 11vw !important; overflow-wrap: anywhere; } }

/* финальный блок с формой (страницы «Разработки» и услуг): заголовок по ширине своей колонки, строки выровнены */
.p6-hub .p5-cta-grid > div:first-child { container-type: inline-size; }
.p5 h2.p6-hub-cta-h { font-size: min(10.5cqw, 104px) !important; line-height: .9 !important; text-wrap: balance; overflow-wrap: normal; }
.p6-hub .p5-cta-grid { gap: 40px 56px; align-items: center; }
.p6-hub .p6-hub-form { max-width: 560px; justify-self: end; }
@media (max-width: 1100px) { .p6-hub .p6-hub-form { justify-self: stretch; max-width: none; } }
@media (max-width: 760px) { .p5 h2.p6-hub-cta-h { font-size: min(11.5cqw, 64px) !important; } }

/* блок результата на страницах услуг (вместо «Знакомо?»): обещание, 4 плитки, плашка с телефоном */
.p6-svc-win-cards li { min-height: 230px; }
.p6-svc-win-ok { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #0a0a0a; color: #c8f03c; font-weight: 700; font-size: 18px; }
.p6-svc-win-cards h3 { margin-top: 18px; }
.p6-svc-win-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 22px 40px; align-items: center; margin-top: 22px; padding: 28px 32px; border-radius: 22px; background: var(--p5-acc); color: #0a0a0a; }
.p6-svc-win-band > p { font-family: var(--p5-display); font-weight: 900; font-size: clamp(26px, 2.3vw, 36px); line-height: .98; text-transform: uppercase; }
.p6-svc-win-lead { max-width: none; }
.p6-svc-win-lead .p6-field { background: rgba(255, 255, 255, .92); box-shadow: none; }
.p6-svc-win-lead .p6-field input { color: #0a0a0a; font-size: 17px; font-weight: 400; }
.p6-svc-win-lead .p6-field input::placeholder { color: #55565e; }
.p6-svc-win-lead .p6-consent { color: #1d1e22; }
.p6-svc-win-lead .p6-consent a { color: #0a0a0a; }
@media (max-width: 1100px) { .p6-svc-win-band { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .p6-svc-win-cards li { min-height: 0; }
  .p6-svc-win-band { padding: 22px 18px; }
  .p5 .p6-svc-win-band > p { font-size: 7.2vw; }
}

/* финальный блок на «Разработке» и услугах: свои отступы сверху и снизу (правило главной обнуляет низ под енота) */
.p6-page .p6-hub .p5-cta { padding: 120px 0; }
.p6-page .p6-hub .p5-cta-grid > div:first-child { padding-bottom: 0; }
@media (max-width: 1100px) { .p6-page .p6-hub .p5-cta { padding: 90px 0; } }
@media (max-width: 760px) { .p6-page .p6-hub .p5-cta { padding: 64px 0 72px; } .p6-page .p6-hub .p5-cta-grid { gap: 28px; } }

/* адаптив страниц «Разработки» и услуг: правки после прогона 320–1440 */
.p6-hub .p5-giant { font-size: clamp(52px, 7.2vw, 132px); padding-inline: .04em; }
.p6-hub .p5-faq-grid .p5-giant { font-size: clamp(52px, 6.4vw, 112px); }
.p6-svc-cards h3, .p6-hub-boxes h3, .p6-hub-steps h3 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 760px) {
  .p5 h2.p5-giant.p5-giant-s { font-size: 12.5vw !important; }
  .p5 .p6-hub-stats dd { font-size: 12vw; white-space: normal; }
  .p5 .p6-svc-cards h3, .p5 .p6-svc-win-cards h3 { font-size: 8vw !important; }
  .p6-svc-price strong { font-size: 9.6vw; }
  .p6-svc-price-top b { font-size: 8.6vw; }
  .p6-hub-res dd { font-size: 12vw; }
  .p6-hub-res dl { gap: 10px; }
}
@media (max-width: 360px) { .p6-hub-res dl { grid-template-columns: 1fr; } .p6-svc-price-top { flex-wrap: wrap; } }
.p6-cs-crumb { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 760px) { .p5 h2.p6-h2-long { font-size: 10vw !important; } }

/* --- герой страниц услуг как на главной (.p6-svc-hero) ---------------------------------
   SEO-заголовок страницы идёт мелкой строкой (.p5-kicker), оффер двумя гигантскими строками.
   Кегль строк считается от самой длинной: --p6-hd = max(6.3, символов × 0.42), как «Собираем в одну» на главной. */
.p6-svc-hero .p5-h1-a, .p6-svc-hero .p5-h1-b { font-size: min(calc((100vw - 64px) / var(--p6-hd, 6.3)), 254px); }
.p6-svc-hero .p5-kicker { max-width: 46ch; font-size: 18px; }
.p6-hero-crumb { position: relative; z-index: 3; margin-bottom: 18px; font-size: 13px; }
/* енот в полный рост стоит на нижней кромке, без растворения низа (обрезанных фото не надо) */
.p6-page .p6-hero-boss.p6-hero-boss-full { bottom: 0; height: min(88%, 900px); -webkit-mask-image: none; mask-image: none; }
.p6-svc-stats { padding: 36px 0 0; }
.p6-svc-stats .p6-hub-stats { margin-top: 0; }
@media (max-width: 760px) {
  .p6-svc-hero .p5-h1-a, .p6-svc-hero .p5-h1-b { font-size: 17.5vw; }
  .p6-svc-hero .p5-kicker { font-size: 15.5px; margin-bottom: 18px; }
  .p6-page .p6-hero-boss.p6-hero-boss-full { bottom: 0; height: 84vw; }
}

/* --- подвал нового дизайна (partials/footer-v6.html.twig) ------------------------------- */
.p6-foot { position: relative; padding: 110px 0 28px; border-top: 1px solid var(--p5-rule); background: var(--p5-bg); overflow: hidden; }
.p6-foot-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .8fr); gap: 48px 64px; }
.p6-foot-hand { font-size: clamp(24px, 2.2vw, 34px); color: var(--p5-acc); transform: rotate(-2deg); transform-origin: left; }
.p6-foot-tel { display: inline-block; margin-top: 10px; font-family: var(--p5-display); font-weight: 900; font-size: clamp(56px, 6.4vw, 104px); line-height: .9; text-transform: uppercase; letter-spacing: -0.005em; transition: color .2s; }
.p6-foot-tel:hover { color: var(--p5-acc); }
.p6-foot-time { margin-top: 14px; font-size: 15px; color: var(--p5-ink-2); }
.p6-foot-time a { text-decoration: underline; text-underline-offset: 3px; }
.p6-foot-soc { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.p6-foot-soc > a:not(.p5-btn) { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--p5-rule); color: var(--p5-ink); transition: background .2s, border-color .2s; }
.p6-foot-soc > a:not(.p5-btn):hover { background: var(--p5-bg-2); border-color: var(--p5-ink-2); }
.p6-foot-btn { margin-left: 4px; }
.p6-foot-h { margin-bottom: 18px; font-family: var(--p5-display); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .01em; }
.p6-foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; color: var(--p5-ink-2); }
.p6-foot-col a { width: fit-content; transition: color .2s, translate .2s; }
.p6-foot-col a:hover { color: var(--p5-ink); translate: 4px 0; }
/* слово-логотип на всю ширину: «PivotPoint» = 10 знаков, кегль подобран под ширину контента */
.p6-foot-word { margin: 90px 0 0; font-family: var(--p5-display); font-weight: 900; font-size: min(calc((100vw - 64px) / 4.05), 400px); line-height: .78; text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px var(--p5-ink-dim); user-select: none; }
.p6-foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--p5-rule); font-size: 13px; color: var(--p5-ink-2); }
.p6-foot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.p6-foot-legal a:hover { color: var(--p5-ink); }
@media (max-width: 1100px) { .p6-foot-top { grid-template-columns: 1fr 1fr; } .p6-foot-call { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .p6-foot { padding: 72px 0 96px; }                  /* снизу место под плавающую кнопку чата */
  .p6-foot-top { grid-template-columns: 1fr; gap: 40px; }
  .p6-foot-tel { font-size: 15.5vw; }
  .p6-foot-word { margin-top: 56px; -webkit-text-stroke-width: 1px; }
  .p6-foot-bottom { flex-direction: column; }
}
/* цифры героя: крайние колонки прижаты к краям контента, промежутки поровну (не оставлять пустоту справа) */
@media (min-width: 1101px) {
  .p6-hub-stats { display: flex; justify-content: space-between; }
  .p6-hub-stats > div { flex: 0 1 auto; }
}
.p6-foot-word { -webkit-text-stroke-color: rgba(236, 237, 241, 0.3); color: rgba(124, 116, 255, 0.1); }
@media (min-width: 761px) { .p6-foot-bottom { padding-left: 84px; } }   /* слева внизу плавающая кнопка чата */
@media (max-width: 760px) {
  .p6-foot-top { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .p6-foot-col { font-size: 14.5px; }
  .p6-foot-h { font-size: 22px; }
  .p6-foot-word { font-size: 23vw; }
}
@media (max-width: 760px) { .p6-page .p6-hero-boss.p6-hero-boss-full { right: 0; bottom: 4vw; height: 92vw; } }
@media (min-width: 761px) and (max-width: 1100px) { .p6-page .p6-hero-boss.p6-hero-boss-full { right: 2%; } }
@media (max-width: 760px) {
  .p6-page .p6-svc-hero .p5-h1-box:has(.p6-hero-boss-full) { padding-bottom: 80vw; }
  .p6-page .p6-hero-boss.p6-hero-boss-full { right: 2vw; bottom: 2vw; height: 78vw; }
  .p6-page .p6-svc-hero .p5-h1-box:has(.p6-hero-boss-full) .p5-rot { bottom: 30vw; }
}

/* --- подвал: парад енотов за словом-логотипом ---------------------------------------------
   Дорожка = [12 енотов][слово]. Стоит так, что видно только слово; раз в 6 с уезжает вправо,
   еноты идут за словом через весь экран, потом слово заезжает слева на место (pp-home-v6.js). */
.p6-foot-run { position: relative; margin-top: 90px; overflow: hidden; }
.p6-foot-run .p6-foot-word { margin: 0; }
.p6-foot-track { display: flex; align-items: flex-end; width: max-content; will-change: transform; }
.p6-foot-crew { display: flex; align-items: flex-end; gap: clamp(8px, 1.4vw, 24px); padding-right: clamp(24px, 4vw, 64px); }
.p6-foot-crew img { display: block; width: auto; height: min(calc((100vw - 64px) / 4.05 * .78), 312px); animation: p6Walk .56s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.p6-foot-crew img:nth-child(odd) { animation-delay: -.28s; }
.p6-foot-crew img:nth-child(3n) { animation-duration: .5s; }
@keyframes p6Walk { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-5%) rotate(2deg); } }
.p6-foot-crew .p6-foot-wave { animation-name: p6Wave; }
@keyframes p6Wave { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-3%) rotate(3deg); } }
@media (max-width: 760px) { .p6-foot-run { margin-top: 56px; } .p6-foot-crew img { height: calc(23vw * .78); } }
@media (prefers-reduced-motion: reduce) { .p6-foot-crew { display: none; } }

/* нестандартные блоки (калькулятор, галерея, KPI) переносятся со старой разметкой: заголовки в стиле нового дизайна */
.p5 .p6-legacy { font-family: var(--p5-text); }
.p5 .p6-legacy h2 { font-family: var(--p5-display) !important; font-weight: 900 !important; text-transform: uppercase; letter-spacing: -0.005em !important; font-size: clamp(44px, 5.4vw, 92px) !important; line-height: .88 !important; }
.p5 .p6-legacy .pp-eyebrow { font-family: var(--p5-hand); font-size: clamp(20px, 1.8vw, 28px); letter-spacing: 0; text-transform: none; color: var(--p5-acc); }

/* --- кейсы в новом дизайне: старое тело кейса (.p6-case-body) перекрашено под p5 ---------- */
.p6-case-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; font-size: 14px; }
.p6-case-facts div { display: flex; flex-direction: column; }
.p6-case-facts dt { color: var(--p5-ink-2); font-size: 12.5px; }
.p6-case-facts dd { margin: 2px 0 0; color: var(--p5-ink); font-weight: 600; }
.p6-case-hero .p5-hero-foot > div:first-child { min-width: 0; }
.p6-case-body { padding-bottom: 40px; }
.p6-case-body h2, .p6-case-body .pp-h3clamp, .p6-case-body .pp-h3clamp2 {
  font-family: var(--p5-display) !important; font-weight: 900 !important; text-transform: uppercase;
  font-size: clamp(42px, 5vw, 84px) !important; line-height: .9 !important; letter-spacing: -0.005em !important; text-wrap: balance;
}
.p6-case-body .pp-eyebrow { font-family: var(--p5-hand) !important; font-size: clamp(20px, 1.7vw, 26px) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--p5-acc) !important; }
.p6-case-body .pp-grad40a, .p6-case-body .pp-num22, .p6-case-body .pp-num26mt, .p6-case-body .pp-num-accent, .p6-case-body [class*="pp-grad"] {
  font-family: var(--p5-display) !important; font-weight: 900 !important; background: none !important;
  -webkit-text-fill-color: currentColor !important; color: var(--p5-ink) !important; letter-spacing: 0 !important;
}
.p6-case-body .pp-grad40a { font-size: clamp(56px, 5.4vw, 92px) !important; line-height: .9 !important; }
.p6-case-body [style*="Unbounded"] { font-family: var(--p5-display) !important; text-transform: uppercase; letter-spacing: 0 !important; }
.p6-case-body .pp-card-hi28, .p6-case-body .pp-hv-card, .p6-case-body .pp-icard, .p6-case-body .pp-icard2,
.p6-case-body .pp-card-flat-sm, .p6-case-body .pp-card-flat30 { background: var(--p5-bg-2) !important; border-color: var(--p5-rule) !important; box-shadow: none !important; }
.p6-case-body .pp-stat-sub { color: var(--p5-acc) !important; font-size: 15px !important; }
.p6-case-body .pp-pill { border-color: var(--p5-rule) !important; background: transparent !important; color: var(--p5-ink) !important; }
@media (max-width: 760px) { .p6-case-body .pp-grad40a { font-size: 15vw !important; } .p6-case-body h2, .p6-case-body .pp-h3clamp { font-size: 11vw !important; } }
/* внутренние страницы: строки оффера длиннее «Собираем в одну», поэтому текст идёт поверх енота, а не под его головой */
.p6-page .p6-svc-hero .p5-h1 { z-index: 3; }
.p6-page .p6-svc-hero .p5-h1-a, .p6-page .p6-svc-hero .p5-h1-b { text-shadow: 0 2px 24px rgba(10, 10, 10, .55); }
.p6-page .p6-svc-hero .p5-rot { z-index: 4; }
/* телефон: на внутренних страницах енот целиком под заголовком (строки оффера длиннее, чем на главной) */
@media (max-width: 760px) {
  .p6-page .p6-svc-hero .p5-h1-box { padding-bottom: 84vw !important; }
  .p6-page .p6-svc-hero .p6-hero-boss { top: auto !important; bottom: 0 !important; right: -2vw !important; height: 82vw !important; z-index: 2 !important; }
  .p6-page .p6-svc-hero .p6-hero-boss:not(.p6-hero-boss-full) { right: -12vw !important; height: 84vw !important; }
  .p6-page .p6-svc-hero .p5-rot { bottom: 26vw !important; z-index: 4 !important; }
}
@media (min-width: 761px) { .p6-page .p6-hero-boss.p6-hero-boss-full { height: min(66%, 700px); right: 3%; } }
.p6-cs-hero .p6-lead { position: relative; z-index: 2; max-width: 640px; margin-top: 34px; }

/* --- /enoty/: команда енотов, кто есть кто ------------------------------------------------ */
.p6-crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 48px; }
.p6-crew-card a { display: flex; flex-direction: column; height: 100%; padding: 18px 18px 22px; border: 1px solid var(--p5-rule); border-radius: 22px; background: var(--p5-bg-2); transition: translate .25s, border-color .25s; }
.p6-crew-card a:hover { translate: 0 -6px; border-color: var(--p5-acc); }
.p6-crew-img { display: grid; place-items: end center; height: 280px; margin-bottom: 16px; border-radius: 16px; background: radial-gradient(70% 60% at 50% 80%, rgba(124, 116, 255, .22), transparent 70%); }
.p6-crew-img img { max-height: 100%; width: auto; max-width: 100%; transition: scale .3s; transform-origin: 50% 100%; }
.p6-crew-card a:hover .p6-crew-img img { scale: 1.05; }
.p6-crew-card b { font-family: var(--p5-display); font-weight: 900; font-size: 30px; line-height: .95; text-transform: uppercase; }
.p6-crew-role { margin-top: 8px; font-size: 14px; color: var(--p5-ink-2); }
.p6-crew-card i { margin-top: 12px; font-style: normal; font-size: 17px; line-height: 1.3; color: var(--p5-acc); }
@media (max-width: 760px) { .p6-crew { grid-template-columns: 1fr 1fr; gap: 12px; } .p6-crew-img { height: 200px; } .p6-crew-card a { padding: 12px 12px 16px; } .p6-crew-card b { font-size: 22px; } .p6-crew-card i { font-size: 15px; } }
.p6-foot-crew img { height: min(calc((100vw - 64px) / 4.05 * .98), 390px); }
@media (max-width: 760px) { .p6-foot-crew img { height: calc(23vw * .98); } }
.p6-crew-img { overflow: hidden; } .p6-crew-img img { width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: 50% 100%; }

/* ноутбуки (невысокий экран): гигантские строки не выше ~22% высоты окна, чтобы форма оставалась на первом экране */
@media (min-width: 761px) {
  .p6-svc-hero .p5-h1-a, .p6-svc-hero .p5-h1-b { font-size: min(calc((100vw - 64px) / var(--p6-hd, 6.3)), 254px, 21vh); }
  .p6-page .p6-hero-boss.p6-hero-boss-full { height: min(74%, 760px); }
}
@media (min-width: 761px) {
  /* рукописное слово внутренних страниц: в свободную зону справа от заголовка, над енотом, а не на описание */
  .p6-page .p6-svc-hero .p5-rot { left: auto; right: 22%; bottom: auto; top: 30%; font-size: clamp(36px, 4.6vw, 80px); }
}

/* подвал v2: 4 колонки ровно, направления с номерами, яркие заголовки колонок */
.p6-foot-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .7fr); gap: 48px 48px; align-items: start; }
.p6-foot-h { margin-bottom: 20px; font-family: var(--p5-hand); font-weight: 500; font-size: 22px; text-transform: none; letter-spacing: 0; color: var(--p5-acc); }
.p6-foot-col { gap: 12px; font-size: 16px; color: var(--p5-ink); }
.p6-foot-col a { color: var(--p5-ink-2); }
.p6-foot-col a:hover { color: var(--p5-ink); }
.p6-foot-dirs a { display: flex; align-items: baseline; gap: 12px; color: var(--p5-ink); font-family: var(--p5-display); font-weight: 800; font-size: 25px; line-height: 1; text-transform: uppercase; letter-spacing: .005em; }
.p6-foot-dirs a:hover { color: var(--p5-acc); }
.p6-foot-n { min-width: 22px; font-family: var(--p5-text); font-weight: 500; font-size: 12px; color: var(--p5-ink-2); }
@media (max-width: 1100px) { .p6-foot-top { grid-template-columns: 1fr 1fr; } .p6-foot-call { grid-column: 1 / -1; } .p6-foot-dirs { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; } .p6-foot-dirs .p6-foot-h { grid-column: 1 / -1; } }
@media (max-width: 760px) { .p6-foot-top { grid-template-columns: 1fr 1fr; gap: 36px 20px; } .p6-foot-dirs { grid-template-columns: 1fr; } .p6-foot-dirs a { font-size: 22px; } .p6-foot-col { font-size: 15px; } }
.p6-foot-tel { white-space: nowrap; font-size: clamp(44px, 4.4vw, 80px); }
@media (max-width: 760px) { .p6-foot-tel { font-size: 13.5vw; } }
.p6-foot-hand { white-space: nowrap; }

/* первый экран внутренних страниц целиком на невысоких экранах ноутбуков: заголовок, описание и форма без прокрутки */
@media (min-width: 761px) and (max-height: 1000px) {
  .p6-page .p6-svc-hero { padding-top: 90px; min-height: 0; }
  .p6-page .p6-svc-hero .p6-hero-crumb { margin-bottom: 8px; }
  .p6-page .p6-svc-hero .p5-kicker { margin-bottom: 10px; font-size: 16px; }
  .p6-page .p6-svc-hero .p5-h1-a, .p6-page .p6-svc-hero .p5-h1-b { font-size: min(calc((100vw - 64px) / var(--p6-hd, 6.3)), 254px, 17vh); }
  .p6-page .p6-svc-hero .p5-hero-foot { padding-top: 14px; }
  .p6-page .p6-svc-hero .p5-hero-about { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 1.45; }
  .p6-page .p6-svc-hero .p5-hero-about + .p5-hero-about { display: none; }
  .p6-page .p6-svc-hero .p5-hero-foot .p6-lead { margin-top: 14px; }
  .p6-page .p6-svc-hero .p6-case-facts { margin-top: 10px; gap: 6px 22px; font-size: 13px; }
  .p6-page .p6-svc-hero .pe-night-badge { margin-bottom: 6px; padding: 4px 12px; font-size: 13px; }
  .p6-page .p6-svc-hero .p6-hero-boss.p6-hero-boss-full { height: min(80%, 700px); }
}
@media (min-width: 761px) and (max-height: 780px) {
  .p6-page .p6-svc-hero .p5-hero-about { -webkit-line-clamp: 2; }
  .p6-page .p6-svc-hero .p6-case-facts div:nth-child(n+4) { display: none; }
}
/* главная на невысоких экранах: «Собираем в одну систему» не выше ~20% окна, форма на первом экране */
@media (min-width: 761px) and (max-height: 1000px) {
  .p6-page .p5-hero:not(.p6-svc-hero) { padding-top: 92px; }
  .p6-page .p5-hero:not(.p6-svc-hero) .p5-h1-a, .p6-page .p5-hero:not(.p6-svc-hero) .p5-h1-b { font-size: min(calc((100vw - 64px) / 6.3), 254px, 19vh); }
  .p6-page .p5-hero:not(.p6-svc-hero) .p5-kicker { margin-bottom: 14px; }
  .p6-page .p5-hero:not(.p6-svc-hero) .p5-hero-foot { padding-top: 12px; }
  .p6-page .p5-hero:not(.p6-svc-hero) .p5-hero-foot .p6-lead { margin-top: 14px; }
  .p6-page .p5-hero:not(.p6-svc-hero) .p6-hero-boss { height: min(76%, 760px); }
}
/* парад в подвале на 30% меньше прежнего (просьба владельца) */
.p6-foot-crew img { height: min(calc((100vw - 64px) / 4.05 * .343), 137px); }
@media (max-width: 760px) { .p6-foot-crew img { height: calc(23vw * .343); } }
/* шагающие еноты (анимированный WebP): своё покачивание не нужно */
.p6-foot-crew img.pe-walk { animation: none; }

/* --- первый экран кейса, как у PPFit, но вместо видеофона стоит персонаж (видео подключим позже) --- */
.p6-cs-hero-still { min-height: min(100svh, 900px); }
.p6-cs-hero-still .p5-wrap { position: relative; z-index: 1; }
.p6-cs-boss { position: absolute; right: 3%; bottom: 0; z-index: 0; height: min(86%, 780px); width: auto; pointer-events: none; }
.p6-cs-hero-still .p6-cs-meta { max-width: min(900px, 62%); }
.p6-cs-hero-still .p6-cs-meta dd { font-size: clamp(16px, 1.5vw, 22px); line-height: 1.1; }
@media (max-width: 760px) {
  .p6-cs-hero-still { min-height: 0; padding-bottom: 72vw; }
  .p6-cs-boss { right: -6vw; height: 78vw; opacity: .9; }
  .p6-cs-hero-still .p6-cs-meta { max-width: none; }
}
@media (min-width: 761px) and (max-width: 1100px) { .p6-cs-boss { right: -3%; height: min(62%, 560px); } }
