body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 20px;
}
.page-title {
  text-align: center;
  color: #009933;
  font-size: 28px;
  margin-bottom: 20px;
}
input[type="text"] {
  display: block;
  margin: 0 auto 30px;
  padding: 10px;
  width: 90%;
  max-width: 500px;
  border: 2px solid #ffc107;
  border-radius: 5px;
  font-size: 16px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 10px;
}
.catalog-item {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.catalog-item::before {
  content: "";
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #ffeb3b, #00cc66);
  transition: bottom 0.4s ease;
  z-index: 0;
}
.catalog-item:hover::before {
  bottom: 0;
}
.catalog-item:hover {
  transform: translateY(-5px);
}
.catalog-item h3,
.catalog-item p {
  position: relative;
  z-index: 1;
}
.catalog-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  position: relative;
  z-index: 1;
}
.catalog-actions a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s;
}
.preview {
  background-color: #ffc107;
}
.preview:hover {
  background-color: #ffca28;
}
.download {
  background-color: #00cc66;
  color: white;
}
.download:hover {
  background-color: #00994d;
}
