
/* --- Сетка карточек с использованием CSS Grid --- */
.loan-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.loan-card {
  background-color: #ffffff; 
  border: 1px solid #bbdefb;
  border-radius: 16px;
  padding: 24px;
  min-height: 180px;
  position: relative;
  overflow: hidden; /* Скрываем фото, которое вылезает за границы */
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.15); 
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Новый стиль для эффекта наведения */
.loan-card:hover {
  transform: translateY(-5px);
   box-shadow: 0 10px 20px rgba(0, 51, 102, 0.3); 
}

/* --- Фото в правом нижнем углу --- */
.loan-card::before {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px; /* Размер фото */
  height: 160px;
  background-image: url('http://host170920251059.of.by/wp-content/uploads/2025/09/auf.png'); /* Замените на путь к вашему фото */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a237e; /* Тёмно-синий */
  margin-bottom: 8px;
  position: relative;
  z-index: 2; /* Убеждаемся, что текст поверх фото */
}

.card-description {
  font-size: 14px;
  color: #455a64; /* Серо-синий */
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

/* --- Стили для кнопок --- */
.loan-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.button-outline {
  color: #1a237e;
  border: 1px solid #1a237e;
  background-color: transparent;
}

.button-outline:hover {
  background-color: #1a237e;
  color: #fff;
}

/* --- Медиа-запросы для адаптивности --- */
@media (max-width: 992px) {
  .loan-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .loan-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .loan-options-title {
    font-size: 28px;
  }

  .loan-buttons {
    flex-direction: column;
    align-items: center;
  }
}

