.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.bg-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  color: white;
  z-index: 2;
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo img.logo {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.section {
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* 🔥 центрирует весь контент */
}

/* контейнер сетки */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;

  width: 100%;
  max-width: 1100px;  
}


/* карточки */
.card {
  background: rgba(255, 255, 255, 0.66);
  padding: 25px;
  border-radius: 15px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  transition: 0.3s;
}

/* кнопка всегда внизу */
.card .btn {
  margin-top: auto;
}

/* текст не ломает высоту */
.hidden-text {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: 0.4s ease;
}

.hidden-text.show {
  max-height: 300px;
  opacity: 1;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .section {
    padding: 70px 14px;
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    max-width: 100%;
    padding: 18px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    padding: 0 12px;
  }
}