/* /3pl/ — «Складской сервис для маркетплейсов» (22.10.2026).
   Только для страницы /3pl/ (подключается из 3pl.html через block extra_head).
   Шрифты и цвета — общие для сайта: SourceSansPro-Light + Avanti-Bold в заголовках,
   OpenSans/Roboto в тексте, акцент #ca1226. Мобильная вёрстка — до 1024px
   (тот же порог, при котором layout_slider.html выключает fullpage). */

.ff-sec {
  --ff-red: #ca1226;
  --ff-red-hover: #e8041c;
  --ff-text: #393939;
  --ff-muted: #6f6f6f;
  box-sizing: border-box;
}
.ff-sec *,
.ff-sec *::before,
.ff-sec *::after {
  box-sizing: border-box;
}

/* ---------- Заголовки ---------- */
.ff-title {
  margin: 0;
  padding-left: 18px;
  border-left: 3px solid var(--ff-red);
  font-family: SourceSansPro-Light, sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 2.9vw, 46px);
  line-height: 1.05;
  color: #000;
  text-align: left;
}
.ff-title > span {
  display: block;
}
.ff-title .ff-title__accent {
  font-family: Avanti-Bold, sans-serif;
  color: var(--ff-red);
}
.ff-kicker {
  display: block;
  font-family: OpenSans-Regular, sans-serif;
  font-size: clamp(14px, 1.15vw, 18px);
  letter-spacing: .02em;
  color: #000;
}

/* ---------- Кнопка «Получить спецпредложение» (как на /3pl/#slide5) ---------- */
.ff-sec a.ff-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 36px;
  background-color: var(--ff-red);
  color: #fff;
  font-family: OpenSans-Light, sans-serif;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease;
}
.ff-sec a.ff-cta:hover,
.ff-sec a.ff-cta:focus-visible {
  background-color: var(--ff-red-hover);
  color: #fff;
}
.ff-sec a.ff-cta:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* ---------- Первый экран ---------- */
.ff-hero__inner {
  position: relative;
  width: 90vw;
  margin: 0 auto;
  padding: clamp(18px, 2.2vw, 32px) 0 clamp(18px, 2.2vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 7vw - 110px);
}
.ff-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.ff-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.ff-hero__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, .9vw, 14px);
  margin-bottom: clamp(16px, 1.8vw, 28px);
}
.ff-hero .ff-title {
  text-align: left;
}
.ff-card {
  position: relative;
  z-index: 1;
  width: min(980px, 72vw);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
  padding: clamp(18px, 2vw, 32px) clamp(22px, 3vw, 48px);
}
.ff-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(10px, 1.3vw, 20px);
}
.ff-features li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: OpenSans-Regular, sans-serif;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.3;
  color: #000;
}
.ff-features img {
  flex: 0 0 auto;
  width: clamp(40px, 3.4vw, 56px);
  height: clamp(40px, 3.4vw, 56px);
}
.ff-features b {
  font-weight: 400;
  font-family: OpenSans-SemiBold, sans-serif;
  color: var(--ff-red);
}
.ff-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(14px, 1.6vw, 24px);
  padding-top: clamp(14px, 1.4vw, 20px);
  border-top: 1px solid #ececec;
}
.ff-card__note {
  font-family: OpenSans-Regular, sans-serif;
  font-size: 15px;
  color: var(--ff-muted);
}

/* ---------- Экраны 2 и 3: текст слева, фото справа ---------- */
.ff-split {
  width: 90vw;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 64px);
  align-items: center;
}
.ff-split__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 30px);
}
.ff-split__img {
  display: block;
  align-self: center;
}
.ff-split__img img {
  display: block;
  width: 100%;
  height: clamp(320px, calc(100vh - 7vw - 120px), 640px);
  object-fit: cover;
  object-position: 60% center;
}
.ff-split__img--transport img {
  object-position: 62% center;
}
.ff-groups {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.7vw, 26px);
}
.ff-group {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.4vw, 22px);
}
.ff-hex {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(58px, 4.6vw, 74px);
  height: clamp(52px, 4.1vw, 66px);
  background: var(--ff-red);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.ff-hex img {
  width: 56%;
  height: auto;
}
.ff-group__title {
  margin: 2px 0 6px;
  font-family: OpenSans-Regular, sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ff-red);
}
.ff-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ff-group__list li {
  position: relative;
  padding-left: 18px;
  margin: 0 0 3px;
  font-family: Roboto, sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.4;
  color: var(--ff-text);
}
.ff-group__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 2px;
  background: var(--ff-red);
}
.ff-group__list em {
  font-style: normal;
  color: var(--ff-red);
}

/* Бейдж ISO 9001 (экран 3, на месте штампа со слайда 3) */
.ff-iso {
  display: inline-flex;
  align-items: stretch;
  margin: 0;
  border: 2px solid var(--ff-red);
}
.ff-iso__mark {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--ff-red);
  color: #fff;
  font-family: Avanti-Bold, sans-serif;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1;
  letter-spacing: .02em;
}
.ff-iso__text {
  display: flex;
  align-items: center;
  padding: 6px 14px;
  font-family: OpenSans-Regular, sans-serif;
  font-size: 14px;
  line-height: 1.25;
  color: #000;
}

/* Низкие экраны ноутбуков: сжать вертикальные отступы, чтобы fullpage не обрезал */
@media screen and (min-width: 1025px) and (max-height: 760px) {
  .ff-hero__head { margin-bottom: 10px; gap: 6px; }
  .ff-features { row-gap: 8px; }
  .ff-features img { width: 40px; height: 40px; }
  .ff-card { padding-top: 14px; padding-bottom: 14px; }
  .ff-card__foot { margin-top: 10px; padding-top: 10px; }
  .ff-groups { gap: 10px; }
  .ff-split__text { gap: 14px; }
  .ff-group__list li { line-height: 1.3; }
}

/* ---------- Мобильная вёрстка ---------- */
@media screen and (max-width: 1024px) {
  .ff-hero__inner {
    width: 100%;
    padding: 0;
    min-height: 0;
  }
  .ff-hero__bg {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: 46vw;
    min-height: 170px;
  }
  .ff-hero__head {
    order: 1;
    width: 100%;
    padding: 24px 16px 18px;
    align-items: flex-start;
    margin: 0;
  }
  .ff-kicker { font-size: 13px; }
  .ff-title { font-size: 26px; padding-left: 12px; }
  .ff-card {
    order: 3;
    width: 100%;
    box-shadow: none;
    padding: 22px 16px 8px;
  }
  .ff-features {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  .ff-features li { font-size: 15px; gap: 14px; }
  .ff-features img { width: 44px; height: 44px; }
  .ff-card__foot {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    border-top: none;
    padding-top: 6px;
  }
  .ff-sec a.ff-cta {
    width: 100%;
    font-size: 18px;
  }
  .ff-split {
    width: 100%;
    padding: 28px 16px 8px;
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .ff-split__text { gap: 20px; align-items: stretch; }
  .ff-split__img img { height: 60vw; max-height: 420px; }
  .ff-hex { width: 54px; height: 48px; }
  .ff-group__title { font-size: 15px; }
  .ff-group__list li { font-size: 15px; }
}
