/* ==========================================================================
   ТОКЕНЫ
   Палитра — фирменная схема ПРОФИ (снята с баннеров «Сочи»/«Кавказ»).
   Типографика — с живой codeib.pf-ru: Unbounded / Onest / JetBrains Mono.
   ========================================================================== */
.pf-page {
  --p-red: #E8402A;
  --p-red-dim: #cf3520;
  --p-black: #17181B;
  --p-dark: #1D1F22;
  --p-white: #FFFFFF;
  --p-grey: #F6F6F6;
  --p-line: #E2E2E2;
  --p-purple-tint: rgba(97, 83, 154, 0.10);
  --p-teal-tint: rgba(91, 172, 169, 0.10);
  --p-text: #17181B;
  --p-text-dim: #4a4c50;
  --p-text-muted: #8b8d92;

  /* Шрифты сняты с ЖИВОЙ codeib.pf-ru (codeib_landing.css): заголовки Unbounded,
     текст и кнопки Onest, метки и цифры JetBrains Mono. Вики id 6 §1.3 всё
     ещё называет Playfair/DM Sans — она отстала, правит живой сайт. */
  --p-font-display: 'Unbounded', 'Arial', sans-serif;
  --p-font-body: 'Onest', 'Helvetica Neue', sans-serif;
  --p-font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --p-max-w: 1280px;
  --p-gutter: 24px;

  /* Единая метрика малых элементов */
  --plate-pad-y: 7px;
  --plate-pad-x: 16px;
  --plate-size: 11px;
  --plate-track: 1.5px;
  --btn-pad-y: 14px;
  --btn-pad-x: 28px;
  --btn-size: 13px;

  --sec-pad: 96px;
  --head-gap: 44px;

  --ease: cubic-bezier(.2,.7,.3,1);
}

.pf-page, .pf-page *, .pf-page *::before, .pf-page *::after { margin: 0; padding: 0; box-sizing: border-box; }

.pf-page { font-family: var(--p-font-body); font-size: 16px; line-height: 1.7;
       color: var(--p-text); background: var(--p-white); overflow-x: hidden; }
.pf-page img { display: block; max-width: 100%; }

.pf-wrap { max-width: var(--p-max-w); margin: 0 auto; padding: 0 var(--p-gutter); }
.pf-page section { padding: var(--sec-pad) 0; }

/* ==========================================================================
   ТИПОГРАФИКА — как на живой codeib.pf-ru
   Display (Unbounded)  — заголовки и крупные цитаты.
   Body (Onest)         — h3, проза, кнопки, карточки.
   Mono (JetBrains)     — метки, цифры, даты, чипы.
   ========================================================================== */
/* Шкала снята со страницы конференции Ташкент-2026 (codeib_landing.css):
   h1 clamp(28,4.2vw,58) · section-title clamp(24,3vw,36) · карточный
   заголовок 20 · лид 16 · кнопка 13 · метка 11. */
.pf-page h1 { font-family: var(--p-font-display); font-weight: 700; }
.pf-page h2 { font-family: var(--p-font-display); font-weight: 700;
     font-size: clamp(24px, 3vw, 36px); line-height: 1.18; letter-spacing: -0.02em; }
.pf-page h3 { font-family: var(--p-font-display); font-weight: 700; font-size: 20px;
     line-height: 1.25; letter-spacing: -0.015em; }
.pf-page p, .pf-page li, .pf-page blockquote { font-family: var(--p-font-body); }

.pf-sec-head { margin-bottom: var(--head-gap); }

/* ==========================================================================
   МАЛЫЕ ЭЛЕМЕНТЫ — одна форма, одна высота, один шрифт (mono)
   ========================================================================== */
.pf-plate {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--p-font-mono); font-weight: 600;
  font-size: var(--plate-size); letter-spacing: var(--plate-track);
  text-transform: uppercase; line-height: 1.2;
  padding: var(--plate-pad-y) var(--plate-pad-x);
  border-radius: 0; border: 0; white-space: nowrap;
}
.pf-plate--black { background: var(--p-black); color: #fff; }
.pf-plate--red   { background: var(--p-red);   color: #fff; }
.pf-plate--white { background: #fff; color: var(--p-black); }
.pf-plate--line  { background: transparent; color: var(--p-text-dim); box-shadow: inset 0 0 0 1px var(--p-line); }
.pf-kicker { margin-bottom: 20px; }

.pf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--p-font-body); font-weight: 700;
  font-size: var(--btn-size); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s var(--ease), box-shadow .18s ease;
}
.pf-btn-red { background: var(--p-red); color: #fff; }
.pf-btn-black { background: var(--p-black); color: #fff; }
.pf-btn-line-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.55); }
.pf-btn-line-dark { background: transparent; color: var(--p-black); box-shadow: inset 0 0 0 2px var(--p-black); }
@media (hover: hover) {
  .pf-btn:hover { transform: translateY(-3px); }
  .pf-btn-red:hover { background: var(--p-red-dim); }
  .pf-btn-black:hover { background: #000; }
  .pf-btn-line-light:hover { box-shadow: inset 0 0 0 2px #fff; background: rgba(255,255,255,0.08); }
  .pf-btn-line-dark:hover { color: var(--p-red); box-shadow: inset 0 0 0 2px var(--p-red); }
}
.pf-btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 3px solid var(--p-red); outline-offset: 3px; }

/* Морзе — фирменный пиксельный код с баннеров. Тонкая и разреженная: сплошной
   плотный ряд читался как перфорация киноплёнки и грязнил кадр. */
.pf-morse { height: 5px; background-repeat: repeat-x; background-size: 600px 5px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='5'><g fill='%23E8402A'><rect x='0' y='0' width='46' height='5'/><rect x='150' y='0' width='16' height='5'/><rect x='300' y='0' width='70' height='5'/><rect x='470' y='0' width='16' height='5'/></g><g fill='white'><rect x='62' y='0' width='16' height='5'/><rect x='182' y='0' width='46' height='5'/><rect x='386' y='0' width='16' height='5'/><rect x='502' y='0' width='46' height='5'/></g></svg>");
  animation: morse-run 90s linear infinite; }
.pf-morse--dark { background-color: var(--p-black); }
@keyframes morse-run { from { background-position-x: 0; } to { background-position-x: 1200px; } }

/* Пометка прототипа — уголком, чтобы не ломать композицию */
.pf-proto-note { position: fixed; right: 0; bottom: 0; z-index: 60;
  background: #61539A; color: #fff; font-family: var(--p-font-mono); font-weight: 500;
  font-size: 0.62rem; letter-spacing: 0.06em; padding: 6px 12px; }
.pf-auto-chip { display: inline-block; font-family: var(--p-font-mono); font-weight: 600; font-size: 0.58rem;
  letter-spacing: 0.1em; color: #61539A; box-shadow: inset 0 0 0 1px #61539A;
  padding: 3px 9px; vertical-align: middle; margin-left: 12px; text-transform: uppercase; }

/* ==========================================================================
   ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ
   ========================================================================== */
.pf-js .pf-reveal { opacity: 0; transform: translateY(26px);
  transition: opacity .65s ease, transform .65s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms); }
.pf-js .pf-reveal.pf-in { opacity: 1; transform: none; }

/* Вкладка не на виду — гасим и въездные анимации hero: с `both` они держат
   первый кадр (opacity:0), а он в замороженной вкладке никогда не сменится. */
.pf-no-anim, .pf-no-anim *, .pf-no-anim *::before, .pf-no-anim *::after { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  
  .pf-js .pf-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pf-morse, .pf-hero-bg { animation: none !important; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   HERO — композиция афиши ПРОФИ:
   лого сверху слева · заголовок-плашка слева внизу · дата и место справа
   ========================================================================== */
/* Flex, а НЕ grid: у `.pf-wrap` есть `margin: 0 auto`, а авто-поля по строчной
   оси отключают растягивание grid-элемента — колонка схлопывалась в
   fit-content и весь блок уезжал к центру. */
/* Композиция как у эталона (Ташкент): контент ЦЕНТРИРОВАН по вертикали.
   Логотип и лента цифр вынесены из потока к краям — иначе центр провисает
   пустотой, а текст жмётся к нижней кромке. */
.pf-hero { position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px 0 150px; color: #fff; overflow: hidden; }
.pf-hero-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.pf-hero-bottom { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; }
.pf-hero-main { position: relative; z-index: 2; width: 100%; }
.pf-hero-bg { position: absolute; inset: 0; z-index: 0;
  background: url('https://codeib.ru/web/image/36603-dfb86a9b/1600x1067/XJx8ig2dwRE.jpg') center 30%/cover no-repeat;
  animation: hero-zoom 30s ease-in-out infinite alternate; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.pf-hero-bg::after { content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23,24,27,0.58) 0%, rgba(23,24,27,0.12) 34%, rgba(23,24,27,0.55) 78%, rgba(23,24,27,0.85) 100%),
    linear-gradient(90deg, rgba(23,24,27,0.55) 0%, rgba(23,24,27,0.05) 55%); }
/* Слои контента над фоном. Перечисляем их поимённо: селектор `.pf-hero > *`
   имеет ту же силу, что `.pf-hero-bg`, стоит ниже по файлу — и перебивал
   фону `position: absolute`, схлопывая фотографию в нулевую высоту. */


.pf-hero-top { padding: 26px 0 0; }
.pf-logo-lockup { display: inline-flex; align-items: center; gap: 12px; }
.pf-logo-lockup svg { display: block; width: 46px; height: auto; }
.pf-logo-lockup .pf-brand { font-family: var(--p-font-display); font-weight: 800; font-size: 1.4rem;
  letter-spacing: 0.02em; text-transform: uppercase; }
.pf-logo-lockup .pf-tag { background: var(--p-red); font-family: var(--p-font-mono); font-weight: 600;
  font-size: var(--plate-size); letter-spacing: var(--plate-track); text-transform: uppercase;
  padding: var(--plate-pad-y) var(--plate-pad-x); }

.pf-hero-copy { max-width: 960px; }
/* Заголовок — как на странице конференции: белый текст, заливкой подсвечено
   одно слово. Плашка облегает слово, а не всю строку. */
.pf-hero-title { color: #fff; font-family: var(--p-font-display); font-weight: 700;
  text-transform: uppercase; font-size: clamp(28px, 4.2vw, 58px); line-height: 1.1;
  letter-spacing: -0.025em; margin: 16px 0 22px; }
.pf-hero-title span { display: block; }
.pf-hero-title em { font-style: normal; background: var(--p-red); color: #fff;
  padding: 0 0.14em 0.05em; margin-left: 0.1em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.pf-hero-slogan { max-width: 620px; font-size: clamp(15px, 1.55vw, 19px); line-height: 1.6;
  font-weight: 400; text-shadow: 0 2px 18px rgba(0,0,0,0.5); margin-bottom: 30px;
  animation: fade-up .8s var(--ease) .36s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.pf-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; animation: fade-up .8s var(--ease) .48s both; }

/* Дата и место — строкой плашек под кнопками, как badge-строка у эталона.
   В правом нижнем углу этот блок висел сам по себе и рвал композицию. */
.pf-hero-when { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px;
  animation: fade-up .8s var(--ease) .6s both; }
/* Лента цифр складывается 4 → 3 → 2 → 1. Два столбца держатся до самого
   узкого экрана: пара «цифра + подпись» читается даже на 400 px. */
.pf-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,0.12); animation: fade-up .8s var(--ease) .56s both; }
.pf-stat-plate { background: rgba(23,24,27,0.86); backdrop-filter: blur(4px);
  padding: 16px 22px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 1180px) { .pf-hero-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .pf-hero-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { .pf-hero-stats { grid-template-columns: 1fr; } }
.pf-stat-plate b { font-family: var(--p-font-display); font-weight: 700;
  font-size: clamp(24px, 2.8vw, 36px); color: var(--p-red); line-height: 1;
  letter-spacing: -0.025em; }
.pf-stat-plate.pf-white b { color: #fff; }
.pf-stat-plate span { font-family: var(--p-font-mono); font-size: 10.5px; line-height: 1.4;
  letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.72); }

/* Кнопка с иконкой */
.pf-btn-icon { width: 20px; height: 20px; margin-right: 10px; flex: none; }
.pf-btn-white { background: #fff; color: var(--p-black); }
.pf-btn-white:hover { background: #f0f0f0; color: var(--p-black); }

/* Подпись про Академию в карточке спикера-дарителя */
.pf-gift-author .pf-teacher { display: block; font-size: 12px; line-height: 1.45;
  color: rgba(255,255,255,0.55); margin-top: 10px; }
.pf-gift-author .pf-teacher a { color: rgba(255,255,255,0.85); text-decoration: underline;
  text-underline-offset: 3px; }
.pf-gift-author .pf-teacher a:hover { color: var(--p-red); }

/* ==========================================================================
   ЗАЕЗДЫ
   ========================================================================== */
.pf-trips { background: var(--p-grey); }
.pf-trips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.pf-trip { position: relative; min-height: 430px; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 32px; color: #fff; text-decoration: none; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s ease; }
.pf-trip .pf-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center;
  transition: transform .5s var(--ease); }
.pf-trip .pf-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,24,27,0.08) 28%, rgba(23,24,27,0.8) 100%); }
.pf-trip > * { position: relative; z-index: 1; }
.pf-trip .pf-season { font-family: var(--p-font-mono); font-weight: 500; font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.9); margin-bottom: 12px; }
.pf-trip .pf-name { background: var(--p-red); align-self: flex-start; font-family: var(--p-font-display);
  font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.06; padding: 0.16em 0.3em 0.22em; margin-bottom: 14px; }
.pf-trip .pf-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-trip.pf-future .pf-name { background: var(--p-black); }
.pf-trip.pf-future .pf-bg { filter: grayscale(0.55); }
@media (hover: hover) {
  .pf-trip:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(23,24,27,0.24); }
  .pf-trip:hover .pf-bg { transform: scale(1.05); }
}

/* ==========================================================================
   ТРИ СТОЛПА
   ========================================================================== */
.pf-pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--p-black); }
.pf-pillar { padding: 34px 30px 38px; border-bottom: 1px solid var(--p-line); }
.pf-pillar + .pf-pillar { border-left: 1px solid var(--p-line); }
.pf-pillar .pf-idx { font-family: var(--p-font-mono); font-weight: 600; font-size: 2.4rem;
  color: var(--p-red); line-height: 1; display: block; margin-bottom: 16px; }

/* Фотополоса «руки» — фирменный кадр с оригинальной страницы. Кадрируем
   правее центра: слева на исходнике вшиты логотип и морзе, а второй логотип
   на странице спорил бы с шапкой. */
.pf-pillars-photo { margin-top: 28px; height: 340px;
  background: url('https://codeib.ru/web/image/29176-b3275f94/1400x900/3%20%281%29.png') 68% center/cover no-repeat; }
.pf-pillar h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 14px; }
.pf-pillar p { color: var(--p-text-dim); font-size: 15px; line-height: 1.65; }

/* ==========================================================================
   ЗА ЧТО ЛЮБЯТ
   ========================================================================== */
.pf-love { background: var(--p-grey); }
.pf-love-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }

/* Видео Ольги — крупным блоком в начале сетки */
.pf-love-video { grid-column: span 2; background: var(--p-black); display: flex; flex-direction: column; }
.pf-love-video .pf-frame { position: relative; padding-top: 56.25%; }
.pf-love-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pf-love-video .pf-cap { padding: 16px 20px 18px; color: #fff; }
.pf-love-video .pf-cap b { display: block; font-weight: 700; font-size: 1rem; }
.pf-love-video .pf-cap span { font-family: var(--p-font-mono); font-size: 0.74rem;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.6); }
.pf-love-card { background: #fff; padding: 32px 28px 30px; position: relative;
  transition: transform .22s var(--ease), box-shadow .22s ease; }
.pf-love-card::before { content: ''; position: absolute; top: 0; left: 0; width: 44px; height: 6px;
  background: var(--p-red); transition: width .3s var(--ease); }
.pf-love-card h3 { margin: 12px 0 12px; }
.pf-love-card p { font-size: 15px; line-height: 1.65; color: var(--p-text-dim); }
.pf-love-card.pf-tint-purple { background: var(--p-purple-tint); }
.pf-love-card.pf-tint-teal { background: var(--p-teal-tint); }
.pf-love-card.pf-tint-purple::before, .pf-love-card.pf-tint-teal::before { background: var(--p-black); }
.pf-love-card.pf-liver { background: var(--p-red); color: #fff; }
.pf-love-card.pf-liver::before { background: #fff; }
.pf-love-card.pf-liver p { color: rgba(255,255,255,0.9); }
@media (hover: hover) {
  .pf-love-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(23,24,27,0.1); }
  .pf-love-card:hover::before { width: 88px; }
}

/* ==========================================================================
   СПИКЕРЫ И УЧАСТНИКИ
   ========================================================================== */
.pf-statement { font-family: var(--p-font-body); font-weight: 400;
  font-size: 16px; line-height: 1.65; max-width: 680px; color: var(--p-text-dim); }
.pf-statement em { font-style: normal; font-weight: 600; background: var(--p-red); color: #fff;
  padding: 0.06em 0.26em 0.14em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Сетка спикеров */
.pf-speakers-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.pf-speaker { margin: 0; }
.pf-speaker .pf-ph { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--p-grey); }
.pf-speaker img { width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: grayscale(1) contrast(1.02); transition: filter .3s ease; }
/* Кадр, где человек мельче остальных: приближаем, чтобы масштаб лиц совпал */
.pf-speaker--zoom img { transform: scale(1.32); transform-origin: center 26%; }
.pf-speaker figcaption { padding-top: 12px; display: block; }
.pf-speaker figcaption b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.pf-speaker .pf-role { display: block; font-size: 13px; line-height: 1.4; color: var(--p-text-muted); margin-top: 3px; }
.pf-speaker .pf-company { display: block; font-family: var(--p-font-mono); font-size: 11px;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--p-red); margin-top: 5px; }
@media (hover: hover) { .pf-speaker:hover img { filter: none; } }

/* Витрина участников — логотипы компаний */
.pf-brands-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--p-line); border: 1px solid var(--p-line); }
.pf-brand-tile { background: #fff; aspect-ratio: 16 / 9; display: flex; align-items: center;
  justify-content: center; padding: 14px; text-align: center; }
.pf-brand-tile span { font-family: var(--p-font-body); font-weight: 700; font-size: 14px;
  line-height: 1.25; color: var(--p-text-dim); }
.pf-brand-tile img { max-width: 100%; max-height: 56px; object-fit: contain;
  filter: grayscale(1); opacity: .78; transition: filter .25s ease, opacity .25s ease; }
@media (hover: hover) { .pf-brand-tile:hover img { filter: none; opacity: 1; } }

@media (max-width: 1080px) {
  .pf-speakers-grid { grid-template-columns: repeat(4, 1fr); }
  .pf-brands-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  /* Спикеры — горизонтальная лента со свайпом: пятнадцать карточек сеткой
     занимали бы восемь экранов подряд. Прилипание по левому краю карточки,
     полоса прокрутки скрыта, лента выходит в поля страницы. */
  /* Без отрицательных полей: они делали ленту шире обёртки и растягивали
     всю страницу по горизонтали — текст соседних блоков уезжал за экран. */
  .pf-speakers-grid { display: flex; gap: 12px; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: 8px; scrollbar-width: none; }
  .pf-speakers-grid::-webkit-scrollbar { display: none; }
  .pf-speaker { flex: 0 0 60%; scroll-snap-align: start; }
  .pf-speaker figcaption b { font-size: 14px; }
  .pf-speaker .pf-role { font-size: 12px; }

  /* Логотипы — плотной стенкой по три в ряд */
  .pf-brands-grid { grid-template-columns: repeat(3, 1fr); }
  .pf-brand-tile { aspect-ratio: 3 / 2; padding: 8px; }
  .pf-brand-tile span { font-size: 11px; line-height: 1.2; }
}

/* ==========================================================================
   ПОВЕСТКА
   ========================================================================== */
.pf-agenda { background: var(--p-dark); color: #fff; }
/* Лид под заголовком — Onest обычного веса: тяжёлый Unbounded оставлен
   только главным заголовкам, иначе два жирных блока подряд спорят. */
.pf-agenda .pf-quote { font-family: var(--p-font-body); font-weight: 400;
  font-size: 16px; line-height: 1.65; max-width: 680px;
  color: rgba(255,255,255,0.86); }
.pf-agenda .pf-quote em { font-style: normal; font-weight: 600; color: var(--p-red); }
.pf-agenda-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 50px; }
.pf-agenda-card { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); padding: 32px 28px;
  transition: box-shadow .22s ease, transform .22s var(--ease); }
.pf-agenda-card h3 { color: #fff; margin-bottom: 16px; display: flex; gap: 10px; }
.pf-agenda-card h3::before { content: '//'; font-family: var(--p-font-mono); color: var(--p-red); font-weight: 600; }
.pf-agenda-card p, .pf-agenda-card li { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.74); }
.pf-agenda-card ul { list-style: none; }
.pf-agenda-card li { padding-left: 20px; position: relative; margin-bottom: 12px; }
.pf-agenda-card li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--p-red); }
@media (hover: hover) { .pf-agenda-card:hover { box-shadow: inset 0 0 0 1px var(--p-red); transform: translateY(-4px); } }

/* ==========================================================================
   СТАТИСТИКА
   ========================================================================== */
.pf-stats-band { background: var(--p-red); color: #fff; padding: 84px 0; }
.pf-stats-band h2 { max-width: 920px; }
.pf-stats-band .pf-nums { display: flex; flex-wrap: wrap; gap: 44px; margin: 38px 0 40px; }
.pf-stats-band .pf-nums b { display: block; font-family: var(--p-font-display); font-weight: 700;
  font-size: clamp(26px, 2.8vw, 38px); line-height: 1; letter-spacing: -0.025em; }
.pf-stats-band .pf-nums span { font-family: var(--p-font-mono); font-size: 10.5px; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.88); }

/* ==========================================================================
   ГАЛЕРЕЯ
   ========================================================================== */
.pf-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; }
.pf-gallery-grid a { display: block; overflow: hidden; position: relative; }
.pf-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.pf-gallery-grid a::after { content: ''; position: absolute; inset: 0; background: var(--p-red);
  opacity: 0; transition: opacity .3s ease; mix-blend-mode: multiply; }
.pf-gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.pf-gallery-grid a:nth-child(6) { grid-column: span 2; }
@media (hover: hover) {
  .pf-gallery-grid a:hover img { transform: scale(1.07); }
  .pf-gallery-grid a:hover::after { opacity: 0.18; }
}

/* ==========================================================================
   ОТЗЫВЫ
   ========================================================================== */
.pf-reviews { background: var(--p-grey); }
.pf-reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; margin-bottom: 40px; }
.pf-review { background: #fff; padding: 32px 30px; display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s ease; }
.pf-review .pf-mark { font-family: var(--p-font-display); font-weight: 900; font-size: 3rem;
  color: var(--p-red); line-height: 0.5; margin-bottom: 22px; }
.pf-review blockquote { font-size: 15px; line-height: 1.6; font-weight: 500;
  color: var(--p-text); flex: 1; margin-bottom: 20px; }
.pf-review .pf-who b { display: block; font-family: var(--p-font-body); font-weight: 700; font-size: 15px; }
.pf-review .pf-who span { font-family: var(--p-font-mono); font-weight: 400; font-size: 11px;
  letter-spacing: 0.5px; color: var(--p-text-muted); }
.pf-review.pf-video { background: var(--p-dark); color: #fff; }
.pf-review.pf-video blockquote { color: rgba(255,255,255,0.78); }
.pf-review.pf-video .pf-who b { color: #fff; }
.pf-review.pf-video .pf-who span { color: rgba(255,255,255,0.55); }
@media (hover: hover) { .pf-review:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(23,24,27,0.1); } }

/* ==========================================================================
   ПОДАРОК ОТ СПИКЕРА
   ========================================================================== */
.pf-gift { background: var(--p-dark); color: #fff; }
.pf-gift-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 44px; align-items: start; }
.pf-gift-author { text-align: center; }
.pf-gift-author .pf-ph { aspect-ratio: 1 / 1; overflow: hidden; background: #2a2c30; }
.pf-gift-author img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pf-gift-author b { display: block; font-size: 17px; font-weight: 700; margin-top: 16px; }
.pf-gift-author .pf-role { display: block; font-size: 13px; line-height: 1.45;
  color: rgba(255,255,255,0.6); margin-top: 4px; }
.pf-gift-author .pf-company { display: block; font-family: var(--p-font-mono); font-size: 11px;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--p-red); margin-top: 8px; }
.pf-gift-body h2 { margin-bottom: 14px; }
.pf-gift-lead { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.82); max-width: 680px; }
.pf-gift-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px 26px; margin: 26px 0 30px; }
.pf-gift-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5;
  color: rgba(255,255,255,0.78); }
.pf-gift-list li::before { content: ''; position: absolute; left: 0; top: 0.52em;
  width: 9px; height: 9px; background: var(--p-red); }
.pf-gift-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.pf-gift-note { font-family: var(--p-font-mono); font-size: 11px; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.45); margin-top: 18px; line-height: 1.6; }

@media (max-width: 900px) {
  .pf-gift-grid { grid-template-columns: 1fr; gap: 28px; }
  .pf-gift-author { display: flex; align-items: center; gap: 16px; text-align: left; }
  .pf-gift-author .pf-ph { width: 96px; flex: none; }
  .pf-gift-author b { margin-top: 0; }
  .pf-gift-list { grid-template-columns: 1fr; }
  .pf-gift-cta .pf-btn { width: 100%; }
}

/* ==========================================================================
   ТАРИФЫ
   ========================================================================== */
.pf-tariffs { background: var(--p-grey); }
.pf-tariff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pf-tariff { background: #fff; padding: 34px 32px 30px; display: flex; flex-direction: column;
  border-top: 5px solid var(--p-red); }
.pf-tariff.pf-supplier { border-top-color: var(--p-black); }
.pf-tariff h3 { margin-bottom: 8px; }
.pf-tariff .pf-who { font-size: 14px; color: var(--p-text-muted); line-height: 1.5; margin-bottom: 22px; }
.pf-tariff .pf-price { font-family: var(--p-font-display); font-weight: 700;
  font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -0.025em; }
.pf-tariff .pf-price-note { font-family: var(--p-font-mono); font-size: 11px; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--p-text-muted); margin-top: 8px; }
.pf-tariff .pf-steps { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-tariff .pf-steps .pf-plate { background: var(--p-grey); color: var(--p-text-dim); }

.pf-includes { margin-top: 34px; background: #fff; padding: 32px; }
.pf-includes h3 { margin-bottom: 18px; }
.pf-includes ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 26px; }
.pf-includes li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5;
  color: var(--p-text-dim); }
.pf-includes li::before { content: ''; position: absolute; left: 0; top: 0.5em;
  width: 9px; height: 9px; background: var(--p-red); }

@media (max-width: 900px) {
  .pf-tariff-grid { grid-template-columns: 1fr; }
  .pf-includes ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .pf-includes { padding: 24px 20px; }
  .pf-includes ul { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ФОРМА
   ========================================================================== */
.pf-apply { background: var(--p-dark); color: #fff; padding: 0; }
.pf-apply-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 640px; }
.pf-apply-photo { background: url('https://codeib.ru/web/image/36599-5330e523/1200x800/rGAdrKxqEhI.jpg') center/cover; position: relative; }
.pf-apply-photo::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, var(--p-dark) 100%); }
.pf-apply-form { padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; }
.pf-apply-form h2 { margin-bottom: 28px; }
.pf-field { margin-bottom: 14px; }
.pf-field input, .pf-field select {
  width: 100%; background: rgba(255,255,255,0.06); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); border: 0; border-radius: 0;
  font-family: var(--p-font-body); font-size: 0.95rem; padding: 16px 18px; outline: none;
  transition: box-shadow .18s ease, background .18s ease; }
.pf-field input::placeholder { color: rgba(255,255,255,0.48); }
.pf-field input:focus, .pf-field select:focus { box-shadow: inset 0 0 0 2px var(--p-red); background: rgba(255,255,255,0.09); }
.pf-field select option { color: #17181B; }
.pf-apply-form .pf-btn { width: 100%; margin-top: 10px; }
.pf-apply-form .pf-agree { font-size: 0.74rem; color: rgba(255,255,255,0.45); margin-top: 14px; line-height: 1.5; }
.pf-apply-form .pf-agree a { color: rgba(255,255,255,0.68); }

/* ==========================================================================
   ПОДВАЛ
   ========================================================================== */
.pf-foot { background: var(--p-black); color: rgba(255,255,255,0.6); padding: 30px 0; font-size: 0.84rem; }
.pf-foot .pf-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.pf-foot b { color: #fff; font-family: var(--p-font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem; }

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width: 1080px) {
  .pf-page { --sec-pad: 76px; --head-gap: 36px; }
  .pf-pillars-grid { grid-template-columns: 1fr; }
  .pf-pillar + .pf-pillar { border-left: 0; }
  .pf-gallery-grid { grid-auto-rows: 168px; }
}


@media (max-width: 760px) {
  .pf-page {
    --sec-pad: 58px; --head-gap: 28px; --p-gutter: 20px;
    --btn-pad-y: 16px; --btn-pad-x: 24px; --btn-size: 0.8rem;
    --plate-pad-x: 14px; --plate-size: 0.68rem; --plate-track: 0.1em;
  }
  .pf-hero { padding: 92px 0 122px; }
  .pf-hero-top { padding-top: 18px; }
  .pf-logo-lockup svg { width: 34px; }
  .pf-logo-lockup .pf-brand { font-size: 1.1rem; }
  .pf-hero-title { margin: 14px 0 18px; }
  .pf-hero-slogan { margin-bottom: 22px; }
  .pf-hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .pf-hero-cta .pf-btn { width: 100%; }
  .pf-hero-when { margin-top: 18px; }
  .pf-hero-stats { gap: 1px; }
  .pf-stat-plate { padding: 11px 14px; gap: 1px; }
  .pf-stat-plate b { font-size: 1.05rem; }
  .pf-stat-plate span { font-size: 0.74rem; }

  .pf-trip { min-height: 340px; padding: 24px; }
  .pf-trip .pf-meta .pf-plate { white-space: normal; }
  .pf-pillar { padding: 28px 22px 30px; }
  .pf-pillar h3 { font-size: 1.25rem; }
  .pf-love-grid { grid-template-columns: 1fr; gap: 12px; }
  .pf-love-card { padding: 26px 22px; }
  .pf-love-video { grid-column: span 1; }
  .pf-pillars-photo { height: 200px; margin-top: 20px; }
  .pf-agenda-grid { margin-top: 34px; }
  .pf-agenda-card { padding: 26px 22px; }
  .pf-stats-band { padding: 62px 0; }
  .pf-stats-band .pf-nums { gap: 26px 32px; margin: 28px 0 30px; }
  .pf-stats-band .pf-btn { width: 100%; }
  .pf-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; gap: 8px; }
  .pf-gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .pf-gallery-grid a:nth-child(6) { grid-column: span 1; }
  .pf-reviews-grid { grid-template-columns: 1fr; gap: 12px; }
  .pf-review { padding: 26px 22px; }
  .pf-reviews .pf-btn { width: 100%; }
  .pf-apply-grid { grid-template-columns: 1fr; min-height: 0; }
  .pf-apply-photo { min-height: 220px; }
  .pf-apply-photo::after { background: linear-gradient(180deg, transparent 45%, var(--p-dark) 100%); }
  .pf-apply-form { padding: 44px 20px 56px; }
  .pf-foot .pf-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pf-auto-chip { display: block; margin: 10px 0 0; }
}

@media (max-width: 380px) {
  .pf-hero-title { font-size: 2rem; }
  .pf-gallery-grid { grid-auto-rows: 110px; }
}


/* ---- перебиваем стили темы сайта ---- */
/* Тема красит заголовки своим тёмным цветом, и в тёмных секциях (подарок,
   программа обучения, форма) они сливались с фоном — текст был, но не виден.
   Возвращаем наследование цвета от секции, как в исходной вёрстке. */
.pf-page h1, .pf-page h2, .pf-page h3 { color: inherit; }
/* Секция формы своих полей не имеет — фото и форма идут от края до края.
   Общее правило `.pf-page section` перебивало её обнулённые отступы и
   добавляло чёрные поля сверху и снизу. */
.pf-page section.pf-apply { padding: 0; }
/* Наследование тема перебивает своим селектором, поэтому тёмным секциям
   цвет заголовков задаём в лоб. */
.pf-hero h1, .pf-gift h2, .pf-gift h3, .pf-agenda h2, .pf-agenda h3,
.pf-stats-band h2, .pf-apply h2, .pf-love-video .pf-cap b { color: #fff !important; }
.pf-trip .pf-name, .pf-hero-title { color: #fff !important; }
.pf-page blockquote { font-style: normal; border: 0; padding: 0; margin: 0;
  quotes: none; background: none; }
.pf-page ul, .pf-page ol { margin: 0; padding-left: 0; }
/* ...но собственные списки блока подарка должны дышать */
.pf-gift-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.pf-gift-lead { margin-bottom: 0; }
.pf-gift-list { margin: 34px 0 38px; gap: 14px 30px; }
.pf-gift-cta { margin-top: 0; gap: 14px; }
.pf-gift-note { margin-top: 24px; }
.pf-gift-author b { margin-top: 18px; }
.pf-gift .pf-sec-head { margin-bottom: 52px; }
.pf-page figure { margin: 0; }
.pf-page a { text-decoration: none; }

/* ---- штатная форма Odoo в нашем оформлении ---- */
.pf-apply .s_website_form_label,
.pf-apply .s_website_form_mark { display: none; }
.pf-apply .s_website_form_rows { margin: 0; }
.pf-apply .s_website_form_field { padding: 0; margin-bottom: 14px; }
.pf-apply .s_website_form_field .row { margin: 0; }
.pf-apply .s_website_form_field .col-sm { padding: 0; }
.pf-apply .s_website_form_input,
.pf-apply select.s_website_form_input {
  width: 100%; background: rgba(255,255,255,0.06); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); border: 0; border-radius: 0;
  font-family: var(--p-font-body); font-size: 0.95rem; padding: 16px 18px; outline: none;
  transition: box-shadow .18s ease, background .18s ease; }
.pf-apply .s_website_form_input::placeholder { color: rgba(255,255,255,0.48); }
.pf-apply .s_website_form_input:focus {
  box-shadow: inset 0 0 0 2px var(--p-red); background: rgba(255,255,255,0.09); }
.pf-apply .s_website_form_multiple { margin: 4px 0 0; }
.pf-apply .form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pf-apply .form-check-input { width: 18px; height: 18px; margin: 0; accent-color: var(--p-red);
  box-shadow: none; }
.pf-apply .s_website_form_check_label { display: inline; color: rgba(255,255,255,0.82);
  font-size: 0.92rem; }
.pf-apply .s_website_form_send {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  background: var(--p-red); color: #fff; border: 0; border-radius: 0;
  font-family: var(--p-font-body); font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 16px 28px; margin-top: 6px; }
.pf-apply .s_website_form_send:hover { background: var(--p-red-dim); color: #fff; }
.pf-apply .o_recaptcha_legal_terms { display: block; font-size: 0.74rem;
  color: rgba(255,255,255,0.45); margin-top: 12px; line-height: 1.5; }
.pf-apply .o_recaptcha_legal_terms a { color: rgba(255,255,255,0.68); text-decoration: underline; }
.pf-apply .s_website_form_dnone { display: none; }
