/**
 * Бенто «Почему именно мы?» — как Ozon promo:
 * плоские карточки, текст + зона под иллюстрацию без рамок внутри.
 */

body.page-home .why-us {
  position: relative;
  z-index: 2;
  padding: 48px 0 24px;
  background: transparent;
}

body.page-home .why-us .container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

body.page-home .why-us h2 {
  font-family: 'Onder', var(--font-main);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--home-text, #ffffff);
  text-align: center;
  margin: 0 0 28px;
}

body.page-home .why-us-bento {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 16px;
  align-items: stretch;
}

body.page-home .why-us-bento__col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 0;
}

/* Одна плоская плитка — как у Ozon, без hover-анимации */
body.page-home .why-us-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 32px 32px 0;
  border-radius: 28px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

body.page-home .why-us-card--tall {
  min-height: 440px;
}

body.page-home .why-us-card__text {
  position: relative;
  z-index: 2;
  max-width: 18rem;
  flex: 0 0 auto;
  padding-bottom: 12px;
}

body.page-home .why-us-card__title {
  margin: 0 0 10px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--home-text, #ffffff);
}

body.page-home .why-us-card__subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--home-text-soft, rgba(255, 255, 255, 0.52));
}

/* Готовое изображение заполняет карточку целиком, текст остаётся отдельным слоем сверху. */
body.page-home .why-us-card__background {
  position: absolute;
  inset: -2px;
  z-index: 0;
  display: block;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

/* Правые карточки: текст слева, визуал справа — как у Ozon */
body.page-home .why-us-card--top,
body.page-home .why-us-card--bottom {
  flex-direction: row;
  align-items: stretch;
  padding: 28px 0 28px 28px;
  min-height: 210px;
}

body.page-home .why-us-card--top .why-us-card__text,
body.page-home .why-us-card--bottom .why-us-card__text {
  flex: 0 1 48%;
  max-width: none;
  padding: 4px 12px 4px 0;
  align-self: flex-start;
}

body.page-home .why-us-card--bottom .why-us-card__subtitle {
  white-space: nowrap;
}

@media (max-width: 900px) {
  body.page-home .why-us {
    padding: 36px 0 16px;
  }

  body.page-home .why-us-bento {
    grid-template-columns: 1fr;
  }

  body.page-home .why-us-bento__col {
    grid-template-rows: none;
  }

  body.page-home .why-us-card--tall {
    min-height: 320px;
  }

  body.page-home .why-us-card--top,
  body.page-home .why-us-card--bottom {
    flex-direction: column;
    padding: 28px 28px 0;
    min-height: 240px;
  }

  body.page-home .why-us-card--top .why-us-card__text,
  body.page-home .why-us-card--bottom .why-us-card__text {
    flex: 0 0 auto;
    padding-bottom: 8px;
  }
}

@media (max-width: 560px) {
  body.page-home .why-us h2 {
    font-size: 1.55rem;
    margin-bottom: 20px;
  }

  body.page-home .why-us-card {
    border-radius: 22px;
    padding: 24px 24px 0;
  }

  body.page-home .why-us-card--top,
  body.page-home .why-us-card--bottom {
    padding: 24px 24px 0;
  }

  body.page-home .why-us-bento,
  body.page-home .why-us-bento__col {
    gap: 12px;
  }
}
