/* Блок «Почему работают с нами» */
.why-us-block {
  padding: 60px 0;
  background: #FFFFFF;
}

/* Используем глобальный .container из style.css */
.why-us-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Заголовок блока */
.why-us-title {
  font-family: 'Gilroy', sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 36px;
  margin-bottom: 40px;
  color: #1A1A1A;
  text-align: left;
  letter-spacing: -0.02em;
}

/* Контейнер карточек - GRID */
.why-us-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 60px;
  overflow: visible;
}

/* ОДНА карточка */
.why-us-card {
  position: relative;
  background: #863A3A; /* доминирующий цвет */
  padding: 40px;
  border-radius: 0;
  width: 100%;
  min-height: 280px;
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); /* базовая карточка по ТЗ */
  overflow: visible;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.why-us-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(134, 58, 58, 0.12); /* hover по ТЗ */
}

/* Цифра с двойным эффектом */
.why-us-number {
  position: absolute;
  top: -18px;
  left: -41px;
  font-size: 140px;
  font-weight: 900;
  line-height: 1;
  font-family: 'Arial', monospace;
  background: linear-gradient(
    -90deg,
    #FFFFFF 0%,
    #FFFFFF 48%,
    #863A3A 48%,
    #863A3A 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  z-index: 1;
}

/* Заголовок карточки */
.why-us-card h3 {
  margin-top: 30px;
  margin-bottom: 20px;
  font-family: 'Gilroy', sans-serif;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

/* Текст карточки */
.why-us-card p {
  font-family: 'Gilroy', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  position: relative;
  z-index: 2;
}

/* ================================
   АДАПТИВНОСТЬ
   ================================ */

/* Планшет: 2 колонки + 3-я по центру (1100px-901px) */
@media (max-width: 1100px) {
  .why-us-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
  }

  .why-us-card {
    width: calc(50% - 30px);
    max-width: 320px;
  }

  .why-us-card:nth-child(3) {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .why-us-number {
    font-size: 120px;
    top: -16px;
    left: -34px;
  }
}

/* Мобильные (до 900px) */
@media (max-width: 900px) {
  .why-us-cards {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .why-us-card {
    width: 100%;
    max-width: 350px;
    padding: 28px;
  }

  .why-us-card:nth-child(3) {
    width: 100%;
    max-width: 350px;
    margin: 0;
  }

  .why-us-title {
    font-size: 22px;
    line-height: 30px;
    text-align: left; /* не центрируем */
  }

  .why-us-card h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .why-us-card p {
    font-size: 14px;
    line-height: 20px;
  }

  .why-us-number {
    font-size: 100px;
    left: -29px;
    top: -13px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .why-us-block {
    margin-top: 40px;
    padding: 30px 0;
  }

  .why-us-card {
    max-width: 100%;
    padding: 20px;
  }

  .why-us-number {
    font-size: 80px;
    left: -23px;
    top: -10px;
  }
}

/* Fix для Safari */
@supports (-webkit-touch-callout: none) {
  .why-us-number {
    filter: blur(0.3px);
  }
}
