/* === Контейнер === */
.container {
  max-width: 1200px;
  margin-top: 20px;
  padding: 2rem 1rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* === Заголовки === */
.title {
  text-align: center;
  font-size: 2.5rem;
  color: #3D3D3D;
  margin-bottom: 0.5rem;
  font-family: 'Days_Sans_Black', Arial, sans-serif;
}

.subtitle {
  text-align: center;
  color: #2D3748;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  font-family: 'Rounds_Black', Arial, sans-serif;
}

/* === Сетка карточек === */
.grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-direction: row-reverse;
  flex-wrap: wrap-reverse;
}

.grid-item {
  display: flex;
  justify-content: center;
}

/* === Карточка проекта === */
.card {
  background-color: #2a2f45;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.015);
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* === Контент карточки === */
.card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  color: #c084fc;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-family: 'Rounds_Black', Arial, sans-serif;
}

.card-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-family: 'Days_Sans_Black', Arial, sans-serif;
}

/* === Теги === */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background-color: #475569;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #FDFDFD;
  font-family: "Lubalin", Arial, sans-serif;
}

/* === Кнопки === */
.buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.btn, .no-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: white;
  font-family: 'Days_Sans_Black', Arial, sans-serif;
  transition: background-color 0.2s ease;
}

/* Неактивная кнопка */
.no-btn {
  background-color: #475569;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Активная кнопка (Проект) */
.btn-live {
  background-color: #a855f7;
}

.btn-live:hover {
  background-color: #9333ea;
}

/* Иконки */
.icon {
  width: 1rem;
  height: 1rem;
}

.project-bt {
    color: white;
    font-weight: 200;
}

/* Адаптация под телефон */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
