/* Базовые стили, слегка доработанные */
.container_info_boxes{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  margin: 80px 100px;
  max-width: 1200px;          /* чтобы не растягивалось на ультра‑широких экранах */
  margin-left: auto;
  margin-right: auto;
}

.box{
  width: 100%;
  box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  padding: 10px 20px;
  border-radius: 20px;
  align-items: center;
  min-height: 120px;          /* лучше min-height, чем фиксированный height */
  gap: 20px;
}

.box p{
  text-align: center;
  font-size: 16px;
  color: #000;
}

.box h3{
  text-align: center;
  color: #000;
  font-size: 18px;
  font-weight: 300;
}

.box a{
  padding: 10px 15px;
  background: #2d6cff;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  border: 2px solid #2d6cff;
  border-radius: 10px;
  transition: 0.5s;
  text-decoration: none;
  outline: none;
  text-align: center;
}

.box a:hover{
  background: #fff;
  color: #2d6cff;
}

.buttons_info{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;           /* чтобы кнопки не вылезали за край на узких экранах */
}

.big_box{
  height: auto;
}

/* ===== Адаптив ===== */

/* Планшеты (примерно < 992px) */
@media(max-width: 992px) {
  .container_info_boxes{
    margin: 60px 40px;
  }

  .box{
    grid-template-columns: 1fr 1fr;  /* убираем третью колонку, делаем 2 */
    gap: 15px;
  }

  .box p,
  .box h3{
    font-size: 15px;
  }

  .box a{
    font-size: 16px;
    padding: 8px 12px;
  }
}

/* Мобильные (примерно < 576px) */
@media(max-width: 576px) {
  .container_info_boxes{
    margin: 40px 15px;       /* минимальные отступы по краям */
  }

  .box{
    grid-template-columns: 1fr;     /* одна колонка, всё в столбик */
    text-align: center;
    padding: 15px;
    gap: 10px;
  }

  .box p,
  .box h3{
    font-size: 14px;
  }

  .buttons_info{
    flex-direction: column;  /* кнопки одна под другой */
    gap: 8px;
  }

  .box a{
    width: 100%;             /* кнопка во всю ширину блока */
    box-sizing: border-box;
  }
}