/* =====================================================
   КОМПОНЕНТ: Панель кнопок
   Префикс .buttons-panel
   ===================================================== */

.buttons-panel { max-width: 1400px; margin: 0 0 24px 0; padding: 0; font-family: 'Segoe UI', Tahoma, Arial, sans-serif; }

.buttons-panel__title {
  font-size: 24px;
  font-weight: 700;
  color: #1e2a3a;
  text-align: center;
  margin: 0 0 24px 0;
}

/* Сетка — 5 колонок по умолчанию */
.buttons-panel__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* Вариант на 4 колонки */
.buttons-panel.cols-4 .buttons-panel__grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Карточка-кнопка */
.btn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 130px;
  padding: 26px 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f8fc 100%);
  border: 1px solid #dde4ee;
  border-radius: 14px;
  text-decoration: none;
  color: #1e2a3a;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(30, 60, 120, 0.06);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2b6cb0, #4299e1);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.btn-card__icon img {
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.btn-card__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.4;
  text-transform: uppercase;
  color: #2d3e50;
  margin: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================================================
   ЭФФЕКТЫ
   ===================================================== */
.btn-card:hover {
  text-decoration: none;  
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(30, 60, 120, 0.15);
  border-color: #a3c4f3;
  background: linear-gradient(135deg, #ffffff 0%, #eaf2fc 100%);
}

.btn-card:hover::before {
  opacity: 1;
}

.btn-card:hover .btn-card__icon img {
  transform: scale(1.08);
}

.btn-card:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 60, 120, 0.18);
}

/* =====================================================
   АДАПТИВНОСТЬ
   ===================================================== */
@media (max-width: 1100px) {
  .buttons-panel__grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .buttons-panel__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .btn-card {
    min-height: 120px;
    padding: 20px 12px;
  }
}

@media (max-width: 520px) {
  .buttons-panel__grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .btn-card {
    flex-direction: row;
    justify-content: flex-start;
    gap: 18px;
    min-height: 80px;
    padding: 16px 20px;
    text-align: left;
  }
  .btn-card__icon {
    height: 40px;
    flex-shrink: 0;
  }
  .btn-card__icon img {
    height: 40px;
  }
  .btn-card__label {
    text-align: left;
    justify-content: flex-start;
  }
}