.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 38px;
  margin-top: 0px; /* большой отступ сверху */
  margin-bottom: 32px;
  justify-items: center;
}

.feature-badge {
  width: 290px;
  height: 290px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--code-bg, #0b1d33);
  border: 2px solid var(--code-border, rgba(255,255,255,0.08));
  border-radius: 22px;
  box-shadow: 0 4px 18px 0 rgba(80,176,255,0.08);
  padding: 24px 10px 18px;
  transition:
    transform 0.20s cubic-bezier(.22,1,.36,1),
    box-shadow 0.20s cubic-bezier(.22,1,.36,1),
    border-color 0.20s cubic-bezier(.22,1,.36,1);
  cursor: pointer;
  position: relative;
}

.feature-badge:hover, .feature-badge:focus {
  transform: translateY(-12px) scale(1.045);
  box-shadow: 0 8px 32px 0 rgba(79,176,255,0.22), 0 2px 12px 0 rgba(80,176,255,0.10);
  border-color: var(--accent, #4fb0ff);
  z-index: 2;
}

.feature-img {
  width: 150px;
  height: 150px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-img img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 16px;
  background: #112a42;
  border: 1.5px solid rgba(255,255,255,0.04);
}

.feature-title {
  font-size: 25px;
  font-weight: 600;
  color: var(--text, #fff);
  letter-spacing: 0.03em;
  text-align: center;
  margin-top: 14px;
}

/* Адаптация под планшеты */
@media (max-width: 1100px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

/* Адаптация под мобильные */
@media (max-width: 700px) {
  .features {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 36px;
  }
  .feature-badge {
    width: 95vw;
    max-width: 320px;
    height: 120px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 10px 10px 10px 18px;
    border-radius: 16px;
  }
  .feature-img {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
    margin-right: 16px;
  }
  .feature-img img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }
  .feature-title {
    font-size: 18px;
    margin-top: 0;
    text-align: left;
  }
}

