/* ============================================================
   BLOCK «NASI PARTNERZY» (Figma node 920:2582) — партнёры.
   Шапка (заголовок + dash + стрелки-навигация) + карусель из
   карточек-логотипов брендов. Десктоп pixel-perfect к 1440, pad 88.
   ============================================================ */
.part {
  position: relative;
  width: 100%;
  padding: 88px 0;
  overflow: hidden;
  isolation: isolate;
  /* свг-линии 04_bg (team-bg.svg) на всю высоту поверх градиента */
  background:
    url("/public/assets/uslugi/team-bg.svg") no-repeat center top / 100% 100%,
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.04) 100%),
    var(--dark-1100);
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* старые вертикальные направляющие отключены — линии теперь из team-bg.svg */
.part__lines { display: none; }

/* ── Шапка ────────────────────────────────────────────────── */
.part__head {
  position: relative;
  z-index: 2;
  width: 1264px;
  max-width: calc(100% - 176px);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.part__title {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  text-align: center;            /* центр без transform → не ломает reveal (translateY) */
  font-family: var(--ff-display);
  font-weight: 700; font-style: italic;
  font-size: 72px; line-height: 72px; text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 38.834%, #787674 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; letter-spacing: normal; }
/* dash под заголовком (920:2603, наклон −1.37°) */
.part__line {
  position: absolute;
  left: 50%;
  top: 60px;
  width: 457.78px;
  height: 1px;
  transform: translateX(-50%) rotate(-1.37deg);
  pointer-events: none;
}
.part__line svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* стрелки-навигация (как в блоке 6) */
.part__nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}
.part__btn {
  width: 40px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--light-40);
  color: var(--light-1000);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background .25s ease;
}
/* ховер: белый фон, чёрная стрелка */
.part__btn:hover { background: var(--light-1000); color: var(--dark-1000); }
.part__btn--prev { border-radius: 8px 0 0 8px; }
.part__btn--next { border-radius: 0 8px 8px 0; }
.part__btn .btn-arrow { width: 16px; height: 16px; }
.part__btn--prev .btn-arrow { transform: rotate(180deg); opacity: .48; transition: opacity .25s ease; }
.part__btn--prev.is-on .btn-arrow { opacity: 1; }
.part__btn--prev:hover .btn-arrow { opacity: 1; }
/* сепаратор между кнопками */
.part__nav-sep { width: 1px; align-self: stretch; flex: none; background: rgba(255,255,255,.14); }

/* ── Карусель логотипов ──────────────────────────────────── */
.part__viewport {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  /* overflow-x:auto делает overflow-y:auto → обрезал поднятую на ховере карточку сверху.
     Даём вертикальный воздух и компенсируем margin'ом, чтобы лифт не резался. */
  padding: 16px 0;
  margin: -16px 0;
}
.part__viewport::-webkit-scrollbar { display: none; }
.part__track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-left: calc((100% - min(1264px, 100% - 176px)) / 2);
  padding-right: calc((100% - min(1264px, 100% - 176px)) / 2);
}

/* карточка партнёра (298×224, radius12, bg light/04) */
.part-card {
  position: relative;
  width: 298px;
  height: 224px;
  flex: none;
  border-radius: 12px;
  background: var(--light-40);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  /* переиспользуемый hover-карточки: лёгкий лифт + подсветка */
  transition: transform .15s ease, background .15s ease;
}
.part-card:hover { transform: translateY(-4px); background: var(--light-80); }
.part-card__label {
  position: absolute;
  left: 24px; top: 24px;
  margin: 0;
  font-family: var(--ff-body); font-weight: 400;
  font-size: 13px; line-height: 1; letter-spacing: var(--ls-body);
  text-transform: uppercase; color: var(--light-600); white-space: nowrap;
}
.part-card__bar {
  position: absolute;
  left: 0; top: 23px;
  width: 2px; height: 16px;
  background: var(--light-1000);
  border-radius: 100px;
}
.part-card__logo {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  height: auto;
  object-fit: contain;
}

/* ── Пагинация-прогресс «01 … 0N» (только мобайл, Figma 665:20301) ── */
.part__progress {
  display: none;                       /* десктоп — навигация стрелками */
  align-items: center; gap: 16px;
  padding: 16px 32px; margin-top: 0;
}
.part__pnum {
  flex: none;
  font-family: var(--ff-body); font-size: 18px; line-height: 28px;
  letter-spacing: var(--ls-body); color: rgba(255,255,255,.63);
}
.part__pbar {
  flex: 1 1 0; height: 6px; border-radius: 100px;
  background: #161616; overflow: hidden; position: relative;
}
.part__pfill {
  position: absolute; left: 0; top: 0; height: 6px;
  border-radius: 100px; background: var(--light-1000);
  width: 18%; min-width: 24px;
  transition: width .2s ease;
}

/* ── Адаптив ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .part__title { font-size: 52px; line-height: 52px; }
  .part__line { display: none; }
}
@media (max-width: 768px) {
  /* мобайл pixel-perfect (Figma 665:19876): pad 32/16/48, заголовок Druk 40 центр, карусель свайпом */
  .part { padding: 32px 0 48px; gap: 32px; }
  .part__head { max-width: calc(100% - 32px); justify-content: center; position: relative; }
  .part__title { position: static; transform: none; font-size: 40px; line-height: 40px; text-align: center; }
  /* dash под заголовком «Nasi partnerzy» */
  .part__line {
    display: block; position: absolute; left: 50%; top: 48px;
    width: min(280px, calc(100% - 40px)); height: 1px; z-index: 1;
    transform: translateX(-50%) rotate(-2.4deg);
  }
  .part__nav { display: none; }   /* навигация свайпом */
  .part__track { padding-left: 16px; padding-right: 16px; gap: 12px; }
  .part-card { width: 218px; height: 164px; }
  .part__progress { display: flex; }   /* пагинация-прогресс вместо стрелок */
}
