/* /assets/css/pp-home-v5.css */
/* Вариант главной 5 (/home-v5/, pp.home_v5) по мотивам islamov-tema.ru:
   гигантская сжатая типографика заглавными, рукописные ремарки акцентом,
   манифест загорается по словам, цветные плашки, светлый финальный блок.
   Тема только тёмная (переключатель темы на этой странице выключен в base.html.twig).
   Всё под префиксом .p5. Знак рубля в новых шрифтах отсутствует: подхватывается из Manrope. */

/* Знака ₽ в этих шрифтах нет, раньше он брался из запасного 'Manrope' в --p5-display/--p5-text.
   Запасной веб-шрифт Chrome начинает качать, пока грузится основной, и Manrope (40 КБ) тянулся
   на каждую страницу ради одного символа. Теперь тот же ₽ (manrope-rub.woff2, 1 КБ) подключён
   к семействам напрямую, а Manrope из списков убран. font-weight у правила ₽ обязан совпадать с
   остальными правилами семейства: иначе браузер выбирает набор по толщине и берёт файл только с ₽. */
@font-face { font-family: 'Sofia Sans Extra Condensed'; src: url('/assets/fonts/manrope-rub.woff2') format('woff2'); font-weight: 1 1000; font-display: swap; unicode-range: U+20BD; }
@font-face { font-family: 'Shantell Sans'; src: url('/assets/fonts/manrope-rub.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+20BD; }
@font-face { font-family: 'Golos Text'; src: url('/assets/fonts/manrope-rub.woff2') format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+20BD; }
/* Кириллица (с 2026-11-11, вечер): *-cyrillic-core.woff2 - только русские буквы, № и знак ударения,
   прежний *-cyrillic.woff2 оставлен правилом на остальные буквы кириллицы.
   Латиница: *-latin-core.woff2 - тот же файл без букв с диакритикой и редких знаков (на сайте их нет,
   проверено по всем страницам 2026-11-11), сами буквы не менялись. Прежний *-latin.woff2 оставлен
   отдельным правилом и скачается, только если такой символ появится на странице. */
@font-face { font-family: 'Sofia Sans Extra Condensed'; src: url('/assets/fonts/sofia-sans-xcond-cyrillic.woff2') format('woff2'); font-weight: 1 1000; font-display: swap; unicode-range: U+0400, U+0402-040F, U+0450, U+0452-045F, U+0490-0491, U+04B0-04B1; }
@font-face { font-family: 'Sofia Sans Extra Condensed'; src: url('/assets/fonts/sofia-sans-xcond-cyrillic-core.woff2') format('woff2'); font-weight: 1 1000; font-display: swap; unicode-range: U+0301, U+0401, U+0410-044F, U+0451, U+2116; }
@font-face { font-family: 'Sofia Sans Extra Condensed'; src: url('/assets/fonts/sofia-sans-xcond-latin.woff2') format('woff2'); font-weight: 1 1000; font-display: swap; unicode-range: U+00C0-00D6, U+00D8-00F6, U+00F8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+20AC, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sofia Sans Extra Condensed'; src: url('/assets/fonts/sofia-sans-xcond-latin-core.woff2') format('woff2'); font-weight: 1 1000; font-display: swap; unicode-range: U+0000-00BF, U+00D7, U+00F7, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Shantell Sans'; src: url('/assets/fonts/shantell-sans-cyrillic.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+0400, U+0402-040F, U+0450, U+0452-045F, U+0490-0491, U+04B0-04B1; }
@font-face { font-family: 'Shantell Sans'; src: url('/assets/fonts/shantell-sans-cyrillic-core.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+0301, U+0401, U+0410-044F, U+0451, U+2116; }
@font-face { font-family: 'Shantell Sans'; src: url('/assets/fonts/shantell-sans-latin.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+00C0-00D6, U+00D8-00F6, U+00F8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+20AC, U+FEFF, U+FFFD; }
@font-face { font-family: 'Shantell Sans'; src: url('/assets/fonts/shantell-sans-latin-core.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00BF, U+00D7, U+00F7, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Golos Text'; src: url('/assets/fonts/golos-text-cyrillic.woff2') format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0400, U+0402-040F, U+0450, U+0452-045F, U+0490-0491, U+04B0-04B1; }
@font-face { font-family: 'Golos Text'; src: url('/assets/fonts/golos-text-cyrillic-core.woff2') format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0301, U+0401, U+0410-044F, U+0451, U+2116; }
@font-face { font-family: 'Golos Text'; src: url('/assets/fonts/golos-text-latin.woff2') format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+00C0-00D6, U+00D8-00F6, U+00F8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+20AC, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; src: url('/assets/fonts/golos-text-latin-core.woff2') format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00BF, U+00D7, U+00F7, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215; }

.p5-page {
  --p5-bg: #0a0a0a;
  --p5-bg-2: #141414;
  --p5-ink: #ecedf1;
  --p5-ink-2: #9b9ea9;
  --p5-ink-dim: rgba(236, 237, 241, 0.16);
  --p5-rule: rgba(236, 237, 241, 0.12);
  --p5-acc: #7c74ff;
  --p5-display: 'Sofia Sans Extra Condensed', 'Golos Text', sans-serif;
  --p5-hand: 'Shantell Sans', 'Golos Text', cursive;
  --p5-text: 'Golos Text', sans-serif;
  background: var(--p5-bg);
  color: var(--p5-ink);
}

.p5 {
  font-family: var(--p5-text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--p5-ink);
  background: var(--p5-bg);
  overflow-x: clip;
}
.p5 :where(h1, h2, h3, p, ol, ul, dl, dd) { margin: 0; padding: 0; }
.p5 :where(ol, ul) { list-style: none; }
.p5 :where(a) { color: inherit; text-decoration: none; }
.p5-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* та же сетка, что у шапки сайта: 1600 контента и поля 32 */
.p5-wrap { box-sizing: border-box; width: 100%; max-width: 1664px; margin: 0 auto; padding: 0 32px; position: relative; }

.p5-hand { font-family: var(--p5-hand); font-weight: 500; letter-spacing: 0; text-transform: none; }

/* --- кнопки ------------------------------------------------------- */
.p5-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.p5-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px 13px;
  border-radius: 10px;
  background: var(--p5-ink);
  color: var(--p5-bg) !important;
  font-family: var(--p5-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  transition: transform .2s ease, background-color .2s ease;
}
.p5-btn:hover { transform: translateY(-2px); background: #fff; }
.p5-btn-dark { background: var(--p5-bg); color: var(--p5-ink) !important; }
.p5-btn-dark:hover { background: #000; }
.p5-link {
  font-size: 14px;
  color: var(--p5-ink-2);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .2s ease;
}
.p5-link:hover { color: var(--p5-ink); }
.p5-link-dark { color: #4a4b52; }
.p5-link-dark:hover { color: #0a0a0a; }
.p5 a:focus-visible, .p5 summary:focus-visible { outline: 2px solid var(--p5-acc); outline-offset: 4px; }

/* --- герой -------------------------------------------------------- */
.p5-hero {
  position: relative;
  box-sizing: border-box;
  min-height: min(100svh, 1100px);
  padding: 112px 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(60% 50% at 78% 70%, rgba(124, 116, 255, 0.22), transparent 70%),
    var(--p5-bg);
}
.p5-h1 {
  font-family: var(--p5-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .8;
  letter-spacing: -0.005em;
}
.p5-kicker {
  display: block;
  margin-bottom: 26px;
  font-family: var(--p5-text);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
  color: var(--p5-ink-2);
}
.p5-h1-box { position: relative; }
/* «Собираем в одну» = 6,19 кегля: кегль = ширина контента / 6,3, строка встаёт ровно в одну линию */
.p5-h1-a, .p5-h1-b { display: block; font-size: min(calc((100vw - 64px) / 6.3), 254px); }
.p5-h1-a { white-space: nowrap; }
.p5-h1-b { margin-top: .04em; }

.p5-mark {
  position: absolute;
  z-index: 2;
  right: 2%;
  top: 52%;
  width: clamp(150px, 17vw, 300px);
  aspect-ratio: 1;
  border-radius: 22%;
  background: linear-gradient(135deg, #8a89ff, #3f7bff);
  box-shadow: 0 30px 120px rgba(110, 108, 255, 0.45);
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  animation: p5Float 7s ease-in-out infinite alternate;
}
.p5-mark svg { width: 64%; height: 64%; }
.p5-mark-dot { position: absolute; inset: 0; animation: p5Sweep 3s linear infinite; }
.p5-mark-dot::before {
  content: '';
  position: absolute;
  top: 19.5%;
  left: 50%;
  width: 9%;
  height: 9%;
  margin-left: -4.5%;
  border-radius: 50%;
  background: #0a0a0a;
}
@keyframes p5Sweep { to { transform: rotate(360deg); } }
@keyframes p5Float { to { transform: rotate(-3deg) translateY(-14px); } }

.p5-rot {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -10%;
  font-family: var(--p5-hand);
  font-weight: 500;
  font-size: clamp(42px, 6.4vw, 108px);
  line-height: 1;
  color: var(--p5-acc);
  transform: rotate(-5deg);
  pointer-events: none;
}
.p5-rot-w { display: inline-block; transition: opacity .25s ease, transform .25s ease; }
.p5-rot-w.is-out { opacity: 0; transform: translateY(-14px); }

/* обёртка растягивается на весь первый экран, низ героя прижат к низу */
.p5-hero > .p5-wrap { position: relative; flex: 1; display: flex; flex-direction: column; }
.p5-hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 64px;
  align-items: end;
  margin-top: auto;
  padding-top: 56px;
}
.p5-hero-about { max-width: 52ch; font-size: 17px; color: var(--p5-ink-2); }
.p5-hero-about b { color: var(--p5-ink); font-weight: 600; }

/* --- манифест ----------------------------------------------------- */
.p5-manifest { padding: 150px 0 140px; text-align: center; }
.p5-manifest-t {
  max-width: 15.5em;
  margin: 0 auto;
  font-family: var(--p5-display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 92px);
  line-height: .98;
  text-transform: uppercase;
}
.p5-manifest-t .w { color: var(--p5-ink-dim); transition: color .35s ease; }
.p5-manifest-t .w.on { color: var(--p5-ink); }
.p5-note-chain {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 90px;
  font-size: clamp(22px, 2.2vw, 32px);
  color: var(--p5-acc);
}
.p5-note-chain svg { width: 60px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.p5-chain {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 .25em;
  margin-top: 26px;
  font-family: var(--p5-display);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 80px);
  line-height: 1;
  text-transform: uppercase;
}
.p5-chain li + li::before { content: '→'; margin-right: .25em; color: var(--p5-acc); font-weight: 800; }

/* --- цифры -------------------------------------------------------- */
.p5-stats { padding: 40px 0 150px; }
.p5-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid var(--p5-rule); padding-top: 40px; }
.p5-stats-grid > div { display: flex; flex-direction: column; }
.p5-stats-grid dd {
  order: -1;
  font-family: var(--p5-display);
  font-weight: 900;
  font-size: clamp(80px, 10vw, 180px);
  white-space: nowrap;
  line-height: .82;
}
.p5-stats-grid dt { margin-top: 14px; font-size: clamp(18px, 1.6vw, 24px); color: var(--p5-acc); }

/* --- общий заголовок-гигант --------------------------------------- */
.p5-sec { padding: 130px 0; }
.p5-big-head { position: relative; text-align: center; margin-bottom: 72px; }
.p5-giant {
  position: relative;
  isolation: isolate;
  display: inline-block;
  font-family: var(--p5-display);
  font-weight: 900;
  font-size: clamp(84px, 16vw, 280px);
  line-height: .8;
  text-transform: uppercase;
}
.p5-giant-s { font-size: clamp(72px, 9vw, 168px); }
.p5-swash {
  position: absolute;
  z-index: -1;
  left: 8%;
  right: 4%;
  top: 34%;
  height: 44%;
  border-radius: 50% 46% 52% 44% / 60% 52% 58% 48%;
  background: var(--p5-acc);
  transform: rotate(-6deg);
}
.p5-sub { margin-top: 22px; font-size: clamp(22px, 2.4vw, 36px); color: var(--p5-ink); }

/* --- результаты --------------------------------------------------- */
.p5-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.p5-tiles a {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  min-height: 300px;
  padding: 28px 26px 24px;
  border-radius: 20px;
  color: #0a0a0a;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.p5-tiles li:nth-child(odd) a:hover { transform: translateY(-8px) rotate(-1.5deg); }
.p5-tiles li:nth-child(even) a:hover { transform: translateY(-8px) rotate(1.5deg); }
.p5-tiles b {
  font-family: var(--p5-display);
  font-weight: 900;
  font-size: clamp(64px, 6.4vw, 116px);
  line-height: .85;
  white-space: nowrap;
}
.p5-tiles span { margin-top: 10px; font-size: 17px; font-weight: 600; }
.p5-tiles em { margin-top: auto; padding-top: 28px; font-style: normal; font-size: 13.5px; opacity: .7; }
.p5-t-sand a { background: #efe6d2; }
.p5-t-mint a { background: #dff3c8; }
.p5-t-lilac a { background: #dcdcff; }
.p5-t-yellow a { background: #e8c547; }

.p5-rows { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; margin-top: 56px; }
.p5-rows a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  grid-template-areas: "b s i" "b e i";
  column-gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--p5-rule);
  transition: padding .25s ease;
}
.p5-rows b { grid-area: b; font-family: var(--p5-display); font-weight: 900; font-size: 46px; line-height: .9; transition: color .2s ease; }
.p5-rows span { grid-area: s; font-size: 15px; color: var(--p5-ink-2); }
.p5-rows em { grid-area: e; font-style: normal; font-weight: 600; font-size: 15.5px; }
.p5-rows i { grid-area: i; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--p5-acc); }
.p5-rows a:hover { padding-left: 10px; }
.p5-rows a:hover b { color: var(--p5-acc); }

.p5-all {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 72px;
  font-family: var(--p5-display);
  font-weight: 900;
  font-size: clamp(56px, 8vw, 140px);
  line-height: .85;
  text-transform: uppercase;
  transition: color .2s ease;
}
.p5-all small { font-size: .3em; color: var(--p5-acc); font-weight: 800; }
.p5-all span:last-child { margin-left: auto; }
.p5-all:hover { color: var(--p5-acc); }

/* --- направления -------------------------------------------------- */
.p5-dirs { border-top: 1px solid var(--p5-rule); }
.p5-dirs a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--p5-rule);
  transition: padding .25s ease, background-color .25s ease;
}
.p5-d-n { font-size: 13px; color: var(--p5-ink-2); }
.p5-d-t { font-family: var(--p5-display); font-weight: 900; font-size: clamp(38px, 4.4vw, 76px); line-height: .88; text-transform: uppercase; transition: color .2s ease; }
.p5-d-d { font-size: 15px; color: var(--p5-ink-2); max-width: 42ch; }
.p5-d-p { text-align: right; font-family: var(--p5-display); font-weight: 800; font-size: 30px; white-space: nowrap; }
.p5-dirs a:hover { padding-left: 12px; }
.p5-dirs a:hover .p5-d-t { color: var(--p5-acc); }
.p5-actions-c { margin-top: 44px; }

/* --- FAQ ---------------------------------------------------------- */
.p5-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px 80px; align-items: start; }
.p5-faq-grid .p5-big-head { text-align: left; margin: 0; position: sticky; top: 110px; }
.p5-faq { border-top: 1px solid var(--p5-rule); }
.p5-faq details { border-bottom: 1px solid var(--p5-rule); }
.p5-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  font-family: var(--p5-display);
  font-weight: 800;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
  text-transform: uppercase;
}
.p5-faq summary::-webkit-details-marker { display: none; }
.p5-faq p { padding: 0 40px 26px 0; font-size: 16px; color: var(--p5-ink-2); }

/* --- финальный CTA, светлый --------------------------------------- */
.p5-cta { padding: 130px 0 120px; background: var(--p5-ink); color: #0a0a0a; overflow: hidden; }
.p5-cta-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 40px; align-items: center; }
.p5-cta-h { font-family: var(--p5-display); font-weight: 900; font-size: clamp(64px, 9vw, 150px); line-height: .82; text-transform: uppercase; }
.p5-cta-hand { margin-top: 10px; font-size: clamp(34px, 4.4vw, 76px); white-space: nowrap; line-height: 1; color: var(--p5-acc); transform: rotate(-3deg); transform-origin: left; }
.p5-cta-p { margin-top: 34px; max-width: 46ch; font-size: 18px; color: #3d3e45; }
.p5-cta .p5-actions { margin-top: 34px; }
.p5-mark-cta { position: relative; right: auto; top: auto; justify-self: center; width: clamp(160px, 22vw, 340px); }
.p5-mark-cta .p5-mark-dot::before { background: #ecedf1; }

/* --- появление ---------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .p5-js .p5-rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .p5-js .p5-rv.is-in { opacity: 1; transform: none; }
  .p5-h1-a, .p5-h1-b, .p5-kicker { animation: p5Up .9s cubic-bezier(.2, .7, .2, 1) both; }
  .p5-h1-b { animation-delay: .12s; }
  .p5-mark { animation: p5Pop .9s cubic-bezier(.2, .9, .3, 1.3) .3s both, p5Float 7s ease-in-out 1.2s infinite alternate; }
}
@media (prefers-reduced-motion: reduce) {
  .p5-mark, .p5-mark-dot { animation: none; }
}
/* Старт с opacity .01, а не 0 (2026-11-11): на глаз то же самое, но Chrome не считает текст с нулевой прозрачностью
   отрисованным, и заголовок первого экрана засчитывался как LCP только посреди анимации (до +1,6 с в PageSpeed). */
@keyframes p5Up { from { opacity: .01; transform: translateY(40px); } }
@keyframes p5Pop { from { opacity: 0; transform: rotate(-30deg) scale(.6); } }

/* --- адаптив ------------------------------------------------------ */
@media (max-width: 1100px) {
  .p5-tiles { grid-template-columns: repeat(2, 1fr); }
  .p5-rows { grid-template-columns: 1fr; }
  .p5-dirs a { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "n t p" "n d d"; row-gap: 8px; }
  .p5-d-n { grid-area: n; } .p5-d-t { grid-area: t; } .p5-d-d { grid-area: d; } .p5-d-p { grid-area: p; }
  .p5-faq-grid, .p5-cta-grid { grid-template-columns: 1fr; }
  .p5-faq-grid .p5-big-head { position: static; }
  .p5-stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}
@media (max-width: 760px) {
  .p5-wrap { padding: 0 20px; }
  .p5-hero { min-height: 0; padding: 104px 0 40px; }
  .p5-h1-a, .p5-h1-b { font-size: 21.5vw; }
  .p5-h1-a { white-space: normal; }
  .p5-mark { position: relative; right: auto; top: auto; width: 130px; margin: -26px 0 0 auto; }
  .p5-rot { position: relative; left: auto; right: auto; bottom: auto; display: block; margin-top: -36px; font-size: 42px; }
  .p5-hero-foot { grid-template-columns: 1fr; margin-top: 36px; }
  .p5-btn { font-size: 21px; }
  .p5-manifest { padding: 96px 0; }
  .p5-note-chain { margin-top: 56px; }
  .p5-stats { padding-bottom: 96px; }
  .p5-sec { padding: 90px 0; }
  .p5-big-head { margin-bottom: 44px; }
  .p5-tiles { grid-template-columns: 1fr; }
  .p5-tiles a { min-height: 220px; }
  .p5-rows a { grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "b s" "b e" "b i"; row-gap: 2px; }
  .p5-rows b { font-size: 36px; }
  .p5-dirs a { grid-template-columns: 1fr; grid-template-areas: "t" "d" "p"; }
  .p5-d-n { display: none; }
  .p5-d-p { text-align: left; font-size: 24px; }
  .p5-faq p { padding-right: 0; }
  .p5-cta { padding: 90px 0; }
  .p5-mark-cta { justify-self: start; width: 140px; }
  .p5-cta-hand { white-space: normal; }
  /* pp-grid-fix.css на телефоне жёстко задаёт размер h2 через !important; гигантам он не подходит.
     «Результаты» = 4,27 кегля: при 20vw встаёт в ширину экрана с полями 20 px. */
  .p5 h2.p5-giant { font-size: 20vw !important; line-height: .8 !important; }
  .p5 h2.p5-cta-h { font-size: 18vw !important; line-height: .82 !important; }
}

/* /assets/css/pp-home-v6.css */
/* Вариант главной 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: 16px 22px 14px !important;
  gap: 2px 22px !important;
  border: 1px solid var(--p5-rule) !important;
  border-radius: 16px !important;
  background: rgba(14, 14, 14, 0.98) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6) !important;
}
/* «Направления»: девять групп в пять колонок вместо четырёх, два ряда вместо трёх */
.p5-page nav > .pp-drop:first-of-type .pp-drop-panel { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; width: min(1240px, calc(100vw - 48px)) !important; }
.p5-page .pp-drop-panel > div:not([style*="grid-column"]) { padding: 2px 0 6px; 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: 8px 0 4px !important;
  gap: 6px !important;
  font-family: var(--p5-display) !important;
  font-weight: 900 !important;
  font-size: 19px !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: 11px !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: 2px 0 2px 22px !important;
  border-radius: 0 !important;
  font-family: var(--p5-text) !important;
  font-size: 13px !important;
  line-height: 1.3 !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: 27px !important; color: var(--p5-ink) !important; }
.p5-page .pp-drop-panel > div[style*="grid-column"] { margin-top: 2px !important; padding: 8px 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: 12px !important;
  padding: 2px 0 !important;
  font-family: var(--p5-display) !important;
  font-weight: 800 !important;
  font-size: 17px !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: 15px !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: 13px !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 один, для десктопа) */
/* Селектор сужен до ролика PPFit 2026-11-11: раньше правило срабатывало на всех 166 страницах с фоном-видео
   и тянуло на телефоне этот постер (36 КБ) до первого экрана. */
@media (max-width: 899px) { .p6-cs-hero .p6-cs-bg[data-src-m*="/ppfit/"] { 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); } }

/* Фон первого экрана кейса и раздела: видео с енотом ниши (.p6-cs-bg-n). Блок не ниже 70% экрана, уходит под меню;
   пока страница наверху, у меню нет фона, чтобы видео шло под ним. После прокрутки меню темнеет как обычно (.pp-shrink). */
.p6-cs-hero:has(.p6-cs-bg-n) { min-height: 70vh; min-height: 70svh; }
.p6-cs-hero:has(.p6-cs-bg-n)::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(5, 6, 12, .62), rgba(5, 6, 12, 0)); }
body:has(.p6-cs-bg-n) .pp-breadcrumb { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body:has(.p6-cs-bg-n) header#pp-header:not(.pp-shrink) { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; border-color: transparent !important; }
@media (max-width: 899px) {
  .p6-cs-hero .p6-cs-bg-n { bottom: auto; height: auto; aspect-ratio: 3 / 4; object-position: center top !important; }
}
@media (prefers-reduced-motion: reduce) { .p6-cs-bg.p6-cs-bg-n { display: block; } }

/* Первый экран подборок (отрасли, ниши, каналы) и кейсов без блока .p6-cs-meta: текст с формой по центру блока по вертикали.
   Отступы сверху и снизу равны, иначе центр съезжает; у кейсов с мета-строкой разметка прежняя. */
@media (min-width: 900px) {
  .p6-cs-hero:has(.p6-cs-bg-n):not(:has(.p6-cs-meta)) { display: flex; flex-direction: column; justify-content: center; padding-top: 120px; padding-bottom: 120px; }
  .p6-cs-hero:has(.p6-cs-bg-n):not(:has(.p6-cs-meta)) .p5-wrap { width: 100%; }
}

/* Первый экран с видео (.p6-cs-bg-n) на телефоне и планшете: текст идёт на всю ширину и ложится на енота, поэтому
   вместо бокового затемнения ставим вертикальное (светлее сверху у енота, плотнее под текстом), а нижний край кадра 3:4 растворяем в фон,
   чтобы не было резкой границы видео. Замеры Playwright (375 и 768): контраст текста над видео был 2.6-3.2, нужен не ниже 4.5. */
@media (max-width: 899px) {
  .p6-cs-hero:has(.p6-cs-bg-n)::after { background: linear-gradient(180deg, rgba(10, 10, 10, .38) 0, rgba(10, 10, 10, .58) 14%, rgba(10, 10, 10, .80) 28%, rgba(10, 10, 10, .92) 46%, rgba(10, 10, 10, .96) 62%, var(--p5-bg) 100%); }
  .p6-cs-hero .p6-cs-bg-n { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 58%, transparent 100%); }
  .p6-cs-hero:has(.p6-cs-bg-n) :is(.p6-cs-crumb, .p6-cs-tags, .p6-cs-hero-p, .p6-consent) { text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
  .p6-cs-hero:has(.p6-cs-bg-n) .p6-cs-crumb, .p6-cs-hero:has(.p6-cs-bg-n) .p6-cs-crumb a { color: #d6d7e6; }
}
@media (min-width: 600px) and (max-width: 899px) {   /* планшет: затемнение мягче, чтобы енот оставался виден, текст при этом не ниже 4.5 */
  .p6-cs-hero:has(.p6-cs-bg-n)::after { background: linear-gradient(180deg, rgba(10, 10, 10, .30) 0, rgba(10, 10, 10, .42) 14%, rgba(10, 10, 10, .62) 28%, rgba(10, 10, 10, .80) 44%, rgba(10, 10, 10, .92) 62%, var(--p5-bg) 100%); }
}

/* PP-SITESHOT (2026-11-08). Кейсы разработки сайтов: кнопка «Открыть сайт» в шапке
   кейса и первый скриншот в рамке браузера как снимок всей главной страницы,
   который листается внутри окна (по образцу портфолио hunterweb.ru). */
.p6-cs-site { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 10px 22px 10px 10px; border: 1px solid var(--p5-rule, rgba(236, 237, 241, .12)); border-radius: 14px; background: rgba(10, 10, 10, .45); color: var(--p5-ink, #ecedf1) !important; text-decoration: none; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.p6-cs-site:hover { transform: translateY(-2px); border-color: var(--p5-acc, #7c74ff); background: rgba(124, 116, 255, .14); }
.p6-cs-site-ic { display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--p5-acc, #7c74ff); color: #fff; font-size: 20px; line-height: 1; }
.p6-cs-site b { display: block; font-family: var(--p5-display); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.p6-cs-site small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.2; color: var(--p5-ink-2, #9b9ea9); }
.p6-cs-hero .p6-cs-site + .p6-lead { margin-top: 22px; }
.pp-siteshot { max-height: min(820px, 78vh); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(236, 237, 241, .35) transparent; background: #fff; }
.pp-siteshot::-webkit-scrollbar { width: 8px; }
.pp-siteshot::-webkit-scrollbar-thumb { border-radius: 8px; background: rgba(120, 120, 130, .55); }
.pp-siteshot:focus-visible { outline: 2px solid var(--p5-acc, #7c74ff); outline-offset: -2px; }
.pp-siteshot img { display: block; width: 100%; height: auto; }
.pp-siteshot-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; width: 1300px; max-width: 100%; margin: 18px auto 0; font-size: 14px; line-height: 1.4; color: var(--p5-ink-2, #9b9ea9); }
.pp-siteshot-hint a { color: var(--p5-ink, #ecedf1) !important; border-bottom: 1px solid currentColor; text-decoration: none; }
.pp-siteshot-hint a:hover { color: var(--p5-acc, #7c74ff) !important; }
@media (max-width: 760px) {
  .pp-siteshot { max-height: 52vh; max-height: 52dvh; }   /* окно не выше ~60% экрана вместе с рамкой: остаётся полоса, за которую можно взять страницу */
  .p6-cs-site { margin-top: 24px; }
}

/* PP-MOBILE-LITE (2026-11-08). Телефон до 760px:
   1) подвал без парада енотов: картинки не рисуем и не грузим, скрипт на телефоне не запускается
      (assets/js/pp-home-v6.js), слово-логотип стоит на месте;
   2) первый экран страниц услуг целиком помещается по высоте (проверено на 375x633 и 360x640):
      заголовок в две строки, енот справа на одном уровне с вращающимся словом, абзац в две строки,
      форма и согласие компактнее. */
@media (max-width: 760px) {
  .p6-foot-run { margin-top: 56px; }
  .p6-foot-crew { display: none !important; }
  .p6-foot-track { width: auto; transform: none !important; animation: none !important; }

  .p6-page .p6-svc-hero { padding: 38px 0 8px !important; min-height: 0 !important; }
  .p6-page .p6-svc-hero .p6-hero-crumb { margin: 0 0 4px !important; font-size: 12px !important; min-height: 0 !important; }
  .p6-page .p6-svc-hero .p5-kicker { display: block; font-size: 13.5px !important; line-height: 1.3 !important; margin: 0 0 8px !important; max-width: none !important; }
  .p6-page .p6-svc-hero .p5-h1-a, .p6-page .p6-svc-hero .p5-h1-b { font-size: 11.8vw !important; line-height: .95 !important; max-width: none !important; white-space: normal !important; }
  .p6-page .p6-svc-hero .p5-h1-box:has(.p6-hero-boss-full) { padding-bottom: 21vw !important; }
  .p6-page .p6-svc-hero .p6-hero-boss { right: -3vw !important; bottom: 0 !important; top: auto !important; height: 38vw !important; }
  .p6-page .p6-svc-hero .p5-rot { bottom: 3vw !important; font-size: 10.5vw !important; }
  .p6-page .p6-svc-hero .p5-hero-foot { padding-top: 0 !important; margin-top: 0 !important; }
  .p6-page .p6-svc-hero .p5-hero-about { font-size: 14px !important; line-height: 1.4 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .p6-page .p6-svc-hero .p5-hero-foot .p6-lead { margin: 10px 0 0 !important; --p6-h: 50px; }
  .p6-page .p6-svc-hero .p6-lead .p6-field input { height: 50px !important; }
  .p6-page .p6-svc-hero .p6-lead .p5-btn.pp-form-submit { height: 50px !important; font-size: 19px !important; }
  .p6-page .p6-svc-hero .p6-lead-row { gap: 8px !important; }
  .p6-page .p6-svc-hero .p6-consent { font-size: 11px !important; line-height: 1.3 !important; margin-top: 8px !important; }
}

/* PP-CARD-COVER-RATIO (2026-11-08). Полная карточка кейса держала картинке 260px высоты,
   а обложки 2:1 (800x401, 1000x503): на узком экране они резались по бокам.
   Как у карточки-тизера, на узких экранах высота идёт от пропорции обложки. */
@media (max-width: 899px) {
  .pp-case > div[style*="height:260px"] { height: auto !important; aspect-ratio: 800 / 401; }
  .pp-case > div[style*="height:260px"] > div[style*="bottom:18px"] { display: none !important; }   /* подпись категории внизу обложки ложилась на скриншот сайта */
}

/* «Перейти к содержимому» видна только при фокусе с клавиатуры. До 1024px Manrope на странице
   больше нигде не виден (меню шапки свёрнуто), и шрифт качался ради одной скрытой ссылки. */
@media (max-width: 1024px) { .p6-page .pp-skip { font-family: var(--p5-text); } }

/* PP-CARD-CV (2026-11-11). Карточки кейсов вдали от экрана не раскладываются, пока к ним не подкрутили:
   на /keysy/ их 24+, и раньше браузер сразу тянул обложки ближних (~145 КБ) и Unbounded для заголовков
   (83 КБ), хотя первая карточка на третьем экране. Вид тот же: у карточки и так overflow:hidden.
   Запасная высота близка к настоящей (телефон 436-580, компьютер 618-656), после показа запоминается. */
.pp-case { content-visibility: auto; contain-intrinsic-size: auto 500px; }
@media (min-width: 900px) { .pp-case { contain-intrinsic-size: auto 640px; } }

/* /assets/css/pp-enoty.css */
/* Еноты-персонажи (assets/js/pp-enoty.js). Переменные цвета и шрифтов берутся из pp-home-v5.css. */

/* реплика енота */
.pe-host { position: relative; }
.pe-bubble {
  position: absolute; z-index: 6; max-width: 240px; padding: 10px 14px; border-radius: 16px 16px 16px 4px;
  background: var(--p5-acc, #7c74ff); color: #fff; font-family: var(--p5-hand); font-size: 17px; line-height: 1.25;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35); opacity: 0; translate: 0 8px; transition: opacity .25s, translate .25s; pointer-events: none;
}
.pe-bubble.is-on { opacity: 1; translate: 0 0; }
.pe-bubble-cta { right: 46%; top: 8%; }
.pe-bubble-done { background: #1fbf6a; }

/* 1. реакции на форму */
.p6-cta-boss, .p6-hero-boss { transition: rotate .35s, translate .35s, scale .35s; }
.pe-peek { rotate: -4deg; translate: -10px 6px; transform-origin: 50% 100%; }
.pe-jump { animation: peJump .7s cubic-bezier(.3, 1.6, .5, 1) 2; transform-origin: 50% 100%; }
@keyframes peJump { 0%, 100% { translate: 0 0; } 45% { translate: 0 -34px; scale: 1.03; } }

/* 2. тарифы */
.pe-tariff { position: relative; overflow: visible !important; }
.pe-tariff-peek { position: absolute; left: 50%; bottom: calc(100% - 6px); width: 120px; translate: -50% 40px; opacity: 0; transition: translate .35s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; pointer-events: none; z-index: 3; }
.pe-tariff-peek img { display: block; width: 100%; height: auto; }
.pe-tariff-peek .pe-bubble { left: 92%; bottom: 60%; top: auto; white-space: nowrap; max-width: none; }
.pe-tariff:hover .pe-tariff-peek, .pe-tariff:focus-within .pe-tariff-peek { translate: -50% 0; opacity: 1; }
.pe-tariff:hover .pe-bubble { opacity: 1; translate: 0 0; transition-delay: .2s; }
@media (hover: none) { .pe-tariff-peek { display: none; } }

/* 3. енот на выходе */
.pe-exit { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: end center; background: rgba(5, 5, 8, .62); opacity: 0; transition: opacity .3s; backdrop-filter: blur(4px); }
.pe-exit.is-on { opacity: 1; }
.pe-exit-card { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: end; width: min(920px, 100% - 32px); margin-bottom: 0; padding: 32px 36px 0; border-radius: 28px 28px 0 0; background: var(--p5-ink, #ecedf1); color: #0a0a0a; translate: 0 100%; transition: translate .45s cubic-bezier(.2, .9, .3, 1.1); }
.pe-exit.is-on .pe-exit-card { translate: 0 0; }
.pe-exit-x { position: absolute; right: 18px; top: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .07); font-size: 26px; line-height: 1; cursor: pointer; color: #0a0a0a; }
.pe-exit-rac { position: relative; align-self: end; }
.pe-exit-rac img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; object-position: bottom; }
.pe-exit-sign { position: absolute; left: 22%; right: 22%; top: 47%; font-family: var(--p5-display); font-weight: 900; font-size: 26px; line-height: .95; text-transform: uppercase; text-align: center; color: #0a0a0a; rotate: -3deg; }
.pe-exit-body { padding-bottom: 34px; }
.pe-exit-hand { font-size: 40px; color: var(--p5-acc); rotate: -3deg; }
.pe-exit-text { margin: 12px 0 22px; font-size: 19px; }
@media (max-width: 760px) {
  .pe-exit-card { grid-template-columns: 1fr; gap: 0; padding: 22px 18px 0; }
  .pe-exit-rac { order: 2; width: 62%; margin: 0 auto; }
  .pe-exit-body { padding-bottom: 8px; }
  .pe-exit-hand { font-size: 30px; }
}

/* 4. квиз */
.pe-quiz-who { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 14px; color: var(--p5-ink-2, #9b9ea9); }
.pe-quiz-who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: rgba(124, 116, 255, .18); }
.pe-quiz-who b { color: var(--p5-ink, #ecedf1); }
.pe-quiz-group { margin: 30px auto 0; max-width: 520px; text-align: center; }
.pe-quiz-group img { width: 100%; height: auto; }
.pe-quiz-group figcaption { margin-top: 6px; font-size: 22px; color: var(--p5-acc); }

/* 5. пасхалки */
.pe-egg-host { position: relative; }
.pe-egg { position: absolute; z-index: 4; width: 64px; padding: 0; border: 0; background: none; cursor: pointer; opacity: .9; transition: scale .2s, opacity .3s; }
.pe-egg img { display: block; width: 100%; height: auto; }
.pe-egg:hover { scale: 1.15; }
.pe-egg.is-found { opacity: 0; scale: .2; pointer-events: none; transition: opacity .5s, scale .5s; }
.pe-egg-pos0 { right: 12px; bottom: 10px; }
.pe-egg-pos1 { left: 10px; bottom: 10px; }
.pe-egg-pos2 { right: 22%; top: 18px; }
.pe-egg-egg-hang.pe-egg-pos2, .pe-egg-egg-hang { top: 0; bottom: auto; }
.pe-egg-pos3 { left: 34%; bottom: 6px; }
.pe-toast { position: fixed; z-index: 1000; left: 50%; bottom: 24px; width: min(560px, 100% - 32px); padding: 18px 20px; border-radius: 20px; background: var(--p5-ink, #ecedf1); color: #0a0a0a; font-size: 16px; line-height: 1.45; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); translate: -50% 140%; transition: translate .4s cubic-bezier(.2, .9, .3, 1.1); }
.pe-toast.is-on { translate: -50% 0; }
.pe-toast code { padding: 2px 8px; border-radius: 8px; background: #0a0a0a; color: #fff; font-size: 15px; }
.pe-toast .p6-lead { margin-top: 14px; }

/* 6. енот дня */
.pe-day { display: flex; align-items: center; gap: 12px; max-width: 420px; margin-bottom: 18px; padding: 8px 14px 8px 8px; border: 1px solid var(--p5-rule); border-radius: 18px; background: rgba(20, 20, 20, .7); transition: border-color .2s; }
.pe-day:hover { border-color: var(--p5-acc); }
.pe-day img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; object-position: 50% 12%; background: rgba(124, 116, 255, .2); }
.pe-day span { display: flex; flex-direction: column; min-width: 0; }
.pe-day i { font-style: normal; font-size: 12px; color: var(--p5-ink-2); }
.pe-day b { font-family: var(--p5-display); font-weight: 900; font-size: 22px; line-height: 1; text-transform: uppercase; }
.pe-day em { font-style: normal; font-family: var(--p5-hand); font-size: 14px; color: var(--p5-acc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p5-hero-foot > .pe-day { grid-column: 1 / -1; }

/* 7. ночь */
.pe-night-badge { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 12px; padding: 6px 14px; border-radius: 999px; background: rgba(124, 116, 255, .16); color: var(--p5-ink); font-size: 14px; }
.pe-night .p6-page .p5-hero::before, .pe-night .p5-hero::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff8, transparent), radial-gradient(1px 1px at 32% 12%, #fff6, transparent), radial-gradient(1.5px 1.5px at 58% 26%, #fff7, transparent), radial-gradient(1px 1px at 77% 9%, #fff8, transparent), radial-gradient(1.5px 1.5px at 88% 30%, #fff6, transparent), radial-gradient(1px 1px at 46% 6%, #fff5, transparent);
  animation: peTwinkle 4s ease-in-out infinite alternate; }
@keyframes peTwinkle { to { opacity: .45; } }

/* 8. сезоны: снег и гирлянда на Новый год, тыквенный оттенок на Хэллоуин */
.pe-season-ny .p5-hero::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background-image: radial-gradient(3px 3px at 10% 10%, #fff, transparent), radial-gradient(2px 2px at 30% 40%, #fff, transparent), radial-gradient(3px 3px at 55% 20%, #fff, transparent), radial-gradient(2px 2px at 75% 60%, #fff, transparent), radial-gradient(3px 3px at 90% 30%, #fff, transparent), radial-gradient(2px 2px at 45% 75%, #fff, transparent);
  background-size: 400px 400px; animation: peSnow 14s linear infinite; opacity: .7; }
@keyframes peSnow { to { background-position: 60px 400px, -40px 400px, 30px 400px, -60px 400px, 50px 400px, -20px 400px; } }
.pe-season-ny .p6-foot-run::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 18px; z-index: 2;
  background: radial-gradient(circle at 10px 12px, #ff4d4d 5px, transparent 6px) 0 0 / 60px 18px, radial-gradient(circle at 30px 12px, #ffd34d 5px, transparent 6px) 0 0 / 60px 18px, radial-gradient(circle at 50px 12px, #4dd2ff 5px, transparent 6px) 0 0 / 60px 18px;
  animation: peGarland 1.2s steps(2) infinite; }
@keyframes peGarland { 50% { filter: brightness(.55); } }
.pe-season-hw .p5-hero { background: radial-gradient(60% 50% at 78% 70%, rgba(255, 128, 0, .22), transparent 70%), var(--p5-bg) !important; }

@media (prefers-reduced-motion: reduce) {
  .pe-jump, .pe-season-ny .p5-hero::before, .pe-night .p5-hero::before, .pe-season-ny .p6-foot-run::before { animation: none; }
}

/* --- кейсы: комикс, график, таймлайн, калькулятор, PDF --- */
.pe-comic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; counter-reset: c; }
.pe-comic-p { position: relative; overflow: hidden; border: 3px solid var(--p5-ink); border-radius: 18px; background: #111; rotate: -.6deg; }
.pe-comic-p:nth-child(2) { rotate: .8deg; translate: 0 14px; }
.pe-comic-p:nth-child(3) { rotate: -.4deg; }
.pe-comic-p img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 686; object-fit: cover; }
.pe-comic-p p { position: relative; margin: 0; padding: 14px 16px 16px; background: var(--p5-ink); color: #0a0a0a; font-size: 19px; line-height: 1.25; }
.pe-comic-n { position: absolute; z-index: 2; left: 12px; top: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--p5-acc); color: #fff; font-family: var(--p5-display); font-weight: 900; font-size: 24px; }
@media (max-width: 900px) { .pe-comic { grid-template-columns: 1fr; } .pe-comic-p:nth-child(2) { translate: 0; } }

.pe-chart { margin-top: 40px; }
.pe-chart-t { margin-bottom: 14px; color: var(--p5-ink-2); }
.pe-chart-box { position: relative; height: 360px; }
.pe-chart-svg { width: 100%; height: 100%; overflow: visible; }
.pe-chart-val { fill: var(--p5-ink); font: 700 24px var(--p5-display); opacity: 0; transition: opacity .4s; }
.pe-chart.is-done .pe-chart-val { opacity: 1; }
.pe-chart-run { position: absolute; width: 90px; height: auto; translate: -50% -92%; pointer-events: none; }
.pe-chart-x { display: flex; justify-content: space-between; margin-top: 8px; color: var(--p5-ink-2); font-size: 14px; }
@media (max-width: 760px) { .pe-chart-box { height: 240px; } .pe-chart-run { width: 58px; } .pe-chart-val { font-size: 18px; } }

.pe-tl { position: relative; margin-top: 56px; padding-top: 110px; }
.pe-tl::before { content: ''; position: absolute; left: 0; right: 0; top: 106px; height: 4px; border-radius: 4px; background: var(--p5-rule); }
.pe-tl-walker { position: absolute; top: 0; left: -30px; width: 60px; height: 104px; object-fit: contain; object-position: bottom; transition: left .15s linear; animation: p6Walk .5s ease-in-out infinite alternate; }
.pe-tl ol { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 18px; }
.pe-tl li { position: relative; padding-top: 22px; opacity: .35; transition: opacity .3s; }
.pe-tl li::before { content: ''; position: absolute; left: 0; top: -10px; width: 16px; height: 16px; border-radius: 50%; background: var(--p5-bg-2); border: 3px solid var(--p5-rule); }
.pe-tl li.is-on { opacity: 1; }
.pe-tl li.is-on::before { background: var(--p5-acc); border-color: var(--p5-acc); }
.pe-tl b { display: block; font-family: var(--p5-display); font-weight: 900; font-size: 26px; text-transform: uppercase; }
.pe-tl span { color: var(--p5-ink-2); }
@media (max-width: 760px) { .pe-tl ol { grid-auto-flow: row; } .pe-tl::before, .pe-tl-walker { display: none; } .pe-tl { padding-top: 0; } .pe-tl li { opacity: 1; } }

.pe-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 760px; }
.pe-tools-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.pe-calc, .pe-pdf { padding: 30px; border: 1px solid var(--p5-rule); border-radius: 24px; background: var(--p5-bg-2); }
.pe-calc-eye { color: var(--p5-acc); font-size: 22px; }
.pe-calc-h { margin: 4px 0 12px; font-family: var(--p5-display); font-weight: 900; font-size: clamp(34px, 3.4vw, 54px); line-height: .92; text-transform: uppercase; }
.pe-calc-base { color: var(--p5-ink-2); }
.pe-calc-l { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; margin-top: 18px; }
.pe-calc-q { grid-column: 1 / -1; font-size: 14px; color: var(--p5-ink-2); }
.pe-calc-in { width: 100%; accent-color: #7c74ff; }
.pe-calc-v { font-family: var(--p5-display); font-size: 26px; }
.pe-calc-out { margin-top: 16px; font-size: 20px; }
.pe-calc-out b { font-family: var(--p5-display); font-size: 56px; color: var(--p5-acc); vertical-align: -6px; }
.pe-calc-note { margin-top: 10px; font-size: 13px; color: var(--p5-ink-2); }
.pe-pdf p { color: var(--p5-ink-2); }
.pe-pdf .p6-lead { margin-top: 18px; }
.pe-pdf-link { margin-top: 16px; }
@media (max-width: 900px) { .pe-tools-2 { grid-template-columns: 1fr; } .pe-calc, .pe-pdf { padding: 22px 18px; } }
.pe-chart-t { font-size: 15px; } .pe-chart-box { margin-top: 10px; }
.pe-pdf-link[hidden] { display: none !important; }

/* PDF кейса (печать страницы в Chrome): тёмный фон сохраняется, служебное прячется */
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  header, .pp-header, #podval, .p6-foot, .p6-lead, .pe-egg, .pe-exit, .pe-toast, .pe-tools-sec, #contact, .p6-meet, [class*="contact-widget"], .pp-cookie, #pp-consent, .p6-hub-mq { display: none !important; }
  .p5-hero { min-height: 0 !important; padding-top: 30px !important; }
  section { break-inside: avoid-page; }
  .p6-c, [data-a] { opacity: 1 !important; transform: none !important; translate: none !important; }
}
@media print {
  @page { size: 1280px 1810px; margin: 0; }
  html, body { background: #0a0a0a !important; }
  .pp-skip, main > nav:first-child, .pe-night-badge, .pe-day, .p5-rot, .pe-chart-run, .pe-tl-walker { display: none !important; }
  .p5-hero { padding: 40px 0 10px !important; }
  .p6-page .p6-svc-hero .p5-h1-box { padding-bottom: 0 !important; }
  .p6-hero-boss { height: 420px !important; }
  .pe-chart-line { stroke-dashoffset: 0 !important; }
  .pe-chart-val, .pe-chart-area { opacity: 1 !important; }
}
@media print {
  .pp-breadcrumb, .pp-breadcrumbs { display: none !important; }
  .p6-page .p6-hero-boss, .p6-hero-boss { top: auto !important; bottom: 0 !important; height: 380px !important; }
  .p6-case-body .pp-grid4c, .p6-case-body .pp-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important; }
  .p6-case-body .pp-grad40a { font-size: 64px !important; }
}

/* фон первого экрана кейса: ролик ниши как у PPFit, текст слева на затемнении, вырезанный енот прячется */
.pe-case-hero-v { isolation: isolate; }
.pe-case-hero-v .pe-case-bg { z-index: -2; }
.pe-case-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .66) 48%, rgba(10, 10, 10, .28) 100%), linear-gradient(180deg, rgba(10, 10, 10, .35) 0%, transparent 30%); }
.pe-case-hero-v .pe-hide-v { display: none !important; }
.pe-case-hero-v .p5-h1-box { padding-bottom: 0 !important; }
.pe-case-hero-v .p5-rot { right: 8% !important; bottom: 34% !important; }
@media (max-width: 899px) { .pe-case-shade { background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .78) 55%, rgba(10, 10, 10, .95) 100%); } .pe-case-hero-v .p5-rot { right: auto !important; left: 0; bottom: auto !important; position: relative; } }

/* --- /komiksy/: раздел комиксов --- */
.pe-kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 40px; }
.pe-kcard a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--p5-rule); border-radius: 22px; background: var(--p5-bg-2); overflow: hidden; transition: translate .25s, border-color .25s; }
.pe-kcard a:hover { translate: 0 -6px; border-color: var(--p5-acc); }
.pe-kcard-img img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 686; object-fit: cover; }
.pe-kcard b { padding: 18px 20px 6px; font-family: var(--p5-display); font-weight: 900; font-size: 30px; line-height: .95; text-transform: uppercase; }
.pe-kcard span:last-child { padding: 0 20px 22px; color: var(--p5-ink-2); font-size: 15px; }
.pe-kchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; }
.pe-kchip { padding: 8px 16px; border: 1px solid var(--p5-rule); border-radius: 999px; background: none; color: var(--p5-ink); font: inherit; font-size: 14px; cursor: pointer; }
.pe-kchip.is-on { background: var(--p5-acc); border-color: var(--p5-acc); color: #fff; }
.pe-k3s { display: grid; gap: 22px; margin-top: 22px; }
.pe-k3 a { display: block; padding: 20px; border: 1px solid var(--p5-rule); border-radius: 22px; background: var(--p5-bg-2); transition: border-color .2s; }
.pe-k3 a:hover { border-color: var(--p5-acc); }
.pe-k3 b { display: block; margin-bottom: 14px; font-family: var(--p5-display); font-weight: 900; font-size: 28px; text-transform: uppercase; line-height: .95; }
.pe-k3-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pe-k3-f { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--p5-ink); }
.pe-k3-f img { width: 100%; height: auto; aspect-ratio: 1200 / 686; object-fit: cover; }
.pe-k3-f i { padding: 10px 12px; font-style: normal; font-family: var(--p5-hand); font-size: 16px; line-height: 1.25; color: #0a0a0a; }
.pe-k3 em { display: inline-block; margin-top: 12px; font-style: normal; color: var(--p5-acc); }
.pe-k3[hidden] { display: none; }
@media (max-width: 760px) { .pe-k3-strip { grid-template-columns: 1fr; } }
.pe-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 10px; }
.pe-strip-p figure { margin: 0; position: relative; border: 3px solid var(--p5-ink); border-radius: 18px; overflow: hidden; background: var(--p5-ink); }
.pe-strip-p:nth-child(odd) figure { rotate: -.5deg; } .pe-strip-p:nth-child(even) figure { rotate: .6deg; translate: 0 16px; }
.pe-strip-img { position: relative; display: block; }
.pe-strip-img img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 686; object-fit: cover; }
.pe-strip-say { position: absolute; right: 14px; top: 14px; max-width: 60%; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: #fff; color: #0a0a0a; font-family: var(--p5-hand); font-size: 18px; line-height: 1.2; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.pe-strip-p figcaption { padding: 14px 18px 16px; color: #0a0a0a; font-size: 17px; line-height: 1.35; }
.pe-strip-moral { margin-top: 44px; font-size: clamp(26px, 2.6vw, 40px); color: var(--p5-acc); text-align: center; }
.pe-strip-links { justify-content: center; margin-top: 22px; }
@media (max-width: 760px) { .pe-strip { grid-template-columns: 1fr; } .pe-strip-p:nth-child(even) figure { translate: 0; } }
/* надпись на табличке енота «на выходе»: область таблички измерена по картинке fun/exit-sign.webp
   (верх 51% закрыт лапами, поэтому текст с 57%; низ 75%; лево 3%, право 89%) */
.pe-exit-rac { width: 300px; container-type: inline-size; justify-self: center; }
.pe-exit-rac img { width: 100%; height: auto; max-height: none; }
.pe-exit-sign { left: 7%; right: 14%; top: 58%; bottom: 26%; display: grid; place-items: center; font-size: 11cqw; line-height: .9; rotate: 0deg; text-wrap: balance; }
@media (max-width: 760px) { .pe-exit-rac { width: 200px; } }
.pe-night-badge { width: fit-content; justify-self: start; }
/* облачко над головой енота: хвостик вниз к голове */
.pe-bubble-cta { right: auto; top: 0; white-space: nowrap; max-width: none; border-radius: 18px; z-index: 7; }
.pe-bubble-cta::after { content: ''; position: absolute; left: 34px; bottom: -9px; width: 18px; height: 18px; background: inherit; transform: rotate(45deg); border-radius: 0 0 4px 0; }
.p5-hero-foot > .pe-day { margin: 18px 0 0; }

/* праздничные эффекты в первом экране: частицы падают сверху (pp-enoty.js fx) */
.pe-fx { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.pe-fx span { position: absolute; top: -40px; opacity: .85; animation: peFall linear infinite; }
@keyframes peFall { to { transform: translate3d(40px, 115vh, 0) rotate(540deg); } }
.pe-hol-badge { background: rgba(255, 211, 77, .14); }
a.pe-hol-badge:hover { background: rgba(255, 211, 77, .24); }
@media (prefers-reduced-motion: reduce) { .pe-fx { display: none; } }
.pe-season-ny .p5-hero::before { display: none; }
/* праздничная плашка заметнее: яркий фон и тёмный жирный текст */
.pe-hol-badge, a.pe-hol-badge:hover { background: #ffd34d; color: #0a0a0a !important; font-weight: 700; font-size: 15px; padding: 8px 16px; box-shadow: 0 6px 24px rgba(255, 211, 77, .35); }
a.pe-hol-badge:hover { filter: brightness(1.06); }
/* енот дня: кнопка «Позвать енота» */
.pe-day { max-width: 560px; }
.pe-day span { flex: 1; }
.pe-day-btn { flex: none; padding: 9px 14px; border: 0; border-radius: 12px; background: var(--p5-acc); color: #fff; font: 600 14px var(--p5-text); cursor: pointer; transition: filter .2s; }
.pe-day-btn:hover { filter: brightness(1.1); }
.pe-day.is-called { border-color: var(--p5-acc); }
.pe-day.is-called .pe-day-btn { background: #1fbf6a; }
@media (max-width: 520px) { .pe-day { flex-wrap: wrap; } .pe-day-btn { width: 100%; } }

