/* Vector / frontpage-v2 — інший перший екран: реальне СТО на відео, великий знак VECTOR,
   заголовок унизу ліворуч, телефон праворуч. Решта сторінки — як frontpage. */
body.fp .fp2-hero {
  --gut: max(20px, calc((100% - 1274px) / 2));
  position: relative; display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh; padding: 0 !important; overflow: hidden;
  background: #0b0f17 !important; color: #fff;
}
/* відео + рівномірне затемнення, щоб текст читався */
body.fp .fp2-media { position: absolute; inset: 0; z-index: 0; background: #0b0f17 url(/v2/assets/hero-fp2/poster.webp) center / cover no-repeat; }
body.fp .fp2-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
body.fp .fp2-media::after { content: ""; position: absolute; inset: 0; background: rgba(8, 12, 20, .56); }

body.fp .fp2-hero > .site-nav { position: relative; z-index: 3; }

/* великий знак */
body.fp .fp2-wordmark {
  position: relative; z-index: 2; padding: 0 var(--gut); margin-top: clamp(28px, 7vh, 88px);
  animation: fp2-rise 1.1s cubic-bezier(.16, 1, .3, 1) both .1s;
}
body.fp .fp2-wordmark svg { display: block; width: 100%; height: auto; opacity: .94; }

/* низ: заголовок ліворуч, телефон праворуч */
body.fp .fp2-bottom {
  position: relative; z-index: 2; margin-top: auto; padding: 48px var(--gut) clamp(56px, 9vh, 96px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  animation: fp2-rise 1.1s cubic-bezier(.16, 1, .3, 1) both .25s;
}
body.fp .fp2-copy { max-width: 620px; }
body.fp .fp2-copy h1 {
  margin: 0 0 16px; color: #fff !important; text-align: left;
  font: 600 clamp(34px, 3.6vw, 56px)/1.06 'Geologica', 'Onest', sans-serif !important; letter-spacing: -0.02em !important; max-width: none !important;
}
body.fp .fp2-copy .hero-intro { margin: 0 0 26px; max-width: 48ch; text-align: left; color: #c9d3e3 !important; font-size: 17px !important; }
body.fp .fp2-copy .hero-offer { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start !important; }
body.fp .fp2-copy .hero-call {
  display: inline-flex; align-items: center; padding: 0 22px; color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .45) !important; background: rgba(255, 255, 255, .06) !important; text-decoration: none;
}
body.fp .fp2-copy .hero-call:hover { background: rgba(255, 255, 255, .14) !important; }

body.fp .fp2-phone {
  display: inline-flex; align-items: center; gap: 14px; flex: none; color: #fff; text-decoration: none;
  font: 600 clamp(22px, 2.1vw, 32px)/1 'Geologica', 'Onest', sans-serif; letter-spacing: -0.01em; white-space: nowrap;
}
body.fp .fp2-phone-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--cobalt); }
body.fp .fp2-phone-ic svg { width: 22px; height: 22px; }
body.fp .fp2-phone:hover .fp2-phone-ic { background: #0b44ab; }

/* підказка прокрутки */
body.fp .fp2-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
  font: 600 11px/1 'Onest', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62);
}
body.fp .fp2-cue i { width: 1px; height: 34px; background: rgba(255, 255, 255, .45); transform-origin: top; animation: fp2-cue 2.2s ease-in-out infinite; }

@keyframes fp2-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fp2-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 900px) {
  body.fp .fp2-bottom { flex-direction: column; align-items: flex-start; gap: 28px; padding-bottom: 72px; }
  body.fp .fp2-copy .hero-offer > a { flex: 1 1 100%; justify-content: center; }
  body.fp .fp2-phone { font-size: 22px; }
  body.fp .fp2-phone-ic { width: 42px; height: 42px; }
}
@media (max-width: 600px) {
  body.fp .fp2-media { background-image: url(/v2/assets/hero-fp2/poster-m.webp); }
  body.fp .fp2-video { object-position: 40% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  body.fp .fp2-video { display: none; }
  body.fp .fp2-wordmark, body.fp .fp2-bottom, body.fp .fp2-cue i { animation: none; }
}
body.fp .fp2-copy .hero-offer { flex-direction: row !important; align-items: center !important; }
body.fp .fp2-copy .hero-offer > a { width: auto !important; margin: 0 !important; }
/* шапка прозора поверх кадру */
body.fp .fp2-hero > .site-nav { background: transparent !important; border-bottom: 1px solid rgba(255, 255, 255, .12) !important; box-shadow: none !important; backdrop-filter: none !important; }
@media (max-width: 900px) { body.fp .fp2-copy .hero-offer { flex-direction: column !important; align-items: stretch !important; } }
@media (max-width: 900px) { body.fp .fp2-cue { display: none; } }

/* Ролі: без ілюстрацій людей, компактні макети справа (тільки v2/v3) */
body.fp #who .role-identity { display: none !important; }
body.fp #who .role-panel { align-items: center !important; }
body.fp #who .role-visual { padding: 16px !important; }
body.fp #who .product-ui .ui-top { padding-block: 12px !important; min-height: 0 !important; }
/* власник */
body.fp #who .finance-ui .ui-body { padding: 16px 20px !important; gap: 12px !important; }
body.fp #who .finance-top { min-height: 0 !important; gap: 20px !important; }
body.fp #who .finance-top .balance { padding: 0 !important; justify-content: center; }
body.fp #who .finance-top .balance b { font-size: 34px !important; }
body.fp #who .finance-chart .cash-flow { margin-bottom: 6px !important; }
body.fp #who .finance-chart .ui-chart { height: 104px !important; min-height: 0 !important; }
body.fp #who .finance-chart .ui-chart svg { height: 100% !important; }
body.fp #who .account-list { margin-top: 4px !important; }
body.fp #who .account-list .ui-row { padding-block: 10px !important; min-height: 0 !important; }
/* менеджер */
body.fp #who .order-meta { padding-block: 10px !important; min-height: 0 !important; }
body.fp #who .order-body { padding-block: 8px 12px !important; }
body.fp #who .order-body .ui-table-label { padding-block: 8px !important; }
body.fp #who .order-body .order-group { padding-block: 9px !important; min-height: 0 !important; }
body.fp #who .order-body .part-row { padding-block: 5px !important; min-height: 0 !important; }
body.fp #who .order-body .ui-total { padding-block: 10px 0 !important; min-height: 0 !important; }
/* механік і клієнт: нижчі телефони */
body.fp #who :is(.work-phone, .client-phone) .ui-top { padding-top: 30px !important; padding-bottom: 8px !important; }
body.fp #who :is(.work-phone, .client-phone) .phone-inner { gap: 8px !important; padding-block: 8px !important; }
body.fp #who :is(.work-phone, .client-phone) .ui-mobile-title { padding-bottom: 6px !important; min-height: 0 !important; }
body.fp #who .work-task { padding: 10px 12px !important; min-height: 0 !important; }
body.fp #who .client-phone .phone-request { padding: 10px 12px !important; min-height: 0 !important; }
body.fp #who .client-phone .phone-approval-item { padding-block: 8px !important; min-height: 0 !important; }
body.fp #who .client-phone .phone-decision { min-height: 36px !important; }
body.fp #who .mechanic-proof img { height: 170px !important; object-fit: cover; }
body.fp #who .mechanic-proof { justify-content: center; gap: 14px !important; }
body.fp #who .fp-client-msg { gap: 12px !important; }
body.fp #who .fp-client-msg .fp-client-feats { gap: 8px !important; }
body.fp #who .fp-client-msg .fp-client-feats li { padding-block: 6px !important; }
body.fp #who :is(.work-phone, .client-phone) { height: auto !important; min-height: 0 !important; }
body.fp #who :is(.work-phone, .client-phone) .ui-top { padding-top: 26px !important; }
body.fp #who :is(.work-phone, .client-phone) .phone-inner { gap: 6px !important; }
body.fp #who :is(.work-phone, .client-phone) :is(.phone-decision, .ui-mobile-nav) { margin-top: 6px !important; }
body.fp #who .fp-client-msg .fp-client-title { margin: 0 !important; }

/* без team-sync: #about закривається звичайним відступом секції */
body.fp section#about { padding-bottom: var(--section-y) !important; }

/* знак VECTOR — по центру вільного місця між шапкою і нижнім блоком (на будь-якій висоті екрана) */
body.fp .fp2-wordmark { margin-top: auto !important; margin-bottom: auto !important; padding-top: 54px; padding-bottom: 24px; } /* компенсує верхній відступ .fp2-bottom — проміжки над і під знаком рівні */
body.fp .fp2-bottom { margin-top: 0 !important; }
