/* Home redesign — «BIGZONE для профессионалов»
   Figma: 360 / 768 / 1024 / 1280 / 1440 / 1920
   Связь: старый #section-cooperation → /partners/?type=designers|installers
*/

.bz-pros {
  background-color: var(--bz-bg-prim, #f7f6f1);
  padding: 120px 10px 0;
  margin: 0;
  box-sizing: border-box;
}

.bz-pros__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  /* Figma 360: подзаголовок → карточки = 50px */
  margin-bottom: 50px;
  text-align: center;
}

.bz-pros__title {
  margin: 0;
  max-width: 248px;
  color: var(--bz-b-100, #2d2c2c);
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.bz-pros__lead {
  margin: 0;
  max-width: 300px;
  /* Figma 360: подзаголовок серый; с 768+ снова тёмный (см. медиа-блок) */
  color: #7e7d7b;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.bz-pros__grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.bz-pros__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 250px;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
}

.bz-pros__card:hover,
.bz-pros__card:focus {
  color: #ffffff;
  text-decoration: none;
}

.bz-pros__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.bz-pros__card:hover .bz-pros__image,
.bz-pros__card:focus .bz-pros__image {
  transform: scale(1.04);
}

.bz-pros__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* Figma: у карточки «Производствам» затемнения нет — на всех брейкпоинтах */
.bz-pros__card:nth-child(3) .bz-pros__overlay {
  display: none;
}

.bz-pros__card-title,
.bz-pros__card-text,
.bz-pros__arrow {
  position: relative;
  z-index: 1;
}

.bz-pros__card-title {
  max-width: calc(100% - 28px);
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.bz-pros__card-text {
  max-width: 100%;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.bz-pros__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.bz-pros__arrow-icon {
  display: block;
  width: 20px;
  height: 20px;
}

/* 768 — карточки столбиком на всю ширину. Figma 768: H2 32px 2 строки, карточки 323px, тайтл 24/500 */
@media (min-width: 768px) {
  .bz-pros {
    padding: 102px 30px 0;
  }

  .bz-pros__head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    text-align: left;
  }

  .bz-pros__title {
    max-width: 347px;
    font-size: 32px;
    line-height: 1.3;
    letter-spacing: -0.04em;
  }

  .bz-pros__lead {
    max-width: 316px;
    margin-top: 20px;
    /* Figma 768+: лид тёмный (на мобиле — серый) */
    color: var(--bz-b-100, #2d2c2c);
  }

  .bz-pros__grid {
    max-width: none;
  }

  .bz-pros__card {
    height: 323px;
    padding: 24px;
  }

  .bz-pros__card-title {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0;
  }

  .bz-pros__arrow {
    display: none;
  }
}

/* 1024 — три колонки */
@media (min-width: 1024px) {
  .bz-pros__title {
    max-width: 406px;
  }

  .bz-pros__lead {
    max-width: 408px;
    margin-top: 44px;
  }

  .bz-pros__grid {
    flex-direction: row;
    align-items: stretch;
  }

  .bz-pros__card {
    flex: 1 1 0;
    min-width: 0;
    height: 400px;
    padding: 32px;
  }

  .bz-pros__card-title {
    font-size: 32px;
    letter-spacing: -0.04em;
  }

  .bz-pros__card-text {
    max-width: 280px;
  }
}

/* 1280 */
@media (min-width: 1280px) {
  /* Figma: title слева, lead с x≈728 (левый край правой половины), не space-between */
  .bz-pros__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 15px;
    align-items: start;
    justify-content: stretch;
  }

  .bz-pros__title {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }

  .bz-pros__lead {
    grid-column: 2;
    justify-self: start;
    text-align: left;
    max-width: 408px;
  }

  .bz-pros__card-text {
    max-width: 320px;
  }
}

/* 1440 */
@media (min-width: 1440px) {
  .bz-pros {
    padding: 180px 30px 0;
  }

  .bz-pros__title {
    /* Figma 1440: 406×84, lh 42 */
    max-width: 406px;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .bz-pros__lead {
    /* Figma: lead y=224 при title y=180 */
    margin-top: 44px;
  }

  .bz-pros__card {
    height: 440px;
  }

  .bz-pros__card-text {
    max-width: 420px;
  }
}

/* 1920 */
@media (min-width: 1920px) {
  .bz-pros__card {
    height: 550px;
  }

  .bz-pros__card-text {
    max-width: 420px;
  }
}
