/* «Наша команда» (13.11.2026) — templates/template-team.php. Переменные, .ba-wrap и кнопки — about.css. */

/* ===== общее ===== */
.bt { padding: 28px 0 88px; }
.bt-crumbs { margin-bottom: 28px; }
.bt-crumbs .breadcrumbs { margin: 0; padding: 0; }
.bt-crumbs .breadcrumbs, .bt-crumbs .breadcrumbs * { font-family: var(--sans) !important; font-size: 14px !important; }
.bt-eyebrow { margin: 0 0 12px !important; font: 700 14px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.bt-h1 { margin: 0; font: 800 clamp(40px, 6vw, 84px)/.95 var(--sans); font-variation-settings: "wdth" 115; letter-spacing: -.015em; color: inherit; text-transform: none; text-wrap: balance; }
.bt-h2 { margin: 0 0 8px; font: 800 clamp(30px, 4vw, 52px)/1.02 var(--sans); font-variation-settings: "wdth" 115; color: var(--ink); text-transform: none; }
.bt-lead { max-width: 60ch; margin-top: 18px !important; font: 400 19px/1.6 var(--serif); color: #3d3637; }
.bt-sub { margin-top: 16px !important; font-size: 15px; color: var(--mut); }
.bt-top { max-width: 900px; margin-bottom: 40px; }

/* ===== шаги аренды ===== */
.bt-route { position: relative; display: grid; }
.bt-step { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 24px; padding-bottom: 36px; }
.bt-step__n { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 22px var(--sans); box-shadow: 0 0 0 6px var(--ground); }
.bt-step:first-child .bt-step__n { background: var(--red); }
.bt-step__body { padding: 22px 26px 24px; border-radius: 16px; background: #fff; }
.bt-step__body h2 { margin: 0 0 8px; font: 800 clamp(22px, 2.4vw, 30px)/1.1 var(--sans); font-variation-settings: "wdth" 112; color: var(--ink); text-transform: none; }
.bt-step__body > p { max-width: 70ch; color: #3d3637; }
.bt-people { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 20px !important; }
.bt-chip { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.bt-chip:hover b { color: var(--red); }
.bt-chip__av { flex: 0 0 52px; width: 52px; height: 52px; overflow: hidden; border-radius: 50%; background: #2b2b2b; transition: transform .25s; }
.bt-chip:hover .bt-chip__av { transform: scale(1.06); }
.bt-chip__av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bt-chip b { display: block; font: 700 15px/1.2 var(--sans); }
.bt-chip small { display: block; max-width: 220px; font-size: 13px; line-height: 1.3; color: var(--mut); }

/* ===== слайдер всех людей ===== */
.bt-lh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 24px 0 8px; }
.bt-lh .bt-sub { margin-top: 0 !important; }
.bt-nav { display: flex; align-items: center; gap: 10px; }
.bt-count { margin-inline-end: 12px; font: 600 15px var(--sans); color: var(--mut); white-space: nowrap; }
.bt-count b { font-size: 28px; color: var(--ink); }
.bt-nav button { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 50%; background: none; color: var(--ink); font: 600 20px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.bt-nav button:hover { background: var(--ink); color: #fff; }
[dir="rtl"] .bt-nav button { transform: scaleX(-1); }
.ba .bt-track { display: flex; gap: 28px; padding: 8px max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))) 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))); scrollbar-width: none; }
.bt-track::-webkit-scrollbar { display: none; }
.bt-slide { --w: min(760px, 84vw); position: relative; flex: 0 0 var(--w); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 28px; scroll-snap-align: start; }
/* фоновое имя контуром: размер по длине имени, чтобы не заходило на соседний слайд */
.bt-slide__bg { position: absolute; inset-inline: 0; top: -10px; z-index: 0; overflow: hidden; font: 900 min(190px, calc(var(--w) / (var(--n) * 1.08)))/.8 var(--sans); font-variation-settings: "wdth" 125; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(35,31,32,.14); white-space: nowrap; pointer-events: none; }
.bt-slide figure { position: relative; z-index: 1; margin: 60px 0 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: #2b2b2b; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.bt-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bt-slide__txt { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 12px; }
.bt-badge { padding: 4px 10px; border-radius: 99px; background: var(--c); color: #111; font: 700 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.bt-slide__name { font: 800 clamp(34px, 4vw, 54px)/1 var(--sans); font-variation-settings: "wdth" 115; }
.bt-slide__role { font: 600 16px/1.35 var(--sans); }
.bt-slide__txt p { font: italic 400 18px/1.5 var(--serif); color: #3d3637; }
.bt-slide__lang { font-size: 14px; color: var(--mut); }
.bt-slide__txt small { font-size: 13px; color: var(--mut); text-transform: uppercase; letter-spacing: .08em; }
.bt-bar { height: 3px; margin: 8px 0 40px; background: rgba(35,31,32,.12); }
.bt-bar i { display: block; width: 8%; height: 100%; background: var(--red); transition: width .2s; }

/* ===== цифры и связь ===== */
.bt-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 48px !important; }
.bt-facts li { display: flex; flex-direction: column; }
.bt-facts b { font: 800 34px/1 var(--sans); font-variation-settings: "wdth" 112; }
.bt-facts li > span { margin-top: 6px; font-size: 14px; color: var(--mut); }
.bt-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 56px; padding: 24px 28px; border-radius: 14px; background: #fff; }
.bt-cta p { font-size: 17px; }

@media (max-width: 700px) {
  .bt { padding: 18px 0 56px; }
  .bt-lead { font-size: 17px; }
  .bt-step { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .bt-step__n { width: 42px; height: 42px; font-size: 17px; }
  .bt-step__body { padding: 18px; }
  .bt-nav button { width: 44px; height: 44px; }
  .ba .bt-track { gap: 16px; }
  .bt-slide { --w: 82vw; grid-template-columns: 1fr; gap: 14px; }
  .bt-slide figure { margin-top: 40px; }
  .bt-facts { gap: 12px 28px; }
  .bt-facts b { font-size: 26px; }
  .bt-cta { padding: 20px; }
  .bt-cta .ba-btn { width: 100%; }
}
.bt-lh { scroll-margin-top: 110px; }

/* ===== анимации прокрутки (13.11.2026): дорога с машиной, фары зажигают шаги, шоурум на прокрутке, одометр =====
   Скрипт ставит .bt-team.is-anim; без скрипта и при «уменьшить движение» всё видно сразу, без эффектов. */

/* заголовок выезжает по словам — только CSS, работает и без скрипта */
.bt-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.bt-w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .bt-w > span { animation: bt-word .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
}
@keyframes bt-word { from { transform: translateY(105%); } }

/* дорога: асфальт с разметкой, по ней едет машина */
.bt-roadwrap { position: relative; }
.bt-road { position: absolute; inset-inline-start: 13px; top: 8px; bottom: 44px; width: 32px; border-radius: 16px; background: #2e3033; box-shadow: inset 0 0 0 2px rgba(0,0,0,.15); --p: 0; --off: 0px; }
.bt-road__lane { position: absolute; inset: 10px auto 10px 50%; width: 3px; margin-inline-start: -1.5px; background: linear-gradient(#f1f1f1 50%, transparent 50%) 0 var(--off) / 3px 22px repeat-y; opacity: .85; }
.bt-car { position: absolute; left: 50%; top: calc(var(--p) * (100% - 52px)); z-index: 4; width: 28px; height: 52px; margin-left: -14px; transform: rotate(var(--rot, 0deg)); transition: transform .45s cubic-bezier(.3,.7,.2,1); filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); will-change: top, transform; }
.bt-car svg { display: block; }
.bt-car::after { content: ""; position: absolute; left: 50%; top: 48px; width: 60px; height: 70px; margin-left: -30px; background: radial-gradient(60% 100% at 50% 0, rgba(255,233,168,.55), rgba(255,233,168,0) 70%); pointer-events: none; }
.bt-step__n { z-index: 3; }
.bt-step__n { transition: background .35s, transform .6s cubic-bezier(.3,1.7,.5,1); }
.bt-step.is-on .bt-step__n { background: var(--red); }

/* карточка шага: приглушена, пока не доехали; блик фар при «приезде» */
.bt-step__body { position: relative; overflow: hidden; }
.bt-step__body::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,240,200,.65) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.bt-team.is-anim .bt-step.is-wait .bt-step__body { opacity: .35; transform: translateY(22px) scale(.985); filter: saturate(.3); }
.bt-team.is-anim .bt-step .bt-step__body { transition: opacity .6s, transform .7s cubic-bezier(.2,.8,.2,1), filter .6s; }
.bt-team.is-anim .bt-step.is-wait .bt-step__n { transform: scale(.72); background: #9b9596; }
.bt-team.is-anim .bt-step.is-lit .bt-step__body::after { animation: bt-sweep 1.1s .1s ease-out; }
@keyframes bt-sweep { to { transform: translateX(120%); } }
.bt-team.is-anim .bt-step.is-wait .bt-people li { opacity: 0; transform: translateY(14px) scale(.9); }
.bt-team.is-anim .bt-people li { transition: opacity .45s, transform .55s cubic-bezier(.3,1.5,.5,1); transition-delay: calc(var(--j, 0) * 90ms + 250ms); }

/* лента: фокус на человеке, параллакс имён */
.bt-show { position: relative; }
.bt-team.is-anim .bt-slide { transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); }
.bt-team.is-anim .bt-slide:not(.is-cur) { opacity: .5; transform: scale(.93); }
.bt-team.is-anim .bt-slide.is-cur { opacity: 1; transform: none; }
.bt-team.is-anim .bt-slide__bg { transform: translateX(var(--px, 0px)); }
.bt-team.is-anim .bt-show.is-wait .bt-slide { opacity: 0; transform: translateX(120px) scale(.93); }
.bt-team.is-anim .bt-show .bt-slide { transition-delay: calc(var(--j, 0) * 80ms); }
.bt-team.is-anim .bt-show.is-seen .bt-slide { transition-delay: 0s; }

/* одометр: цифры барабанами */
.bt-odo { display: inline-flex; direction: ltr; unicode-bidi: isolate; }
.bt-odo__d { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.bt-odo__d > span { display: flex; flex-direction: column; transition: transform 1.4s cubic-bezier(.2,.8,.2,1); transition-delay: var(--dl, 0s); }
.bt-odo__d > span > i { display: block; height: 1em; font-style: normal; line-height: 1; }
.bt-count .bt-odo__d > span { transition-duration: .5s; transition-delay: 0s; }

@media (max-width: 700px) {
  .bt-road { inset-inline-start: 5px; width: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .bt-car, .bt-road__lane, .bt-step__body, .bt-slide, .bt-odo__d > span { transition: none !important; animation: none !important; }
}
